@nvidia-elements/core 2.18.1 → 2.18.2
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 +11 -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/bundles/index.d.ts +3 -3
- package/dist/bundles/index.js +9 -9
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group.d.ts +1 -1
- package/dist/button-group/button-group2.js +4 -2
- package/dist/button-group/button-group2.js.map +1 -1
- package/dist/card/card2.js +7 -9
- package/dist/card/card2.js.map +1 -1
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +5 -5
- package/dist/custom-elements-vue.d.ts +5 -5
- package/dist/custom-elements.json +28 -50
- package/dist/data.html.json +3 -3
- package/dist/data.snippets.json +27 -27
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +8 -11
- package/dist/dialog/dialog-footer2.js.map +1 -1
- package/dist/dialog/dialog-header2.js +8 -11
- package/dist/dialog/dialog-header2.js.map +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 +8 -11
- package/dist/drawer/drawer-content2.js.map +1 -1
- package/dist/drawer/drawer-footer2.js +8 -11
- package/dist/drawer/drawer-footer2.js.map +1 -1
- package/dist/drawer/drawer-header2.js +8 -11
- package/dist/drawer/drawer-header2.js.map +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +8 -11
- package/dist/dropdown/dropdown-footer2.js.map +1 -1
- package/dist/dropdown/dropdown-header2.js +8 -11
- package/dist/dropdown/dropdown-header2.js.map +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +49 -54
- package/dist/format-bytes/format-bytes2.js.map +1 -1
- package/dist/format-datetime/format-datetime2.js +26 -27
- package/dist/format-datetime/format-datetime2.js.map +1 -1
- package/dist/format-number/format-number.d.ts +2 -2
- package/dist/format-number/format-number2.js +37 -38
- package/dist/format-number/format-number2.js.map +1 -1
- package/dist/format-relative-time/format-relative-time2.js +27 -28
- package/dist/format-relative-time/format-relative-time2.js.map +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/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 +7 -7
- 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/controllers/audit.controller.d.ts +0 -2
- package/dist/internal/controllers/audit.controller.js +42 -52
- package/dist/internal/controllers/audit.controller.js.map +1 -1
- package/dist/internal/controllers/keynav-grid.controller.js +11 -11
- package/dist/internal/index.js +28 -28
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/utils/audit-logs.d.ts +1 -1
- package/dist/internal/utils/audit-logs.js +3 -3
- package/dist/internal/utils/audit-logs.js.map +1 -1
- package/dist/internal/utils/audit.d.ts +0 -8
- package/dist/internal/utils/audit.js +1 -5
- package/dist/internal/utils/audit.js.map +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-group2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +19 -20
- package/dist/page/page-panel/page-panel2.js.map +1 -1
- package/dist/page/page2.js +2 -2
- package/dist/page/page2.js.map +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-dot/progress-dot2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs-item-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +8 -11
- package/dist/toggletip/toggletip-footer2.js.map +1 -1
- package/dist/toggletip/toggletip-header2.js +8 -11
- package/dist/toggletip/toggletip-header2.js.map +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/tree.examples.js.map +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +2 -2
package/dist/button/button2.js
CHANGED
|
@@ -7,7 +7,7 @@ import type { KeynavListConfig, Interaction, Size } from '@nvidia-elements/core/
|
|
|
7
7
|
* @documentation https://nvidia.github.io/elements/docs/elements/button-group/
|
|
8
8
|
* @since 0.16.0
|
|
9
9
|
* @entrypoint \@nvidia-elements/core/button-group
|
|
10
|
-
* @slot - default slot for `nve-button` or `nve-
|
|
10
|
+
* @slot - default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`
|
|
11
11
|
* @cssprop --background
|
|
12
12
|
* @cssprop --border-radius
|
|
13
13
|
* @cssprop --padding
|
|
@@ -26,11 +26,13 @@ var f = class extends c {
|
|
|
26
26
|
static {
|
|
27
27
|
this.metadata = {
|
|
28
28
|
tag: "nve-button-group",
|
|
29
|
-
version: "2.18.
|
|
29
|
+
version: "2.18.2",
|
|
30
30
|
children: [
|
|
31
31
|
"nve-button",
|
|
32
32
|
"nve-icon-button",
|
|
33
|
-
"nve-divider"
|
|
33
|
+
"nve-divider",
|
|
34
|
+
"nve-media-seek-button",
|
|
35
|
+
"nve-media-pause-button"
|
|
34
36
|
]
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group2.js","names":[],"sources":["../../src/button-group/button-group.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { KeynavListConfig, Interaction, Size } from '@nvidia-elements/core/internal';\nimport {\n attachInternals,\n keyNavigationList,\n useStyles,\n audit,\n appendRootNodeStyle\n} from '@nvidia-elements/core/internal';\nimport type { IconButton } from '@nvidia-elements/core/icon-button';\nimport type { Button } from '@nvidia-elements/core/button';\nimport type { Divider } from '@nvidia-elements/core/divider';\nimport styles from './button-group.css?inline';\nimport globalStyles from './button-group.global.css?inline';\n\n/**\n * @element nve-button-group\n * @description A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n * @documentation https://nvidia.github.io/elements/docs/elements/button-group/\n * @since 0.16.0\n * @entrypoint \\@nvidia-elements/core/button-group\n * @slot - default slot for `nve-button` or `nve-
|
|
1
|
+
{"version":3,"file":"button-group2.js","names":[],"sources":["../../src/button-group/button-group.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { KeynavListConfig, Interaction, Size } from '@nvidia-elements/core/internal';\nimport {\n attachInternals,\n keyNavigationList,\n useStyles,\n audit,\n appendRootNodeStyle\n} from '@nvidia-elements/core/internal';\nimport type { IconButton } from '@nvidia-elements/core/icon-button';\nimport type { Button } from '@nvidia-elements/core/button';\nimport type { Divider } from '@nvidia-elements/core/divider';\nimport styles from './button-group.css?inline';\nimport globalStyles from './button-group.global.css?inline';\n\n/**\n * @element nve-button-group\n * @description A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n * @documentation https://nvidia.github.io/elements/docs/elements/button-group/\n * @since 0.16.0\n * @entrypoint \\@nvidia-elements/core/button-group\n * @slot - default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`\n * @cssprop --background\n * @cssprop --border-radius\n * @cssprop --padding\n * @cssprop --gap\n * @cssprop --width\n * @cssprop --height\n * @cssprop --color\n * @aria https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/group_role\n */\n@audit()\n@keyNavigationList<ButtonGroup>()\nexport class ButtonGroup extends LitElement {\n /** @private */\n get keynavListConfig(): KeynavListConfig {\n return {\n items: this.#buttons,\n layout: this.orientation\n };\n }\n\n /** By default the button group is stateless. Add the `behavior-select` attribute and set to `single` or `multi` to enable stateful selction handling. */\n @property({ type: String, attribute: 'behavior-select' }) behaviorSelect: 'single' | 'multi';\n\n /** Set the style of the button group using the `container` property. Options are the default display when omitting the attribute, `flat` or `rounded`. */\n @property({ type: String, reflect: true }) container?: 'flat' | 'rounded';\n\n /** Determines the orientation direction of the group. Vertical groups support icon buttons only. */\n @property({ type: String, reflect: true }) orientation?: 'horizontal' | 'vertical' = 'horizontal';\n\n /** Use the `interaction` property on `button-group` in combination with `divider` for color-coded split buttons */\n @property({ type: String, reflect: true }) interaction: Interaction;\n\n /** Determines size of button */\n @property({ type: String, reflect: true }) size?: Size;\n\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-button-group',\n version: '0.0.0',\n children: ['nve-button', 'nve-icon-button', 'nve-divider', 'nve-media-seek-button', 'nve-media-pause-button']\n };\n\n /** @private */\n declare _internals: ElementInternals;\n\n @queryAssignedElements({ selector: 'nve-divider' }) private dividers!: Divider[];\n\n @queryAssignedElements({ selector: 'nve-icon-button' }) private iconButtons!: IconButton[];\n\n @queryAssignedElements({ selector: 'nve-button' }) private buttons!: Button[];\n\n get #buttons() {\n return [...this.iconButtons, ...this.buttons];\n }\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${this.#syncStyleStates}></slot>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n appendRootNodeStyle(this, globalStyles);\n this._internals.role = 'group';\n this.addEventListener('click', this.#onClick);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.#onClick);\n }\n\n #onClick = (e: Event) => this.#selectButton(e.target as HTMLElement & { pressed?: boolean });\n\n updated(props: PropertyValues<this>) {\n super.updated(props);\n this.#syncStyleStates();\n }\n\n #syncStyleStates() {\n if (this.container === 'flat') {\n this.#buttons.forEach(btn => (btn.container = 'flat'));\n }\n\n if (this.interaction) {\n this.#buttons.forEach(btn => (btn.interaction = this.interaction));\n }\n\n this.dividers.length ? this._internals.states.add('split') : this._internals.states.delete('split');\n }\n\n #selectButton(button: HTMLElement & { pressed?: boolean }) {\n if (!button.matches?.('nve-button, nve-icon-button')) {\n return;\n }\n\n if (this.behaviorSelect === 'single') {\n this.#buttons.forEach(i => (i.pressed = false));\n button.pressed = true;\n } else if (this.behaviorSelect === 'multi') {\n button.pressed = !button.pressed;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;AAuCO,IAAM,IAAN,cAA0B,EAAW;;EAkE9B,aAlDyE,KAAA,cAAA,cAkDzE,KAAA,MAAA,MAAa,KAAK,GAAc,EAAE,MAA6C;;CAhE3F,IAAI,mBAAqC;EACvC,OAAO;GACL,OAAO,KAAK;GACZ,QAAQ,KAAK;EACf;CACF;;EAiBgB,KAAA,SAAA,EAAU,CAAC,CAAM,CAAC;;;EAEP,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;GACT,UAAU;IAAC;IAAc;IAAmB;IAAe;IAAyB;GAAwB;EAC9G;;CAWA,IAAI,KAAW;EACb,OAAO,CAAC,GAAG,KAAK,aAAa,GAAG,KAAK,OAAO;CAC9C;CAEA,SAAS;EACP,OAAO,CAAI,yCAEa,KAAK,GAAiB;CAGhD;CAEA,oBAAoB;EAKlB,AAJA,MAAM,kBAAkB,GACxB,EAAgB,IAAI,GACpB,EAAoB,MAAM,CAAY,GACtC,KAAK,WAAW,OAAO,SACvB,KAAK,iBAAiB,SAAS,KAAK,EAAQ;CAC9C;CAEA,uBAAuB;EAErB,AADA,MAAM,qBAAqB,GAC3B,KAAK,oBAAoB,SAAS,KAAK,EAAQ;CACjD;CAEA;CAEA,QAAQ,GAA6B;EAEnC,AADA,MAAM,QAAQ,CAAK,GACnB,KAAK,GAAiB;CACxB;CAEA,KAAmB;EASjB,AARI,KAAK,cAAc,UACrB,KAAK,GAAS,SAAQ,MAAQ,EAAI,YAAY,MAAO,GAGnD,KAAK,eACP,KAAK,GAAS,SAAQ,MAAQ,EAAI,cAAc,KAAK,WAAY,GAGnE,KAAK,SAAS,SAAS,KAAK,WAAW,OAAO,IAAI,OAAO,IAAI,KAAK,WAAW,OAAO,OAAO,OAAO;CACpG;CAEA,GAAc,GAA6C;EACpD,EAAO,UAAU,6BAA6B,MAI/C,KAAK,mBAAmB,YAC1B,KAAK,GAAS,SAAQ,MAAM,EAAE,UAAU,EAAM,GAC9C,EAAO,UAAU,MACR,KAAK,mBAAmB,YACjC,EAAO,UAAU,CAAC,EAAO;CAE7B;AACF;AAvFG,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,WAAW;AAAkB,CAAC,CAAA,GAAA,EAAA,WAAA,kBAAA,KAAA,CAAA,GAGvD,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,aAAA,KAAA,CAAA,GAGxC,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,eAAA,KAAA,CAAA,GAGxC,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,eAAA,KAAA,CAAA,GAGxC,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,GAaxC,EAAA,CAAA,EAAsB,EAAE,UAAU,cAAc,CAAC,CAAA,GAAA,EAAA,WAAA,YAAA,KAAA,CAAA,GAEjD,EAAA,CAAA,EAAsB,EAAE,UAAU,kBAAkB,CAAC,CAAA,GAAA,EAAA,WAAA,eAAA,KAAA,CAAA,GAErD,EAAA,CAAA,EAAsB,EAAE,UAAU,aAAa,CAAC,CAAA,GAAA,EAAA,WAAA,WAAA,KAAA,CAAA,GAzClD,IAAA,EAAA,CAAA,EAAM,GACN,EAA+B,CAAA,GAAA,CAAA"}
|
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.18.
|
|
19
|
+
version: "2.18.2"
|
|
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.18.
|
|
40
|
+
version: "2.18.2",
|
|
41
41
|
parents: ["nve-card"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@ var f = class extends c {
|
|
|
45
45
|
return l`<header internal-host><div class="content"><slot></slot></div></header>`;
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
r([t()], f.prototype, "slot", void 0)
|
|
48
|
+
r([t()], f.prototype, "slot", void 0);
|
|
49
49
|
var p = class extends c {
|
|
50
50
|
static {
|
|
51
51
|
this.styles = n([o]);
|
|
@@ -53,16 +53,14 @@ var p = class extends c {
|
|
|
53
53
|
static {
|
|
54
54
|
this.metadata = {
|
|
55
55
|
tag: "nve-card-content",
|
|
56
|
-
version: "2.18.
|
|
56
|
+
version: "2.18.2",
|
|
57
57
|
parents: ["nve-card"]
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
return l`<slot></slot>`;
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
p = r([e()], p);
|
|
65
|
-
var m = class extends c {
|
|
63
|
+
}, m = class extends c {
|
|
66
64
|
constructor(...e) {
|
|
67
65
|
super(...e), this.slot = "footer";
|
|
68
66
|
}
|
|
@@ -72,7 +70,7 @@ var m = class extends c {
|
|
|
72
70
|
static {
|
|
73
71
|
this.metadata = {
|
|
74
72
|
tag: "nve-card-footer",
|
|
75
|
-
version: "2.18.
|
|
73
|
+
version: "2.18.2",
|
|
76
74
|
parents: ["nve-card"]
|
|
77
75
|
};
|
|
78
76
|
}
|
|
@@ -80,7 +78,7 @@ var m = class extends c {
|
|
|
80
78
|
return l`<footer internal-host><slot></slot></footer>`;
|
|
81
79
|
}
|
|
82
80
|
};
|
|
83
|
-
r([t()], m.prototype, "slot", void 0)
|
|
81
|
+
r([t()], m.prototype, "slot", void 0);
|
|
84
82
|
//#endregion
|
|
85
83
|
export { d as Card, p as CardContent, m as CardFooter, f as CardHeader };
|
|
86
84
|
|
package/dist/card/card2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card2.js","names":[],"sources":["../../src/card/card.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 type { ContainerElement } from '@nvidia-elements/core/internal';\nimport { audit, hostAttr, useStyles } from '@nvidia-elements/core/internal';\nimport cardStyleSheet from './card.css?inline';\nimport cardHeaderStyleSheet from './card-header.css?inline';\nimport cardContentStyleSheet from './card-content.css?inline';\nimport cardFooterStyleSheet from './card-footer.css?inline';\n\n/**\n * @element nve-card\n * @description A container for content representing a single entity.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - use `<nve-card-header>`,`<nve-card-content>`,`<nve-card-footer>` for card content layout\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --box-shadow\n * @cssprop --border\n * @aria https://github.com/w3c/aria-practices/issues\n */\n@audit()\nexport class Card extends LitElement implements ContainerElement {\n /** flat (embed into parent container) or full (width of viewport) */\n @property({ type: String, reflect: true }) container?: 'flat' | 'full';\n\n static styles = useStyles([cardStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-card',\n version: '0.0.0'\n };\n\n render() {\n return html`\n <div internal-host>\n <slot name=\"header\"></slot>\n\n <slot></slot>\n\n <slot name=\"footer\"></slot>\n </div>\n `;\n }\n}\n\n/**\n * @element nve-card-header\n * @description Displays the title and optional actions at the top of a card, establishing the card's identity and purpose.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - Card title, supporting text, and optional action controls.\n * @cssprop --padding\n * @cssprop --border-bottom\n * @cssprop --line-height\n * @cssprop --gap\n * @aria https://github.com/w3c/aria-practices/issues\n */\
|
|
1
|
+
{"version":3,"file":"card2.js","names":[],"sources":["../../src/card/card.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 type { ContainerElement } from '@nvidia-elements/core/internal';\nimport { audit, hostAttr, useStyles } from '@nvidia-elements/core/internal';\nimport cardStyleSheet from './card.css?inline';\nimport cardHeaderStyleSheet from './card-header.css?inline';\nimport cardContentStyleSheet from './card-content.css?inline';\nimport cardFooterStyleSheet from './card-footer.css?inline';\n\n/**\n * @element nve-card\n * @description A container for content representing a single entity.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - use `<nve-card-header>`,`<nve-card-content>`,`<nve-card-footer>` for card content layout\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --box-shadow\n * @cssprop --border\n * @aria https://github.com/w3c/aria-practices/issues\n */\n@audit()\nexport class Card extends LitElement implements ContainerElement {\n /** flat (embed into parent container) or full (width of viewport) */\n @property({ type: String, reflect: true }) container?: 'flat' | 'full';\n\n static styles = useStyles([cardStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-card',\n version: '0.0.0'\n };\n\n render() {\n return html`\n <div internal-host>\n <slot name=\"header\"></slot>\n\n <slot></slot>\n\n <slot name=\"footer\"></slot>\n </div>\n `;\n }\n}\n\n/**\n * @element nve-card-header\n * @description Displays the title and optional actions at the top of a card, establishing the card's identity and purpose.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - Card title, supporting text, and optional action controls.\n * @cssprop --padding\n * @cssprop --border-bottom\n * @cssprop --line-height\n * @cssprop --gap\n * @aria https://github.com/w3c/aria-practices/issues\n */\nexport class CardHeader extends LitElement {\n static styles = useStyles([cardHeaderStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-card-header',\n version: '0.0.0',\n parents: ['nve-card']\n };\n\n /** @private */\n @hostAttr() slot = 'header';\n\n render() {\n return html`\n <header internal-host>\n <div class=\"content\">\n <slot></slot>\n </div>\n </header>\n `;\n }\n}\n\n/**\n * @element nve-card-content\n * @description Contains the primary body content of a card, providing a structured region for the main information or media.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - This is a default/unnamed slot for card content\n * @cssprop --padding\n * @aria https://github.com/w3c/aria-practices/issues\n */\nexport class CardContent extends LitElement {\n static styles = useStyles([cardContentStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-card-content',\n version: '0.0.0',\n parents: ['nve-card']\n };\n\n render() {\n return html`\n <slot></slot>\n `;\n }\n}\n\n/**\n * @element nve-card-footer\n * @description Provides a designated area at the bottom of a card for actions, metadata, or supplementary information.\n * @documentation https://nvidia.github.io/elements/docs/elements/card/\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/card\n * @slot - This is a default/unnamed slot for card footer content\n * @cssprop --padding\n * @cssprop --border-top\n * @aria https://github.com/w3c/aria-practices/issues\n */\nexport class CardFooter extends LitElement {\n static styles = useStyles([cardFooterStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-card-footer',\n version: '0.0.0',\n parents: ['nve-card']\n };\n\n /** @private */\n @hostAttr() slot = 'footer';\n\n render() {\n return html`\n <footer internal-host>\n <slot></slot>\n </footer>\n `;\n }\n}\n"],"mappings":";;;;;;;;;;;AA2BO,IAAM,IAAN,cAAmB,EAAuC;;EAI/C,KAAA,SAAA,EAAU,CAAC,CAAc,CAAC;;;EAEf,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;EACX;;CAEA,SAAS;EACP,OAAO,CAAI;CASb;AACF;AApBG,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,aAAA,KAAA,CAAA,GAH1C,IAAA,EAAA,CAAA,EAAM,CAAA,GAAA,CAAA;AAsCP,IAAa,IAAb,cAAgC,EAAW;;EAUtB,aAAA,KAAA,OAAA;;;EATH,KAAA,SAAA,EAAU,CAAC,CAAoB,CAAC;;;EAErB,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;GACT,SAAS,CAAC,UAAU;EACtB;;CAKA,SAAS;EACP,OAAO,CAAI;CAOb;AACF;AAXG,EAAA,CAAA,EAAS,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA;AAuBZ,IAAa,IAAb,cAAiC,EAAW;;EAC1B,KAAA,SAAA,EAAU,CAAC,CAAqB,CAAC;;;EAEtB,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;GACT,SAAS,CAAC,UAAU;EACtB;;CAEA,SAAS;EACP,OAAO,CAAI;CAGb;AACF,GAaa,IAAb,cAAgC,EAAW;;EAUtB,aAAA,KAAA,OAAA;;;EATH,KAAA,SAAA,EAAU,CAAC,CAAoB,CAAC;;;EAErB,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;GACT,SAAS,CAAC,UAAU;EACtB;;CAKA,SAAS;EACP,OAAO,CAAI;CAKb;AACF;AATG,EAAA,CAAA,EAAS,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA"}
|
package/dist/color/color2.js
CHANGED
|
@@ -1260,9 +1260,9 @@ export type FormatNumberProps = {
|
|
|
1260
1260
|
"sign-display"?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
1261
1261
|
/** Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'. */
|
|
1262
1262
|
"use-grouping"?: "auto" | "always" | "min2" | "true" | "false" | boolean | undefined;
|
|
1263
|
-
/** Pad fraction output to at least this many digits (0-
|
|
1263
|
+
/** Pad fraction output to at least this many digits (0-100). */
|
|
1264
1264
|
"minimum-fraction-digits"?: number | undefined;
|
|
1265
|
-
/** Round fraction output to at most this many digits (0-
|
|
1265
|
+
/** Round fraction output to at most this many digits (0-100). */
|
|
1266
1266
|
"maximum-fraction-digits"?: number | undefined;
|
|
1267
1267
|
/** Pad integer output to at least this many digits (1-21). */
|
|
1268
1268
|
"minimum-integer-digits"?: number | undefined;
|
|
@@ -1292,9 +1292,9 @@ When both are present, this property takes precedence. */
|
|
|
1292
1292
|
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
1293
1293
|
/** Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'. */
|
|
1294
1294
|
useGrouping?: "auto" | "always" | "min2" | "true" | "false" | boolean | undefined;
|
|
1295
|
-
/** Pad fraction output to at least this many digits (0-
|
|
1295
|
+
/** Pad fraction output to at least this many digits (0-100). */
|
|
1296
1296
|
minimumFractionDigits?: number | undefined;
|
|
1297
|
-
/** Round fraction output to at most this many digits (0-
|
|
1297
|
+
/** Round fraction output to at most this many digits (0-100). */
|
|
1298
1298
|
maximumFractionDigits?: number | undefined;
|
|
1299
1299
|
/** Pad integer output to at least this many digits (1-21). */
|
|
1300
1300
|
minimumIntegerDigits?: number | undefined;
|
|
@@ -4358,7 +4358,7 @@ export type CustomElements = {
|
|
|
4358
4358
|
*
|
|
4359
4359
|
*
|
|
4360
4360
|
* ### **Slots:**
|
|
4361
|
-
* - _default_ - default slot for `nve-button` or `nve-
|
|
4361
|
+
* - _default_ - default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`
|
|
4362
4362
|
*
|
|
4363
4363
|
* ### **CSS Properties:**
|
|
4364
4364
|
* - **--background** - undefined _(default: undefined)_
|
|
@@ -1133,9 +1133,9 @@ type FormatNumberProps = {
|
|
|
1133
1133
|
"sign-display"?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
1134
1134
|
/** Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'. */
|
|
1135
1135
|
"use-grouping"?: "auto" | "always" | "min2" | "true" | "false" | boolean | undefined;
|
|
1136
|
-
/** Pad fraction output to at least this many digits (0-
|
|
1136
|
+
/** Pad fraction output to at least this many digits (0-100). */
|
|
1137
1137
|
"minimum-fraction-digits"?: number | undefined;
|
|
1138
|
-
/** Round fraction output to at most this many digits (0-
|
|
1138
|
+
/** Round fraction output to at most this many digits (0-100). */
|
|
1139
1139
|
"maximum-fraction-digits"?: number | undefined;
|
|
1140
1140
|
/** Pad integer output to at least this many digits (1-21). */
|
|
1141
1141
|
"minimum-integer-digits"?: number | undefined;
|
|
@@ -1165,9 +1165,9 @@ When both are present, this property takes precedence. */
|
|
|
1165
1165
|
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
1166
1166
|
/** Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'. */
|
|
1167
1167
|
useGrouping?: "auto" | "always" | "min2" | "true" | "false" | boolean | undefined;
|
|
1168
|
-
/** Pad fraction output to at least this many digits (0-
|
|
1168
|
+
/** Pad fraction output to at least this many digits (0-100). */
|
|
1169
1169
|
minimumFractionDigits?: number | undefined;
|
|
1170
|
-
/** Round fraction output to at most this many digits (0-
|
|
1170
|
+
/** Round fraction output to at most this many digits (0-100). */
|
|
1171
1171
|
maximumFractionDigits?: number | undefined;
|
|
1172
1172
|
/** Pad integer output to at least this many digits (1-21). */
|
|
1173
1173
|
minimumIntegerDigits?: number | undefined;
|
|
@@ -4111,7 +4111,7 @@ export type CustomElements = {
|
|
|
4111
4111
|
*
|
|
4112
4112
|
*
|
|
4113
4113
|
* ### **Slots:**
|
|
4114
|
-
* - _default_ - default slot for `nve-button` or `nve-
|
|
4114
|
+
* - _default_ - default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`
|
|
4115
4115
|
*
|
|
4116
4116
|
* ### **CSS Properties:**
|
|
4117
4117
|
* - **--background** - undefined _(default: undefined)_
|
|
@@ -3136,7 +3136,7 @@
|
|
|
3136
3136
|
],
|
|
3137
3137
|
"slots": [
|
|
3138
3138
|
{
|
|
3139
|
-
"description": "default slot for `nve-button` or `nve-
|
|
3139
|
+
"description": "default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`",
|
|
3140
3140
|
"name": ""
|
|
3141
3141
|
}
|
|
3142
3142
|
],
|
|
@@ -3389,7 +3389,7 @@
|
|
|
3389
3389
|
"since": "0.16.0",
|
|
3390
3390
|
"status": "stable",
|
|
3391
3391
|
"behavior": "container",
|
|
3392
|
-
"markdown": "## nve-button-group\n\nA button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n\n### Example\n\n```html\n<nve-button-group>\n <nve-icon-button selected icon-name=\"copy\"></nve-icon-button>\n <nve-icon-button icon-name=\"add-comment\"></nve-icon-button>\n <nve-icon-button icon-name=\"download\"></nve-icon-button>\n</nve-button-group>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/button-group/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for `nve-button` or `nve-
|
|
3392
|
+
"markdown": "## nve-button-group\n\nA button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n\n### Example\n\n```html\n<nve-button-group>\n <nve-icon-button selected icon-name=\"copy\"></nve-icon-button>\n <nve-icon-button icon-name=\"add-comment\"></nve-icon-button>\n <nve-icon-button icon-name=\"download\"></nve-icon-button>\n</nve-button-group>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/button-group/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button` |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| behaviorSelect (behavior-select) | `'single' \\| 'multi'` | By default the button group is stateless. Add the `behavior-select` attribute and set to `single` or `multi` to enable stateful selction handling. |\n| container | `'flat' \\| 'rounded' \\| undefined` | Set the style of the button group using the `container` property. Options are the default display when omitting the attribute, `flat` or `rounded`. |\n| interaction | `'emphasis' \\| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. |\n| orientation | `'horizontal' \\| 'vertical' \\| undefined` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. |\n| size | `'sm' \\| 'md' \\| 'lg' \\| undefined` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --gap | `string` | [MDN](https://mdn.dev/CSS/gap) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --padding | `string` | [MDN](https://mdn.dev/CSS/padding) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |"
|
|
3393
3393
|
}
|
|
3394
3394
|
}
|
|
3395
3395
|
],
|
|
@@ -15134,7 +15134,7 @@
|
|
|
15134
15134
|
}
|
|
15135
15135
|
]
|
|
15136
15136
|
},
|
|
15137
|
-
"description": "Pad fraction output to at least this many digits (0-
|
|
15137
|
+
"description": "Pad fraction output to at least this many digits (0-100).",
|
|
15138
15138
|
"attribute": "minimum-fraction-digits"
|
|
15139
15139
|
},
|
|
15140
15140
|
{
|
|
@@ -15150,7 +15150,7 @@
|
|
|
15150
15150
|
}
|
|
15151
15151
|
]
|
|
15152
15152
|
},
|
|
15153
|
-
"description": "Round fraction output to at most this many digits (0-
|
|
15153
|
+
"description": "Round fraction output to at most this many digits (0-100).",
|
|
15154
15154
|
"attribute": "maximum-fraction-digits"
|
|
15155
15155
|
},
|
|
15156
15156
|
{
|
|
@@ -15462,7 +15462,7 @@
|
|
|
15462
15462
|
}
|
|
15463
15463
|
]
|
|
15464
15464
|
},
|
|
15465
|
-
"description": "Pad fraction output to at least this many digits (0-
|
|
15465
|
+
"description": "Pad fraction output to at least this many digits (0-100).",
|
|
15466
15466
|
"fieldName": "minimumFractionDigits"
|
|
15467
15467
|
},
|
|
15468
15468
|
{
|
|
@@ -15477,7 +15477,7 @@
|
|
|
15477
15477
|
}
|
|
15478
15478
|
]
|
|
15479
15479
|
},
|
|
15480
|
-
"description": "Round fraction output to at most this many digits (0-
|
|
15480
|
+
"description": "Round fraction output to at most this many digits (0-100).",
|
|
15481
15481
|
"fieldName": "maximumFractionDigits"
|
|
15482
15482
|
},
|
|
15483
15483
|
{
|
|
@@ -15518,7 +15518,7 @@
|
|
|
15518
15518
|
"since": "0.0.0",
|
|
15519
15519
|
"status": "stable",
|
|
15520
15520
|
"behavior": "content",
|
|
15521
|
-
"markdown": "## nve-format-number\n\nA localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat.\nProvide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`.\n\n### Example\n\n```html\n<nve-format-number>1234567.89</nve-format-number>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/format-number/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration. |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| compactDisplay (compact-display) | `'short' \\| 'long' \\| undefined` | Compact notation display: 'short' \\| 'long'. Only applies when notation is compact. |\n| currency | `string \\| undefined` | ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency. |\n| currencyDisplay (currency-display) | `'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol' \\| undefined` | Currency display style: 'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol'. |\n| currencySign (currency-sign) | `'standard' \\| 'accounting' \\| undefined` | Currency sign style: 'standard' \\| 'accounting'. |\n| formatStyle (format-style) | `'decimal' \\| 'currency' \\| 'percent' \\| 'unit'` | Formatting style: 'decimal' \\| 'currency' \\| 'percent' \\| 'unit'. |\n| locale | `string \\| undefined` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. |\n| maximumFractionDigits (maximum-fraction-digits) | `number \\| undefined` | Round fraction output to at most this many digits (0-
|
|
15521
|
+
"markdown": "## nve-format-number\n\nA localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat.\nProvide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`.\n\n### Example\n\n```html\n<nve-format-number>1234567.89</nve-format-number>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/format-number/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration. |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| compactDisplay (compact-display) | `'short' \\| 'long' \\| undefined` | Compact notation display: 'short' \\| 'long'. Only applies when notation is compact. |\n| currency | `string \\| undefined` | ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency. |\n| currencyDisplay (currency-display) | `'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol' \\| undefined` | Currency display style: 'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol'. |\n| currencySign (currency-sign) | `'standard' \\| 'accounting' \\| undefined` | Currency sign style: 'standard' \\| 'accounting'. |\n| formatStyle (format-style) | `'decimal' \\| 'currency' \\| 'percent' \\| 'unit'` | Formatting style: 'decimal' \\| 'currency' \\| 'percent' \\| 'unit'. |\n| locale | `string \\| undefined` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. |\n| maximumFractionDigits (maximum-fraction-digits) | `number \\| undefined` | Round fraction output to at most this many digits (0-100). |\n| minimumFractionDigits (minimum-fraction-digits) | `number \\| undefined` | Pad fraction output to at least this many digits (0-100). |\n| minimumIntegerDigits (minimum-integer-digits) | `number \\| undefined` | Pad integer output to at least this many digits (1-21). |\n| notation | `'standard' \\| 'scientific' \\| 'engineering' \\| 'compact' \\| undefined` | Number notation: 'standard' \\| 'scientific' \\| 'engineering' \\| 'compact'. |\n| number | `string \\| undefined` | Optional numeric string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence. |\n| signDisplay (sign-display) | `'auto' \\| 'never' \\| 'always' \\| 'exceptZero' \\| undefined` | Sign display: 'auto' \\| 'never' \\| 'always' \\| 'exceptZero'. |\n| unit | `string \\| undefined` | Unit identifier (such as kilometer or byte). Required when formatStyle is unit. |\n| unitDisplay (unit-display) | `'short' \\| 'long' \\| 'narrow' \\| undefined` | Unit display style: 'short' \\| 'long' \\| 'narrow'. |\n| useGrouping (use-grouping) | `'auto' \\| 'always' \\| 'min2' \\| 'true' \\| 'false' \\| boolean \\| undefined` | Grouping separators: 'auto' \\| 'always' \\| 'min2' \\| 'true' \\| 'false'. |"
|
|
15522
15522
|
}
|
|
15523
15523
|
}
|
|
15524
15524
|
],
|
|
@@ -25699,6 +25699,22 @@
|
|
|
25699
25699
|
"description": "",
|
|
25700
25700
|
"name": "AuditController",
|
|
25701
25701
|
"members": [
|
|
25702
|
+
{
|
|
25703
|
+
"kind": "field",
|
|
25704
|
+
"name": "#counted",
|
|
25705
|
+
"privacy": "private",
|
|
25706
|
+
"type": {
|
|
25707
|
+
"text": "boolean",
|
|
25708
|
+
"_sourceAliases": [],
|
|
25709
|
+
"values": [
|
|
25710
|
+
{
|
|
25711
|
+
"value": "boolean",
|
|
25712
|
+
"description": ""
|
|
25713
|
+
}
|
|
25714
|
+
]
|
|
25715
|
+
},
|
|
25716
|
+
"default": "false"
|
|
25717
|
+
},
|
|
25702
25718
|
{
|
|
25703
25719
|
"kind": "field",
|
|
25704
25720
|
"name": "#hostAuditState",
|
|
@@ -25753,11 +25769,6 @@
|
|
|
25753
25769
|
}
|
|
25754
25770
|
]
|
|
25755
25771
|
},
|
|
25756
|
-
{
|
|
25757
|
-
"kind": "method",
|
|
25758
|
-
"name": "#auditSlots",
|
|
25759
|
-
"privacy": "private"
|
|
25760
|
-
},
|
|
25761
25772
|
{
|
|
25762
25773
|
"kind": "method",
|
|
25763
25774
|
"name": "#auditParentElement",
|
|
@@ -29170,19 +29181,12 @@
|
|
|
29170
29181
|
},
|
|
29171
29182
|
{
|
|
29172
29183
|
"kind": "function",
|
|
29173
|
-
"name": "
|
|
29184
|
+
"name": "getMultiplePageWarning",
|
|
29174
29185
|
"parameters": [
|
|
29175
29186
|
{
|
|
29176
|
-
"name": "
|
|
29177
|
-
"type": {
|
|
29178
|
-
"text": "string",
|
|
29179
|
-
"_sourceAliases": []
|
|
29180
|
-
}
|
|
29181
|
-
},
|
|
29182
|
-
{
|
|
29183
|
-
"name": "allowed",
|
|
29187
|
+
"name": "count",
|
|
29184
29188
|
"type": {
|
|
29185
|
-
"text": "
|
|
29189
|
+
"text": "number",
|
|
29186
29190
|
"_sourceAliases": []
|
|
29187
29191
|
}
|
|
29188
29192
|
}
|
|
@@ -29291,9 +29295,9 @@
|
|
|
29291
29295
|
},
|
|
29292
29296
|
{
|
|
29293
29297
|
"kind": "js",
|
|
29294
|
-
"name": "
|
|
29298
|
+
"name": "getMultiplePageWarning",
|
|
29295
29299
|
"declaration": {
|
|
29296
|
-
"name": "
|
|
29300
|
+
"name": "getMultiplePageWarning",
|
|
29297
29301
|
"module": "/src/internal/utils/audit-logs.js"
|
|
29298
29302
|
}
|
|
29299
29303
|
},
|
|
@@ -29351,24 +29355,6 @@
|
|
|
29351
29355
|
"kind": "javascript-module",
|
|
29352
29356
|
"path": "/src/internal/utils/audit.js",
|
|
29353
29357
|
"declarations": [
|
|
29354
|
-
{
|
|
29355
|
-
"kind": "function",
|
|
29356
|
-
"name": "auditSlots",
|
|
29357
|
-
"return": {
|
|
29358
|
-
"type": {
|
|
29359
|
-
"text": "[Element[], string[]]"
|
|
29360
|
-
}
|
|
29361
|
-
},
|
|
29362
|
-
"parameters": [
|
|
29363
|
-
{
|
|
29364
|
-
"name": "host",
|
|
29365
|
-
"type": {
|
|
29366
|
-
"text": "HTMLElement & { constructor: { metadata?: { children?: string[]; disallowedChildren?: string[] } } }",
|
|
29367
|
-
"_sourceAliases": []
|
|
29368
|
-
}
|
|
29369
|
-
}
|
|
29370
|
-
]
|
|
29371
|
-
},
|
|
29372
29358
|
{
|
|
29373
29359
|
"kind": "function",
|
|
29374
29360
|
"name": "auditParentElement",
|
|
@@ -29389,14 +29375,6 @@
|
|
|
29389
29375
|
}
|
|
29390
29376
|
],
|
|
29391
29377
|
"exports": [
|
|
29392
|
-
{
|
|
29393
|
-
"kind": "js",
|
|
29394
|
-
"name": "auditSlots",
|
|
29395
|
-
"declaration": {
|
|
29396
|
-
"name": "auditSlots",
|
|
29397
|
-
"module": "/src/internal/utils/audit.js"
|
|
29398
|
-
}
|
|
29399
|
-
},
|
|
29400
29378
|
{
|
|
29401
29379
|
"kind": "js",
|
|
29402
29380
|
"name": "auditParentElement",
|
package/dist/data.html.json
CHANGED
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
"name": "nve-button-group",
|
|
381
|
-
"description": "A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n---\n\n\n### **Slots:**\n - _default_ - default slot for `nve-button` or `nve-
|
|
381
|
+
"description": "A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n---\n\n\n### **Slots:**\n - _default_ - default slot for `nve-button`, `nve-icon-button`, `nve-divider`, `nve-media-seek-button`, or `nve-media-pause-button`\n\n### **CSS Properties:**\n - **--background** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background) _(default: undefined)_\n- **--border-radius** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) _(default: undefined)_\n- **--padding** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) _(default: undefined)_\n- **--gap** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/gap) _(default: undefined)_\n- **--width** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/width) _(default: undefined)_\n- **--height** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/height) _(default: undefined)_\n- **--color** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color) _(default: undefined)_",
|
|
382
382
|
"attributes": [
|
|
383
383
|
{
|
|
384
384
|
"name": "behavior-select",
|
|
@@ -1963,12 +1963,12 @@
|
|
|
1963
1963
|
},
|
|
1964
1964
|
{
|
|
1965
1965
|
"name": "minimum-fraction-digits",
|
|
1966
|
-
"description": "Pad fraction output to at least this many digits (0-
|
|
1966
|
+
"description": "Pad fraction output to at least this many digits (0-100).",
|
|
1967
1967
|
"values": []
|
|
1968
1968
|
},
|
|
1969
1969
|
{
|
|
1970
1970
|
"name": "maximum-fraction-digits",
|
|
1971
|
-
"description": "Round fraction output to at most this many digits (0-
|
|
1971
|
+
"description": "Round fraction output to at most this many digits (0-100).",
|
|
1972
1972
|
"values": []
|
|
1973
1973
|
},
|
|
1974
1974
|
{
|
package/dist/data.snippets.json
CHANGED
|
@@ -188,6 +188,33 @@
|
|
|
188
188
|
"description": "Dialog is a component that appears above main content. A modal dialog is used to display critical information that requires users attention.",
|
|
189
189
|
"body": "<nve-dialog size=\"${6:md}\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">${1:Title}</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">${2:Content}</p>\n <nve-dialog-footer>\n <nve-button>${3:Cancel}</nve-button>\n <nve-button interaction=\"${4:emphasis}\">${5:OK}</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n$0\n"
|
|
190
190
|
},
|
|
191
|
+
"Card": {
|
|
192
|
+
"srcFile": "card.snippets.html",
|
|
193
|
+
"prefix": [
|
|
194
|
+
"card"
|
|
195
|
+
],
|
|
196
|
+
"type": "pattern",
|
|
197
|
+
"description": "Basic Card with header and footer",
|
|
198
|
+
"body": "<nve-card>\n <nve-card-header>\n <div>\n <h2>${1:Title}</h2>\n <p>${2:Sub Title}</p>\n </div>\n </nve-card-header>\n <nve-card-content>\n ${3:\n <p>card content</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <nve-button style=\"margin-left: auto\">Action</nve-button>\n </nve-card-footer>\n</nve-card>\n"
|
|
199
|
+
},
|
|
200
|
+
"Media Card": {
|
|
201
|
+
"srcFile": "card.snippets.html",
|
|
202
|
+
"prefix": [
|
|
203
|
+
"media-card"
|
|
204
|
+
],
|
|
205
|
+
"type": "pattern",
|
|
206
|
+
"description": "Basic media Card with card content and card footer",
|
|
207
|
+
"body": "<nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${1:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${2:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${3:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n</nve-card>\n"
|
|
208
|
+
},
|
|
209
|
+
"Media Card Grid": {
|
|
210
|
+
"srcFile": "card.snippets.html",
|
|
211
|
+
"prefix": [
|
|
212
|
+
"media-card-grid"
|
|
213
|
+
],
|
|
214
|
+
"type": "pattern",
|
|
215
|
+
"description": "Grid layout with 3 media cards",
|
|
216
|
+
"body": "<section nve-layout=\"grid span-items:4 gap:md\">\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 1\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${1:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${2:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${3:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 2\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${4:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${5:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${6:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 3\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${7:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${8:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${9:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n</section>\n"
|
|
217
|
+
},
|
|
191
218
|
"Button Group": {
|
|
192
219
|
"srcFile": "button-group.snippets.html",
|
|
193
220
|
"prefix": [
|
|
@@ -224,33 +251,6 @@
|
|
|
224
251
|
"description": "Simple vertical button group with three icon buttons.",
|
|
225
252
|
"body": "<nve-button-group orientation=\"vertical\">\n <nve-icon-button icon-name=\"${1:copy}\"></nve-icon-button>\n <nve-icon-button icon-name=\"${2:add-comment}\"></nve-icon-button>\n <nve-icon-button icon-name=\"${3:download}\"></nve-icon-button>\n</nve-button-group>\n"
|
|
226
253
|
},
|
|
227
|
-
"Card": {
|
|
228
|
-
"srcFile": "card.snippets.html",
|
|
229
|
-
"prefix": [
|
|
230
|
-
"card"
|
|
231
|
-
],
|
|
232
|
-
"type": "pattern",
|
|
233
|
-
"description": "Basic Card with header and footer",
|
|
234
|
-
"body": "<nve-card>\n <nve-card-header>\n <div>\n <h2>${1:Title}</h2>\n <p>${2:Sub Title}</p>\n </div>\n </nve-card-header>\n <nve-card-content>\n ${3:\n <p>card content</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <nve-button style=\"margin-left: auto\">Action</nve-button>\n </nve-card-footer>\n</nve-card>\n"
|
|
235
|
-
},
|
|
236
|
-
"Media Card": {
|
|
237
|
-
"srcFile": "card.snippets.html",
|
|
238
|
-
"prefix": [
|
|
239
|
-
"media-card"
|
|
240
|
-
],
|
|
241
|
-
"type": "pattern",
|
|
242
|
-
"description": "Basic media Card with card content and card footer",
|
|
243
|
-
"body": "<nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${1:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${2:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${3:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n</nve-card>\n"
|
|
244
|
-
},
|
|
245
|
-
"Media Card Grid": {
|
|
246
|
-
"srcFile": "card.snippets.html",
|
|
247
|
-
"prefix": [
|
|
248
|
-
"media-card-grid"
|
|
249
|
-
],
|
|
250
|
-
"type": "pattern",
|
|
251
|
-
"description": "Grid layout with 3 media cards",
|
|
252
|
-
"body": "<section nve-layout=\"grid span-items:4 gap:md\">\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 1\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${1:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${2:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${3:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 2\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${4:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${5:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${6:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n\n <nve-card style=\"height: 100%; width: 100%;\">\n <img alt=\"example visualization for media card 3\" loading=\"lazy\" style=\"width: 100%; height: 100%; object-fit: cover;\">\n <nve-card-content>\n ${7:\n <p>•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>\n }\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"grid span-items:6 gap:xs\">\n <nve-button>${8:•︎•︎•︎•︎•︎•︎}</nve-button>\n <nve-button>${9:•︎•︎•︎•︎•︎•︎}</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n</section>\n"
|
|
253
|
-
},
|
|
254
254
|
"Alert Group": {
|
|
255
255
|
"srcFile": "alert.snippets.html",
|
|
256
256
|
"prefix": [
|
package/dist/date/date2.js
CHANGED