@nvidia-elements/core 2.8.0 → 2.9.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 +23 -0
- package/dist/accordion/accordion.examples.json +9 -9
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.json +3 -3
- 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/badge.examples.json +2 -2
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb.examples.json +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +211 -0
- package/dist/bundles/index.js +6 -6
- package/dist/button/button.examples.json +3 -3
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card.examples.json +2 -2
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message.examples.json +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/combobox.examples.json +5 -5
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button.examples.json +2 -2
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +112 -1
- package/dist/custom-elements-vue.d.ts +110 -1
- package/dist/custom-elements.json +3554 -291
- package/dist/data.html.json +95 -1
- package/dist/data.snippets.json +45 -45
- 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/dialog.examples.json +3 -3
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider.examples.json +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.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.examples.json +4 -4
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone.examples.json +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-datetime.examples.json +3 -3
- 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-truncate.examples.json +4 -4
- package/dist/format-truncate/format-truncate2.js +1 -1
- package/dist/forms/actions.examples.json +1 -1
- package/dist/forms/control/control.examples.json +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/gauge.examples.json +2 -2
- package/dist/gauge/gauge2.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.examples.js.map +1 -1
- package/dist/grid/grid.examples.json +34 -34
- 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/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/controllers/gesture.controller.d.ts +122 -42
- package/dist/internal/controllers/gesture.controller.examples.js.map +1 -1
- package/dist/internal/controllers/gesture.controller.examples.json +2 -2
- package/dist/internal/controllers/gesture.controller.js +300 -159
- package/dist/internal/controllers/gesture.controller.js.map +1 -1
- package/dist/internal/controllers/key-state.controller.d.ts +18 -0
- package/dist/internal/controllers/key-state.controller.js +84 -0
- package/dist/internal/controllers/key-state.controller.js.map +1 -0
- package/dist/internal/controllers/keynav-grid.controller.examples.json +1 -1
- package/dist/internal/controllers/keynav-list.controller.examples.json +1 -1
- package/dist/internal/controllers/keynav-spatial.controller.d.ts +4 -1
- package/dist/internal/controllers/keynav-spatial.controller.js +7 -6
- package/dist/internal/controllers/keynav-spatial.controller.js.map +1 -1
- package/dist/internal/controllers/popover.examples.json +2 -2
- package/dist/internal/index.d.ts +2 -0
- package/dist/internal/index.js +29 -27
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/utils/dom.d.ts +1 -0
- package/dist/internal/utils/dom.js +42 -38
- package/dist/internal/utils/dom.js.map +1 -1
- package/dist/internal/utils/focus.d.ts +2 -0
- package/dist/internal/utils/focus.js +14 -7
- package/dist/internal/utils/focus.js.map +1 -1
- package/dist/internal/utils/numeric.d.ts +3 -0
- package/dist/internal/utils/numeric.js +14 -0
- package/dist/internal/utils/numeric.js.map +1 -0
- package/dist/logo/logo.examples.json +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu.examples.js.map +1 -1
- package/dist/menu/menu.examples.json +4 -4
- 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/notification.examples.json +3 -3
- 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/page.examples.json +10 -10
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header.examples.json +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination.examples.json +6 -6
- 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-input.examples.json +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar.examples.json +1 -1
- package/dist/progress-bar/progress-bar2.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/range.examples.json +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle.examples.json +4 -4
- package/dist/resize-handle/resize-handle2.js +6 -10
- package/dist/resize-handle/resize-handle2.js.map +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/sparkline.examples.json +2 -2
- 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.examples.json +4 -4
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag.examples.json +1 -1
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea.d.ts +7 -1
- package/dist/textarea/textarea.examples.js.map +1 -1
- package/dist/textarea/textarea.examples.json +22 -0
- package/dist/textarea/textarea.js +1 -1
- package/dist/textarea/textarea.js.map +1 -1
- package/dist/textarea/textarea2.js +10 -3
- package/dist/textarea/textarea2.js.map +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast.examples.json +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/tooltip.examples.json +2 -2
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/viewport/define.d.ts +7 -0
- package/dist/viewport/define.js +7 -0
- package/dist/viewport/define.js.map +1 -0
- package/dist/viewport/index.d.ts +3 -0
- package/dist/viewport/index.js +3 -0
- package/dist/viewport/viewport-animation.controller.d.ts +21 -0
- package/dist/viewport/viewport-animation.controller.js +93 -0
- package/dist/viewport/viewport-animation.controller.js.map +1 -0
- package/dist/viewport/viewport-autofit.controller.d.ts +18 -0
- package/dist/viewport/viewport-autofit.controller.js +105 -0
- package/dist/viewport/viewport-autofit.controller.js.map +1 -0
- package/dist/viewport/viewport-fitting.utils.d.ts +36 -0
- package/dist/viewport/viewport-fitting.utils.js +35 -0
- package/dist/viewport/viewport-fitting.utils.js.map +1 -0
- package/dist/viewport/viewport-gesture-navigation.controller.d.ts +29 -0
- package/dist/viewport/viewport-gesture-navigation.controller.js +311 -0
- package/dist/viewport/viewport-gesture-navigation.controller.js.map +1 -0
- package/dist/viewport/viewport-gridlines.d.ts +38 -0
- package/dist/viewport/viewport-gridlines.js +6 -0
- package/dist/viewport/viewport-gridlines.js.map +1 -0
- package/dist/viewport/viewport-gridlines.utils.d.ts +11 -0
- package/dist/viewport/viewport-gridlines.utils.js +54 -0
- package/dist/viewport/viewport-gridlines.utils.js.map +1 -0
- package/dist/viewport/viewport-gridlines2.js +154 -0
- package/dist/viewport/viewport-gridlines2.js.map +1 -0
- package/dist/viewport/viewport-navigation.controller.d.ts +27 -0
- package/dist/viewport/viewport-navigation.controller.js +142 -0
- package/dist/viewport/viewport-navigation.controller.js.map +1 -0
- package/dist/viewport/viewport-navigation.types.d.ts +9 -0
- package/dist/viewport/viewport-projection.utils.d.ts +7 -0
- package/dist/viewport/viewport-projection.utils.js +25 -0
- package/dist/viewport/viewport-projection.utils.js.map +1 -0
- package/dist/viewport/viewport.d.ts +92 -0
- package/dist/viewport/viewport.examples.js +6 -0
- package/dist/viewport/viewport.examples.js.map +1 -0
- package/dist/viewport/viewport.examples.json +60 -0
- package/dist/viewport/viewport.js +6 -0
- package/dist/viewport/viewport.js.map +1 -0
- package/dist/viewport/viewport.types.d.ts +66 -0
- package/dist/viewport/viewport2.js +375 -0
- package/dist/viewport/viewport2.js.map +1 -0
- package/dist/week/week2.js +1 -1
- package/package.json +14 -2
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
{
|
|
80
80
|
"id": "button-invoker-command",
|
|
81
81
|
"name": "InvokerCommand",
|
|
82
|
-
"template": "<nve-icon
|
|
82
|
+
"template": "<nve-icon id=\"rotation-target\" name=\"sparkles\" aria-label=\"sparkles icon\" style=\"inline-size: 100px; block-size: 100px\"></nve-icon>\n<section>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-left\">Rotate left</nve-button>\n <nve-button commandfor=\"rotation-target\" command=\"--rotate-right\">Rotate right</nve-button>\n <nve-button commandfor=\"popover\" command=\"toggle-popover\">toggle-popover</nve-button>\n</section>\n<nve-toggletip id=\"popover\">popover</nve-toggletip>\n<script type=\"module\">\n const target = document.getElementById(\"rotation-target\");\n target.addEventListener(\"command\", (event) => {\n if (event.command === \"--rotate-left\") {\n target.style.rotate = \"-90deg\";\n } else if (event.command === \"--rotate-right\") {\n target.style.rotate = \"90deg\";\n }\n });\n</script>\n",
|
|
83
83
|
"summary": "Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image.",
|
|
84
84
|
"description": "",
|
|
85
85
|
"composition": true,
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
{
|
|
183
183
|
"id": "button-background-override",
|
|
184
184
|
"name": "BackgroundOverride",
|
|
185
|
-
"template": "<style>\n nve-button.custom {\n --color: var(--nve-sys-text-black-color);\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, var(--nve-ref-color-yellow-amber-900) 60%);\n &:hover {\n --background-image: linear-gradient(
|
|
185
|
+
"template": "<style>\n nve-button.custom {\n --color: var(--nve-sys-text-black-color);\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, var(--nve-ref-color-yellow-amber-900) 60%);\n &:hover {\n --background-image: linear-gradient(340deg, rgb(255 234 177) 0%, color-mix(in oklab, var(--nve-ref-color-yellow-amber-900) 100%, #000 4%) 60%);\n }\n }\n</style>\n<nve-button class=\"custom\">Create Account</nve-button>\n<nve-button>Create Account</nve-button>\n",
|
|
186
186
|
"summary": "Override button appearance with custom CSS properties for brand-specific designs while maintaining functionality.",
|
|
187
187
|
"description": "",
|
|
188
188
|
"composition": false,
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
{
|
|
223
223
|
"id": "button-contrast-colored-backgrounds",
|
|
224
224
|
"name": "ContrastColoredBackgrounds",
|
|
225
|
-
"template": "<div nve-layout=\"column gap:lg\" style=\"width: 280px\">\n <nve-toolbar status=\"accent\">\n <div nve-text=\"label medium sm\">10 Selected</div>\n <nve-button slot=\"suffix\">Edit</nve-button>\n </nve-toolbar>\n <nve-alert-group status=\"danger\">\n <nve-alert> Error Detected <nve-button slot=\"actions\" container=\"flat\">Review</nve-button> </nve-alert>\n </nve-alert-group>\n <nve-card style=\"width: 280px\">\n <nve-card-content\n style=\"\n width: 100%;\n height: 100%;\n aspect-ratio: 16/9;\n object-fit: cover;\n background: repeating-conic-gradient(var(--nve-sys-layer-overlay-background) 0% 25%, transparent 0% 50%) 50%
|
|
225
|
+
"template": "<div nve-layout=\"column gap:lg\" style=\"width: 280px\">\n <nve-toolbar status=\"accent\">\n <div nve-text=\"label medium sm\">10 Selected</div>\n <nve-button slot=\"suffix\">Edit</nve-button>\n </nve-toolbar>\n <nve-alert-group status=\"danger\">\n <nve-alert> Error Detected <nve-button slot=\"actions\" container=\"flat\">Review</nve-button> </nve-alert>\n </nve-alert-group>\n <nve-card style=\"width: 280px\">\n <nve-card-content\n style=\"\n width: 100%;\n height: 100%;\n aspect-ratio: 16/9;\n object-fit: cover;\n background: repeating-conic-gradient(var(--nve-sys-layer-overlay-background) 0% 25%, transparent 0% 50%) 50% / 40px 40px;\n background-position: center;\n border-style: hidden;\n \"\n >\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\" style=\"margin-left: auto\">Cancel</nve-button>\n <nve-button>action</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n</div>\n",
|
|
226
226
|
"summary": "Use standard interaction styling to keep buttons readable on contrasting backgrounds in light and dark themes. This pattern verifies the static button colors that deliver the intended contrast for each theme.",
|
|
227
227
|
"description": "",
|
|
228
228
|
"composition": true,
|
package/dist/button/button2.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{
|
|
24
24
|
"id": "card-media-card",
|
|
25
25
|
"name": "MediaCard",
|
|
26
|
-
"template": "<div nve-layout=\"grid gap:md span-items:6 align:stretch\" style=\"max-width: 900px\">\n <nve-card style=\"height: 100%; width: 100%\">\n <img
|
|
26
|
+
"template": "<div nve-layout=\"grid gap:md span-items:6 align:stretch\" style=\"max-width: 900px\">\n <nve-card style=\"height: 100%; width: 100%\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n <nve-card style=\"height: 100%; width: 100%\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n</div>\n",
|
|
27
27
|
"summary": "Cards with media content (images) displayed in a grid layout, ideal for photo galleries, product catalogs, or visual content showcases.",
|
|
28
28
|
"description": "",
|
|
29
29
|
"composition": false,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{
|
|
42
42
|
"id": "card-description-list",
|
|
43
43
|
"name": "DescriptionList",
|
|
44
|
-
"template": "<nve-card style=\"width: 650px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Nautical Terms</h2>\n </nve-card-header>\n <nve-card-content>\n <dl nve-layout=\"grid gap:lg\">\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Knot</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Knot is a unit of speed equaling 1 nautical mile per hour.</dd>\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Port</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\"
|
|
44
|
+
"template": "<nve-card style=\"width: 650px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Nautical Terms</h2>\n </nve-card-header>\n <nve-card-content>\n <dl nve-layout=\"grid gap:lg\">\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Knot</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Knot is a unit of speed equaling 1 nautical mile per hour.</dd>\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Port</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Port is the nautical term that refers to the left side of a ship, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Starboard</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Starboard is the nautical term that refers to the right side of a vessel, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n </dl>\n </nve-card-content>\n</nve-card>\n",
|
|
45
45
|
"summary": "Card containing a description list layout, perfect for displaying key-value pairs, definitions, or structured data in a readable format.",
|
|
46
46
|
"description": "",
|
|
47
47
|
"composition": false,
|
package/dist/card/card2.js
CHANGED
|
@@ -16,7 +16,7 @@ var d = class extends c {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-card",
|
|
19
|
-
version: "2.
|
|
19
|
+
version: "2.9.0"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
@@ -37,7 +37,7 @@ var f = class extends c {
|
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-card-header",
|
|
40
|
-
version: "2.
|
|
40
|
+
version: "2.9.0",
|
|
41
41
|
parents: ["nve-card"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ var p = class extends c {
|
|
|
53
53
|
static {
|
|
54
54
|
this.metadata = {
|
|
55
55
|
tag: "nve-card-content",
|
|
56
|
-
version: "2.
|
|
56
|
+
version: "2.9.0",
|
|
57
57
|
parents: ["nve-card"]
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ var m = class extends c {
|
|
|
72
72
|
static {
|
|
73
73
|
this.metadata = {
|
|
74
74
|
tag: "nve-card-footer",
|
|
75
|
-
version: "2.
|
|
75
|
+
version: "2.9.0",
|
|
76
76
|
parents: ["nve-card"]
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "chat-message-arrow-position",
|
|
16
16
|
"name": "ArrowPosition",
|
|
17
|
-
"template": "<section nve-layout=\"column gap:lg\">\n <nve-chat-message>Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message arrow-position=\"top-start\"
|
|
17
|
+
"template": "<section nve-layout=\"column gap:lg\">\n <nve-chat-message>Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message arrow-position=\"top-start\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message arrow-position=\"top-end\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message arrow-position=\"bottom-start\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message arrow-position=\"bottom-end\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n</section>\n",
|
|
18
18
|
"summary": "Different arrow positions for chat messages. Useful for creating chat bubbles that point to specific elements or users.",
|
|
19
19
|
"description": "",
|
|
20
20
|
"composition": false,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "chat-message-flat",
|
|
27
27
|
"name": "Flat",
|
|
28
|
-
"template": "<section nve-layout=\"column gap:lg full\">\n <nve-chat-message container=\"flat\">\n <nve-avatar slot=\"prefix\" color=\"green-grass\">AI</nve-avatar>\n Your deployment completed successfully. All services are running as expected.\n </nve-chat-message>\n <nve-chat-message container=\"flat\" style=\"width: 300px\">\n <nve-avatar slot=\"prefix\" color=\"green-grass\">AI</nve-avatar>\n The build pipeline finished processing all stages. Tests passed with 98% coverage, and the deployment to staging was
|
|
28
|
+
"template": "<section nve-layout=\"column gap:lg full\">\n <nve-chat-message container=\"flat\">\n <nve-avatar slot=\"prefix\" color=\"green-grass\">AI</nve-avatar>\n Your deployment completed successfully. All services are running as expected.\n </nve-chat-message>\n <nve-chat-message container=\"flat\" style=\"width: 300px\">\n <nve-avatar slot=\"prefix\" color=\"green-grass\">AI</nve-avatar>\n The build pipeline finished processing all stages. Tests passed with 98% coverage, and the deployment to staging was successful. Review the detailed logs in the CI dashboard for more information.\n </nve-chat-message>\n</section>\n",
|
|
29
29
|
"summary": "Flat container style with avatar integration. Perfect for modern chat interfaces where messages have a cleaner, flatter appearance.",
|
|
30
30
|
"description": "",
|
|
31
31
|
"composition": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
{
|
|
44
44
|
"id": "chat-message-codeblock",
|
|
45
45
|
"name": "Codeblock",
|
|
46
|
-
"template": "<section nve-layout=\"column gap:lg full\">\n <nve-chat-message container=\"flat\" style=\"margin-left: auto\"
|
|
46
|
+
"template": "<section nve-layout=\"column gap:lg full\">\n <nve-chat-message container=\"flat\" style=\"margin-left: auto\"> How do I use the chat message component? </nve-chat-message>\n <nve-chat-message container=\"flat\">\n Here's the steps you need to do follow to use the chat message component\n <nve-codeblock language=\"typescript\">\n import '@nvidia-elements/core/chat-message/define.js';\n <code nve-text=\"code\"><nve-chat-message></nve-chat-message></code>\n </nve-codeblock>\n </nve-chat-message>\n</section>\n",
|
|
47
47
|
"summary": "Chat messages with code blocks for technical discussions. Perfect for developer chat interfaces or documentation systems.",
|
|
48
48
|
"description": "",
|
|
49
49
|
"composition": false,
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
{
|
|
64
64
|
"id": "chat-message-color",
|
|
65
65
|
"name": "Color",
|
|
66
|
-
"template": "<section nve-layout=\"column gap:md\">\n <nve-chat-message>Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"red-cardinal\"
|
|
66
|
+
"template": "<section nve-layout=\"column gap:md\">\n <nve-chat-message>Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"red-cardinal\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"gray-slate\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"gray-denim\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"blue-indigo\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"blue-cobalt\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"blue-sky\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"teal-cyan\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"green-mint\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"teal-seafoam\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"green-grass\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"yellow-amber\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"orange-pumpkin\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"red-tomato\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"pink-magenta\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"purple-plum\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"purple-violet\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"purple-lavender\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"pink-rose\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"green-jade\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"lime-pear\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"yellow-nova\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n <nve-chat-message color=\"brand-green\">Your deployment completed successfully. All services are running as expected.</nve-chat-message>\n</section>\n",
|
|
67
67
|
"summary": "All available color variants for chat messages. Use these to create themed chat interfaces or to differentiate message types and priorities.",
|
|
68
68
|
"description": "",
|
|
69
69
|
"composition": false,
|
package/dist/color/color2.js
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
{
|
|
62
62
|
"id": "combobox-selected-first",
|
|
63
63
|
"name": "SelectedFirst",
|
|
64
|
-
"template": "<nve-combobox id=\"combobox-selected-first\" style=\"width: 500px; --scroll-height: 220px\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n <option value=\"includes\"></option>\n <option value=\"user\"></option>\n <option value=\"progress\"></option>\n </select>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n<script type=\"module\">\n const combobox = document.querySelector(\"#combobox-selected-first\");\n const select = combobox.querySelector(\"select\");\n const optionOrder = new Map([...select.options].map((option, index) => [option, index]));\n combobox.addEventListener(\"open\", () => {\n const selectedOrder = new Map([...select.selectedOptions].map((option, index) => [option, index]));\n Array.from(select.options)\n .sort((a, b)
|
|
64
|
+
"template": "<nve-combobox id=\"combobox-selected-first\" style=\"width: 500px; --scroll-height: 220px\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n <option value=\"includes\"></option>\n <option value=\"user\"></option>\n <option value=\"progress\"></option>\n </select>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n<script type=\"module\">\n const combobox = document.querySelector(\"#combobox-selected-first\");\n const select = combobox.querySelector(\"select\");\n const optionOrder = new Map([...select.options].map((option, index) => [option, index]));\n combobox.addEventListener(\"open\", () => {\n const selectedOrder = new Map([...select.selectedOptions].map((option, index) => [option, index]));\n Array.from(select.options)\n .sort((a, b) => (Number(b.selected) - Number(a.selected) || (a.selected && b.selected) ? selectedOrder.get(a) - selectedOrder.get(b) : optionOrder.get(a) - optionOrder.get(b)))\n .forEach((option) => select.append(option));\n });\n</script>\n",
|
|
65
65
|
"summary": "Multi-select that reorders selected options before unselected options after the combobox closes. Use when long filter lists need selected values to stay easy to review.",
|
|
66
66
|
"description": "",
|
|
67
67
|
"composition": false,
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
{
|
|
131
131
|
"id": "combobox-reset",
|
|
132
132
|
"name": "Reset",
|
|
133
|
-
"template": "<nve-combobox id=\"combobox-reset\" style=\"width: 500px; --scroll-height: 220px\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </select>\n <nve-icon-button aria-label=\"clear selection\" icon-name=\"cancel\" container=\"inline\"></nve-icon-button>\n <nve-button slot=\"footer\" aria-label=\"clear selection\" container=\"flat\">reset</nve-button>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n<script type=\"module\">\n document
|
|
133
|
+
"template": "<nve-combobox id=\"combobox-reset\" style=\"width: 500px; --scroll-height: 220px\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </select>\n <nve-icon-button aria-label=\"clear selection\" icon-name=\"cancel\" container=\"inline\"></nve-icon-button>\n <nve-button slot=\"footer\" aria-label=\"clear selection\" container=\"flat\">reset</nve-button>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n<script type=\"module\">\n document.querySelector(\"#combobox-reset nve-icon-button\").addEventListener(\"click\", (e) => e.target.parentElement.reset());\n document.querySelector(\"#combobox-reset nve-button\").addEventListener(\"click\", (e) => e.target.parentElement.reset());\n</script>\n",
|
|
134
134
|
"summary": "Multi-select with reset functionality via icon button and footer button to clear all selections.",
|
|
135
135
|
"description": "",
|
|
136
136
|
"composition": true,
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
{
|
|
167
167
|
"id": "combobox-no-tags",
|
|
168
168
|
"name": "NoTags",
|
|
169
|
-
"template": "<form id=\"hidden-tags\" nve-layout=\"column gap:lg align:stretch\">\n <nve-combobox tag-layout=\"hidden\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option selected value=\"status\"></option>\n <option selected value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </select>\n </nve-combobox>\n <div id=\"tags\" nve-layout=\"row gap:xs\"></div>\n</form>\n<script type=\"module\">\n const form = document.querySelector(\"#hidden-tags\");\n const select = form.querySelector(\"select\");\n const tags = form.querySelector(\"#tags\");\n updateTags();\n select.addEventListener(\"change\", (e) => updateTags());\n tags.addEventListener(\"close\", (e) => {\n Array.from(select.options).find((o) => o.value === e.target.value).selected = false;\n updateTags();\n });\n function updateTags() {\n tags.innerHTML = \"\";\n Array.from(select.selectedOptions).forEach(
|
|
169
|
+
"template": "<form id=\"hidden-tags\" nve-layout=\"column gap:lg align:stretch\">\n <nve-combobox tag-layout=\"hidden\">\n <label>label</label>\n <input type=\"search\" />\n <select multiple>\n <option selected value=\"status\"></option>\n <option selected value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </select>\n </nve-combobox>\n <div id=\"tags\" nve-layout=\"row gap:xs\"></div>\n</form>\n<script type=\"module\">\n const form = document.querySelector(\"#hidden-tags\");\n const select = form.querySelector(\"select\");\n const tags = form.querySelector(\"#tags\");\n updateTags();\n select.addEventListener(\"change\", (e) => updateTags());\n tags.addEventListener(\"close\", (e) => {\n Array.from(select.options).find((o) => o.value === e.target.value).selected = false;\n updateTags();\n });\n function updateTags() {\n tags.innerHTML = \"\";\n Array.from(select.selectedOptions).forEach((o) => (tags.innerHTML += '<nve-tag closable value=\"' + o.value + '\">' + o.value + \"</nve-tag>\"));\n }\n</script>\n",
|
|
170
170
|
"summary": "Multi-select without built-in tags, using external tag management for custom selection display.",
|
|
171
171
|
"description": "",
|
|
172
172
|
"composition": false,
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
{
|
|
196
196
|
"id": "combobox-dynamic-typeahead-search",
|
|
197
197
|
"name": "DynamicTypeaheadSearch",
|
|
198
|
-
"template": "<nve-combobox id=\"combobox\">\n <label>GPU Search</label>\n <input type=\"search\" placeholder=\"Type to search…\" />\n <datalist>\n <option disabled selected></option>\n </datalist>\n</nve-combobox>\n<script type=\"module\">\n const combobox = document.getElementById(\"combobox\");\n const input = combobox.querySelector(\"input\");\n const datalist = combobox.querySelector(\"datalist\");\n let controller = null;\n input.addEventListener(\"input\", async () => {\n if (controller) controller.abort();\n controller = new AbortController();\n const query = input.value.trim();\n if (!query) {\n datalist.innerHTML = \"\";\n return;\n }\n try {\n const results = await mockFetch(query, controller.signal);\n datalist.innerHTML = results.map((v) => '<option value=\"' + v + '\">').join(\"\");\n } catch (err) {\n if (err.name !== \"AbortError\") datalist.innerHTML = \"\";\n }\n });\n function mockFetch(query, signal) {\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n resolve(
|
|
198
|
+
"template": "<nve-combobox id=\"combobox\">\n <label>GPU Search</label>\n <input type=\"search\" placeholder=\"Type to search…\" />\n <datalist>\n <option disabled selected></option>\n </datalist>\n</nve-combobox>\n<script type=\"module\">\n const combobox = document.getElementById(\"combobox\");\n const input = combobox.querySelector(\"input\");\n const datalist = combobox.querySelector(\"datalist\");\n let controller = null;\n input.addEventListener(\"input\", async () => {\n if (controller) controller.abort();\n controller = new AbortController();\n const query = input.value.trim();\n if (!query) {\n datalist.innerHTML = \"\";\n return;\n }\n try {\n const results = await mockFetch(query, controller.signal);\n datalist.innerHTML = results.map((v) => '<option value=\"' + v + '\">').join(\"\");\n } catch (err) {\n if (err.name !== \"AbortError\") datalist.innerHTML = \"\";\n }\n });\n function mockFetch(query, signal) {\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n resolve([\"A100 GPU\", \"H100 GPU\", \"H200 GPU\", \"DGX A100\", \"DGX H100\", \"CUDA Toolkit\"].filter((v) => v.toLowerCase().startsWith(query.toLowerCase())));\n }, 500);\n signal.addEventListener(\"abort\", () => {\n clearTimeout(timer);\n reject(new DOMException(\"Aborted\", \"AbortError\"));\n });\n });\n }\n</script>\n",
|
|
199
199
|
"summary": "Fetches options asynchronously as the user types, cancelling stale requests with AbortController. Use for server-backed search where the full option set is too large to load up front.",
|
|
200
200
|
"description": "",
|
|
201
201
|
"composition": false,
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
{
|
|
207
207
|
"id": "combobox-infinite-scroll",
|
|
208
208
|
"name": "InfiniteScroll",
|
|
209
|
-
"template": "<nve-combobox id=\"infinite-scroll-combo\" style=\"--scroll-height: 200px\">\n <label>GPU Models</label>\n <input type=\"search\" placeholder=\"Scroll to load more…\" />\n <datalist id=\"infinite-scroll-list\"></datalist>\n</nve-combobox>\n<script type=\"module\">\n const combo = document.getElementById(\"infinite-scroll-combo\");\n const datalist = document.getElementById(\"infinite-scroll-list\");\n let loading = false;\n async function loadBatch() {\n if (loading) return;\n loading = true;\n const items = await new Promise((resolve)
|
|
209
|
+
"template": "<nve-combobox id=\"infinite-scroll-combo\" style=\"--scroll-height: 200px\">\n <label>GPU Models</label>\n <input type=\"search\" placeholder=\"Scroll to load more…\" />\n <datalist id=\"infinite-scroll-list\"></datalist>\n</nve-combobox>\n<script type=\"module\">\n const combo = document.getElementById(\"infinite-scroll-combo\");\n const datalist = document.getElementById(\"infinite-scroll-list\");\n let loading = false;\n async function loadBatch() {\n if (loading) return;\n loading = true;\n const items = await new Promise((resolve) => setTimeout(() => resolve(Array.from({ length: 100 }, (_, i) => \"GPU Model \" + (datalist.options.length + i + 1))), 300));\n datalist.append(...items.map((v) => new Option(v)));\n loading = false;\n }\n loadBatch();\n combo.addEventListener(\"scroll\", (e) => {\n if (e.detail.scrollHeight - e.detail.scrollTop - e.detail.clientHeight <= 128) {\n loadBatch();\n }\n });\n</script>\n",
|
|
210
210
|
"summary": "Infinite scroll combobox loading, using the scroll event to append options as the user nears the end of the list. Use for server-backed datasets where loading all options up front is impractical.",
|
|
211
211
|
"description": "",
|
|
212
212
|
"composition": false,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
{
|
|
57
57
|
"id": "copy-button-hint",
|
|
58
58
|
"name": "Hint",
|
|
59
|
-
"template": "<h2 nve-text=\"body lg\" nve-layout=\"row align:vertical-center\">\n 2d628479c...\n <nve-copy-button
|
|
59
|
+
"template": "<h2 nve-text=\"body lg\" nve-layout=\"row align:vertical-center\">\n 2d628479c...\n <nve-copy-button container=\"flat\" value=\"2d628479cf2db27cbdebbfe41a42f1c9e07c46a8\" aria-label=\"2d628479cf2db27cbdebbfe41a42f1c9e07c46a8\" behavior-copy></nve-copy-button>\n</h2>\n",
|
|
60
60
|
"summary": "Copy button integrated with text content, showing how to copy truncated values like commit hashes. Perfect for code snippets, IDs, or other long text that users copy while viewing a shortened version.",
|
|
61
61
|
"description": "",
|
|
62
62
|
"composition": false,
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
{
|
|
86
86
|
"id": "copy-button-tooltip-position-override",
|
|
87
87
|
"name": "TooltipPositionOverride",
|
|
88
|
-
"template": "<style>\n nve-copy-button.override-position-example {\n &::part(tooltip-arrow) {\n position-area: right center;\n translate: -50% 0%;\n transform: translate(-2px, 0) rotate(45deg);\n }\n }\n</style>\n<nve-copy-button
|
|
88
|
+
"template": "<style>\n nve-copy-button.override-position-example {\n &::part(tooltip-arrow) {\n position-area: right center;\n translate: -50% 0%;\n transform: translate(-2px, 0) rotate(45deg);\n }\n }\n</style>\n<nve-copy-button class=\"override-position-example\" value=\"hello\" aria-label=\"copy value\" behavior-copy style=\"position: absolute; top: 12px; right: 12px\"></nve-copy-button>\n",
|
|
89
89
|
"summary": "Popover position override in a copy button.",
|
|
90
90
|
"description": "",
|
|
91
91
|
"composition": false,
|
|
@@ -4004,6 +4004,70 @@ export type TreeProps = {
|
|
|
4004
4004
|
onselect?: (e: CustomEvent<never>) => void;
|
|
4005
4005
|
};
|
|
4006
4006
|
|
|
4007
|
+
export type ViewportGridlinesProps = {
|
|
4008
|
+
/** Content-space x coordinate of the grid origin. */
|
|
4009
|
+
"origin-x"?: number;
|
|
4010
|
+
/** Content-space y coordinate of the grid origin. */
|
|
4011
|
+
"origin-y"?: number;
|
|
4012
|
+
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
4013
|
+
"target-spacing"?: number;
|
|
4014
|
+
/** Smallest gridline interval in content-space units. */
|
|
4015
|
+
step?: number;
|
|
4016
|
+
/** Content-space x coordinate of the grid origin. */
|
|
4017
|
+
originX?: number;
|
|
4018
|
+
/** Content-space y coordinate of the grid origin. */
|
|
4019
|
+
originY?: number;
|
|
4020
|
+
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
4021
|
+
targetSpacing?: number;
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4024
|
+
export type ViewportProps = {
|
|
4025
|
+
/** Inclusive lower scale limit. */
|
|
4026
|
+
"min-scale"?: number;
|
|
4027
|
+
/** Inclusive upper scale limit. */
|
|
4028
|
+
"max-scale"?: number;
|
|
4029
|
+
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
4030
|
+
"behavior-pan"?: boolean | "space";
|
|
4031
|
+
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
4032
|
+
"behavior-zoom"?: boolean;
|
|
4033
|
+
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
4034
|
+
"fit-inset"?: number;
|
|
4035
|
+
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
4036
|
+
"drag-threshold"?: number;
|
|
4037
|
+
/** Horizontal content-space coordinate at the viewport origin. */
|
|
4038
|
+
x?: number;
|
|
4039
|
+
/** Vertical content-space coordinate at the viewport origin. */
|
|
4040
|
+
y?: number;
|
|
4041
|
+
/** Content-to-viewport CSS-pixel scale. */
|
|
4042
|
+
scale?: number;
|
|
4043
|
+
/** Inclusive lower scale limit. */
|
|
4044
|
+
minScale?: number;
|
|
4045
|
+
/** Inclusive upper scale limit. */
|
|
4046
|
+
maxScale?: number;
|
|
4047
|
+
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
4048
|
+
behaviorPan?: boolean | "space";
|
|
4049
|
+
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
4050
|
+
behaviorZoom?: boolean;
|
|
4051
|
+
/** Fits measurable direct default-slot content once after initial layout. */
|
|
4052
|
+
autoFit?: boolean;
|
|
4053
|
+
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
4054
|
+
fitInset?: number;
|
|
4055
|
+
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
4056
|
+
dragThreshold?: number;
|
|
4057
|
+
/** Dispatched once after a render that commits one or more viewport transform changes. */
|
|
4058
|
+
onviewportchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
4059
|
+
/** */
|
|
4060
|
+
ontype?: (e: CustomEvent<CustomEvent>) => void;
|
|
4061
|
+
/** Dispatched when pointer movement crosses the pan threshold. Cancel to disable built-in pointer panning for the sequence. */
|
|
4062
|
+
onpanstart?: (e: CustomEvent<never>) => void;
|
|
4063
|
+
/** Dispatched when pointer, wheel, keyboard, or command input requests a pan. Cancel to skip the proposed transform mutation. */
|
|
4064
|
+
onpan?: (e: CustomEvent<never>) => void;
|
|
4065
|
+
/** Dispatched when a pointer pan ends, including its terminal reason. */
|
|
4066
|
+
onpanend?: (e: CustomEvent<never>) => void;
|
|
4067
|
+
/** Dispatched when wheel, pinch, or command input requests a scale change. Cancel to skip the proposed transform mutation. */
|
|
4068
|
+
onzoom?: (e: CustomEvent<never>) => void;
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4007
4071
|
export type WeekProps = {
|
|
4008
4072
|
/** 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) */
|
|
4009
4073
|
"fit-text"?: boolean;
|
|
@@ -6363,7 +6427,9 @@ export type CustomElements = {
|
|
|
6363
6427
|
* - **reset()** - Resets control value to initial attribute value and clears any active validation rules.
|
|
6364
6428
|
*
|
|
6365
6429
|
* ### **Slots:**
|
|
6366
|
-
* -
|
|
6430
|
+
* - **prefix** - Content to display before the textarea.
|
|
6431
|
+
* - **suffix** - Content to display after the textarea.
|
|
6432
|
+
* - _default_ - Control input element
|
|
6367
6433
|
* - **label** - Label element
|
|
6368
6434
|
*
|
|
6369
6435
|
* ### **CSS Properties:**
|
|
@@ -6631,6 +6697,51 @@ export type CustomElements = {
|
|
|
6631
6697
|
*/
|
|
6632
6698
|
"nve-tree": Partial<TreeProps & BaseProps & BaseEvents>;
|
|
6633
6699
|
|
|
6700
|
+
/**
|
|
6701
|
+
* Renders origin-stable, zoom-adaptive gridlines behind viewport content.
|
|
6702
|
+
* ---
|
|
6703
|
+
*
|
|
6704
|
+
*
|
|
6705
|
+
* ### **CSS Properties:**
|
|
6706
|
+
* - **--color** - Sets the gridline stroke color. _(default: undefined)_
|
|
6707
|
+
* - **--line-width** - Sets the approximate stroke width in CSS pixels. _(default: undefined)_
|
|
6708
|
+
*/
|
|
6709
|
+
"nve-viewport-gridlines": Partial<ViewportGridlinesProps & BaseProps & BaseEvents>;
|
|
6710
|
+
|
|
6711
|
+
/**
|
|
6712
|
+
* A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.
|
|
6713
|
+
* ---
|
|
6714
|
+
*
|
|
6715
|
+
*
|
|
6716
|
+
* ### **Events:**
|
|
6717
|
+
* - **viewportchange** - Dispatched once after a render that commits one or more viewport transform changes.
|
|
6718
|
+
* - **type**
|
|
6719
|
+
* - **panstart** - Dispatched when pointer movement crosses the pan threshold. Cancel to disable built-in pointer panning for the sequence.
|
|
6720
|
+
* - **pan** - Dispatched when pointer, wheel, keyboard, or command input requests a pan. Cancel to skip the proposed transform mutation.
|
|
6721
|
+
* - **panend** - Dispatched when a pointer pan ends, including its terminal reason.
|
|
6722
|
+
* - **zoom** - Dispatched when wheel, pinch, or command input requests a scale change. Cancel to skip the proposed transform mutation.
|
|
6723
|
+
*
|
|
6724
|
+
* ### **Methods:**
|
|
6725
|
+
* - **toViewportCoords(contentX: _number_, contentY: _number_): _ViewportPoint_** - Converts a content-space point to viewport CSS pixels.
|
|
6726
|
+
* - **toContentCoords(viewportX: _number_, viewportY: _number_): _ViewportPoint_** - Converts a viewport CSS-pixel point to content space.
|
|
6727
|
+
* - **getTransform(): _ViewportTransform_** - Returns the current content-space origin and CSS-pixel scale.
|
|
6728
|
+
* - **getVisibleRect(): _ViewportRect_** - Returns the visible content-space rectangle.
|
|
6729
|
+
* - **animateTo(target: _Partial<ViewportTransform>_, options: _ViewportAnimationOptions_): _void_** - Animates the viewport to the requested partial transform.
|
|
6730
|
+
* - **reveal(region: _{ x: number; y: number; width?: number; height?: number }_, options: _ViewportRevealOptions_): _void_** - Centers or fits a content-space region within the viewport.
|
|
6731
|
+
* - **fitContents(options: _ViewportRevealOptions_): _void_** - Fits the union of direct default-slot element boxes within the viewport.
|
|
6732
|
+
*
|
|
6733
|
+
* ### **Slots:**
|
|
6734
|
+
* - _default_ - Content positioned in the viewport's infinite content space.
|
|
6735
|
+
* - **background** - Custom content rendered behind viewport content and excluded from content fitting
|
|
6736
|
+
*
|
|
6737
|
+
* ### **CSS Properties:**
|
|
6738
|
+
* - **--background** - Background color of the fixed viewport area. _(default: undefined)_
|
|
6739
|
+
* - **--min-height** - undefined _(default: undefined)_
|
|
6740
|
+
* - **--pan-cursor** - Cursor shown over a background eligible for primary-pointer panning. _(default: undefined)_
|
|
6741
|
+
* - **--panning-cursor** - Cursor shown while a pointer pan is active. _(default: undefined)_
|
|
6742
|
+
*/
|
|
6743
|
+
"nve-viewport": Partial<ViewportProps & BaseProps & BaseEvents>;
|
|
6744
|
+
|
|
6634
6745
|
/**
|
|
6635
6746
|
* A week picker is a control that enables users to choose a week value.
|
|
6636
6747
|
* ---
|
|
@@ -3766,6 +3766,68 @@ type TreeProps = {
|
|
|
3766
3766
|
onselect?: (e: CustomEvent<never>) => void;
|
|
3767
3767
|
};
|
|
3768
3768
|
|
|
3769
|
+
type ViewportGridlinesProps = {
|
|
3770
|
+
/** Content-space x coordinate of the grid origin. */
|
|
3771
|
+
"origin-x"?: number;
|
|
3772
|
+
/** Content-space y coordinate of the grid origin. */
|
|
3773
|
+
"origin-y"?: number;
|
|
3774
|
+
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
3775
|
+
"target-spacing"?: number;
|
|
3776
|
+
/** Smallest gridline interval in content-space units. */
|
|
3777
|
+
step?: number;
|
|
3778
|
+
/** Content-space x coordinate of the grid origin. */
|
|
3779
|
+
originX?: number;
|
|
3780
|
+
/** Content-space y coordinate of the grid origin. */
|
|
3781
|
+
originY?: number;
|
|
3782
|
+
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
3783
|
+
targetSpacing?: number;
|
|
3784
|
+
};
|
|
3785
|
+
|
|
3786
|
+
type ViewportProps = {
|
|
3787
|
+
/** Inclusive lower scale limit. */
|
|
3788
|
+
"min-scale"?: number;
|
|
3789
|
+
/** Inclusive upper scale limit. */
|
|
3790
|
+
"max-scale"?: number;
|
|
3791
|
+
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
3792
|
+
"behavior-pan"?: boolean | "space";
|
|
3793
|
+
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
3794
|
+
"fit-inset"?: number;
|
|
3795
|
+
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
3796
|
+
"drag-threshold"?: number;
|
|
3797
|
+
/** Horizontal content-space coordinate at the viewport origin. */
|
|
3798
|
+
x?: number;
|
|
3799
|
+
/** Vertical content-space coordinate at the viewport origin. */
|
|
3800
|
+
y?: number;
|
|
3801
|
+
/** Content-to-viewport CSS-pixel scale. */
|
|
3802
|
+
scale?: number;
|
|
3803
|
+
/** Inclusive lower scale limit. */
|
|
3804
|
+
minScale?: number;
|
|
3805
|
+
/** Inclusive upper scale limit. */
|
|
3806
|
+
maxScale?: number;
|
|
3807
|
+
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
3808
|
+
behaviorPan?: boolean | "space";
|
|
3809
|
+
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
3810
|
+
behaviorZoom?: boolean;
|
|
3811
|
+
/** Fits measurable direct default-slot content once after initial layout. */
|
|
3812
|
+
autoFit?: boolean;
|
|
3813
|
+
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
3814
|
+
fitInset?: number;
|
|
3815
|
+
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
3816
|
+
dragThreshold?: number;
|
|
3817
|
+
/** Dispatched once after a render that commits one or more viewport transform changes. */
|
|
3818
|
+
onviewportchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
3819
|
+
/** */
|
|
3820
|
+
ontype?: (e: CustomEvent<CustomEvent>) => void;
|
|
3821
|
+
/** Dispatched when pointer movement crosses the pan threshold. Cancel to disable built-in pointer panning for the sequence. */
|
|
3822
|
+
onpanstart?: (e: CustomEvent<never>) => void;
|
|
3823
|
+
/** Dispatched when pointer, wheel, keyboard, or command input requests a pan. Cancel to skip the proposed transform mutation. */
|
|
3824
|
+
onpan?: (e: CustomEvent<never>) => void;
|
|
3825
|
+
/** Dispatched when a pointer pan ends, including its terminal reason. */
|
|
3826
|
+
onpanend?: (e: CustomEvent<never>) => void;
|
|
3827
|
+
/** Dispatched when wheel, pinch, or command input requests a scale change. Cancel to skip the proposed transform mutation. */
|
|
3828
|
+
onzoom?: (e: CustomEvent<never>) => void;
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3769
3831
|
type WeekProps = {
|
|
3770
3832
|
/** Reduces the visual container for a minimal borderless appearance while preserving whitespace bounds.
|
|
3771
3833
|
Use when embedding within another container such as a toolbar. */
|
|
@@ -6121,7 +6183,9 @@ export type CustomElements = {
|
|
|
6121
6183
|
* - **reset()** - Resets control value to initial attribute value and clears any active validation rules.
|
|
6122
6184
|
*
|
|
6123
6185
|
* ### **Slots:**
|
|
6124
|
-
* -
|
|
6186
|
+
* - **prefix** - Content to display before the textarea.
|
|
6187
|
+
* - **suffix** - Content to display after the textarea.
|
|
6188
|
+
* - _default_ - Control input element
|
|
6125
6189
|
* - **label** - Label element
|
|
6126
6190
|
*
|
|
6127
6191
|
* ### **CSS Properties:**
|
|
@@ -6389,6 +6453,51 @@ export type CustomElements = {
|
|
|
6389
6453
|
*/
|
|
6390
6454
|
"nve-tree": DefineComponent<TreeProps>;
|
|
6391
6455
|
|
|
6456
|
+
/**
|
|
6457
|
+
* Renders origin-stable, zoom-adaptive gridlines behind viewport content.
|
|
6458
|
+
* ---
|
|
6459
|
+
*
|
|
6460
|
+
*
|
|
6461
|
+
* ### **CSS Properties:**
|
|
6462
|
+
* - **--color** - Sets the gridline stroke color. _(default: undefined)_
|
|
6463
|
+
* - **--line-width** - Sets the approximate stroke width in CSS pixels. _(default: undefined)_
|
|
6464
|
+
*/
|
|
6465
|
+
"nve-viewport-gridlines": DefineComponent<ViewportGridlinesProps>;
|
|
6466
|
+
|
|
6467
|
+
/**
|
|
6468
|
+
* A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.
|
|
6469
|
+
* ---
|
|
6470
|
+
*
|
|
6471
|
+
*
|
|
6472
|
+
* ### **Events:**
|
|
6473
|
+
* - **viewportchange** - Dispatched once after a render that commits one or more viewport transform changes.
|
|
6474
|
+
* - **type**
|
|
6475
|
+
* - **panstart** - Dispatched when pointer movement crosses the pan threshold. Cancel to disable built-in pointer panning for the sequence.
|
|
6476
|
+
* - **pan** - Dispatched when pointer, wheel, keyboard, or command input requests a pan. Cancel to skip the proposed transform mutation.
|
|
6477
|
+
* - **panend** - Dispatched when a pointer pan ends, including its terminal reason.
|
|
6478
|
+
* - **zoom** - Dispatched when wheel, pinch, or command input requests a scale change. Cancel to skip the proposed transform mutation.
|
|
6479
|
+
*
|
|
6480
|
+
* ### **Methods:**
|
|
6481
|
+
* - **toViewportCoords(contentX: _number_, contentY: _number_): _ViewportPoint_** - Converts a content-space point to viewport CSS pixels.
|
|
6482
|
+
* - **toContentCoords(viewportX: _number_, viewportY: _number_): _ViewportPoint_** - Converts a viewport CSS-pixel point to content space.
|
|
6483
|
+
* - **getTransform(): _ViewportTransform_** - Returns the current content-space origin and CSS-pixel scale.
|
|
6484
|
+
* - **getVisibleRect(): _ViewportRect_** - Returns the visible content-space rectangle.
|
|
6485
|
+
* - **animateTo(target: _Partial<ViewportTransform>_, options: _ViewportAnimationOptions_): _void_** - Animates the viewport to the requested partial transform.
|
|
6486
|
+
* - **reveal(region: _{ x: number; y: number; width?: number; height?: number }_, options: _ViewportRevealOptions_): _void_** - Centers or fits a content-space region within the viewport.
|
|
6487
|
+
* - **fitContents(options: _ViewportRevealOptions_): _void_** - Fits the union of direct default-slot element boxes within the viewport.
|
|
6488
|
+
*
|
|
6489
|
+
* ### **Slots:**
|
|
6490
|
+
* - _default_ - Content positioned in the viewport's infinite content space.
|
|
6491
|
+
* - **background** - Custom content rendered behind viewport content and excluded from content fitting
|
|
6492
|
+
*
|
|
6493
|
+
* ### **CSS Properties:**
|
|
6494
|
+
* - **--background** - Background color of the fixed viewport area. _(default: undefined)_
|
|
6495
|
+
* - **--min-height** - undefined _(default: undefined)_
|
|
6496
|
+
* - **--pan-cursor** - Cursor shown over a background eligible for primary-pointer panning. _(default: undefined)_
|
|
6497
|
+
* - **--panning-cursor** - Cursor shown while a pointer pan is active. _(default: undefined)_
|
|
6498
|
+
*/
|
|
6499
|
+
"nve-viewport": DefineComponent<ViewportProps>;
|
|
6500
|
+
|
|
6392
6501
|
/**
|
|
6393
6502
|
* A week picker is a control that enables users to choose a week value.
|
|
6394
6503
|
* ---
|