@luxalgo/vela-ui 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/dialog.js +3 -0
- package/dist/manifest.json +1 -1
- package/dist/theme.schema.json +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/registry/dialog.ts +5 -0
- package/src/components/dialog.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to `@luxalgo/vela-ui`, newest first. Vela's own changes, including how it
|
|
4
4
|
uses the kit, are in [Vela's changelog](../../CHANGELOG.md).
|
|
5
5
|
|
|
6
|
+
## [0.4.4]
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- **A dialog opened on top of another dialog stacks above it.** Opening a dialog that was
|
|
11
|
+
already mounted earlier in the host now moves its backdrop and positioner to the end of
|
|
12
|
+
the host, so nested dialogs such as a symbol picker opened from indicator settings appear
|
|
13
|
+
in front of the dialog that triggered them.
|
|
14
|
+
|
|
6
15
|
## [0.4.3]
|
|
7
16
|
|
|
8
17
|
### Added
|
package/dist/dialog.js
CHANGED
|
@@ -174,6 +174,9 @@ var Dialog = class {
|
|
|
174
174
|
if (api.open) {
|
|
175
175
|
this.exit?.cancel();
|
|
176
176
|
this.exit = null;
|
|
177
|
+
if (!this.wasOpen && this.positioner.parentNode === host && host.lastElementChild !== this.positioner) {
|
|
178
|
+
host.append(this.backdrop, this.positioner);
|
|
179
|
+
}
|
|
177
180
|
this.setShown(true);
|
|
178
181
|
} else if (closing) {
|
|
179
182
|
this.holdExit();
|
package/dist/manifest.json
CHANGED
package/dist/theme.schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"title": "@luxalgo/vela-ui 0.4.
|
|
3
|
+
"title": "@luxalgo/vela-ui 0.4.4 theme",
|
|
4
4
|
"description": "The input of createTheme. Every field is optional: an empty theme is the dark theme.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
package/llms.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxalgo/vela-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "The component kit of Vela: one file per component, Zag state machines for behavior, CSS in cascade layers over design tokens.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "LuxAlgo",
|
package/registry/dialog.ts
CHANGED
|
@@ -433,6 +433,11 @@ export class Dialog {
|
|
|
433
433
|
if (api.open) {
|
|
434
434
|
this.exit?.cancel();
|
|
435
435
|
this.exit = null;
|
|
436
|
+
// A dialog opened on top of an already-open sibling (for example a symbol picker
|
|
437
|
+
// launched from indicator settings) must stack above it in DOM order.
|
|
438
|
+
if (!this.wasOpen && this.positioner.parentNode === host && host.lastElementChild !== this.positioner) {
|
|
439
|
+
host.append(this.backdrop, this.positioner);
|
|
440
|
+
}
|
|
436
441
|
this.setShown(true);
|
|
437
442
|
} else if (closing) {
|
|
438
443
|
this.holdExit();
|
package/src/components/dialog.ts
CHANGED
|
@@ -433,6 +433,11 @@ export class Dialog {
|
|
|
433
433
|
if (api.open) {
|
|
434
434
|
this.exit?.cancel();
|
|
435
435
|
this.exit = null;
|
|
436
|
+
// A dialog opened on top of an already-open sibling (for example a symbol picker
|
|
437
|
+
// launched from indicator settings) must stack above it in DOM order.
|
|
438
|
+
if (!this.wasOpen && this.positioner.parentNode === host && host.lastElementChild !== this.positioner) {
|
|
439
|
+
host.append(this.backdrop, this.positioner);
|
|
440
|
+
}
|
|
436
441
|
this.setShown(true);
|
|
437
442
|
} else if (closing) {
|
|
438
443
|
this.holdExit();
|