@nvidia-elements/core 2.23.6 → 2.24.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 +13 -0
- package/dist/accordion/accordion-group.js.map +1 -1
- package/dist/accordion/accordion.js.map +1 -1
- 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 +2 -0
- package/dist/bundles/index.d.ts +323 -56
- package/dist/bundles/index.js +9 -9
- 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 +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +167 -1
- package/dist/custom-elements-vue.d.ts +161 -1
- package/dist/custom-elements.json +4211 -233
- package/dist/dashboard/controllers/arrangement.controller.d.ts +30 -0
- package/dist/dashboard/controllers/arrangement.controller.js +68 -0
- package/dist/dashboard/controllers/arrangement.controller.js.map +1 -0
- package/dist/dashboard/controllers/command.controller.d.ts +28 -0
- package/dist/dashboard/controllers/command.controller.js +69 -0
- package/dist/dashboard/controllers/command.controller.js.map +1 -0
- package/dist/dashboard/controllers/composition.controller.d.ts +61 -0
- package/dist/dashboard/controllers/composition.controller.js +285 -0
- package/dist/dashboard/controllers/composition.controller.js.map +1 -0
- package/dist/dashboard/controllers/fullscreen.controller.d.ts +23 -0
- package/dist/dashboard/controllers/fullscreen.controller.js +46 -0
- package/dist/dashboard/controllers/fullscreen.controller.js.map +1 -0
- package/dist/dashboard/controllers/interaction.controller.d.ts +53 -0
- package/dist/dashboard/controllers/interaction.controller.js +407 -0
- package/dist/dashboard/controllers/interaction.controller.js.map +1 -0
- package/dist/dashboard/controllers/measurement.controller.d.ts +28 -0
- package/dist/dashboard/controllers/measurement.controller.js +77 -0
- package/dist/dashboard/controllers/measurement.controller.js.map +1 -0
- package/dist/dashboard/dashboard.d.ts +83 -0
- package/dist/dashboard/dashboard.examples.js +5 -0
- package/dist/dashboard/dashboard.examples.js.map +1 -0
- package/dist/dashboard/dashboard.examples.json +138 -0
- package/dist/dashboard/dashboard.js +5 -0
- package/dist/dashboard/dashboard.js.map +1 -0
- package/dist/dashboard/dashboard.types.d.ts +33 -0
- package/dist/dashboard/dashboard2.js +352 -0
- package/dist/dashboard/dashboard2.js.map +1 -0
- package/dist/dashboard/define.d.ts +10 -0
- package/dist/dashboard/define.js +9 -0
- package/dist/dashboard/define.js.map +1 -0
- package/dist/dashboard/index.d.ts +8 -0
- package/dist/dashboard/index.js +6 -0
- package/dist/dashboard/panel/panel.d.ts +88 -0
- package/dist/dashboard/panel/panel.js +5 -0
- package/dist/dashboard/panel/panel.js.map +1 -0
- package/dist/dashboard/panel/panel2.js +110 -0
- package/dist/dashboard/panel/panel2.js.map +1 -0
- package/dist/dashboard/panel-content/panel-content.d.ts +20 -0
- package/dist/dashboard/panel-content/panel-content.js +5 -0
- package/dist/dashboard/panel-content/panel-content.js.map +1 -0
- package/dist/dashboard/panel-content/panel-content2.js +22 -0
- package/dist/dashboard/panel-content/panel-content2.js.map +1 -0
- package/dist/dashboard/panel-footer/panel-footer.d.ts +25 -0
- package/dist/dashboard/panel-footer/panel-footer.js +5 -0
- package/dist/dashboard/panel-footer/panel-footer.js.map +1 -0
- package/dist/dashboard/panel-footer/panel-footer2.js +28 -0
- package/dist/dashboard/panel-footer/panel-footer2.js.map +1 -0
- package/dist/dashboard/panel-header/panel-header.d.ts +27 -0
- package/dist/dashboard/panel-header/panel-header.js +5 -0
- package/dist/dashboard/panel-header/panel-header.js.map +1 -0
- package/dist/dashboard/panel-header/panel-header2.js +28 -0
- package/dist/dashboard/panel-header/panel-header2.js.map +1 -0
- package/dist/dashboard/utils/action.utils.d.ts +17 -0
- package/dist/dashboard/utils/action.utils.js +144 -0
- package/dist/dashboard/utils/action.utils.js.map +1 -0
- package/dist/dashboard/utils/geometry.utils.d.ts +110 -0
- package/dist/dashboard/utils/geometry.utils.js +208 -0
- package/dist/dashboard/utils/geometry.utils.js.map +1 -0
- package/dist/dashboard/utils/intent.types.d.ts +67 -0
- package/dist/dashboard/utils/layout.utils.d.ts +20 -0
- package/dist/dashboard/utils/layout.utils.js +224 -0
- package/dist/dashboard/utils/layout.utils.js.map +1 -0
- package/dist/dashboard/utils/movement.utils.d.ts +7 -0
- package/dist/dashboard/utils/movement.utils.js +15 -0
- package/dist/dashboard/utils/movement.utils.js.map +1 -0
- package/dist/dashboard/utils/mutation.utils.d.ts +2 -0
- package/dist/dashboard/utils/mutation.utils.js +19 -0
- package/dist/dashboard/utils/mutation.utils.js.map +1 -0
- package/dist/dashboard/utils/packing.utils.d.ts +13 -0
- package/dist/dashboard/utils/packing.utils.js +421 -0
- package/dist/dashboard/utils/packing.utils.js.map +1 -0
- package/dist/data.html.json +141 -1
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- 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/dropdown.examples.js.map +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/ghost2.js +1 -1
- 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/grid.js.map +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 +1 -1
- 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/internal/controllers/native-fullscreen.controller.d.ts +13 -0
- package/dist/internal/controllers/native-fullscreen.controller.js +73 -0
- package/dist/internal/controllers/native-fullscreen.controller.js.map +1 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +59 -57
- package/dist/internal/index.js.map +1 -1
- package/dist/joystick/joystick2.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- 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 +1 -1
- package/dist/search/search2.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- 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 +1 -1
- package/dist/workspace/controllers/workspace-fullscreen.controller.d.ts +2 -4
- package/dist/workspace/controllers/workspace-fullscreen.controller.js +17 -47
- package/dist/workspace/controllers/workspace-fullscreen.controller.js.map +1 -1
- package/dist/workspace/panel/panel2.js +1 -1
- package/dist/workspace/panel-content/panel-content2.js +1 -1
- package/dist/workspace/panel-footer/panel-footer2.js +1 -1
- package/dist/workspace/panel-header/panel-header2.js +1 -1
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/workspace2.js +1 -1
- package/package.json +16 -4
package/dist/button/button2.js
CHANGED
package/dist/card/card2.js
CHANGED
|
@@ -16,7 +16,7 @@ var d = class extends s {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-card",
|
|
19
|
-
version: "2.
|
|
19
|
+
version: "2.24.0"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
@@ -37,7 +37,7 @@ var f = class extends s {
|
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-card-header",
|
|
40
|
-
version: "2.
|
|
40
|
+
version: "2.24.0",
|
|
41
41
|
parents: ["nve-card"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ var p = class extends s {
|
|
|
53
53
|
static {
|
|
54
54
|
this.metadata = {
|
|
55
55
|
tag: "nve-card-content",
|
|
56
|
-
version: "2.
|
|
56
|
+
version: "2.24.0",
|
|
57
57
|
parents: ["nve-card"]
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -70,7 +70,7 @@ var p = class extends s {
|
|
|
70
70
|
static {
|
|
71
71
|
this.metadata = {
|
|
72
72
|
tag: "nve-card-footer",
|
|
73
|
-
version: "2.
|
|
73
|
+
version: "2.24.0",
|
|
74
74
|
parents: ["nve-card"]
|
|
75
75
|
};
|
|
76
76
|
}
|
package/dist/color/color2.js
CHANGED
|
@@ -684,6 +684,68 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
684
684
|
interestForElement?: HTMLElement | null;
|
|
685
685
|
};
|
|
686
686
|
|
|
687
|
+
export type DashboardProps = {
|
|
688
|
+
/** Closes growth-axis gaps toward top in vertical flow or inline start in horizontal flow, preserving bounded-axis positions and spans. Defaults to false. Enabling silently canonicalizes the current arrangement; disabling keeps current coordinates. This policy is independent of value. */
|
|
689
|
+
autosettle?: boolean;
|
|
690
|
+
/** Localized labels and placement announcements. Grid placement placeholders are column, row, columnSpan, and rowSpan. */
|
|
691
|
+
i18n?: string;
|
|
692
|
+
/** Enables moving and resizing panels through controls and placement commands. */
|
|
693
|
+
rearrangeable?: boolean;
|
|
694
|
+
/** Enables native fullscreen commands and a header control for each panel. Turning this off preserves an accepted session and its exit control. Fullscreen does not change the saved arrangement. */
|
|
695
|
+
fullscreenable?: boolean;
|
|
696
|
+
/** Selects panel content framing. */
|
|
697
|
+
container?: "inset" | "flat" | "full" | undefined;
|
|
698
|
+
/** Cell sizing, defaulting to fit. Fit sizing fits bounded tracks to the viewport and scrolls along the growth axis. Fixed sizing uses the configured --column-size and --row-size dimensions and may scroll on both axes. Does not change value. */
|
|
699
|
+
sizing?: "fit" | "fixed";
|
|
700
|
+
/** Guide visibility: auto shows circular cell-center guides during pointer arrangement, visible always shows them, and hidden hides them while keeping the destination preview. Attribute keywords ignore case; missing, empty, or unrecognized values use auto. Does not change value or interaction permissions. */
|
|
701
|
+
guides?: "auto" | "visible" | "hidden";
|
|
702
|
+
/** Closes growth-axis gaps toward top in vertical flow or inline start in horizontal flow, preserving bounded-axis positions and spans. Defaults to false. Enabling silently canonicalizes the current arrangement; disabling keeps current coordinates. This policy is independent of value. */
|
|
703
|
+
autoSettle?: boolean;
|
|
704
|
+
/** Version 1 JSON with grid {flow, tracks} and items {id, column, row, columnSpan, rowSpan}. Positions are zero-based cells from inline start and top; column zero is at the right in RTL. Spans count columns and rows. Defaults to an empty string, which seeds one-cell panels in DOM order. Assignment validates the saved model immediately and normalizes panels once their upgrades and unique nonempty IDs are ready; restoration is silent. Intentional gaps remain when autoSettle is false. After successful reconciliation, only direct default-slot panel children remain in the value, including hidden children. Removed panels lose their placement. Applications own content data, persistence, and any saved placement history. */
|
|
705
|
+
value?: string;
|
|
706
|
+
/** Growth direction, defaulting to vertical with bounded columns. Horizontal flow bounds rows. Changing flow does not transpose panel coordinates or spans. Assignment updates the arrangement silently; changes that conflict with panel constraints throw before changing the arrangement. */
|
|
707
|
+
flow?: "vertical" | "horizontal";
|
|
708
|
+
/** Bounded-axis track count, defaulting to 12. Valid integers range from 1 through 1000000. Assignment updates the arrangement silently and rejects changes that conflict with panel constraints. */
|
|
709
|
+
tracks?: number;
|
|
710
|
+
/** Announces one committed arrangement after interaction, commands, or panel membership and span-constraint reconciliation. Read value on the dashboard; authored content events still bubble normally. */
|
|
711
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
|
712
|
+
/** Arrangement or fullscreen command availability may have changed. */
|
|
713
|
+
oncommandavailabilitychange?: (e: CustomEvent<Event>) => void;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
export type DashboardPanelContentProps = {};
|
|
717
|
+
|
|
718
|
+
export type DashboardPanelFooterProps = {};
|
|
719
|
+
|
|
720
|
+
export type DashboardPanelHeaderProps = {};
|
|
721
|
+
|
|
722
|
+
export type DashboardPanelProps = {
|
|
723
|
+
/** Smallest width in columns. */
|
|
724
|
+
"min-column-span"?: number;
|
|
725
|
+
/** Smallest height in rows. */
|
|
726
|
+
"min-row-span"?: number;
|
|
727
|
+
/** Largest width in columns. */
|
|
728
|
+
"max-column-span"?: number;
|
|
729
|
+
/** Largest height in rows. */
|
|
730
|
+
"max-row-span"?: number;
|
|
731
|
+
/** Disables direct movement. Collision displacement remains available. */
|
|
732
|
+
"move-disabled"?: boolean;
|
|
733
|
+
/** Disables direct resizing. */
|
|
734
|
+
"resize-disabled"?: boolean;
|
|
735
|
+
/** Smallest width in columns. */
|
|
736
|
+
minColumnSpan?: number;
|
|
737
|
+
/** Smallest height in rows. */
|
|
738
|
+
minRowSpan?: number;
|
|
739
|
+
/** Largest width in columns. */
|
|
740
|
+
maxColumnSpan?: number;
|
|
741
|
+
/** Largest height in rows. */
|
|
742
|
+
maxRowSpan?: number;
|
|
743
|
+
/** Disables direct movement. Collision displacement remains available. */
|
|
744
|
+
moveDisabled?: boolean;
|
|
745
|
+
/** Disables direct resizing. */
|
|
746
|
+
resizeDisabled?: boolean;
|
|
747
|
+
};
|
|
748
|
+
|
|
687
749
|
export type DateProps = {
|
|
688
750
|
/** Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) */
|
|
689
751
|
"fit-text"?: boolean;
|
|
@@ -4331,7 +4393,7 @@ export type WorkspaceProps = {
|
|
|
4331
4393
|
resizePolicy?: "stop" | "propagate";
|
|
4332
4394
|
/** Selects panel content framing. */
|
|
4333
4395
|
container?: "inset" | "flat" | "full" | undefined;
|
|
4334
|
-
/**
|
|
4396
|
+
/** Versioned JSON arrangement. Assignment restores without emitting change. */
|
|
4335
4397
|
value?: string;
|
|
4336
4398
|
/** Announces a committed arrangement value after interaction, commands, or reconciliation of newly supplied panels. Read value on the workspace. */
|
|
4337
4399
|
onchange?: (e: CustomEvent<Event>) => void;
|
|
@@ -4834,6 +4896,110 @@ export type CustomElements = {
|
|
|
4834
4896
|
*/
|
|
4835
4897
|
"nve-copy-button": Partial<CopyButtonProps & BaseProps & BaseEvents>;
|
|
4836
4898
|
|
|
4899
|
+
/**
|
|
4900
|
+
* A dashboard arranges application panels on a resizable grid with a restorable layout.
|
|
4901
|
+
* ---
|
|
4902
|
+
*
|
|
4903
|
+
*
|
|
4904
|
+
* ### **Events:**
|
|
4905
|
+
* - **change** - Announces one committed arrangement after interaction, commands, or panel membership and span-constraint reconciliation. Read value on the dashboard; authored content events still bubble normally.
|
|
4906
|
+
* - **commandavailabilitychange** - Arrangement or fullscreen command availability may have changed.
|
|
4907
|
+
*
|
|
4908
|
+
* ### **Methods:**
|
|
4909
|
+
* - **place(id: _string_, placement: _DashboardGridPlacement_): _boolean_** - Requests an integer placement without gesture target snapping. Anchored span changes use resizing permission, including left and top edges that change the origin; other position changes require movement. Directional collisions and optional growth-axis settling determine the final arrangement. Returns false for unavailable, invalid, or unchanged normalized placement. Successful placement emits one change.
|
|
4910
|
+
* - **isCommandAvailable(command: _string_, context: _DashboardCommandContext_): _boolean_** - Queries arrangement and fullscreen commands using a panel ID. A placement supplies the full grid placement for --place, or the desired bounded-axis coordinate for --move-to-start. Availability compares the complete normalized proposal with the current arrangement. Directional movement derives from grid placement and panel permissions without requiring rendered controls. Native fullscreen admission remains subject to browser permission.
|
|
4911
|
+
*
|
|
4912
|
+
* ### **Slots:**
|
|
4913
|
+
* - _default_ - Direct dashboard panels with unique durable IDs, required headers, and application dropdown groups. DOM order remains application authored. Native reading order follows committed placement where supported; previews preserve that order.
|
|
4914
|
+
*
|
|
4915
|
+
* ### **CSS Properties:**
|
|
4916
|
+
* - **--column-size** - Single-cell outer column length in fixed sizing or horizontal flow. Defaults to 160px. _(default: undefined)_
|
|
4917
|
+
* - **--row-size** - Single-cell outer row length in fixed sizing or vertical flow. Defaults to 120px. _(default: undefined)_
|
|
4918
|
+
* - **--gap** - Nonnegative CSS length between cells. Include units, including 0px for no gap. At zero, uniform used border widths overlap; unequal widths keep independent geometry. Shared seams assume square panels with solid opaque borders. _(default: undefined)_
|
|
4919
|
+
* - **--guide-color** - Color of the circular cell-center guides. Defaults to the muted border color. _(default: undefined)_
|
|
4920
|
+
* - **--guide-size** - Nonnegative CSS length for the guide circle diameter. Defaults to 8px. Include units, including 0px to hide the circles. _(default: undefined)_
|
|
4921
|
+
* - **--height** - Default viewport height. Defaults to 400px; horizontal fit needs a definite height. _(default: undefined)_
|
|
4922
|
+
* - **--animation-duration** - Duration of panel geometry, destination ghost geometry, and arrangement control transitions. Defaults to 150ms; reduced motion uses 0ms. Panel geometry follows external container resizing immediately; explicit arrangement and sizing changes use transitions. Animation never delays logical placement commits. _(default: undefined)_
|
|
4923
|
+
* - **--animation-easing** - Easing of panel and destination ghost geometry transitions. _(default: undefined)_
|
|
4924
|
+
*
|
|
4925
|
+
* ### **CSS Parts:**
|
|
4926
|
+
* - **ghost** - Inert placement preview shown during pointer arrangement.
|
|
4927
|
+
*/
|
|
4928
|
+
"nve-dashboard": Partial<DashboardProps & BaseProps & BaseEvents>;
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* Provides padding for dashboard panel content.
|
|
4932
|
+
* ---
|
|
4933
|
+
*
|
|
4934
|
+
*
|
|
4935
|
+
* ### **Slots:**
|
|
4936
|
+
* - _default_ - Application content.
|
|
4937
|
+
*
|
|
4938
|
+
* ### **CSS Properties:**
|
|
4939
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4940
|
+
*/
|
|
4941
|
+
"nve-dashboard-panel-content": Partial<DashboardPanelContentProps & BaseProps & BaseEvents>;
|
|
4942
|
+
|
|
4943
|
+
/**
|
|
4944
|
+
* Provides dashboard panel status and actions outside the scrolling body.
|
|
4945
|
+
* ---
|
|
4946
|
+
*
|
|
4947
|
+
*
|
|
4948
|
+
* ### **Slots:**
|
|
4949
|
+
* - _default_ - Status and supporting content in a bounded scrolling area.
|
|
4950
|
+
* - **suffix** - Application actions in a bounded scrolling area before the reserved resize control.
|
|
4951
|
+
*
|
|
4952
|
+
* ### **CSS Properties:**
|
|
4953
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4954
|
+
* - **--suffix-padding** - Padding around application actions. Defaults to 4px. _(default: undefined)_
|
|
4955
|
+
* - **--gap** - undefined _(default: undefined)_
|
|
4956
|
+
*/
|
|
4957
|
+
"nve-dashboard-panel-footer": Partial<DashboardPanelFooterProps & BaseProps & BaseEvents>;
|
|
4958
|
+
|
|
4959
|
+
/**
|
|
4960
|
+
* Supplies the required dashboard panel title and application controls.
|
|
4961
|
+
* ---
|
|
4962
|
+
*
|
|
4963
|
+
*
|
|
4964
|
+
* ### **Slots:**
|
|
4965
|
+
* - _default_ - Noninteractive title used as the default accessible panel name. Heading semantics remain application owned.
|
|
4966
|
+
* - **prefix** - Title decoration.
|
|
4967
|
+
* - **suffix** - Application controls.
|
|
4968
|
+
*
|
|
4969
|
+
* ### **CSS Properties:**
|
|
4970
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4971
|
+
* - **--suffix-padding** - Padding around application actions. Defaults to 4px. _(default: undefined)_
|
|
4972
|
+
* - **--gap** - undefined _(default: undefined)_
|
|
4973
|
+
* - **--min-height** - undefined _(default: undefined)_
|
|
4974
|
+
*/
|
|
4975
|
+
"nve-dashboard-panel-header": Partial<DashboardPanelHeaderProps & BaseProps & BaseEvents>;
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
* A stable application surface identified by a durable panel ID.
|
|
4979
|
+
* ---
|
|
4980
|
+
*
|
|
4981
|
+
*
|
|
4982
|
+
* ### **Slots:**
|
|
4983
|
+
* - _default_ - Application content in the scrolling body. Content, data, and native hidden state remain application owned.
|
|
4984
|
+
* - **header** - Required panel header with a title and optional application controls.
|
|
4985
|
+
* - **footer** - Optional status and actions outside the body.
|
|
4986
|
+
*
|
|
4987
|
+
* ### **CSS Properties:**
|
|
4988
|
+
* - **--background** - undefined _(default: undefined)_
|
|
4989
|
+
* - **--border** - undefined _(default: undefined)_
|
|
4990
|
+
* - **--border-radius** - undefined _(default: undefined)_
|
|
4991
|
+
* - **--control-width** - Width shared by the move and resize controls. Defaults to 36px. _(default: undefined)_
|
|
4992
|
+
* - **--control-height** - Height shared by the move and resize controls. Defaults to 48px. _(default: undefined)_
|
|
4993
|
+
* - **--resize-target-size** - Extra pointer resize reach on each side of the panel edge. Defaults to 3px; outward reach stops halfway across the cell gap. Configure on the panel. Inward reach covers application content at the edge, including on hybrid touch devices. _(default: undefined)_
|
|
4994
|
+
* - **--box-shadow** - undefined _(default: undefined)_
|
|
4995
|
+
*
|
|
4996
|
+
* ### **CSS Parts:**
|
|
4997
|
+
* - **drag-handle** - Movement control.
|
|
4998
|
+
* - **resize-button** - Resize control.
|
|
4999
|
+
* - **fullscreen-button** - Panel fullscreen control.
|
|
5000
|
+
*/
|
|
5001
|
+
"nve-dashboard-panel": Partial<DashboardPanelProps & BaseProps & BaseEvents>;
|
|
5002
|
+
|
|
4837
5003
|
/**
|
|
4838
5004
|
* A date picker is a control that enables users to choose a date value.
|
|
4839
5005
|
* ---
|
|
@@ -587,6 +587,62 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
587
587
|
interestForElement?: HTMLElement | null;
|
|
588
588
|
};
|
|
589
589
|
|
|
590
|
+
type DashboardProps = {
|
|
591
|
+
/** Localized labels and placement announcements. Grid placement placeholders are column, row, columnSpan, and rowSpan. */
|
|
592
|
+
i18n?: string;
|
|
593
|
+
/** Enables moving and resizing panels through controls and placement commands. */
|
|
594
|
+
rearrangeable?: boolean;
|
|
595
|
+
/** Enables native fullscreen commands and a header control for each panel. Turning this off preserves an accepted session and its exit control. Fullscreen does not change the saved arrangement. */
|
|
596
|
+
fullscreenable?: boolean;
|
|
597
|
+
/** Selects panel content framing. */
|
|
598
|
+
container?: "inset" | "flat" | "full" | undefined;
|
|
599
|
+
/** Cell sizing, defaulting to fit. Fit sizing fits bounded tracks to the viewport and scrolls along the growth axis. Fixed sizing uses the configured --column-size and --row-size dimensions and may scroll on both axes. Does not change value. */
|
|
600
|
+
sizing?: "fit" | "fixed";
|
|
601
|
+
/** Guide visibility: auto shows circular cell-center guides during pointer arrangement, visible always shows them, and hidden hides them while keeping the destination preview. Attribute keywords ignore case; missing, empty, or unrecognized values use auto. Does not change value or interaction permissions. */
|
|
602
|
+
guides?: "auto" | "visible" | "hidden";
|
|
603
|
+
/** Closes growth-axis gaps toward top in vertical flow or inline start in horizontal flow, preserving bounded-axis positions and spans. Defaults to false. Enabling silently canonicalizes the current arrangement; disabling keeps current coordinates. This policy is independent of value. */
|
|
604
|
+
autoSettle?: boolean;
|
|
605
|
+
/** Version 1 JSON with grid {flow, tracks} and items {id, column, row, columnSpan, rowSpan}. Positions are zero-based cells from inline start and top; column zero is at the right in RTL. Spans count columns and rows. Defaults to an empty string, which seeds one-cell panels in DOM order. Assignment validates the saved model immediately and normalizes panels once their upgrades and unique nonempty IDs are ready; restoration is silent. Intentional gaps remain when autoSettle is false. After successful reconciliation, only direct default-slot panel children remain in the value, including hidden children. Removed panels lose their placement. Applications own content data, persistence, and any saved placement history. */
|
|
606
|
+
value?: string;
|
|
607
|
+
/** Growth direction, defaulting to vertical with bounded columns. Horizontal flow bounds rows. Changing flow does not transpose panel coordinates or spans. Assignment updates the arrangement silently; changes that conflict with panel constraints throw before changing the arrangement. */
|
|
608
|
+
flow?: "vertical" | "horizontal";
|
|
609
|
+
/** Bounded-axis track count, defaulting to 12. Valid integers range from 1 through 1000000. Assignment updates the arrangement silently and rejects changes that conflict with panel constraints. */
|
|
610
|
+
tracks?: number;
|
|
611
|
+
/** Announces one committed arrangement after interaction, commands, or panel membership and span-constraint reconciliation. Read value on the dashboard; authored content events still bubble normally. */
|
|
612
|
+
onchange?: (e: CustomEvent<Event>) => void;
|
|
613
|
+
/** Arrangement or fullscreen command availability may have changed. */
|
|
614
|
+
oncommandavailabilitychange?: (e: CustomEvent<Event>) => void;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
type DashboardPanelContentProps = {};
|
|
618
|
+
|
|
619
|
+
type DashboardPanelFooterProps = {};
|
|
620
|
+
|
|
621
|
+
type DashboardPanelHeaderProps = {};
|
|
622
|
+
|
|
623
|
+
type DashboardPanelProps = {
|
|
624
|
+
/** Smallest width in columns. */
|
|
625
|
+
"min-column-span"?: number;
|
|
626
|
+
/** Smallest height in rows. */
|
|
627
|
+
"min-row-span"?: number;
|
|
628
|
+
/** Largest width in columns. */
|
|
629
|
+
"max-column-span"?: number;
|
|
630
|
+
/** Largest height in rows. */
|
|
631
|
+
"max-row-span"?: number;
|
|
632
|
+
/** Smallest width in columns. */
|
|
633
|
+
minColumnSpan?: number;
|
|
634
|
+
/** Smallest height in rows. */
|
|
635
|
+
minRowSpan?: number;
|
|
636
|
+
/** Largest width in columns. */
|
|
637
|
+
maxColumnSpan?: number;
|
|
638
|
+
/** Largest height in rows. */
|
|
639
|
+
maxRowSpan?: number;
|
|
640
|
+
/** Disables direct movement. Collision displacement remains available. */
|
|
641
|
+
moveDisabled?: boolean;
|
|
642
|
+
/** Disables direct resizing. */
|
|
643
|
+
resizeDisabled?: boolean;
|
|
644
|
+
};
|
|
645
|
+
|
|
590
646
|
type DateProps = {
|
|
591
647
|
/** Reduces the visual container for a minimal borderless appearance while preserving whitespace bounds.
|
|
592
648
|
Use when embedding within another container such as a toolbar. */
|
|
@@ -4078,7 +4134,7 @@ type WorkspaceProps = {
|
|
|
4078
4134
|
resizePolicy?: "stop" | "propagate";
|
|
4079
4135
|
/** Selects panel content framing. */
|
|
4080
4136
|
container?: "inset" | "flat" | "full" | undefined;
|
|
4081
|
-
/**
|
|
4137
|
+
/** Versioned JSON arrangement. Assignment restores without emitting change. */
|
|
4082
4138
|
value?: string;
|
|
4083
4139
|
/** Announces a committed arrangement value after interaction, commands, or reconciliation of newly supplied panels. Read value on the workspace. */
|
|
4084
4140
|
onchange?: (e: CustomEvent<Event>) => void;
|
|
@@ -4581,6 +4637,110 @@ export type CustomElements = {
|
|
|
4581
4637
|
*/
|
|
4582
4638
|
"nve-copy-button": DefineComponent<CopyButtonProps>;
|
|
4583
4639
|
|
|
4640
|
+
/**
|
|
4641
|
+
* A dashboard arranges application panels on a resizable grid with a restorable layout.
|
|
4642
|
+
* ---
|
|
4643
|
+
*
|
|
4644
|
+
*
|
|
4645
|
+
* ### **Events:**
|
|
4646
|
+
* - **change** - Announces one committed arrangement after interaction, commands, or panel membership and span-constraint reconciliation. Read value on the dashboard; authored content events still bubble normally.
|
|
4647
|
+
* - **commandavailabilitychange** - Arrangement or fullscreen command availability may have changed.
|
|
4648
|
+
*
|
|
4649
|
+
* ### **Methods:**
|
|
4650
|
+
* - **place(id: _string_, placement: _DashboardGridPlacement_): _boolean_** - Requests an integer placement without gesture target snapping. Anchored span changes use resizing permission, including left and top edges that change the origin; other position changes require movement. Directional collisions and optional growth-axis settling determine the final arrangement. Returns false for unavailable, invalid, or unchanged normalized placement. Successful placement emits one change.
|
|
4651
|
+
* - **isCommandAvailable(command: _string_, context: _DashboardCommandContext_): _boolean_** - Queries arrangement and fullscreen commands using a panel ID. A placement supplies the full grid placement for --place, or the desired bounded-axis coordinate for --move-to-start. Availability compares the complete normalized proposal with the current arrangement. Directional movement derives from grid placement and panel permissions without requiring rendered controls. Native fullscreen admission remains subject to browser permission.
|
|
4652
|
+
*
|
|
4653
|
+
* ### **Slots:**
|
|
4654
|
+
* - _default_ - Direct dashboard panels with unique durable IDs, required headers, and application dropdown groups. DOM order remains application authored. Native reading order follows committed placement where supported; previews preserve that order.
|
|
4655
|
+
*
|
|
4656
|
+
* ### **CSS Properties:**
|
|
4657
|
+
* - **--column-size** - Single-cell outer column length in fixed sizing or horizontal flow. Defaults to 160px. _(default: undefined)_
|
|
4658
|
+
* - **--row-size** - Single-cell outer row length in fixed sizing or vertical flow. Defaults to 120px. _(default: undefined)_
|
|
4659
|
+
* - **--gap** - Nonnegative CSS length between cells. Include units, including 0px for no gap. At zero, uniform used border widths overlap; unequal widths keep independent geometry. Shared seams assume square panels with solid opaque borders. _(default: undefined)_
|
|
4660
|
+
* - **--guide-color** - Color of the circular cell-center guides. Defaults to the muted border color. _(default: undefined)_
|
|
4661
|
+
* - **--guide-size** - Nonnegative CSS length for the guide circle diameter. Defaults to 8px. Include units, including 0px to hide the circles. _(default: undefined)_
|
|
4662
|
+
* - **--height** - Default viewport height. Defaults to 400px; horizontal fit needs a definite height. _(default: undefined)_
|
|
4663
|
+
* - **--animation-duration** - Duration of panel geometry, destination ghost geometry, and arrangement control transitions. Defaults to 150ms; reduced motion uses 0ms. Panel geometry follows external container resizing immediately; explicit arrangement and sizing changes use transitions. Animation never delays logical placement commits. _(default: undefined)_
|
|
4664
|
+
* - **--animation-easing** - Easing of panel and destination ghost geometry transitions. _(default: undefined)_
|
|
4665
|
+
*
|
|
4666
|
+
* ### **CSS Parts:**
|
|
4667
|
+
* - **ghost** - Inert placement preview shown during pointer arrangement.
|
|
4668
|
+
*/
|
|
4669
|
+
"nve-dashboard": DefineComponent<DashboardProps>;
|
|
4670
|
+
|
|
4671
|
+
/**
|
|
4672
|
+
* Provides padding for dashboard panel content.
|
|
4673
|
+
* ---
|
|
4674
|
+
*
|
|
4675
|
+
*
|
|
4676
|
+
* ### **Slots:**
|
|
4677
|
+
* - _default_ - Application content.
|
|
4678
|
+
*
|
|
4679
|
+
* ### **CSS Properties:**
|
|
4680
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4681
|
+
*/
|
|
4682
|
+
"nve-dashboard-panel-content": DefineComponent<DashboardPanelContentProps>;
|
|
4683
|
+
|
|
4684
|
+
/**
|
|
4685
|
+
* Provides dashboard panel status and actions outside the scrolling body.
|
|
4686
|
+
* ---
|
|
4687
|
+
*
|
|
4688
|
+
*
|
|
4689
|
+
* ### **Slots:**
|
|
4690
|
+
* - _default_ - Status and supporting content in a bounded scrolling area.
|
|
4691
|
+
* - **suffix** - Application actions in a bounded scrolling area before the reserved resize control.
|
|
4692
|
+
*
|
|
4693
|
+
* ### **CSS Properties:**
|
|
4694
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4695
|
+
* - **--suffix-padding** - Padding around application actions. Defaults to 4px. _(default: undefined)_
|
|
4696
|
+
* - **--gap** - undefined _(default: undefined)_
|
|
4697
|
+
*/
|
|
4698
|
+
"nve-dashboard-panel-footer": DefineComponent<DashboardPanelFooterProps>;
|
|
4699
|
+
|
|
4700
|
+
/**
|
|
4701
|
+
* Supplies the required dashboard panel title and application controls.
|
|
4702
|
+
* ---
|
|
4703
|
+
*
|
|
4704
|
+
*
|
|
4705
|
+
* ### **Slots:**
|
|
4706
|
+
* - _default_ - Noninteractive title used as the default accessible panel name. Heading semantics remain application owned.
|
|
4707
|
+
* - **prefix** - Title decoration.
|
|
4708
|
+
* - **suffix** - Application controls.
|
|
4709
|
+
*
|
|
4710
|
+
* ### **CSS Properties:**
|
|
4711
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
4712
|
+
* - **--suffix-padding** - Padding around application actions. Defaults to 4px. _(default: undefined)_
|
|
4713
|
+
* - **--gap** - undefined _(default: undefined)_
|
|
4714
|
+
* - **--min-height** - undefined _(default: undefined)_
|
|
4715
|
+
*/
|
|
4716
|
+
"nve-dashboard-panel-header": DefineComponent<DashboardPanelHeaderProps>;
|
|
4717
|
+
|
|
4718
|
+
/**
|
|
4719
|
+
* A stable application surface identified by a durable panel ID.
|
|
4720
|
+
* ---
|
|
4721
|
+
*
|
|
4722
|
+
*
|
|
4723
|
+
* ### **Slots:**
|
|
4724
|
+
* - _default_ - Application content in the scrolling body. Content, data, and native hidden state remain application owned.
|
|
4725
|
+
* - **header** - Required panel header with a title and optional application controls.
|
|
4726
|
+
* - **footer** - Optional status and actions outside the body.
|
|
4727
|
+
*
|
|
4728
|
+
* ### **CSS Properties:**
|
|
4729
|
+
* - **--background** - undefined _(default: undefined)_
|
|
4730
|
+
* - **--border** - undefined _(default: undefined)_
|
|
4731
|
+
* - **--border-radius** - undefined _(default: undefined)_
|
|
4732
|
+
* - **--control-width** - Width shared by the move and resize controls. Defaults to 36px. _(default: undefined)_
|
|
4733
|
+
* - **--control-height** - Height shared by the move and resize controls. Defaults to 48px. _(default: undefined)_
|
|
4734
|
+
* - **--resize-target-size** - Extra pointer resize reach on each side of the panel edge. Defaults to 3px; outward reach stops halfway across the cell gap. Configure on the panel. Inward reach covers application content at the edge, including on hybrid touch devices. _(default: undefined)_
|
|
4735
|
+
* - **--box-shadow** - undefined _(default: undefined)_
|
|
4736
|
+
*
|
|
4737
|
+
* ### **CSS Parts:**
|
|
4738
|
+
* - **drag-handle** - Movement control.
|
|
4739
|
+
* - **resize-button** - Resize control.
|
|
4740
|
+
* - **fullscreen-button** - Panel fullscreen control.
|
|
4741
|
+
*/
|
|
4742
|
+
"nve-dashboard-panel": DefineComponent<DashboardPanelProps>;
|
|
4743
|
+
|
|
4584
4744
|
/**
|
|
4585
4745
|
* A date picker is a control that enables users to choose a date value.
|
|
4586
4746
|
* ---
|