@nvidia-elements/core 2.14.0 → 2.15.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 +10 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +30 -0
- package/dist/bundles/index.js +6 -6
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +90 -0
- package/dist/custom-elements-vue.d.ts +87 -0
- package/dist/custom-elements.json +746 -0
- package/dist/data.html.json +99 -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/drag-handle/define.d.ts +6 -0
- package/dist/drag-handle/define.js +7 -0
- package/dist/drag-handle/define.js.map +1 -0
- package/dist/drag-handle/drag-handle.d.ts +33 -0
- package/dist/drag-handle/drag-handle.examples.js +6 -0
- package/dist/drag-handle/drag-handle.examples.js.map +1 -0
- package/dist/drag-handle/drag-handle.examples.json +33 -0
- package/dist/drag-handle/drag-handle.js +6 -0
- package/dist/drag-handle/drag-handle.js.map +1 -0
- package/dist/drag-handle/drag-handle2.js +51 -0
- package/dist/drag-handle/drag-handle2.js.map +1 -0
- package/dist/drag-handle/index.d.ts +1 -0
- package/dist/drag-handle/index.js +2 -0
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/format-truncate/format-truncate2.js +1 -1
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-group2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-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/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/viewport/viewport-gridlines2.js +1 -1
- package/dist/viewport/viewport-minimap2.js +1 -1
- package/dist/viewport/viewport2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +14 -2
package/dist/button/button2.js
CHANGED
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.15.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.15.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.15.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.15.0",
|
|
76
76
|
parents: ["nve-card"]
|
|
77
77
|
};
|
|
78
78
|
}
|
package/dist/color/color2.js
CHANGED
|
@@ -874,6 +874,79 @@ export type DotProps = {
|
|
|
874
874
|
size?: "sm" | "md" | "lg";
|
|
875
875
|
};
|
|
876
876
|
|
|
877
|
+
export type DragHandleProps = {
|
|
878
|
+
/** Indicates whether the element is a noninteractive visual treatment instead of a button.
|
|
879
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly */
|
|
880
|
+
readonly?: boolean;
|
|
881
|
+
/** Establishes a relationship between a popover and its invoker button.
|
|
882
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement */
|
|
883
|
+
popovertarget?: string;
|
|
884
|
+
/** The popover target action to perform on the popover target element.
|
|
885
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction */
|
|
886
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
887
|
+
/** The element that receives the command.
|
|
888
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
889
|
+
commandfor?: string;
|
|
890
|
+
/** The element that receives the interest.
|
|
891
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
892
|
+
interestfor?: string;
|
|
893
|
+
/** Defines the button behavior when associated within a form element.
|
|
894
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type */
|
|
895
|
+
type?: "button" | "submit" | "reset";
|
|
896
|
+
/** Indicates the current state of a toggle button that switches on or off. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed)
|
|
897
|
+
- `true` The button is in the pressed (on) state and the associated action or setting is active.
|
|
898
|
+
|
|
899
|
+
- `false` The button is in the unpressed (off) state and the associated action or setting is inactive. */
|
|
900
|
+
pressed?: boolean;
|
|
901
|
+
/** Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
|
902
|
+
- `true` The associated content expands and becomes visible to the user.
|
|
903
|
+
|
|
904
|
+
- `false` The associated content collapses and hides from the user. */
|
|
905
|
+
expanded?: boolean;
|
|
906
|
+
/** Indicates whether the element is a noninteractive visual treatment instead of a button.
|
|
907
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly */
|
|
908
|
+
readOnly?: boolean;
|
|
909
|
+
/** Associates the button with a form. Set the property to a form element or its ID. The HTML attribute accepts only
|
|
910
|
+
the form ID. Reading the property returns the associated form element or `null`.
|
|
911
|
+
https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form */
|
|
912
|
+
form?: string | HTMLFormElement | null;
|
|
913
|
+
/** The name of the button, submitted as a pair with the button value as part of the form data.
|
|
914
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-name */
|
|
915
|
+
name?: string;
|
|
916
|
+
/** Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value) */
|
|
917
|
+
value?: string;
|
|
918
|
+
/** This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled)
|
|
919
|
+
- `true` The element has a disabled state and does not accept interaction.
|
|
920
|
+
|
|
921
|
+
- `false` The element has an enabled state and accepts interaction. */
|
|
922
|
+
disabled?: boolean;
|
|
923
|
+
/** 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)
|
|
924
|
+
- `true` The element holds selection and represents the user's current choice within the group.
|
|
925
|
+
|
|
926
|
+
- `false` The element does not hold selection and the user can choose it. */
|
|
927
|
+
selected?: boolean;
|
|
928
|
+
/** Indicates the element that represents the user's current location or position within a set. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
|
|
929
|
+
- `page` Marks the current page within a set of navigation links.
|
|
930
|
+
|
|
931
|
+
- `step` Marks the current step within a multi-step process or workflow. */
|
|
932
|
+
current?: "page" | "step";
|
|
933
|
+
/** Establishes a relationship between a popover and its invoker button.
|
|
934
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement */
|
|
935
|
+
popoverTargetElement?: HTMLElement | null;
|
|
936
|
+
/** The popover target action to perform on the popover target element.
|
|
937
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction */
|
|
938
|
+
popoverTargetAction?: "show" | "hide" | "toggle";
|
|
939
|
+
/** The element that receives the command.
|
|
940
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
941
|
+
commandForElement?: HTMLElement | null;
|
|
942
|
+
/** The command to execute on the element.
|
|
943
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
944
|
+
command?: string;
|
|
945
|
+
/** The element that receives the interest.
|
|
946
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
947
|
+
interestForElement?: HTMLElement | null;
|
|
948
|
+
};
|
|
949
|
+
|
|
877
950
|
export type DrawerContentProps = {};
|
|
878
951
|
|
|
879
952
|
export type DrawerFooterProps = {};
|
|
@@ -4815,6 +4888,23 @@ export type CustomElements = {
|
|
|
4815
4888
|
*/
|
|
4816
4889
|
"nve-dot": Partial<DotProps & BaseProps & BaseEvents>;
|
|
4817
4890
|
|
|
4891
|
+
/**
|
|
4892
|
+
* A draggable grip button with a native drag preview. Activation toggles the pressed state; the application controls movement.
|
|
4893
|
+
* ---
|
|
4894
|
+
*
|
|
4895
|
+
*
|
|
4896
|
+
* ### **CSS Properties:**
|
|
4897
|
+
* - **--cursor** - The cursor over the handle. _(default: undefined)_
|
|
4898
|
+
* - **--color** - The grip color. _(default: undefined)_
|
|
4899
|
+
* - **--width** - The horizontal size of the pointer target. _(default: undefined)_
|
|
4900
|
+
* - **--height** - The vertical size of the pointer target. _(default: undefined)_
|
|
4901
|
+
* - **--border-radius** - The handle corner radius. _(default: undefined)_
|
|
4902
|
+
*
|
|
4903
|
+
* ### **CSS Parts:**
|
|
4904
|
+
* - **icon** - The fixed grip icon.
|
|
4905
|
+
*/
|
|
4906
|
+
"nve-drag-handle": Partial<DragHandleProps & BaseProps & BaseEvents>;
|
|
4907
|
+
|
|
4818
4908
|
/**
|
|
4819
4909
|
* Contains the scrollable main body content within a drawer panel.
|
|
4820
4910
|
* ---
|
|
@@ -766,6 +766,76 @@ type DotProps = {
|
|
|
766
766
|
size?: "sm" | "md" | "lg";
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
+
type DragHandleProps = {
|
|
770
|
+
/** Establishes a relationship between a popover and its invoker button.
|
|
771
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement */
|
|
772
|
+
popovertarget?: string;
|
|
773
|
+
/** The popover target action to perform on the popover target element.
|
|
774
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction */
|
|
775
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
776
|
+
/** The element that receives the command.
|
|
777
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
778
|
+
commandfor?: string;
|
|
779
|
+
/** The element that receives the interest.
|
|
780
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
781
|
+
interestfor?: string;
|
|
782
|
+
/** Defines the button behavior when associated within a form element.
|
|
783
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type */
|
|
784
|
+
type?: "button" | "submit" | "reset";
|
|
785
|
+
/** Indicates the current state of a toggle button that switches on or off. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed)
|
|
786
|
+
- `true` The button is in the pressed (on) state and the associated action or setting is active.
|
|
787
|
+
|
|
788
|
+
- `false` The button is in the unpressed (off) state and the associated action or setting is inactive. */
|
|
789
|
+
pressed?: boolean;
|
|
790
|
+
/** Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
|
791
|
+
- `true` The associated content expands and becomes visible to the user.
|
|
792
|
+
|
|
793
|
+
- `false` The associated content collapses and hides from the user. */
|
|
794
|
+
expanded?: boolean;
|
|
795
|
+
/** Indicates whether the element is a noninteractive visual treatment instead of a button.
|
|
796
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly */
|
|
797
|
+
readOnly?: boolean;
|
|
798
|
+
/** Associates the button with a form. Set the property to a form element or its ID. The HTML attribute accepts only
|
|
799
|
+
the form ID. Reading the property returns the associated form element or `null`.
|
|
800
|
+
https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form */
|
|
801
|
+
form?: string | HTMLFormElement | null;
|
|
802
|
+
/** The name of the button, submitted as a pair with the button value as part of the form data.
|
|
803
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-name */
|
|
804
|
+
name?: string;
|
|
805
|
+
/** Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value) */
|
|
806
|
+
value?: string;
|
|
807
|
+
/** This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled)
|
|
808
|
+
- `true` The element has a disabled state and does not accept interaction.
|
|
809
|
+
|
|
810
|
+
- `false` The element has an enabled state and accepts interaction. */
|
|
811
|
+
disabled?: boolean;
|
|
812
|
+
/** 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)
|
|
813
|
+
- `true` The element holds selection and represents the user's current choice within the group.
|
|
814
|
+
|
|
815
|
+
- `false` The element does not hold selection and the user can choose it. */
|
|
816
|
+
selected?: boolean;
|
|
817
|
+
/** Indicates the element that represents the user's current location or position within a set. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
|
|
818
|
+
- `page` Marks the current page within a set of navigation links.
|
|
819
|
+
|
|
820
|
+
- `step` Marks the current step within a multi-step process or workflow. */
|
|
821
|
+
current?: "page" | "step";
|
|
822
|
+
/** Establishes a relationship between a popover and its invoker button.
|
|
823
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement */
|
|
824
|
+
popoverTargetElement?: HTMLElement | null;
|
|
825
|
+
/** The popover target action to perform on the popover target element.
|
|
826
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction */
|
|
827
|
+
popoverTargetAction?: "show" | "hide" | "toggle";
|
|
828
|
+
/** The element that receives the command.
|
|
829
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
830
|
+
commandForElement?: HTMLElement | null;
|
|
831
|
+
/** The command to execute on the element.
|
|
832
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API */
|
|
833
|
+
command?: string;
|
|
834
|
+
/** The element that receives the interest.
|
|
835
|
+
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement */
|
|
836
|
+
interestForElement?: HTMLElement | null;
|
|
837
|
+
};
|
|
838
|
+
|
|
769
839
|
type DrawerContentProps = {};
|
|
770
840
|
|
|
771
841
|
type DrawerFooterProps = {};
|
|
@@ -4569,6 +4639,23 @@ export type CustomElements = {
|
|
|
4569
4639
|
*/
|
|
4570
4640
|
"nve-dot": DefineComponent<DotProps>;
|
|
4571
4641
|
|
|
4642
|
+
/**
|
|
4643
|
+
* A draggable grip button with a native drag preview. Activation toggles the pressed state; the application controls movement.
|
|
4644
|
+
* ---
|
|
4645
|
+
*
|
|
4646
|
+
*
|
|
4647
|
+
* ### **CSS Properties:**
|
|
4648
|
+
* - **--cursor** - The cursor over the handle. _(default: undefined)_
|
|
4649
|
+
* - **--color** - The grip color. _(default: undefined)_
|
|
4650
|
+
* - **--width** - The horizontal size of the pointer target. _(default: undefined)_
|
|
4651
|
+
* - **--height** - The vertical size of the pointer target. _(default: undefined)_
|
|
4652
|
+
* - **--border-radius** - The handle corner radius. _(default: undefined)_
|
|
4653
|
+
*
|
|
4654
|
+
* ### **CSS Parts:**
|
|
4655
|
+
* - **icon** - The fixed grip icon.
|
|
4656
|
+
*/
|
|
4657
|
+
"nve-drag-handle": DefineComponent<DragHandleProps>;
|
|
4658
|
+
|
|
4572
4659
|
/**
|
|
4573
4660
|
* Contains the scrollable main body content within a drawer panel.
|
|
4574
4661
|
* ---
|