-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-editor-double-commit
- Loading branch information
Showing
26 changed files
with
334 additions
and
155 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@itwin/appui-react/change-selection-count-padding_2024-07-26-16-49.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@itwin/appui-react", | ||
"comment": "Adjust SelectionCount padding values.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@itwin/appui-react" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@itwin/appui-react/fix-893_2024-07-31-08-02.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@itwin/appui-react", | ||
"comment": "Fix an issue where styles of complex shorthand properties were not copied correctly to a popout window.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@itwin/appui-react" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@itwin/appui-react/link-discussions_2024-07-31-12-45.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@itwin/appui-react", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@itwin/appui-react" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+235 Bytes
...s/tests/popout-widget.test.ts-snapshots/should-copy-styles-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-175 Bytes
(100%)
...s/ui-settings-page.test.ts-snapshots/ui-settings-page-test-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test-apps/appui-test-app/standalone/src/frontend/appui/frontstages/TestPanelFrontstage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from "react"; | ||
import { Frontstage } from "@itwin/appui-react"; | ||
import { createTestFrontstage } from "./createTestFrontstage"; | ||
|
||
/** Used in e2e tests to test different panel configurations. */ | ||
export const createTestPanelFrontstage = () => { | ||
{ | ||
const urlParams = new URLSearchParams(window.location.search); | ||
const size = urlParams.get("size"); | ||
const defaultState = urlParams.get("defaultState"); | ||
const resizable = urlParams.get("resizable"); | ||
|
||
const frontstage = createTestFrontstage({ | ||
id: "appui-test-app:TestPanel", | ||
}); | ||
|
||
return { | ||
...frontstage, | ||
leftPanel: { | ||
sizeSpec: size ? Number(size) : undefined, | ||
defaultState: defaultState ? Number(defaultState) : undefined, | ||
resizable: resizable ? Boolean(Number(resizable)) : undefined, | ||
sections: { | ||
start: [ | ||
{ | ||
id: "widget-1", | ||
label: "Widget 1", | ||
content: ( | ||
<> | ||
Frontstage provided widget: <b>widget-1</b> | ||
</> | ||
), | ||
}, | ||
], | ||
}, | ||
}, | ||
} satisfies Frontstage; | ||
} | ||
}; |
11 changes: 11 additions & 0 deletions
11
test-apps/appui-test-app/standalone/src/frontend/appui/frontstages/TestPopoutFrontstage.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
#border-test { | ||
--border-color: red; | ||
border: 5px solid var(--border-color); | ||
border-bottom: 5px solid blue; | ||
height: 20px; | ||
width: 100px; | ||
} |
50 changes: 50 additions & 0 deletions
50
test-apps/appui-test-app/standalone/src/frontend/appui/frontstages/TestPopoutFrontstage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import "./TestPopoutFrontstage.scss"; | ||
import * as React from "react"; | ||
import { Frontstage } from "@itwin/appui-react"; | ||
import { createTestFrontstage } from "./createTestFrontstage"; | ||
|
||
export const createTestPopoutFrontstage = () => { | ||
{ | ||
const frontstage = createTestFrontstage({ | ||
id: "appui-test-app:TestPopout", | ||
}); | ||
|
||
return { | ||
...frontstage, | ||
leftPanel: { | ||
sections: { | ||
start: [ | ||
{ | ||
id: "widget-1", | ||
label: "Widget 1", | ||
canPopout: true, | ||
content: ( | ||
<> | ||
<div>Widget 1 content</div> | ||
<div id="border-test" /> | ||
</> | ||
), | ||
}, | ||
], | ||
}, | ||
}, | ||
} satisfies Frontstage; | ||
} | ||
}; | ||
|
||
(() => { | ||
const sheet = new CSSStyleSheet(); | ||
// Shorthand `border` property from `adoptedStyleSheets` will not be copied to a popout widget correctly. | ||
sheet.replaceSync(` | ||
#border-test { | ||
--border-top-color: yellow; | ||
border-top: 5px solid var(--border-top-color); | ||
border-right: 5px solid green; | ||
} | ||
`); | ||
document.adoptedStyleSheets.push(sheet); | ||
})(); |
Oops, something went wrong.