@nvidia-elements/core 2.22.5 → 2.23.0
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 +6 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +4 -0
- package/dist/bundles/index.d.ts +336 -0
- package/dist/bundles/index.js +14 -14
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +6 -6
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +189 -0
- package/dist/custom-elements-vue.d.ts +189 -0
- package/dist/custom-elements.json +6555 -0
- package/dist/data.html.json +133 -0
- package/dist/data.snippets.json +27 -27
- package/dist/date/date2.js +6 -6
- package/dist/datetime/datetime2.js +6 -6
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drag-handle/drag-handle2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/format-truncate/format-truncate2.js +1 -1
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/ghost/define.d.ts +6 -0
- package/dist/ghost/define.js +6 -0
- package/dist/ghost/define.js.map +1 -0
- package/dist/ghost/ghost.d.ts +27 -0
- package/dist/ghost/ghost.examples.js +5 -0
- package/dist/ghost/ghost.examples.js.map +1 -0
- package/dist/ghost/ghost.examples.json +37 -0
- package/dist/ghost/ghost.js +5 -0
- package/dist/ghost/ghost.js.map +1 -0
- package/dist/ghost/ghost2.js +28 -0
- package/dist/ghost/ghost2.js.map +1 -0
- package/dist/ghost/index.d.ts +1 -0
- package/dist/ghost/index.js +1 -0
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/iframe/iframe2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/joystick/joystick2.js +5 -5
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-group2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +6 -6
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +6 -6
- package/dist/preferences-input/preferences-input2.js +5 -5
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-dot/progress-dot2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +5 -5
- package/dist/search/search2.js +6 -6
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +6 -6
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs-item-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +5 -5
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +6 -6
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +6 -6
- package/dist/workspace/controllers/workspace-command.controller.d.ts +34 -0
- package/dist/workspace/controllers/workspace-command.controller.js +87 -0
- package/dist/workspace/controllers/workspace-command.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-composition.controller.d.ts +54 -0
- package/dist/workspace/controllers/workspace-composition.controller.js +169 -0
- package/dist/workspace/controllers/workspace-composition.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.d.ts +25 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.js +84 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-measurement.controller.d.ts +19 -0
- package/dist/workspace/controllers/workspace-measurement.controller.js +188 -0
- package/dist/workspace/controllers/workspace-measurement.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.d.ts +40 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.js +385 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-resize.controller.d.ts +43 -0
- package/dist/workspace/controllers/workspace-resize.controller.js +168 -0
- package/dist/workspace/controllers/workspace-resize.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-restoration.controller.d.ts +24 -0
- package/dist/workspace/controllers/workspace-restoration.controller.js +193 -0
- package/dist/workspace/controllers/workspace-restoration.controller.js.map +1 -0
- package/dist/workspace/define.d.ts +10 -0
- package/dist/workspace/define.js +9 -0
- package/dist/workspace/define.js.map +1 -0
- package/dist/workspace/index.d.ts +8 -0
- package/dist/workspace/index.js +6 -0
- package/dist/workspace/panel/panel.d.ts +48 -0
- package/dist/workspace/panel/panel.js +5 -0
- package/dist/workspace/panel/panel.js.map +1 -0
- package/dist/workspace/panel/panel2.js +53 -0
- package/dist/workspace/panel/panel2.js.map +1 -0
- package/dist/workspace/panel-content/panel-content.d.ts +20 -0
- package/dist/workspace/panel-content/panel-content.js +5 -0
- package/dist/workspace/panel-content/panel-content.js.map +1 -0
- package/dist/workspace/panel-content/panel-content2.js +22 -0
- package/dist/workspace/panel-content/panel-content2.js.map +1 -0
- package/dist/workspace/panel-footer/panel-footer.d.ts +24 -0
- package/dist/workspace/panel-footer/panel-footer.js +5 -0
- package/dist/workspace/panel-footer/panel-footer.js.map +1 -0
- package/dist/workspace/panel-footer/panel-footer2.js +28 -0
- package/dist/workspace/panel-footer/panel-footer2.js.map +1 -0
- package/dist/workspace/panel-header/panel-header.d.ts +61 -0
- package/dist/workspace/panel-header/panel-header.js +5 -0
- package/dist/workspace/panel-header/panel-header.js.map +1 -0
- package/dist/workspace/panel-header/panel-header2.js +102 -0
- package/dist/workspace/panel-header/panel-header2.js.map +1 -0
- package/dist/workspace/utils/evaluation.utils.d.ts +83 -0
- package/dist/workspace/utils/evaluation.utils.js +294 -0
- package/dist/workspace/utils/evaluation.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/allocation.utils.d.ts +40 -0
- package/dist/workspace/utils/geometry/allocation.utils.js +73 -0
- package/dist/workspace/utils/geometry/allocation.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/partition.utils.d.ts +10 -0
- package/dist/workspace/utils/geometry/partition.utils.js +40 -0
- package/dist/workspace/utils/geometry/partition.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/sizing.utils.d.ts +35 -0
- package/dist/workspace/utils/geometry/sizing.utils.js +42 -0
- package/dist/workspace/utils/geometry/sizing.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/boundary.utils.d.ts +40 -0
- package/dist/workspace/utils/interaction/boundary.utils.js +91 -0
- package/dist/workspace/utils/interaction/boundary.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/command.utils.d.ts +74 -0
- package/dist/workspace/utils/interaction/command.utils.js +189 -0
- package/dist/workspace/utils/interaction/command.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.d.ts +79 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.js +16 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.d.ts +58 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.js +259 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.d.ts +55 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.js +242 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/resize-input.utils.d.ts +1 -0
- package/dist/workspace/utils/interaction/resize-input.utils.js +17 -0
- package/dist/workspace/utils/interaction/resize-input.utils.js.map +1 -0
- package/dist/workspace/utils/model/layout.utils.d.ts +22 -0
- package/dist/workspace/utils/model/layout.utils.js +41 -0
- package/dist/workspace/utils/model/layout.utils.js.map +1 -0
- package/dist/workspace/utils/model/membership.utils.d.ts +14 -0
- package/dist/workspace/utils/model/membership.utils.js +17 -0
- package/dist/workspace/utils/model/membership.utils.js.map +1 -0
- package/dist/workspace/utils/model/operations.utils.d.ts +31 -0
- package/dist/workspace/utils/model/operations.utils.js +178 -0
- package/dist/workspace/utils/model/operations.utils.js.map +1 -0
- package/dist/workspace/utils/model/projection.utils.d.ts +7 -0
- package/dist/workspace/utils/model/projection.utils.js +87 -0
- package/dist/workspace/utils/model/projection.utils.js.map +1 -0
- package/dist/workspace/utils/model/value.utils.d.ts +5 -0
- package/dist/workspace/utils/model/value.utils.js +68 -0
- package/dist/workspace/utils/model/value.utils.js.map +1 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.d.ts +32 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.js +152 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.js.map +1 -0
- package/dist/workspace/utils/placement/context.utils.d.ts +36 -0
- package/dist/workspace/utils/placement/context.utils.js +135 -0
- package/dist/workspace/utils/placement/context.utils.js.map +1 -0
- package/dist/workspace/utils/placement/group-insertion.utils.d.ts +26 -0
- package/dist/workspace/utils/placement/group-insertion.utils.js +171 -0
- package/dist/workspace/utils/placement/group-insertion.utils.js.map +1 -0
- package/dist/workspace/utils/placement/origin.utils.d.ts +13 -0
- package/dist/workspace/utils/placement/origin.utils.js +49 -0
- package/dist/workspace/utils/placement/origin.utils.js.map +1 -0
- package/dist/workspace/utils/placement/planner.utils.d.ts +22 -0
- package/dist/workspace/utils/placement/planner.utils.js +184 -0
- package/dist/workspace/utils/placement/planner.utils.js.map +1 -0
- package/dist/workspace/utils/placement/preparation.utils.d.ts +28 -0
- package/dist/workspace/utils/placement/preparation.utils.js +140 -0
- package/dist/workspace/utils/placement/preparation.utils.js.map +1 -0
- package/dist/workspace/utils/placement/region.utils.d.ts +15 -0
- package/dist/workspace/utils/placement/region.utils.js +111 -0
- package/dist/workspace/utils/placement/region.utils.js.map +1 -0
- package/dist/workspace/utils/placement/split-sizing.utils.d.ts +18 -0
- package/dist/workspace/utils/placement/split-sizing.utils.js +108 -0
- package/dist/workspace/utils/placement/split-sizing.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/composition.utils.d.ts +17 -0
- package/dist/workspace/utils/presentation/composition.utils.js +95 -0
- package/dist/workspace/utils/presentation/composition.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/groups.utils.d.ts +91 -0
- package/dist/workspace/utils/presentation/groups.utils.js +169 -0
- package/dist/workspace/utils/presentation/groups.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.d.ts +11 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.js +7 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/measurements.utils.d.ts +21 -0
- package/dist/workspace/utils/presentation/measurements.utils.js +28 -0
- package/dist/workspace/utils/presentation/measurements.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/offers.utils.d.ts +43 -0
- package/dist/workspace/utils/presentation/offers.utils.js +137 -0
- package/dist/workspace/utils/presentation/offers.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/preview.utils.d.ts +6 -0
- package/dist/workspace/utils/presentation/preview.utils.js +36 -0
- package/dist/workspace/utils/presentation/preview.utils.js.map +1 -0
- package/dist/workspace/workspace.d.ts +103 -0
- package/dist/workspace/workspace.examples.js +5 -0
- package/dist/workspace/workspace.examples.js.map +1 -0
- package/dist/workspace/workspace.examples.json +133 -0
- package/dist/workspace/workspace.js +5 -0
- package/dist/workspace/workspace.js.map +1 -0
- package/dist/workspace/workspace.types.d.ts +3 -0
- package/dist/workspace/workspace2.js +518 -0
- package/dist/workspace/workspace2.js.map +1 -0
- package/package.json +25 -1
package/dist/range/range2.js
CHANGED
|
@@ -5,10 +5,10 @@ import r from "./resize-handle.js";
|
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
import { property as o } from "lit/decorators/property.js";
|
|
7
7
|
import { I18nController as s } from "@nvidia-elements/foundations/internal/i18n";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ifDefined as c } from "lit/directives/if-defined.js";
|
|
9
|
+
import { FormControlMixin as l } from "@nvidia-elements/forms/mixins";
|
|
10
10
|
// src/resize-handle/resize-handle.ts
|
|
11
|
-
var u = { resize: "resize" }, d = class extends
|
|
11
|
+
var u = { resize: "resize" }, d = class extends l(i) {
|
|
12
12
|
static {
|
|
13
13
|
this.styles = t([r]);
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ var u = { resize: "resize" }, d = class extends c(i) {
|
|
|
18
18
|
static {
|
|
19
19
|
this.metadata = {
|
|
20
20
|
tag: "nve-resize-handle",
|
|
21
|
-
version: "2.
|
|
21
|
+
version: "2.23.0",
|
|
22
22
|
valueSchema: { type: "number" }
|
|
23
23
|
};
|
|
24
24
|
}
|
|
@@ -27,7 +27,7 @@ var u = { resize: "resize" }, d = class extends c(i) {
|
|
|
27
27
|
#r;
|
|
28
28
|
#i;
|
|
29
29
|
render() {
|
|
30
|
-
return a`<div internal-host><div class="line" part="_line"></div><input aria-label="${
|
|
30
|
+
return a`<div internal-host><div class="line" part="_line"></div><input aria-label="${c(this.ariaLabel ?? this.i18n.resize)}" type="range" min="${this.min}" max="${this.max}" .valueAsNumber="${this.valueAsNumber}" @input="${(e) => this.#f(e.target.valueAsNumber)}" @change="${(e) => this.#p(e.target.valueAsNumber)}" step="${this.step}"></div>`;
|
|
31
31
|
}
|
|
32
32
|
constructor() {
|
|
33
33
|
super(), this.orientation = "horizontal", this.min = 0, this.max = 100, this.step = 10, this.#t = new s(this, u), this.i18n = this.#t.i18n, this.#i = 0, this.#o = (e) => {
|
package/dist/search/search2.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { scopedRegistry as e } from "../internal/decorators/scoped-registry.js";
|
|
2
2
|
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
3
|
import n from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { IconButton as r } from "../icon-button/icon-button2.js";
|
|
5
|
+
import { Control as i } from "../forms/control/control2.js";
|
|
6
6
|
import { inputStyles as a } from "../input/input2.js";
|
|
7
7
|
import o from "./search.js";
|
|
8
8
|
import { html as s } from "lit";
|
|
9
9
|
import { property as c } from "lit/decorators/property.js";
|
|
10
10
|
// src/search/search.ts
|
|
11
|
-
var l = class extends
|
|
11
|
+
var l = class extends i {
|
|
12
12
|
constructor(...e) {
|
|
13
13
|
super(...e), this.rounded = !1;
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.styles = t([
|
|
17
|
-
...
|
|
17
|
+
...i.styles,
|
|
18
18
|
a,
|
|
19
19
|
o
|
|
20
20
|
]);
|
|
@@ -22,11 +22,11 @@ var l = class extends r {
|
|
|
22
22
|
static {
|
|
23
23
|
this.metadata = {
|
|
24
24
|
tag: "nve-search",
|
|
25
|
-
version: "2.
|
|
25
|
+
version: "2.23.0"
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.elementDefinitions = { [
|
|
29
|
+
this.elementDefinitions = { [r.metadata.tag]: r };
|
|
30
30
|
}
|
|
31
31
|
get prefixContent() {
|
|
32
32
|
return s`<nve-icon-button part="icon-button" icon-name="search" container="inline" aria-hidden="true" readonly="readonly"></nve-icon-button>`;
|
package/dist/select/select2.js
CHANGED
package/dist/steps/steps2.js
CHANGED
|
@@ -11,19 +11,19 @@ import l from "./steps.js";
|
|
|
11
11
|
import { ProgressRing as u } from "../progress-ring/progress-ring2.js";
|
|
12
12
|
import { LitElement as d, html as f } from "lit";
|
|
13
13
|
import { property as p } from "lit/decorators/property.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { ButtonFormControlMixin as m } from "@nvidia-elements/forms/mixins";
|
|
15
|
+
import { state as h } from "lit/decorators/state.js";
|
|
16
16
|
import { queryAssignedElements as g } from "lit/decorators/query-assigned-elements.js";
|
|
17
17
|
import { when as _ } from "lit/directives/when.js";
|
|
18
18
|
// src/steps/steps.ts
|
|
19
|
-
var v = class extends
|
|
19
|
+
var v = class extends m(d) {
|
|
20
20
|
static {
|
|
21
21
|
this.styles = a([c]);
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.metadata = {
|
|
25
25
|
tag: "nve-steps-item",
|
|
26
|
-
version: "2.
|
|
26
|
+
version: "2.23.0",
|
|
27
27
|
parents: ["nve-steps"]
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -52,7 +52,7 @@ o([p({
|
|
|
52
52
|
})], v.prototype, "status", void 0), o([p({
|
|
53
53
|
type: String,
|
|
54
54
|
reflect: !0
|
|
55
|
-
})], v.prototype, "container", void 0), o([
|
|
55
|
+
})], v.prototype, "container", void 0), o([h()], v.prototype, "index", void 0), v = o([
|
|
56
56
|
e(),
|
|
57
57
|
i(),
|
|
58
58
|
r()
|
|
@@ -69,7 +69,7 @@ var y = class extends d {
|
|
|
69
69
|
static {
|
|
70
70
|
this.metadata = {
|
|
71
71
|
tag: "nve-steps",
|
|
72
|
-
version: "2.
|
|
72
|
+
version: "2.23.0",
|
|
73
73
|
children: ["nve-steps-item"]
|
|
74
74
|
};
|
|
75
75
|
}
|
package/dist/switch/switch2.js
CHANGED
package/dist/tabs/tabs-group2.js
CHANGED
package/dist/tabs/tabs2.js
CHANGED
|
@@ -21,7 +21,7 @@ var y = class extends _(m) {
|
|
|
21
21
|
static {
|
|
22
22
|
this.metadata = {
|
|
23
23
|
tag: "nve-tabs-item",
|
|
24
|
-
version: "2.
|
|
24
|
+
version: "2.23.0",
|
|
25
25
|
parents: ["nve-tabs", "nve-tabs-item-group"]
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -65,7 +65,7 @@ var b = class extends m {
|
|
|
65
65
|
static {
|
|
66
66
|
this.metadata = {
|
|
67
67
|
tag: "nve-tabs",
|
|
68
|
-
version: "2.
|
|
68
|
+
version: "2.23.0",
|
|
69
69
|
children: ["nve-tabs-item", "nve-tabs-item-group"]
|
|
70
70
|
};
|
|
71
71
|
}
|
package/dist/tag/tag2.js
CHANGED
|
@@ -7,17 +7,17 @@ import o from "./tag.js";
|
|
|
7
7
|
import { LitElement as s, html as c } from "lit";
|
|
8
8
|
import { property as l } from "lit/decorators/property.js";
|
|
9
9
|
import { I18nController as u } from "@nvidia-elements/foundations/internal/i18n";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { ifDefined as d } from "lit/directives/if-defined.js";
|
|
11
|
+
import { ButtonFormControlMixin as f } from "@nvidia-elements/forms/mixins";
|
|
12
12
|
// src/tag/tag.ts
|
|
13
|
-
var p = { close: "close" }, m = class extends
|
|
13
|
+
var p = { close: "close" }, m = class extends f(s) {
|
|
14
14
|
static {
|
|
15
15
|
this.styles = r([n, o]);
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.metadata = {
|
|
19
19
|
tag: "nve-tag",
|
|
20
|
-
version: "2.
|
|
20
|
+
version: "2.23.0"
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
@@ -26,7 +26,7 @@ var p = { close: "close" }, m = class extends d(s) {
|
|
|
26
26
|
#e;
|
|
27
27
|
#t;
|
|
28
28
|
render() {
|
|
29
|
-
return c`<div internal-host interaction-state focus-within><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>${this.closable ? c`<nve-icon part="icon" @click="${() => this.#t.close()}" container="flat" name="cancel" size="sm" role="img" aria-label="${
|
|
29
|
+
return c`<div internal-host interaction-state focus-within><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>${this.closable ? c`<nve-icon part="icon" @click="${() => this.#t.close()}" container="flat" name="cancel" size="sm" role="img" aria-label="${d(this.i18n.close)}"></nve-icon>` : ""}</div>`;
|
|
30
30
|
}
|
|
31
31
|
constructor() {
|
|
32
32
|
super(), this.closable = !1, this.#e = new u(this, p), this.i18n = this.#e.i18n, this.#t = new e(this), this.type = "button";
|
package/dist/time/time2.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { scopedRegistry as e } from "../internal/decorators/scoped-registry.js";
|
|
2
2
|
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
3
|
import n from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { IconButton as r } from "../icon-button/icon-button2.js";
|
|
5
|
+
import { Control as i } from "../forms/control/control2.js";
|
|
6
6
|
import { inputStyles as a } from "../input/input2.js";
|
|
7
7
|
import o from "./time.js";
|
|
8
8
|
import { html as s } from "lit";
|
|
9
9
|
import { property as c } from "lit/decorators/property.js";
|
|
10
10
|
// src/time/time.ts
|
|
11
|
-
var l = { expand: "expand" }, u = class extends
|
|
11
|
+
var l = { expand: "expand" }, u = class extends i {
|
|
12
12
|
get i18nDefaults() {
|
|
13
13
|
return l;
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.styles = t([
|
|
17
|
-
...
|
|
17
|
+
...i.styles,
|
|
18
18
|
a,
|
|
19
19
|
o
|
|
20
20
|
]);
|
|
@@ -22,11 +22,11 @@ var l = { expand: "expand" }, u = class extends r {
|
|
|
22
22
|
static {
|
|
23
23
|
this.metadata = {
|
|
24
24
|
tag: "nve-time",
|
|
25
|
-
version: "2.
|
|
25
|
+
version: "2.23.0"
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.elementDefinitions = { [
|
|
29
|
+
this.elementDefinitions = { [r.metadata.tag]: r };
|
|
30
30
|
}
|
|
31
31
|
get suffixContent() {
|
|
32
32
|
return s`<nve-icon-button part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="clock" container="inline" @click="${this.showPicker}"></nve-icon-button>`;
|
package/dist/toast/toast2.js
CHANGED
package/dist/toolbar/toolbar2.js
CHANGED
package/dist/tooltip/tooltip2.js
CHANGED
package/dist/tree/tree-node2.js
CHANGED
package/dist/tree/tree2.js
CHANGED
package/dist/week/week2.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { scopedRegistry as e } from "../internal/decorators/scoped-registry.js";
|
|
2
2
|
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
3
|
import n from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { IconButton as r } from "../icon-button/icon-button2.js";
|
|
5
|
+
import { Control as i } from "../forms/control/control2.js";
|
|
6
6
|
import { inputStyles as a } from "../input/input2.js";
|
|
7
7
|
import o from "./week.js";
|
|
8
8
|
import { html as s } from "lit";
|
|
9
9
|
import { property as c } from "lit/decorators/property.js";
|
|
10
10
|
// src/week/week.ts
|
|
11
|
-
var l = { expand: "expand" }, u = class extends
|
|
11
|
+
var l = { expand: "expand" }, u = class extends i {
|
|
12
12
|
get i18nDefaults() {
|
|
13
13
|
return l;
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.styles = t([
|
|
17
|
-
...
|
|
17
|
+
...i.styles,
|
|
18
18
|
a,
|
|
19
19
|
o
|
|
20
20
|
]);
|
|
@@ -22,11 +22,11 @@ var l = { expand: "expand" }, u = class extends r {
|
|
|
22
22
|
static {
|
|
23
23
|
this.metadata = {
|
|
24
24
|
tag: "nve-week",
|
|
25
|
-
version: "2.
|
|
25
|
+
version: "2.23.0"
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.elementDefinitions = { [
|
|
29
|
+
this.elementDefinitions = { [r.metadata.tag]: r };
|
|
30
30
|
}
|
|
31
31
|
get suffixContent() {
|
|
32
32
|
return s`<nve-icon-button exportparts="icon:icon-button-icon" part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { WorkspaceCommandContext, WorkspacePlacementIntent } from '../utils/interaction/command.utils.js';
|
|
3
|
+
import type { WorkspaceLayout } from '../utils/model/layout.utils.js';
|
|
4
|
+
import type { WorkspacePanel } from '../panel/panel.js';
|
|
5
|
+
type WorkspaceCommandHost = HTMLElement & ReactiveControllerHost & {
|
|
6
|
+
readonly closable: boolean;
|
|
7
|
+
readonly rearrangeable: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface WorkspaceCommandDelegate {
|
|
10
|
+
readonly getState: () => {
|
|
11
|
+
panels: WorkspacePanel[];
|
|
12
|
+
layout?: WorkspaceLayout;
|
|
13
|
+
};
|
|
14
|
+
readonly isRearrangementAllowed: () => boolean;
|
|
15
|
+
readonly isPlacementAvailable: (source: string[], intent: WorkspacePlacementIntent) => boolean;
|
|
16
|
+
readonly canEnterFullscreen: (targetPanelId: string) => boolean;
|
|
17
|
+
readonly canExitFullscreen: () => boolean;
|
|
18
|
+
readonly isFullscreenGroup: (targetPanelId: string) => boolean;
|
|
19
|
+
readonly enterFullscreen: (targetPanelId: string) => void;
|
|
20
|
+
readonly exitFullscreen: () => void;
|
|
21
|
+
readonly activatePanel: (anchor: string, operation: 'open' | 'select') => void;
|
|
22
|
+
readonly closePanel: (anchor: string) => void;
|
|
23
|
+
readonly placePanel: (source: string[], intent: WorkspacePlacementIntent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare class WorkspaceCommandController {
|
|
26
|
+
#private;
|
|
27
|
+
constructor(host: WorkspaceCommandHost, delegate: WorkspaceCommandDelegate);
|
|
28
|
+
hostConnected(): void;
|
|
29
|
+
hostDisconnected(): void;
|
|
30
|
+
isCommandAvailable(command: string, context?: WorkspaceCommandContext): boolean;
|
|
31
|
+
invalidateAvailability(): void;
|
|
32
|
+
flushAvailability(): void;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { findWorkspaceCommandPanel as e, isWorkspaceCommandAvailable as t, isWorkspacePlacement as n, resolveWorkspacePlacement as r } from "../utils/interaction/command.utils.js";
|
|
2
|
+
// src/workspace/controllers/workspace-command.controller.ts
|
|
3
|
+
var i = class {
|
|
4
|
+
#e;
|
|
5
|
+
#t;
|
|
6
|
+
#n = !1;
|
|
7
|
+
constructor(e, t) {
|
|
8
|
+
this.#e = e, this.#t = t, e.addController(this);
|
|
9
|
+
}
|
|
10
|
+
hostConnected() {
|
|
11
|
+
this.#e.addEventListener("command", this.#r, !0), this.invalidateAvailability();
|
|
12
|
+
}
|
|
13
|
+
hostDisconnected() {
|
|
14
|
+
this.#e.removeEventListener("command", this.#r, !0), this.#n = !1;
|
|
15
|
+
}
|
|
16
|
+
isCommandAvailable(e, n = {}) {
|
|
17
|
+
if (e === "--place" && !this.#t.isRearrangementAllowed()) return !1;
|
|
18
|
+
let r = this.#t.getState();
|
|
19
|
+
return t({
|
|
20
|
+
command: e,
|
|
21
|
+
context: n,
|
|
22
|
+
...r,
|
|
23
|
+
closable: this.#e.closable,
|
|
24
|
+
rearrangeable: this.#e.rearrangeable,
|
|
25
|
+
available: r.panels.map((e) => e.id),
|
|
26
|
+
placementAvailable: this.#t.isPlacementAvailable,
|
|
27
|
+
canEnterFullscreen: this.#t.canEnterFullscreen,
|
|
28
|
+
canExitFullscreen: this.#t.canExitFullscreen,
|
|
29
|
+
isFullscreenGroup: this.#t.isFullscreenGroup
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
invalidateAvailability() {
|
|
33
|
+
this.#n = !0, this.#e.requestUpdate();
|
|
34
|
+
}
|
|
35
|
+
flushAvailability() {
|
|
36
|
+
this.#n && this.#e.isConnected && (this.#n = !1, this.#e.dispatchEvent(new Event("commandavailabilitychange", {
|
|
37
|
+
bubbles: !0,
|
|
38
|
+
composed: !0
|
|
39
|
+
})));
|
|
40
|
+
}
|
|
41
|
+
#r = (t) => {
|
|
42
|
+
if (!t.command || !this.#a(t)) return;
|
|
43
|
+
let n = e(this.#e, this.#t.getState().panels, t);
|
|
44
|
+
n && (t.command === "--place" ? this.#i(n.id, t.source?.placement) : this.isCommandAvailable(t.command, {
|
|
45
|
+
value: n.id,
|
|
46
|
+
placement: t.source?.placement
|
|
47
|
+
}) && this.#o(t.command, n.id));
|
|
48
|
+
};
|
|
49
|
+
#i(e, t) {
|
|
50
|
+
if (!this.#e.rearrangeable || !this.#t.isRearrangementAllowed() || !n(t)) return;
|
|
51
|
+
let { layout: i, panels: a } = this.#t.getState();
|
|
52
|
+
if (!i) return;
|
|
53
|
+
let o = r({
|
|
54
|
+
layout: i,
|
|
55
|
+
available: a.map((e) => e.id),
|
|
56
|
+
anchor: e,
|
|
57
|
+
placement: t
|
|
58
|
+
});
|
|
59
|
+
o && this.#t.placePanel(o.source, o.intent);
|
|
60
|
+
}
|
|
61
|
+
#a(e) {
|
|
62
|
+
return !e.defaultPrevented && !e.source?.disabled && !e.source?.readOnly;
|
|
63
|
+
}
|
|
64
|
+
#o(e, t) {
|
|
65
|
+
switch (e) {
|
|
66
|
+
case "--open":
|
|
67
|
+
this.#t.activatePanel(t, "open");
|
|
68
|
+
break;
|
|
69
|
+
case "--select":
|
|
70
|
+
this.#t.activatePanel(t, "select");
|
|
71
|
+
break;
|
|
72
|
+
case "--close":
|
|
73
|
+
this.#t.closePanel(t);
|
|
74
|
+
break;
|
|
75
|
+
case "--enter-fullscreen":
|
|
76
|
+
this.#t.enterFullscreen(t);
|
|
77
|
+
break;
|
|
78
|
+
case "--exit-fullscreen":
|
|
79
|
+
this.#t.exitFullscreen();
|
|
80
|
+
break;
|
|
81
|
+
case "--toggle-fullscreen": this.#t.isFullscreenGroup(t) ? this.#t.exitFullscreen() : this.#t.enterFullscreen(t);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export { i as WorkspaceCommandController };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=workspace-command.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-command.controller.js","names":["WorkspaceCommandController","#host","host","#delegate","delegate","#command","#availabilityInvalid","command","state","isWorkspaceCommandAvailable","panel","event","#allowsCommand","findWorkspaceCommandPanel","#place","#dispatch","isWorkspacePlacement","placement","layout","request","resolveWorkspacePlacement","panels","anchor"],"sources":["../../../src/workspace/controllers/workspace-command.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveControllerHost } from 'lit';\n\nimport {\n findWorkspaceCommandPanel,\n isWorkspaceCommandAvailable,\n isWorkspacePlacement,\n resolveWorkspacePlacement\n} from '../utils/interaction/command.utils.js';\n\nimport type {\n WorkspaceCommandContext,\n WorkspaceCommandEvent,\n WorkspacePlacementIntent\n} from '../utils/interaction/command.utils.js';\nimport type { WorkspaceLayout } from '../utils/model/layout.utils.js';\n\nimport type { WorkspacePanel } from '../panel/panel.js';\n\ntype WorkspaceCommandHost = HTMLElement &\n ReactiveControllerHost & {\n readonly closable: boolean;\n readonly rearrangeable: boolean;\n };\n\ninterface WorkspaceCommandDelegate {\n readonly getState: () => {\n panels: WorkspacePanel[];\n layout?: WorkspaceLayout;\n };\n readonly isRearrangementAllowed: () => boolean;\n readonly isPlacementAvailable: (source: string[], intent: WorkspacePlacementIntent) => boolean;\n readonly canEnterFullscreen: (targetPanelId: string) => boolean;\n readonly canExitFullscreen: () => boolean;\n readonly isFullscreenGroup: (targetPanelId: string) => boolean;\n readonly enterFullscreen: (targetPanelId: string) => void;\n readonly exitFullscreen: () => void;\n readonly activatePanel: (anchor: string, operation: 'open' | 'select') => void;\n readonly closePanel: (anchor: string) => void;\n readonly placePanel: (source: string[], intent: WorkspacePlacementIntent) => void;\n}\n\nexport class WorkspaceCommandController {\n readonly #host: WorkspaceCommandHost;\n readonly #delegate: WorkspaceCommandDelegate;\n #availabilityInvalid = false;\n\n constructor(host: WorkspaceCommandHost, delegate: WorkspaceCommandDelegate) {\n this.#host = host;\n this.#delegate = delegate;\n host.addController(this);\n }\n\n hostConnected() {\n this.#host.addEventListener('command', this.#command, true);\n this.invalidateAvailability();\n }\n\n hostDisconnected() {\n this.#host.removeEventListener('command', this.#command, true);\n this.#availabilityInvalid = false;\n }\n\n isCommandAvailable(command: string, context: WorkspaceCommandContext = {}): boolean {\n if (command === '--place' && !this.#delegate.isRearrangementAllowed()) {\n return false;\n }\n\n const state = this.#delegate.getState();\n return isWorkspaceCommandAvailable({\n command,\n context,\n ...state,\n closable: this.#host.closable,\n rearrangeable: this.#host.rearrangeable,\n available: state.panels.map(panel => panel.id),\n placementAvailable: this.#delegate.isPlacementAvailable,\n canEnterFullscreen: this.#delegate.canEnterFullscreen,\n canExitFullscreen: this.#delegate.canExitFullscreen,\n isFullscreenGroup: this.#delegate.isFullscreenGroup\n });\n }\n\n invalidateAvailability() {\n this.#availabilityInvalid = true;\n this.#host.requestUpdate();\n }\n\n flushAvailability() {\n if (!this.#availabilityInvalid || !this.#host.isConnected) return;\n this.#availabilityInvalid = false;\n this.#host.dispatchEvent(new Event('commandavailabilitychange', { bubbles: true, composed: true }));\n }\n\n #command = (event: WorkspaceCommandEvent) => {\n if (!event.command || !this.#allowsCommand(event)) return;\n const panel = findWorkspaceCommandPanel(this.#host, this.#delegate.getState().panels, event);\n if (!panel) return;\n if (event.command === '--place') {\n this.#place(panel.id, event.source?.placement);\n return;\n }\n if (!this.isCommandAvailable(event.command, { value: panel.id, placement: event.source?.placement })) return;\n this.#dispatch(event.command, panel.id);\n };\n\n #place(anchor: string, placement: unknown) {\n if (!this.#host.rearrangeable || !this.#delegate.isRearrangementAllowed() || !isWorkspacePlacement(placement)) {\n return;\n }\n const { layout, panels } = this.#delegate.getState();\n if (!layout) {\n return;\n }\n const request = resolveWorkspacePlacement({\n layout,\n available: panels.map(panel => panel.id),\n anchor,\n placement\n });\n if (request) {\n this.#delegate.placePanel(request.source, request.intent);\n }\n }\n\n #allowsCommand(event: WorkspaceCommandEvent) {\n return !event.defaultPrevented && !event.source?.disabled && !event.source?.readOnly;\n }\n\n #dispatch(command: string, anchor: string) {\n switch (command) {\n case '--open':\n this.#delegate.activatePanel(anchor, 'open');\n break;\n case '--select':\n this.#delegate.activatePanel(anchor, 'select');\n break;\n case '--close':\n this.#delegate.closePanel(anchor);\n break;\n case '--enter-fullscreen':\n this.#delegate.enterFullscreen(anchor);\n break;\n case '--exit-fullscreen':\n this.#delegate.exitFullscreen();\n break;\n case '--toggle-fullscreen':\n if (this.#delegate.isFullscreenGroup(anchor)) {\n this.#delegate.exitFullscreen();\n } else {\n this.#delegate.enterFullscreen(anchor);\n }\n break;\n }\n }\n}\n"],"mappings":";;AA4CA,IAAaA,IAAb,MAAwC;CACtC;CACA;CACA,KAAuB;CAEvB,YAAY,GAA4B,GAAoC;EAG1E,AAFA,KAAKC,KAAQC,GACb,KAAKC,KAAYC,GACjBF,EAAK,cAAc,IAAI;CACzB;CAEA,gBAAgB;EAEd,AADA,KAAKD,GAAM,iBAAiB,WAAW,KAAKI,IAAU,EAAI,GAC1D,KAAK,uBAAuB;CAC9B;CAEA,mBAAmB;EAEjB,AADA,KAAKJ,GAAM,oBAAoB,WAAW,KAAKI,IAAU,EAAI,GAC7D,KAAKC,KAAuB;CAC9B;CAEA,mBAAmB,GAAiB,IAAmC,CAAC,GAAY;EAClF,IAAIC,MAAY,aAAa,CAAC,KAAKJ,GAAU,uBAAuB,GAClE,OAAO;EAGT,IAAMK,IAAQ,KAAKL,GAAU,SAAS;EACtC,OAAOM,EAA4B;GACjC;GACA;GACA,GAAGD;GACH,UAAU,KAAKP,GAAM;GACrB,eAAe,KAAKA,GAAM;GAC1B,WAAWO,EAAM,OAAO,KAAI,MAASE,EAAM,EAAE;GAC7C,oBAAoB,KAAKP,GAAU;GACnC,oBAAoB,KAAKA,GAAU;GACnC,mBAAmB,KAAKA,GAAU;GAClC,mBAAmB,KAAKA,GAAU;EACpC,CAAC;CACH;CAEA,yBAAyB;EAEvB,AADA,KAAKG,KAAuB,IAC5B,KAAKL,GAAM,cAAc;CAC3B;CAEA,oBAAoB;EAClB,AAAK,KAAKK,MAAyB,KAAKL,GAAM,gBAC9C,KAAKK,KAAuB,IAC5B,KAAKL,GAAM,cAAc,IAAI,MAAM,6BAA6B;GAAE,SAAS;GAAM,UAAU;EAAK,CAAC,CAAC;CACpG;CAEA,MAAY,MAAiC;EAC3C,IAAI,CAACU,EAAM,WAAW,CAAC,KAAKC,GAAeD,CAAK,GAAG;EACnD,IAAMD,IAAQG,EAA0B,KAAKZ,IAAO,KAAKE,GAAU,SAAS,CAAC,CAAC,QAAQQ,CAAK;EAC3F,AAAKD,MACDC,EAAM,YAAY,YACpB,KAAKG,GAAOJ,EAAM,IAAIC,EAAM,QAAQ,SAAS,IAG1C,KAAK,mBAAmBA,EAAM,SAAS;GAAE,OAAOD,EAAM;GAAI,WAAWC,EAAM,QAAQ;EAAU,CAAC,KACnG,KAAKI,GAAUJ,EAAM,SAASD,EAAM,EAAE;CACxC;CAEA,GAAO,GAAgB,GAAoB;EACzC,IAAI,CAAC,KAAKT,GAAM,iBAAiB,CAAC,KAAKE,GAAU,uBAAuB,KAAK,CAACa,EAAqBC,CAAS,GAC1G;EAEF,IAAM,EAAE,WAAQ,cAAW,KAAKd,GAAU,SAAS;EACnD,IAAI,CAACe,GACH;EAEF,IAAMC,IAAUC,EAA0B;GACxC;GACA,WAAWC,EAAO,KAAI,MAASX,EAAM,EAAE;GACvC;GACA;EACF,CAAC;EACD,AAAIS,KACF,KAAKhB,GAAU,WAAWgB,EAAQ,QAAQA,EAAQ,MAAM;CAE5D;CAEA,GAAe,GAA8B;EAC3C,OAAO,CAACR,EAAM,oBAAoB,CAACA,EAAM,QAAQ,YAAY,CAACA,EAAM,QAAQ;CAC9E;CAEA,GAAU,GAAiB,GAAgB;EACzC,QAAQJ,GAAR;GACE,KAAK;IACH,KAAKJ,GAAU,cAAcmB,GAAQ,MAAM;IAC3C;GACF,KAAK;IACH,KAAKnB,GAAU,cAAcmB,GAAQ,QAAQ;IAC7C;GACF,KAAK;IACH,KAAKnB,GAAU,WAAWmB,CAAM;IAChC;GACF,KAAK;IACH,KAAKnB,GAAU,gBAAgBmB,CAAM;IACrC;GACF,KAAK;IACH,KAAKnB,GAAU,eAAe;IAC9B;GACF,KAAK,uBACH,AAAI,KAAKA,GAAU,kBAAkBmB,CAAM,IACzC,KAAKnB,GAAU,eAAe,IAE9B,KAAKA,GAAU,gBAAgBmB,CAAM;EAG3C;CACF;AACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { WorkspaceDragPreview } from '../utils/interaction/drag-preview.utils.js';
|
|
3
|
+
import type { WorkspaceLayout } from '../utils/model/layout.utils.js';
|
|
4
|
+
import type { WorkspacePresentedGroup } from '../utils/presentation/groups.utils.js';
|
|
5
|
+
import type { WorkspaceMeasurements } from '../utils/presentation/measurements.utils.js';
|
|
6
|
+
import type { WorkspacePanelHeader } from '../panel-header/panel-header.js';
|
|
7
|
+
import type { WorkspacePanel } from '../panel/panel.js';
|
|
8
|
+
export interface WorkspacePanelTransitionTargets {
|
|
9
|
+
element: WorkspacePanel;
|
|
10
|
+
header: ReturnType<WorkspacePanelHeader['_getTransitionTargets']> | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkspaceTransitionTargets {
|
|
13
|
+
panels: ReadonlyMap<string, WorkspacePanelTransitionTargets>;
|
|
14
|
+
groups: {
|
|
15
|
+
element: HTMLElement;
|
|
16
|
+
tabs: ReadonlyMap<string, HTMLElement>;
|
|
17
|
+
}[];
|
|
18
|
+
gutters: ReadonlyMap<string, HTMLElement>;
|
|
19
|
+
}
|
|
20
|
+
interface WorkspaceCompositionDelegate {
|
|
21
|
+
readonly getPanels: () => WorkspacePanel[];
|
|
22
|
+
readonly getGroups: () => WorkspacePresentedGroup[];
|
|
23
|
+
readonly getLayout: () => WorkspaceLayout | undefined;
|
|
24
|
+
readonly getPreview: () => WorkspaceDragPreview | undefined;
|
|
25
|
+
readonly scrollChanged: () => void;
|
|
26
|
+
}
|
|
27
|
+
interface WorkspaceCompositionPresentation {
|
|
28
|
+
groups: WorkspacePresentedGroup[];
|
|
29
|
+
extent: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
container?: 'inset' | 'flat' | 'full';
|
|
34
|
+
measurements: WorkspaceMeasurements;
|
|
35
|
+
closable: boolean;
|
|
36
|
+
animate: boolean;
|
|
37
|
+
source: string[];
|
|
38
|
+
scroll(group: WorkspacePresentedGroup): number;
|
|
39
|
+
}
|
|
40
|
+
/** Synchronizes supplied panels and projected headers with their computed group presentation. */
|
|
41
|
+
export declare class WorkspaceCompositionController {
|
|
42
|
+
#private;
|
|
43
|
+
constructor(host: HTMLElement & ReactiveControllerHost, delegate: WorkspaceCompositionDelegate);
|
|
44
|
+
hostDisconnected(): void;
|
|
45
|
+
captureFocus(): void;
|
|
46
|
+
applyPresentation(input: WorkspaceCompositionPresentation): void;
|
|
47
|
+
sync(): void;
|
|
48
|
+
getTransitionTargets(): WorkspaceTransitionTargets;
|
|
49
|
+
getGroupIdentity(group: WorkspacePresentedGroup): string;
|
|
50
|
+
findTabStrip(group: WorkspacePresentedGroup): HTMLElement | null | undefined;
|
|
51
|
+
handleScroll(group: WorkspacePresentedGroup, event: Event): void;
|
|
52
|
+
setHeaderHovered(id: string, hovered: boolean): void;
|
|
53
|
+
}
|
|
54
|
+
export {};
|