@nvidia-elements/core 2.22.4 → 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 +13 -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/internal/utils/a11y.js.map +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/polyfills/index.d.ts +4 -7
- package/dist/polyfills/index.js +0 -8
- 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/select/select2.js.map +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/toast/toast2.js.map +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 +26 -3
- package/dist/polyfills/index.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"element": "nve-ghost",
|
|
3
|
+
"entrypoint": "@nvidia-elements/core/ghost/ghost.examples.json",
|
|
4
|
+
"items": [
|
|
5
|
+
{
|
|
6
|
+
"id": "ghost-preview",
|
|
7
|
+
"name": "Preview",
|
|
8
|
+
"template": "<nve-ghost style=\"width: 300px; max-width: 100%; height: 180px\">\n <div nve-layout=\"column gap:md\">\n <strong nve-text=\"heading\">Notes</strong>\n <p nve-text=\"body\">Review the training results and prepare the next run.</p>\n </div>\n</nve-ghost>\n",
|
|
9
|
+
"summary": "Show a visual preview of content before placement. Include recognizable content to help users identify the preview.",
|
|
10
|
+
"description": "",
|
|
11
|
+
"composition": false,
|
|
12
|
+
"tags": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "ghost-carried",
|
|
16
|
+
"name": "Carried",
|
|
17
|
+
"template": "<nve-ghost\n style=\"\n --background: var(--nve-sys-layer-container-background);\n --border: var(--nve-ref-border-width-md) solid var(--nve-sys-accent-secondary-background);\n --color: var(--nve-sys-text-emphasis-color);\n width: fit-content;\n max-width: 100%;\n white-space: nowrap;\n \"\n >Editor</nve-ghost\n>\n",
|
|
18
|
+
"summary": "Compact carried preview with an opaque surface and a readable title. Customize the surface, border, and text color to distinguish carried content.",
|
|
19
|
+
"description": "",
|
|
20
|
+
"composition": false,
|
|
21
|
+
"tags": [
|
|
22
|
+
"theme"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "ghost-stack",
|
|
27
|
+
"name": "Stack",
|
|
28
|
+
"template": "<nve-ghost\n layers=\"3\"\n style=\"--background: var(--nve-sys-layer-container-background); --border: var(--nve-ref-border-width-md) solid var(--nve-sys-accent-secondary-background); width: fit-content; max-width: 100%; white-space: nowrap\"\n >Editor</nve-ghost\n>\n",
|
|
29
|
+
"summary": "Show carried items as a compact stack with one label. Set layers to two or three and customize the offsets to adjust their separation.",
|
|
30
|
+
"description": "",
|
|
31
|
+
"composition": false,
|
|
32
|
+
"tags": [
|
|
33
|
+
"theme"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/ghost/ghost.css?inline
|
|
2
|
+
var e = ":host{--background: color-mix(in oklab, var(--nve-sys-accent-secondary-background) 16%, transparent);--border: var(--nve-ref-border-width-md) dashed var(--nve-sys-accent-secondary-background);--border-radius: var(--nve-ref-border-radius-xs);--padding: var(--nve-ref-space-xs);--stack-offset-x: 4px;--stack-offset-y: 4px;--color: var(--nve-sys-text-emphasis-color);border-radius:var(--border-radius);display:block;pointer-events:none}[internal-host]{--_offset-x: max(0px, var(--stack-offset-x));--_offset-y: max(0px, var(--stack-offset-y));box-sizing:border-box;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);width:100%;height:100%;padding:0 calc(var(--_back-layers) * var(--_offset-x)) calc(var(--_back-layers) * var(--_offset-y)) 0;border-radius:inherit}.surface{grid-area:1 / 1;min-width:0;min-height:0;box-sizing:border-box;padding:var(--padding);overflow:hidden;text-overflow:ellipsis;background:var(--background);border:var(--border);border-radius:inherit;color:var(--color)}.front{z-index:1}.rear{transform:translate(calc(var(--_layer) * var(--_offset-x)),calc(var(--_layer) * var(--_offset-y)))}";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ghost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghost.js","names":["ghost_default"],"sources":["../../src/ghost/ghost.css?inline"],"sourcesContent":["/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */\n/* SPDX-License-Identifier: Apache-2.0 */\n:host {\n --background: color-mix(in oklab, var(--nve-sys-accent-secondary-background) 16%, transparent);\n --border: var(--nve-ref-border-width-md) dashed var(--nve-sys-accent-secondary-background);\n --border-radius: var(--nve-ref-border-radius-xs);\n --padding: var(--nve-ref-space-xs);\n --stack-offset-x: 4px;\n --stack-offset-y: 4px;\n --color: var(--nve-sys-text-emphasis-color);\n border-radius: var(--border-radius);\n display: block;\n pointer-events: none;\n}\n\n[internal-host] {\n --_offset-x: max(0px, var(--stack-offset-x));\n --_offset-y: max(0px, var(--stack-offset-y));\n box-sizing: border-box;\n display: grid;\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n width: 100%;\n height: 100%;\n padding: 0 calc(var(--_back-layers) * var(--_offset-x)) calc(var(--_back-layers) * var(--_offset-y)) 0;\n border-radius: inherit;\n}\n\n.surface {\n grid-area: 1 / 1;\n min-width: 0;\n min-height: 0;\n box-sizing: border-box;\n padding: var(--padding);\n overflow: hidden;\n text-overflow: ellipsis;\n background: var(--background);\n border: var(--border);\n border-radius: inherit;\n color: var(--color);\n}\n\n.front {\n z-index: 1;\n}\n\n.rear {\n transform: translate(calc(var(--_layer) * var(--_offset-x)), calc(var(--_layer) * var(--_offset-y)));\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useStyles as e } from "../internal/styles/index.js";
|
|
2
|
+
import t from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
3
|
+
import n from "./ghost.js";
|
|
4
|
+
import { LitElement as r, html as i } from "lit";
|
|
5
|
+
import { property as a } from "lit/decorators/property.js";
|
|
6
|
+
// src/ghost/ghost.ts
|
|
7
|
+
var o = class extends r {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.layers = 1;
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = e([n]);
|
|
13
|
+
}
|
|
14
|
+
static {
|
|
15
|
+
this.metadata = {
|
|
16
|
+
tag: "nve-ghost",
|
|
17
|
+
version: "2.23.0"
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
let e = Number.isFinite(this.layers) ? Math.min(3, Math.max(1, Math.trunc(this.layers))) : 1;
|
|
22
|
+
return i`<div internal-host inert aria-hidden="true" style="${`--_back-layers:${e - 1}`}">${Array.from({ length: e - 1 }, (t, n) => i`<div class="surface rear" style="${`--_layer:${e - n - 1}`}"></div>`)}<div class="surface front"><slot></slot></div></div>`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
t([a({ type: Number })], o.prototype, "layers", void 0);
|
|
26
|
+
export { o as Ghost };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=ghost2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghost2.js","names":["styles","_decorate","__decorate","ghost_default","Ghost","LitElement","_args","useStyles","layers","index","property"],"sources":["../../src/ghost/ghost.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { useStyles } from '@nvidia-elements/core/internal';\nimport styles from './ghost.css?inline';\n\n/**\n * @element nve-ghost\n * @description An inert visual preview of content or its prospective placement. Applications control its geometry, movement, and accessible feedback.\n * @documentation https://nvidia.github.io/elements/docs/elements/ghost/\n * @since 0.0.0\n * @stable false\n * @entrypoint \\@nvidia-elements/core/ghost\n * @slot - Presentation content for the preview.\n * @cssprop --background\n * @cssprop --border\n * @cssprop --border-radius\n * @cssprop --color\n * @cssprop --stack-offset-x - Nonnegative horizontal distance between layers. Defaults to 4px.\n * @cssprop --stack-offset-y - Nonnegative vertical distance between layers. Defaults to 4px.\n * @cssprop --padding\n */\nexport class Ghost extends LitElement {\n static styles = useStyles([styles]);\n\n static readonly metadata = { tag: 'nve-ghost', version: '0.0.0' };\n\n /** Number of visual surfaces. Rendering truncates fractions and clamps to one through three; nonfinite values use one. */\n @property({ type: Number }) layers = 1;\n\n render() {\n const layers = Number.isFinite(this.layers) ? Math.min(3, Math.max(1, Math.trunc(this.layers))) : 1;\n return html`\n <div internal-host inert aria-hidden=\"true\" style=${`--_back-layers:${layers - 1}`}>\n ${Array.from(\n { length: layers - 1 },\n (_, index) => html`<div class=\"surface rear\" style=${`--_layer:${layers - index - 1}`}></div>`\n )}\n <div class=\"surface front\"><slot></slot></div>\n </div>\n `;\n }\n}\n"],"mappings":";;;;;;AAwBA,IAAaI,IAAb,cAA2BC,EAAW;;EAMC,A,aAAA,KAAA,SAAA;;;EALrB,KAAA,SAAAE,EAAU,CAACP,CAAM,CAAC;;;EAEP,KAAA,WAAA;GAAE,KAAK;GAAa,SAAS;EAAQ;;CAKhE,SAAS;EACP,IAAMQ,IAAS,OAAO,SAAS,KAAK,MAAM,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK,MAAM,CAAC,CAAC,IAAI;EAClG,OAAO,CAAI,sDAC2C,kBAAkBA,IAAS,IAAI,IAC/E,MAAM,KACN,EAAE,QAAQA,IAAS,EAAE,IACpB,GAAG,MAAU,CAAI,oCAAmC,YAAYA,IAASC,IAAQ,IAAI,SACxF,EAAE;CAIR;AACF;AAdGR,EAAA,CAAAS,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAAN,EAAA,WAAA,UAAA,KAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ghost.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Ghost } from "./ghost2.js";
|
package/dist/grid/cell/cell2.js
CHANGED
package/dist/grid/grid2.js
CHANGED
package/dist/grid/row/row2.js
CHANGED
package/dist/icon/icon2.js
CHANGED
|
@@ -16,7 +16,7 @@ var f = class n extends o {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-icon",
|
|
19
|
-
version: "2.
|
|
19
|
+
version: "2.23.0"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
@@ -103,7 +103,7 @@ a([l({
|
|
|
103
103
|
})], f.prototype, "name", void 0), a([d()], f.prototype, "svg", void 0);
|
|
104
104
|
function p(e) {
|
|
105
105
|
if (typeof globalThis.customElements?.get == "function") {
|
|
106
|
-
let t = n(e.metadata.version), i = n("2.
|
|
106
|
+
let t = n(e.metadata.version), i = n("2.23.0");
|
|
107
107
|
t.minor <= i.minor && t.major <= i.major && (e._icons = {
|
|
108
108
|
...e._icons,
|
|
109
109
|
...r
|
package/dist/iframe/iframe2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { getThemeTokens as e } from "./internal/utils/dom.js";
|
|
|
2
2
|
import { statusIcons as t } from "./internal/types/index.js";
|
|
3
3
|
import { internal_exports as n } from "./internal/index.js";
|
|
4
4
|
// src/index.ts
|
|
5
|
-
var r = "2.
|
|
5
|
+
var r = "2.23.0", i = "@nvidia-elements", a = n.I18nService;
|
|
6
6
|
export { a as I18nService, i as SCOPE, r as VERSION, e as getThemeTokens, t as statusIcons };
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/input/input2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.js","names":["attachInternals","element","associateLabel","label","input","generateId","associateAriaLabel","associateAriaDescribedBy","messages","ids","associateDataList","datalist","associateControlGroup","elements","name"],"sources":["../../../src/internal/utils/a11y.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { generateId } from './dom.js';\n\nexport function attachInternals(element: HTMLElement & { _internals?: ElementInternals }) {\n if (element._internals === undefined) {\n element._internals = element.attachInternals()
|
|
1
|
+
{"version":3,"file":"a11y.js","names":["attachInternals","element","associateLabel","label","input","generateId","associateAriaLabel","associateAriaDescribedBy","messages","ids","associateDataList","datalist","associateControlGroup","elements","name"],"sources":["../../../src/internal/utils/a11y.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { generateId } from './dom.js';\n\nexport function attachInternals(element: HTMLElement & { _internals?: ElementInternals }) {\n if (element._internals === undefined) {\n element._internals = element.attachInternals();\n }\n}\n\nexport function associateLabel(label: HTMLLabelElement, input: HTMLInputElement) {\n if (label && input) {\n input.id = input.id ? input.id : generateId();\n label.htmlFor = input.id;\n }\n}\n\nexport function associateAriaLabel(label: HTMLElement, element: HTMLElement) {\n if (label && element) {\n label.id = label.id ? label.id : generateId();\n element.setAttribute('aria-labelledby', label.id);\n }\n}\n\nexport function associateAriaDescribedBy(messages: HTMLElement[], element: HTMLElement) {\n if (messages.length && element) {\n const ids = messages.map(m => (m.id = generateId())).join(' ');\n element.setAttribute('aria-describedby', ids);\n }\n}\n\nexport function associateDataList(datalist: HTMLDataListElement, element: HTMLInputElement) {\n if (datalist) {\n datalist.id = datalist.id?.length ? datalist.id : generateId();\n element.setAttribute('list', datalist.id);\n }\n}\n\nexport function associateControlGroup(elements: HTMLInputElement[]) {\n if (!elements.find(e => e?.name?.length)) {\n const name = generateId();\n elements.forEach(e => (e.name = name));\n }\n}\n"],"mappings":";;AAKA,SAAgBA,EAAgB,GAA0D;CACxF,AAAIC,EAAQ,eAAe,KAAA,MACzB,EAAQ,aAAaA,EAAQ,gBAAgB;AAEjD;AAEA,SAAgBC,EAAe,GAAyB,GAAyB;CAC/E,AAAIC,KAASC,MACX,EAAM,KAAKA,EAAM,KAAKA,EAAM,KAAKC,EAAW,GAC5C,EAAM,UAAUD,EAAM;AAE1B;AAEA,SAAgBE,EAAmB,GAAoB,GAAsB;CAC3E,AAAIH,KAASF,MACX,EAAM,KAAKE,EAAM,KAAKA,EAAM,KAAKE,EAAW,GAC5CJ,EAAQ,aAAa,mBAAmBE,EAAM,EAAE;AAEpD;AAEA,SAAgBI,EAAyB,GAAyB,GAAsB;CACtF,IAAIC,EAAS,UAAUP,GAAS;EAC9B,IAAMQ,IAAMD,EAAS,KAAI,MAAM,EAAE,KAAKH,EAAW,CAAE,CAAC,CAAC,KAAK,GAAG;EAC7D,EAAQ,aAAa,oBAAoBI,CAAG;CAC9C;AACF;AAEA,SAAgBC,EAAkB,GAA+B,GAA2B;CAC1F,AAAIC,MACF,EAAS,KAAKA,EAAS,IAAI,SAASA,EAAS,KAAKN,EAAW,GAC7DJ,EAAQ,aAAa,QAAQU,EAAS,EAAE;AAE5C;AAEA,SAAgBC,EAAsB,GAA8B;CAClE,IAAI,CAACC,EAAS,MAAK,MAAK,GAAG,MAAM,MAAM,GAAG;EACxC,IAAMC,IAAOT,EAAW;EACxB,EAAS,SAAQ,MAAM,EAAE,OAAOS,CAAK;CACvC;AACF"}
|
|
@@ -5,8 +5,8 @@ import r from "./joystick.js";
|
|
|
5
5
|
import { LitElement as i, html as a, isServer as o } from "lit";
|
|
6
6
|
import { property as s } from "lit/decorators/property.js";
|
|
7
7
|
import { I18nController as c } from "@nvidia-elements/foundations/internal/i18n";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { styleMap as l } from "lit/directives/style-map.js";
|
|
9
|
+
import { FormControlMixin as u } from "@nvidia-elements/forms/mixins";
|
|
10
10
|
// src/joystick/joystick.ts
|
|
11
11
|
var d = {
|
|
12
12
|
joystickPosition: "X {x}, Y {y}.",
|
|
@@ -31,14 +31,14 @@ var d = {
|
|
|
31
31
|
x: 0,
|
|
32
32
|
y: 1
|
|
33
33
|
}
|
|
34
|
-
}, p = class extends
|
|
34
|
+
}, p = class extends u(i) {
|
|
35
35
|
static {
|
|
36
36
|
this.styles = t([r]);
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
39
|
this.metadata = {
|
|
40
40
|
tag: "nve-joystick",
|
|
41
|
-
version: "2.
|
|
41
|
+
version: "2.23.0",
|
|
42
42
|
valueSchema: {
|
|
43
43
|
type: "object",
|
|
44
44
|
properties: {
|
|
@@ -148,7 +148,7 @@ var d = {
|
|
|
148
148
|
x: 0,
|
|
149
149
|
y: 0
|
|
150
150
|
};
|
|
151
|
-
return a`<div internal-host aria-hidden="true"><div class="background"></div><div class="travel"><div class="thumb" ?hidden="${!this.value}" style="${
|
|
151
|
+
return a`<div internal-host aria-hidden="true"><div class="background"></div><div class="travel"><div class="thumb" ?hidden="${!this.value}" style="${l({
|
|
152
152
|
left: `${(e.x + 1) * 50}%`,
|
|
153
153
|
top: `${(e.y + 1) * 50}%`
|
|
154
154
|
})}"></div></div></div><span class="announcement" role="status" aria-live="${this.announce === "off" ? "off" : "polite"}" aria-atomic="true">${this.#t}</span>`;
|
package/dist/logo/logo2.js
CHANGED
package/dist/menu/menu-group2.js
CHANGED
package/dist/menu/menu-item2.js
CHANGED
package/dist/menu/menu2.js
CHANGED
package/dist/month/month2.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 "./month.js";
|
|
8
8
|
import { html as s } from "lit";
|
|
9
9
|
import { property as c } from "lit/decorators/property.js";
|
|
10
10
|
// src/month/month.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-month",
|
|
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="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`;
|
package/dist/page/page2.js
CHANGED
package/dist/panel/panel2.js
CHANGED
|
@@ -26,7 +26,7 @@ var g = {
|
|
|
26
26
|
static {
|
|
27
27
|
this.metadata = {
|
|
28
28
|
tag: "nve-panel-header",
|
|
29
|
-
version: "2.
|
|
29
|
+
version: "2.23.0"
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
@@ -42,7 +42,7 @@ var g = {
|
|
|
42
42
|
static {
|
|
43
43
|
this.metadata = {
|
|
44
44
|
tag: "nve-panel-content",
|
|
45
|
-
version: "2.
|
|
45
|
+
version: "2.23.0"
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
@@ -55,7 +55,7 @@ var g = {
|
|
|
55
55
|
static {
|
|
56
56
|
this.metadata = {
|
|
57
57
|
tag: "nve-panel-footer",
|
|
58
|
-
version: "2.
|
|
58
|
+
version: "2.23.0"
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
@@ -74,7 +74,7 @@ var g = {
|
|
|
74
74
|
static {
|
|
75
75
|
this.metadata = {
|
|
76
76
|
tag: "nve-panel",
|
|
77
|
-
version: "2.
|
|
77
|
+
version: "2.23.0"
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
static {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 "./password.js";
|
|
8
8
|
import { html as s } from "lit";
|
|
@@ -12,7 +12,7 @@ import { state as l } from "lit/decorators/state.js";
|
|
|
12
12
|
var u = {
|
|
13
13
|
hide: "hide",
|
|
14
14
|
show: "show"
|
|
15
|
-
}, d = class extends
|
|
15
|
+
}, d = class extends i {
|
|
16
16
|
constructor(...e) {
|
|
17
17
|
super(...e), this.pressed = !1;
|
|
18
18
|
}
|
|
@@ -21,7 +21,7 @@ var u = {
|
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.styles = t([
|
|
24
|
-
...
|
|
24
|
+
...i.styles,
|
|
25
25
|
a,
|
|
26
26
|
o
|
|
27
27
|
]);
|
|
@@ -29,11 +29,11 @@ var u = {
|
|
|
29
29
|
static {
|
|
30
30
|
this.metadata = {
|
|
31
31
|
tag: "nve-password",
|
|
32
|
-
version: "2.
|
|
32
|
+
version: "2.23.0"
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
|
-
this.elementDefinitions = { [
|
|
36
|
+
this.elementDefinitions = { [r.metadata.tag]: r };
|
|
37
37
|
}
|
|
38
38
|
get suffixContent() {
|
|
39
39
|
return s`<nve-icon-button part="icon-button" @click="${() => this.#e()}" .pressed="${this.pressed}" .iconName="${this.pressed ? "eye-hidden" : "eye"}" container="inline" .ariaLabel="${this.pressed ? this.i18n.hide : this.i18n.show}"></nve-icon-button>`;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* - Safari
|
|
2
|
+
* Optional polyfill entry for `@nvidia-elements/core/polyfills`.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* https://bugs.webkit.org/show_bug.cgi?id=215911
|
|
8
|
-
* https://bugzilla.mozilla.org/show_bug.cgi?id=1588763
|
|
4
|
+
* Supported browsers provide ElementInternals, CustomStateSet, and
|
|
5
|
+
* `toggleAttribute`, so this entry does not patch the platform.
|
|
9
6
|
*/
|
|
10
|
-
|
|
7
|
+
export {};
|
package/dist/polyfills/index.js
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "element-internals-polyfill";
|
|
2
|
-
// src/polyfills/index.ts
|
|
3
|
-
Element.prototype.toggleAttribute || (Element.prototype.toggleAttribute = function(e, t) {
|
|
4
|
-
let n = t === void 0 ? void 0 : t;
|
|
5
|
-
return this.hasAttribute(e) ? n ? !0 : (this.removeAttribute(e), !1) : n !== !1 && (this.setAttribute(e, ""), !0);
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -11,8 +11,8 @@ import l from "./preferences-input.js";
|
|
|
11
11
|
import { LitElement as u, html as d, isServer as f } from "lit";
|
|
12
12
|
import { property as p } from "lit/decorators/property.js";
|
|
13
13
|
import { I18nController as m } from "@nvidia-elements/foundations/internal/i18n";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { FormControlMixin as h } from "@nvidia-elements/forms/mixins";
|
|
15
|
+
import { state as g } from "lit/decorators/state.js";
|
|
16
16
|
// src/preferences-input/preferences-input.ts
|
|
17
17
|
var _ = [
|
|
18
18
|
"auto",
|
|
@@ -40,7 +40,7 @@ function x(e = globalThis.document.documentElement) {
|
|
|
40
40
|
"reduced-motion": t.getPropertyValue("--nve-config-reduced-motion") === "true"
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
var S = class extends
|
|
43
|
+
var S = class extends h(u) {
|
|
44
44
|
#e;
|
|
45
45
|
static {
|
|
46
46
|
this.styles = t([l]);
|
|
@@ -48,7 +48,7 @@ var S = class extends g(u) {
|
|
|
48
48
|
static {
|
|
49
49
|
this.metadata = {
|
|
50
50
|
tag: "nve-preferences-input",
|
|
51
|
-
version: "2.
|
|
51
|
+
version: "2.23.0",
|
|
52
52
|
valueSchema: {
|
|
53
53
|
type: "object",
|
|
54
54
|
properties: {
|
|
@@ -123,7 +123,7 @@ var S = class extends g(u) {
|
|
|
123
123
|
this.dispatchInputEvent(), this.dispatchChangeEvent();
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
n([p({ type: Object })], S.prototype, "i18n", void 0), n([
|
|
126
|
+
n([p({ type: Object })], S.prototype, "i18n", void 0), n([g()], S.prototype, "activePreferences", void 0), S = n([e()], S);
|
|
127
127
|
export { S as PreferencesInput };
|
|
128
128
|
|
|
129
129
|
//# sourceMappingURL=preferences-input2.js.map
|