@nvidia-elements/core 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +3 -7
- package/dist/accordion/accordion.d.ts +4 -4
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group.d.ts +1 -1
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.d.ts +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group.d.ts +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar.d.ts +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge.d.ts +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb.d.ts +2 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js.map +1 -1
- package/dist/bundles/index.d.ts +183 -44
- package/dist/bundles/index.js +6 -6
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group.d.ts +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card.d.ts +4 -4
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message.d.ts +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/color.d.ts +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox.d.ts +2 -2
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button.d.ts +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +117 -25
- package/dist/custom-elements-vue.d.ts +115 -25
- package/dist/custom-elements.json +1075 -916
- package/dist/data.html.json +55 -7
- package/dist/data.snippets.json +45 -45
- package/dist/date/date.d.ts +1 -1
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime.d.ts +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer.d.ts +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header.d.ts +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider.d.ts +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot.d.ts +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content.d.ts +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer.d.ts +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header.d.ts +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer.d.ts +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header.d.ts +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown.d.ts +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.d.ts +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone.d.ts +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes.d.ts +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime.d.ts +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number.d.ts +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time.d.ts +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-group.d.ts +3 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-group/control-group2.js.map +1 -1
- package/dist/forms/control-message/control-message.d.ts +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge.d.ts +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/grid/cell/cell.d.ts +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column.d.ts +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer.d.ts +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid.d.ts +3 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/grid2.js.map +1 -1
- package/dist/grid/header/header.d.ts +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder.d.ts +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row.d.ts +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon.d.ts +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button.d.ts +1 -1
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/controllers/keynav-list.controller.js.map +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/types/index.d.ts +6 -2
- package/dist/internal/types/index.js.map +1 -1
- package/dist/internal/utils/audit.js +1 -1
- package/dist/internal/utils/audit.js.map +1 -1
- package/dist/internal/utils/dom.d.ts +3 -1
- package/dist/internal/utils/dom.js.map +1 -1
- package/dist/logo/logo.d.ts +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/define.d.ts +2 -1
- package/dist/menu/define.js +3 -2
- package/dist/menu/define.js.map +1 -1
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu/index.js +3 -2
- package/dist/menu/menu-group.d.ts +50 -0
- package/dist/menu/menu-group.js +6 -0
- package/dist/menu/menu-group.js.map +1 -0
- package/dist/menu/menu-group2.js +53 -0
- package/dist/menu/menu-group2.js.map +1 -0
- package/dist/menu/menu-item.d.ts +2 -1
- package/dist/menu/menu-item.js +1 -1
- package/dist/menu/menu-item.js.map +1 -1
- package/dist/menu/menu-item2.js +2 -2
- package/dist/menu/menu-item2.js.map +1 -1
- package/dist/menu/menu.d.ts +7 -2
- package/dist/menu/menu.examples.js.map +1 -1
- package/dist/menu/menu.examples.json +53 -13
- package/dist/menu/menu.global.js +1 -1
- package/dist/menu/menu.global.js.map +1 -1
- package/dist/menu/menu2.js +16 -8
- package/dist/menu/menu2.js.map +1 -1
- package/dist/month/month.d.ts +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group.d.ts +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification.d.ts +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content.d.ts +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer.d.ts +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header.d.ts +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel.d.ts +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page.d.ts +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header.d.ts +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader.d.ts +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination.d.ts +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel.d.ts +4 -4
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password.d.ts +1 -1
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input.d.ts +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar.d.ts +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring.d.ts +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip.d.ts +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse.d.ts +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range.d.ts +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle.d.ts +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search.d.ts +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select.d.ts +2 -2
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton.d.ts +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button.d.ts +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline.d.ts +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating.d.ts +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps.d.ts +5 -5
- package/dist/steps/steps2.js +2 -2
- package/dist/steps/steps2.js.map +1 -1
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group.d.ts +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs.d.ts +2 -2
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag.d.ts +1 -1
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea.d.ts +2 -2
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time.d.ts +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast.d.ts +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer.d.ts +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header.d.ts +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip.d.ts +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar.d.ts +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node.d.ts +2 -2
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree-node2.js.map +1 -1
- package/dist/tree/tree.d.ts +2 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/tree/tree2.js.map +1 -1
- package/dist/viewport/define.d.ts +2 -1
- package/dist/viewport/define.js +2 -1
- package/dist/viewport/define.js.map +1 -1
- package/dist/viewport/index.d.ts +2 -1
- package/dist/viewport/index.js +2 -1
- package/dist/viewport/viewport-gesture-navigation.controller.d.ts +8 -10
- package/dist/viewport/viewport-gesture-navigation.controller.js +73 -66
- package/dist/viewport/viewport-gesture-navigation.controller.js.map +1 -1
- package/dist/viewport/viewport-gridlines.d.ts +1 -1
- package/dist/viewport/viewport-gridlines2.js +3 -3
- package/dist/viewport/viewport-gridlines2.js.map +1 -1
- package/dist/viewport/viewport-minimap.d.ts +36 -0
- package/dist/viewport/viewport-minimap.js +6 -0
- package/dist/viewport/viewport-minimap.js.map +1 -0
- package/dist/viewport/viewport-minimap.utils.d.ts +13 -0
- package/dist/viewport/viewport-minimap.utils.js +49 -0
- package/dist/viewport/viewport-minimap.utils.js.map +1 -0
- package/dist/viewport/viewport-minimap2.js +309 -0
- package/dist/viewport/viewport-minimap2.js.map +1 -0
- package/dist/viewport/viewport-navigation.controller.d.ts +7 -13
- package/dist/viewport/viewport-navigation.controller.js +14 -20
- package/dist/viewport/viewport-navigation.controller.js.map +1 -1
- package/dist/viewport/viewport-navigation.types.d.ts +0 -8
- package/dist/viewport/viewport.d.ts +31 -6
- package/dist/viewport/viewport.examples.js.map +1 -1
- package/dist/viewport/viewport.examples.json +13 -4
- package/dist/viewport/viewport.js +1 -1
- package/dist/viewport/viewport.js.map +1 -1
- package/dist/viewport/viewport.types.d.ts +50 -23
- package/dist/viewport/viewport2.js +173 -118
- package/dist/viewport/viewport2.js.map +1 -1
- package/dist/week/week.d.ts +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +7 -4
|
@@ -2256,6 +2256,25 @@ type LogoProps = {
|
|
|
2256
2256
|
size?: "sm" | "md" | "lg" | undefined;
|
|
2257
2257
|
};
|
|
2258
2258
|
|
|
2259
|
+
type MenuGroupProps = {
|
|
2260
|
+
/** 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)
|
|
2261
|
+
- `true` The associated content expands and becomes visible to the user.
|
|
2262
|
+
|
|
2263
|
+
- `false` The associated content collapses and hides from the user. */
|
|
2264
|
+
expanded?: boolean;
|
|
2265
|
+
/** 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)
|
|
2266
|
+
- `true` The element has a disabled state and does not accept interaction.
|
|
2267
|
+
|
|
2268
|
+
- `false` The element has an enabled state and accepts interaction. */
|
|
2269
|
+
disabled?: boolean;
|
|
2270
|
+
/** Determines whether user activation automatically updates the expanded state. */
|
|
2271
|
+
behaviorExpand?: boolean;
|
|
2272
|
+
/** Dispatched when the user requests that the menu group open. */
|
|
2273
|
+
onopen?: (e: CustomEvent<never>) => void;
|
|
2274
|
+
/** Dispatched when the user requests that the menu group close. */
|
|
2275
|
+
onclose?: (e: CustomEvent<never>) => void;
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2259
2278
|
type MenuItemProps = {
|
|
2260
2279
|
/** Establishes a relationship between a popover and its invoker button.
|
|
2261
2280
|
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement */
|
|
@@ -2329,6 +2348,11 @@ https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForEl
|
|
|
2329
2348
|
};
|
|
2330
2349
|
|
|
2331
2350
|
type MenuProps = {
|
|
2351
|
+
/** Determines if the menu is in a compact layout. This hides all menu item content except the prefix icon slot.
|
|
2352
|
+
- `compact` Reduces visual weight and spacing for dense layouts or secondary elements with less visual prominence.
|
|
2353
|
+
|
|
2354
|
+
- `default` Standard size that works well in most contexts and provides balanced visibility. */
|
|
2355
|
+
density?: "compact" | "default" | undefined;
|
|
2332
2356
|
/** Fires when the user scrolls the menu list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. */
|
|
2333
2357
|
onscroll?: (e: CustomEvent<never>) => void;
|
|
2334
2358
|
};
|
|
@@ -3783,6 +3807,8 @@ type ViewportGridlinesProps = {
|
|
|
3783
3807
|
targetSpacing?: number;
|
|
3784
3808
|
};
|
|
3785
3809
|
|
|
3810
|
+
type ViewportMinimapProps = {};
|
|
3811
|
+
|
|
3786
3812
|
type ViewportProps = {
|
|
3787
3813
|
/** Inclusive lower scale limit. */
|
|
3788
3814
|
"min-scale"?: number;
|
|
@@ -3814,17 +3840,19 @@ type ViewportProps = {
|
|
|
3814
3840
|
fitInset?: number;
|
|
3815
3841
|
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
3816
3842
|
dragThreshold?: number;
|
|
3843
|
+
/** Dispatched after effective user-input pan or zoom admission changes. */
|
|
3844
|
+
oncapabilitieschange?: (e: CustomEvent<Event>) => void;
|
|
3817
3845
|
/** Dispatched once after a render that commits one or more viewport transform changes. */
|
|
3818
3846
|
onviewportchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
3819
3847
|
/** */
|
|
3820
3848
|
ontype?: (e: CustomEvent<CustomEvent>) => void;
|
|
3821
|
-
/** Dispatched when pointer
|
|
3849
|
+
/** Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session. */
|
|
3822
3850
|
onpanstart?: (e: CustomEvent<never>) => void;
|
|
3823
|
-
/** Dispatched
|
|
3851
|
+
/** Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation. */
|
|
3824
3852
|
onpan?: (e: CustomEvent<never>) => void;
|
|
3825
|
-
/** Dispatched when a
|
|
3853
|
+
/** Dispatched once when a sustained pan ends, including its terminal reason. */
|
|
3826
3854
|
onpanend?: (e: CustomEvent<never>) => void;
|
|
3827
|
-
/** Dispatched
|
|
3855
|
+
/** Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation. */
|
|
3828
3856
|
onzoom?: (e: CustomEvent<never>) => void;
|
|
3829
3857
|
};
|
|
3830
3858
|
|
|
@@ -4698,13 +4726,13 @@ export type CustomElements = {
|
|
|
4698
4726
|
* - **change** - Dispatched when the value has changed (files located in event.target)
|
|
4699
4727
|
*
|
|
4700
4728
|
* ### **Methods:**
|
|
4701
|
-
* - **reportValidity()** - Reports whether the control satisfies its constraints.
|
|
4729
|
+
* - **reportValidity(): _boolean_** - Reports whether the control satisfies its constraints.
|
|
4702
4730
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
|
|
4703
|
-
* - **checkValidity()** - Checks whether the control satisfies its constraints.
|
|
4731
|
+
* - **checkValidity(): _boolean_** - Checks whether the control satisfies its constraints.
|
|
4704
4732
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
|
|
4705
|
-
* - **setCustomValidity()** - Sets a custom validation message.
|
|
4733
|
+
* - **setCustomValidity(message: _string_): _void_** - Sets a custom validation message.
|
|
4706
4734
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
|
|
4707
|
-
* - **reset()** - Resets the control value to its initial value.
|
|
4735
|
+
* - **reset(): _void_** - Resets the control value to its initial value.
|
|
4708
4736
|
*
|
|
4709
4737
|
* ### **Slots:**
|
|
4710
4738
|
* - _default_ - Custom messaging that replaces the default upload instructions.
|
|
@@ -5158,6 +5186,33 @@ export type CustomElements = {
|
|
|
5158
5186
|
*/
|
|
5159
5187
|
"nve-logo": DefineComponent<LogoProps>;
|
|
5160
5188
|
|
|
5189
|
+
/**
|
|
5190
|
+
* Organizes related menu items under a disclosure header that can show or hide one child menu.
|
|
5191
|
+
* ---
|
|
5192
|
+
*
|
|
5193
|
+
*
|
|
5194
|
+
* ### **Events:**
|
|
5195
|
+
* - **open** - Dispatched when the user requests that the menu group open.
|
|
5196
|
+
* - **close** - Dispatched when the user requests that the menu group close.
|
|
5197
|
+
*
|
|
5198
|
+
* ### **Slots:**
|
|
5199
|
+
* - _default_ - Label content for the disclosure header.
|
|
5200
|
+
* - **prefix** - Non-interactive content before the header label, such as an icon or avatar.
|
|
5201
|
+
* - **suffix** - Non-interactive content after the header label, such as a badge or count.
|
|
5202
|
+
* - **menu** - One `nve-menu` containing the grouped menu items. Direct menus use this slot automatically in browsers; server-rendered menus must set `slot="menu"` explicitly.
|
|
5203
|
+
*
|
|
5204
|
+
* ### **CSS Properties:**
|
|
5205
|
+
* - **--background** - undefined _(default: undefined)_
|
|
5206
|
+
* - **--font-size** - undefined _(default: undefined)_
|
|
5207
|
+
* - **--padding** - undefined _(default: undefined)_
|
|
5208
|
+
* - **--gap** - undefined _(default: undefined)_
|
|
5209
|
+
* - **--border-radius** - undefined _(default: undefined)_
|
|
5210
|
+
* - **--color** - undefined _(default: undefined)_
|
|
5211
|
+
* - **--width** - undefined _(default: undefined)_
|
|
5212
|
+
* - **--min-height** - undefined _(default: undefined)_
|
|
5213
|
+
*/
|
|
5214
|
+
"nve-menu-group": DefineComponent<MenuGroupProps>;
|
|
5215
|
+
|
|
5161
5216
|
/**
|
|
5162
5217
|
* Represents a selectable option within a menu, providing an interactive button for navigation or actions.
|
|
5163
5218
|
* ---
|
|
@@ -5165,6 +5220,7 @@ export type CustomElements = {
|
|
|
5165
5220
|
*
|
|
5166
5221
|
* ### **Slots:**
|
|
5167
5222
|
* - _default_ - Label and supporting content for the menu option.
|
|
5223
|
+
* - **prefix** - slot for prefix icon
|
|
5168
5224
|
* - **suffix** - slot for suffix icon
|
|
5169
5225
|
*
|
|
5170
5226
|
* ### **CSS Properties:**
|
|
@@ -5444,13 +5500,13 @@ export type CustomElements = {
|
|
|
5444
5500
|
* - **change** - Dispatched when the value (page) has changed
|
|
5445
5501
|
*
|
|
5446
5502
|
* ### **Methods:**
|
|
5447
|
-
* - **reportValidity()** - Reports whether the control satisfies its constraints.
|
|
5503
|
+
* - **reportValidity(): _boolean_** - Reports whether the control satisfies its constraints.
|
|
5448
5504
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
|
|
5449
|
-
* - **checkValidity()** - Checks whether the control satisfies its constraints.
|
|
5505
|
+
* - **checkValidity(): _boolean_** - Checks whether the control satisfies its constraints.
|
|
5450
5506
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
|
|
5451
|
-
* - **setCustomValidity()** - Sets a custom validation message.
|
|
5507
|
+
* - **setCustomValidity(message: _string_): _void_** - Sets a custom validation message.
|
|
5452
5508
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
|
|
5453
|
-
* - **reset()** - Resets the control value to its initial value.
|
|
5509
|
+
* - **reset(): _void_** - Resets the control value to its initial value.
|
|
5454
5510
|
*
|
|
5455
5511
|
* ### **Slots:**
|
|
5456
5512
|
* - **suffix-label** - Overrides the "of total" label when the total is an approximation.
|
|
@@ -5596,13 +5652,13 @@ export type CustomElements = {
|
|
|
5596
5652
|
* - **change** - Dispatched when the value has changed
|
|
5597
5653
|
*
|
|
5598
5654
|
* ### **Methods:**
|
|
5599
|
-
* - **reportValidity()** - Reports whether the control satisfies its constraints.
|
|
5655
|
+
* - **reportValidity(): _boolean_** - Reports whether the control satisfies its constraints.
|
|
5600
5656
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
|
|
5601
|
-
* - **checkValidity()** - Checks whether the control satisfies its constraints.
|
|
5657
|
+
* - **checkValidity(): _boolean_** - Checks whether the control satisfies its constraints.
|
|
5602
5658
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
|
|
5603
|
-
* - **setCustomValidity()** - Sets a custom validation message.
|
|
5659
|
+
* - **setCustomValidity(message: _string_): _void_** - Sets a custom validation message.
|
|
5604
5660
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
|
|
5605
|
-
* - **reset()** - Resets the control value to its initial value.
|
|
5661
|
+
* - **reset(): _void_** - Resets the control value to its initial value.
|
|
5606
5662
|
*
|
|
5607
5663
|
* ### **CSS Properties:**
|
|
5608
5664
|
* - **--color** - undefined _(default: undefined)_
|
|
@@ -5794,13 +5850,13 @@ export type CustomElements = {
|
|
|
5794
5850
|
* - **toggle** - Dispatched when the resize handle is double clicked.
|
|
5795
5851
|
*
|
|
5796
5852
|
* ### **Methods:**
|
|
5797
|
-
* - **reportValidity()** - Reports whether the control satisfies its constraints.
|
|
5853
|
+
* - **reportValidity(): _boolean_** - Reports whether the control satisfies its constraints.
|
|
5798
5854
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
|
|
5799
|
-
* - **checkValidity()** - Checks whether the control satisfies its constraints.
|
|
5855
|
+
* - **checkValidity(): _boolean_** - Checks whether the control satisfies its constraints.
|
|
5800
5856
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
|
|
5801
|
-
* - **setCustomValidity()** - Sets a custom validation message.
|
|
5857
|
+
* - **setCustomValidity(message: _string_): _void_** - Sets a custom validation message.
|
|
5802
5858
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
|
|
5803
|
-
* - **reset()** - Resets the control value to its initial value.
|
|
5859
|
+
* - **reset(): _void_** - Resets the control value to its initial value.
|
|
5804
5860
|
*
|
|
5805
5861
|
* ### **CSS Properties:**
|
|
5806
5862
|
* - **--background** - undefined _(default: undefined)_
|
|
@@ -6464,24 +6520,57 @@ export type CustomElements = {
|
|
|
6464
6520
|
*/
|
|
6465
6521
|
"nve-viewport-gridlines": DefineComponent<ViewportGridlinesProps>;
|
|
6466
6522
|
|
|
6523
|
+
/**
|
|
6524
|
+
* Provides a simplified overview and direct navigation for its parent viewport.
|
|
6525
|
+
* ---
|
|
6526
|
+
*
|
|
6527
|
+
*
|
|
6528
|
+
* ### **Methods:**
|
|
6529
|
+
* - **refresh(): _void_** - Remeasures content bounds after preview or viewport roots move without resizing.
|
|
6530
|
+
*
|
|
6531
|
+
* ### **Slots:**
|
|
6532
|
+
* - **preview** - Optional simplified content drawn in viewport content coordinates. Replaces automatic root rectangles.
|
|
6533
|
+
*
|
|
6534
|
+
* ### **CSS Properties:**
|
|
6535
|
+
* - **--background** - Color of the surface behind preview geometry. _(default: undefined)_
|
|
6536
|
+
* - **--color** - Color of automatically drawn root rectangles. _(default: undefined)_
|
|
6537
|
+
* - **--indicator-color** - Color of the current visible-region indicator. _(default: undefined)_
|
|
6538
|
+
* - **--border-radius** - Corner radius of the minimap. _(default: undefined)_
|
|
6539
|
+
* - **--recenter-cursor** - Cursor for clicking the background to center the viewport. _(default: undefined)_
|
|
6540
|
+
* - **--pan-cursor** - Cursor over a draggable visible region. _(default: undefined)_
|
|
6541
|
+
* - **--panning-cursor** - Cursor during a visible-region drag. _(default: undefined)_
|
|
6542
|
+
*/
|
|
6543
|
+
"nve-viewport-minimap": DefineComponent<ViewportMinimapProps>;
|
|
6544
|
+
|
|
6467
6545
|
/**
|
|
6468
6546
|
* A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.
|
|
6469
6547
|
* ---
|
|
6470
6548
|
*
|
|
6471
6549
|
*
|
|
6472
6550
|
* ### **Events:**
|
|
6473
|
-
* - **
|
|
6551
|
+
* - **capabilitieschange** - Dispatched after effective user-input pan or zoom admission changes.
|
|
6552
|
+
* - **viewportchange** - Dispatched once after a render that commits one or more viewport transform changes.
|
|
6474
6553
|
* - **type**
|
|
6475
|
-
* - **panstart** - Dispatched when pointer
|
|
6476
|
-
* - **pan** - Dispatched
|
|
6477
|
-
* - **panend** - Dispatched when a
|
|
6478
|
-
* - **zoom** - Dispatched
|
|
6554
|
+
* - **panstart** - Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session.
|
|
6555
|
+
* - **pan** - Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation.
|
|
6556
|
+
* - **panend** - Dispatched once when a sustained pan ends, including its terminal reason.
|
|
6557
|
+
* - **zoom** - Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation.
|
|
6479
6558
|
*
|
|
6480
6559
|
* ### **Methods:**
|
|
6481
6560
|
* - **toViewportCoords(contentX: _number_, contentY: _number_): _ViewportPoint_** - Converts a content-space point to viewport CSS pixels.
|
|
6482
6561
|
* - **toContentCoords(viewportX: _number_, viewportY: _number_): _ViewportPoint_** - Converts a viewport CSS-pixel point to content space.
|
|
6483
6562
|
* - **getTransform(): _ViewportTransform_** - Returns the current content-space origin and CSS-pixel scale.
|
|
6484
6563
|
* - **getVisibleRect(): _ViewportRect_** - Returns the visible content-space rectangle.
|
|
6564
|
+
* - **requestPan(proposal: _ViewportPanProposal_): _boolean_** - Requests one discrete user-originated pan. When pannable, the viewport dispatches
|
|
6565
|
+
* a cancelable `pan` and applies the default transform if no listener cancels the event.
|
|
6566
|
+
* Returns true only when that default changes the transform.
|
|
6567
|
+
* - **requestZoom(proposal: _ViewportZoomProposal_, options: _ViewportZoomRequestOptions_): _boolean_** - Requests one discrete user-originated zoom. When zoomable, the viewport dispatches
|
|
6568
|
+
* a cancelable `zoom` and applies the default transform if no listener cancels the event.
|
|
6569
|
+
* Set `options.animated` to animate the uncanceled default; the option is absent from the `zoom` detail.
|
|
6570
|
+
* Returns true when the default changes or schedules a change to the transform.
|
|
6571
|
+
* - **startPan(proposal: _ViewportPanProposal_): _ViewportPanSession | undefined_** - Starts a sustained semantic pan after the caller crosses its activation threshold.
|
|
6572
|
+
* Dispatches `panstart`, performs the initial `pan` update, and returns a session for later updates
|
|
6573
|
+
* and one terminal `panend`. Returns undefined when pannable is false.
|
|
6485
6574
|
* - **animateTo(target: _Partial<ViewportTransform>_, options: _ViewportAnimationOptions_): _void_** - Animates the viewport to the requested partial transform.
|
|
6486
6575
|
* - **reveal(region: _{ x: number; y: number; width?: number; height?: number }_, options: _ViewportRevealOptions_): _void_** - Centers or fits a content-space region within the viewport.
|
|
6487
6576
|
* - **fitContents(options: _ViewportRevealOptions_): _void_** - Fits the union of direct default-slot element boxes within the viewport.
|
|
@@ -6489,6 +6578,7 @@ export type CustomElements = {
|
|
|
6489
6578
|
* ### **Slots:**
|
|
6490
6579
|
* - _default_ - Content positioned in the viewport's infinite content space.
|
|
6491
6580
|
* - **background** - Custom content rendered behind viewport content and excluded from content fitting
|
|
6581
|
+
* - **overlay** - Interactive content fixed above the transformed plane and excluded from content fitting
|
|
6492
6582
|
*
|
|
6493
6583
|
* ### **CSS Properties:**
|
|
6494
6584
|
* - **--background** - Background color of the fixed viewport area. _(default: undefined)_
|