@nvidia-elements/core 0.0.3 → 0.0.4
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 +20 -17
- package/NOTICE.md +119 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-banner2.js +1 -1
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.js.map +1 -1
- package/dist/alert/alert.examples.json +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +176 -1
- package/dist/bundles/index.js +3 -3
- package/dist/button/button.examples.js.map +1 -1
- 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/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox.d.ts +4 -0
- package/dist/combobox/combobox.examples.js.map +1 -1
- package/dist/combobox/combobox.examples.json +12 -1
- package/dist/combobox/combobox.js +1 -1
- package/dist/combobox/combobox.js.map +1 -1
- package/dist/combobox/combobox2.js +90 -62
- package/dist/combobox/combobox2.js.map +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +117 -2
- package/dist/custom-elements-vue.d.ts +117 -2
- package/dist/custom-elements.json +1543 -51
- package/dist/data.html.json +202 -6
- package/dist/data.snippets.json +9 -0
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone.examples.js.map +1 -1
- package/dist/dropzone/dropzone.examples.json +3 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/define.d.ts +6 -0
- package/dist/format-datetime/define.js +7 -0
- package/dist/format-datetime/define.js.map +1 -0
- package/dist/format-datetime/format-datetime.d.ts +74 -0
- package/dist/format-datetime/format-datetime.examples.js +6 -0
- package/dist/format-datetime/format-datetime.examples.js.map +1 -0
- package/dist/format-datetime/format-datetime.examples.json +87 -0
- package/dist/format-datetime/format-datetime.js +6 -0
- package/dist/format-datetime/format-datetime.js.map +1 -0
- package/dist/format-datetime/format-datetime2.js +77 -0
- package/dist/format-datetime/format-datetime2.js.map +1 -0
- package/dist/format-datetime/index.d.ts +1 -0
- package/dist/format-datetime/index.js +2 -0
- package/dist/format-relative-time/define.d.ts +6 -0
- package/dist/format-relative-time/define.js +7 -0
- package/dist/format-relative-time/define.js.map +1 -0
- package/dist/format-relative-time/format-relative-time.d.ts +47 -0
- package/dist/format-relative-time/format-relative-time.examples.js +6 -0
- package/dist/format-relative-time/format-relative-time.examples.js.map +1 -0
- package/dist/format-relative-time/format-relative-time.examples.json +69 -0
- package/dist/format-relative-time/format-relative-time.js +6 -0
- package/dist/format-relative-time/format-relative-time.js.map +1 -0
- package/dist/format-relative-time/format-relative-time2.js +118 -0
- package/dist/format-relative-time/format-relative-time2.js.map +1 -0
- package/dist/format-relative-time/index.d.ts +1 -0
- package/dist/format-relative-time/index.js +2 -0
- 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/forms/forms.examples.js.map +1 -1
- package/dist/forms/forms.examples.json +4 -2
- 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 +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/index.js +40 -40
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/services/i18n.service.d.ts +1 -0
- package/dist/internal/services/i18n.service.js +2 -1
- package/dist/internal/services/i18n.service.js.map +1 -1
- package/dist/internal/utils/dom.d.ts +8 -0
- package/dist/internal/utils/dom.js +7 -1
- package/dist/internal/utils/dom.js.map +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page.examples.js.map +1 -1
- package/dist/page/page.examples.json +0 -11
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header.examples.js.map +1 -1
- package/dist/page-header/page-header.examples.json +2 -2
- 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-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-handle.examples.js.map +1 -1
- package/dist/resize-handle/resize-handle.examples.json +3 -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/skeleton.examples.js.map +1 -1
- package/dist/skeleton/skeleton.examples.json +3 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline.examples.js.map +1 -1
- package/dist/sparkline/sparkline.examples.json +3 -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/define.d.ts +2 -1
- package/dist/tabs/define.js +2 -1
- package/dist/tabs/define.js.map +1 -1
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs/index.js +2 -1
- package/dist/tabs/tabs-group.d.ts +51 -0
- package/dist/tabs/tabs-group.js +6 -0
- package/dist/tabs/tabs-group.js.map +1 -0
- package/dist/tabs/tabs-group2.js +144 -0
- package/dist/tabs/tabs-group2.js.map +1 -0
- package/dist/tabs/tabs.examples.js.map +1 -1
- package/dist/tabs/tabs.examples.json +38 -2
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node.d.ts +1 -1
- package/dist/tree/tree-node.js +1 -1
- package/dist/tree/tree-node.js.map +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree-node2.js.map +1 -1
- package/dist/tree/tree.examples.js.map +1 -1
- package/dist/tree/tree.examples.json +1 -10
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +43 -15
|
@@ -637,6 +637,8 @@ type ComboboxProps = {
|
|
|
637
637
|
container?: "flat";
|
|
638
638
|
/** Disable rendering of inline tags for many-item select */
|
|
639
639
|
notags?: boolean;
|
|
640
|
+
/** Enable creation of new options when the input value doesn't match any existing option. Dispatches a `create` event with `{ value }` detail. */
|
|
641
|
+
"behavior-create"?: boolean;
|
|
640
642
|
/** @deprecated - not supported on custom element tags */
|
|
641
643
|
"nve-layout"?: string;
|
|
642
644
|
/** @deprecated - not supported on custom element tags */
|
|
@@ -665,6 +667,8 @@ type ComboboxProps = {
|
|
|
665
667
|
- `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. */
|
|
666
668
|
prominence?: "muted";
|
|
667
669
|
|
|
670
|
+
/** Fires when the user confirms a value that doesn't match any existing option and the `behavior-create` attribute exists. `detail: { value }`. */
|
|
671
|
+
oncreate?: (e: CustomEvent<CustomEvent>) => void;
|
|
668
672
|
/** Fires when the user scrolls the dropdown option list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. */
|
|
669
673
|
onscroll?: (e: CustomEvent<never>) => void;
|
|
670
674
|
/** */
|
|
@@ -1181,6 +1185,64 @@ type FileProps = {
|
|
|
1181
1185
|
onreset?: (e: CustomEvent<CustomEvent>) => void;
|
|
1182
1186
|
};
|
|
1183
1187
|
|
|
1188
|
+
type FormatDatetimeProps = {
|
|
1189
|
+
/** Optional date string for values supplied by JavaScript or bound data.
|
|
1190
|
+
By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
1191
|
+
When both are present, this property takes precedence. */
|
|
1192
|
+
date?: string | "default";
|
|
1193
|
+
/** Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. */
|
|
1194
|
+
locale?: string | "default";
|
|
1195
|
+
/** Weekday representation: 'long' | 'short' | 'narrow'. */
|
|
1196
|
+
weekday?: "long" | "short" | "narrow" | "default";
|
|
1197
|
+
/** Year representation: 'numeric' | '2-digit'. */
|
|
1198
|
+
year?: "numeric" | "2-digit" | "default";
|
|
1199
|
+
/** Month representation: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow'. */
|
|
1200
|
+
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | "default";
|
|
1201
|
+
/** Day representation: 'numeric' | '2-digit'. */
|
|
1202
|
+
day?: "numeric" | "2-digit" | "default";
|
|
1203
|
+
/** Hour representation: 'numeric' | '2-digit'. */
|
|
1204
|
+
hour?: "numeric" | "2-digit" | "default";
|
|
1205
|
+
/** Minute representation: 'numeric' | '2-digit'. */
|
|
1206
|
+
minute?: "numeric" | "2-digit" | "default";
|
|
1207
|
+
/** Second representation: 'numeric' | '2-digit'. */
|
|
1208
|
+
second?: "numeric" | "2-digit" | "default";
|
|
1209
|
+
/** Preset date formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
1210
|
+
Preset styles take precedence over granular date and time part options. */
|
|
1211
|
+
"date-style"?: "full" | "long" | "medium" | "short" | "default";
|
|
1212
|
+
/** Preset time formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
1213
|
+
Preset styles take precedence over granular date and time part options. */
|
|
1214
|
+
"time-style"?: "full" | "long" | "medium" | "short" | "default";
|
|
1215
|
+
/** Time zone name display: 'long' | 'short'. Use it with granular options only; preset styles ignore it. */
|
|
1216
|
+
"time-zone-name"?: "long" | "short" | "default";
|
|
1217
|
+
/** IANA time zone identifier (such as 'America/New_York', 'UTC'). */
|
|
1218
|
+
"time-zone"?: string | "default";
|
|
1219
|
+
/** @deprecated - not supported on custom element tags */
|
|
1220
|
+
"nve-layout"?: string;
|
|
1221
|
+
/** @deprecated - not supported on custom element tags */
|
|
1222
|
+
"nve-text"?: string;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
type FormatRelativeTimeProps = {
|
|
1226
|
+
/** Optional date string for values supplied by JavaScript or bound data.
|
|
1227
|
+
By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
1228
|
+
When both are present, this property takes precedence. */
|
|
1229
|
+
date?: string | "default";
|
|
1230
|
+
/** Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. */
|
|
1231
|
+
locale?: string | "default";
|
|
1232
|
+
/** Numeric formatting: 'always' | 'auto'. When 'auto', enables natural language forms such as 'yesterday' instead of '1 day ago'. */
|
|
1233
|
+
numeric?: "always" | "auto";
|
|
1234
|
+
/** Formatting length: 'long' | 'short' | 'narrow'. Controls verbosity (such as '3 days ago' vs '3d ago'). Maps to Intl.RelativeTimeFormat style option. */
|
|
1235
|
+
"format-style"?: "long" | "short" | "narrow";
|
|
1236
|
+
/** Time unit: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' | 'auto'. Use 'auto' to let the component select the most appropriate unit based on the time difference. */
|
|
1237
|
+
unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "auto";
|
|
1238
|
+
/** When present, auto-updates the displayed relative time at appropriate intervals. */
|
|
1239
|
+
sync?: boolean;
|
|
1240
|
+
/** @deprecated - not supported on custom element tags */
|
|
1241
|
+
"nve-layout"?: string;
|
|
1242
|
+
/** @deprecated - not supported on custom element tags */
|
|
1243
|
+
"nve-text"?: string;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1184
1246
|
type ControlGroupProps = {
|
|
1185
1247
|
/** Controls the directional arrangement and spacing behavior of the element's content.
|
|
1186
1248
|
- `vertical` Arranges content in a vertical stack with block-level spacing.
|
|
@@ -3187,6 +3249,18 @@ type SwitchProps = {
|
|
|
3187
3249
|
onreset?: (e: CustomEvent<CustomEvent>) => void;
|
|
3188
3250
|
};
|
|
3189
3251
|
|
|
3252
|
+
type TabsGroupProps = {
|
|
3253
|
+
/** Determines the alignment of the popover relative to the provided anchor element. */
|
|
3254
|
+
alignment?: "top" | "start" | "end";
|
|
3255
|
+
/** @deprecated - not supported on custom element tags */
|
|
3256
|
+
"nve-layout"?: string;
|
|
3257
|
+
/** @deprecated - not supported on custom element tags */
|
|
3258
|
+
"nve-text"?: string;
|
|
3259
|
+
|
|
3260
|
+
/** Dispatched when the selected tab value changes after an invoker `--toggle` updates selection */
|
|
3261
|
+
onselect?: (e: CustomEvent<CustomEvent>) => void;
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3190
3264
|
type TabsItemProps = {
|
|
3191
3265
|
/** Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
|
3192
3266
|
- `true` The element holds selection and represents the user's current choice within the group.
|
|
@@ -4189,7 +4263,8 @@ export type CustomElements = {
|
|
|
4189
4263
|
*
|
|
4190
4264
|
*
|
|
4191
4265
|
* ### **Events:**
|
|
4192
|
-
* - **
|
|
4266
|
+
* - **create** - Fires when the user confirms a value that doesn't match any existing option and the `behavior-create` attribute exists. `detail: { value }`.
|
|
4267
|
+
* - **scroll** - Fires when the user scrolls the dropdown option list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`.
|
|
4193
4268
|
* - **reset**
|
|
4194
4269
|
*
|
|
4195
4270
|
* ### **Methods:**
|
|
@@ -4232,6 +4307,7 @@ export type CustomElements = {
|
|
|
4232
4307
|
* - **menu-item** - The menu item elements
|
|
4233
4308
|
* - **checkbox** - The checkbox element
|
|
4234
4309
|
* - **icon** - The icon element
|
|
4310
|
+
* - **create-option** - The menu item element for creating new options
|
|
4235
4311
|
*/
|
|
4236
4312
|
"nve-combobox": DefineComponent<ComboboxProps>;
|
|
4237
4313
|
|
|
@@ -4670,6 +4746,28 @@ export type CustomElements = {
|
|
|
4670
4746
|
*/
|
|
4671
4747
|
"nve-file": DefineComponent<FileProps>;
|
|
4672
4748
|
|
|
4749
|
+
/**
|
|
4750
|
+
* Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
|
|
4751
|
+
* Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads.
|
|
4752
|
+
* ---
|
|
4753
|
+
*
|
|
4754
|
+
*
|
|
4755
|
+
* ### **Slots:**
|
|
4756
|
+
* - _default_ - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
|
|
4757
|
+
*/
|
|
4758
|
+
"nve-format-datetime": DefineComponent<FormatDatetimeProps>;
|
|
4759
|
+
|
|
4760
|
+
/**
|
|
4761
|
+
* Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element.
|
|
4762
|
+
* Options mirror the Intl.RelativeTimeFormat API. When unit is 'auto', the component selects the best unit based on the time difference.
|
|
4763
|
+
* ---
|
|
4764
|
+
*
|
|
4765
|
+
*
|
|
4766
|
+
* ### **Slots:**
|
|
4767
|
+
* - _default_ - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
|
|
4768
|
+
*/
|
|
4769
|
+
"nve-format-relative-time": DefineComponent<FormatRelativeTimeProps>;
|
|
4770
|
+
|
|
4673
4771
|
/**
|
|
4674
4772
|
* Groups many related form controls under a shared label and validation context for semantically linked inputs.
|
|
4675
4773
|
* ---
|
|
@@ -5889,6 +5987,23 @@ export type CustomElements = {
|
|
|
5889
5987
|
*/
|
|
5890
5988
|
"nve-switch": DefineComponent<SwitchProps>;
|
|
5891
5989
|
|
|
5990
|
+
/**
|
|
5991
|
+
* Coordinates tabs with matching panel content using Invoker Commands and slot-matched panels.
|
|
5992
|
+
* ---
|
|
5993
|
+
*
|
|
5994
|
+
*
|
|
5995
|
+
* ### **Events:**
|
|
5996
|
+
* - **select** - Dispatched when the selected tab value changes after an invoker `--toggle` updates selection
|
|
5997
|
+
*
|
|
5998
|
+
* ### **Slots:**
|
|
5999
|
+
* - _default_ - Default slot for a single nve-tabs element. Do not use behavior-select on nve-tabs when using this group.
|
|
6000
|
+
* - **value** - Named panel content where the slot name matches a nve-tabs-item value.
|
|
6001
|
+
*
|
|
6002
|
+
* ### **CSS Properties:**
|
|
6003
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
6004
|
+
*/
|
|
6005
|
+
"nve-tabs-group": DefineComponent<TabsGroupProps>;
|
|
6006
|
+
|
|
5892
6007
|
/**
|
|
5893
6008
|
* Represents an individual tab within a tablist, providing a selectable button for switching between content views.
|
|
5894
6009
|
* ---
|
|
@@ -6203,7 +6318,7 @@ export type CustomElements = {
|
|
|
6203
6318
|
*
|
|
6204
6319
|
* ### **Slots:**
|
|
6205
6320
|
* - _default_ - Use default slot for basic text content or nested <nve-tree-node> elements.
|
|
6206
|
-
* - **content** - Use for extended long form content containing interactive elements or form inputs.
|
|
6321
|
+
* - **content** - Use only for extended long form content containing interactive elements or form inputs.
|
|
6207
6322
|
*
|
|
6208
6323
|
* ### **CSS Properties:**
|
|
6209
6324
|
* - **--color** - undefined _(default: undefined)_
|