@nvidia-elements/core 2.15.0 → 2.15.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 +22 -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 +0 -2
- package/dist/bundles/index.d.ts +2 -289
- 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 +0 -157
- package/dist/custom-elements-vue.d.ts +0 -155
- package/dist/custom-elements.json +0 -3259
- package/dist/data.html.json +0 -119
- 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/drag-handle2.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/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/control2.js.map +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/internal/services/i18n.service.d.ts +2 -0
- package/dist/internal/services/i18n.service.js +2 -0
- package/dist/internal/services/i18n.service.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 +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/week/week2.js +1 -1
- package/package.json +2 -14
- package/dist/viewport/define.d.ts +0 -8
- package/dist/viewport/define.js +0 -8
- package/dist/viewport/define.js.map +0 -1
- package/dist/viewport/index.d.ts +0 -4
- package/dist/viewport/index.js +0 -4
- package/dist/viewport/viewport-animation.controller.d.ts +0 -21
- package/dist/viewport/viewport-animation.controller.js +0 -93
- package/dist/viewport/viewport-animation.controller.js.map +0 -1
- package/dist/viewport/viewport-autofit.controller.d.ts +0 -18
- package/dist/viewport/viewport-autofit.controller.js +0 -105
- package/dist/viewport/viewport-autofit.controller.js.map +0 -1
- package/dist/viewport/viewport-fitting.utils.d.ts +0 -36
- package/dist/viewport/viewport-fitting.utils.js +0 -35
- package/dist/viewport/viewport-fitting.utils.js.map +0 -1
- package/dist/viewport/viewport-gesture-navigation.controller.d.ts +0 -27
- package/dist/viewport/viewport-gesture-navigation.controller.js +0 -318
- package/dist/viewport/viewport-gesture-navigation.controller.js.map +0 -1
- package/dist/viewport/viewport-gridlines.d.ts +0 -42
- package/dist/viewport/viewport-gridlines.js +0 -6
- package/dist/viewport/viewport-gridlines.js.map +0 -1
- package/dist/viewport/viewport-gridlines.utils.d.ts +0 -11
- package/dist/viewport/viewport-gridlines.utils.js +0 -54
- package/dist/viewport/viewport-gridlines.utils.js.map +0 -1
- package/dist/viewport/viewport-gridlines2.js +0 -164
- package/dist/viewport/viewport-gridlines2.js.map +0 -1
- package/dist/viewport/viewport-minimap.d.ts +0 -36
- package/dist/viewport/viewport-minimap.js +0 -6
- package/dist/viewport/viewport-minimap.js.map +0 -1
- package/dist/viewport/viewport-minimap.utils.d.ts +0 -13
- package/dist/viewport/viewport-minimap.utils.js +0 -49
- package/dist/viewport/viewport-minimap.utils.js.map +0 -1
- package/dist/viewport/viewport-minimap2.js +0 -309
- package/dist/viewport/viewport-minimap2.js.map +0 -1
- package/dist/viewport/viewport-navigation.controller.d.ts +0 -21
- package/dist/viewport/viewport-navigation.controller.js +0 -136
- package/dist/viewport/viewport-navigation.controller.js.map +0 -1
- package/dist/viewport/viewport-navigation.types.d.ts +0 -1
- package/dist/viewport/viewport-projection.utils.d.ts +0 -7
- package/dist/viewport/viewport-projection.utils.js +0 -25
- package/dist/viewport/viewport-projection.utils.js.map +0 -1
- package/dist/viewport/viewport.d.ts +0 -122
- package/dist/viewport/viewport.examples.js +0 -6
- package/dist/viewport/viewport.examples.js.map +0 -1
- package/dist/viewport/viewport.examples.json +0 -87
- package/dist/viewport/viewport.js +0 -6
- package/dist/viewport/viewport.js.map +0 -1
- package/dist/viewport/viewport.types.d.ts +0 -93
- package/dist/viewport/viewport2.js +0 -440
- package/dist/viewport/viewport2.js.map +0 -1
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.15.
|
|
19
|
+
version: "2.15.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.15.
|
|
40
|
+
version: "2.15.2",
|
|
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.15.
|
|
56
|
+
version: "2.15.2",
|
|
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.15.
|
|
75
|
+
version: "2.15.2",
|
|
76
76
|
parents: ["nve-card"]
|
|
77
77
|
};
|
|
78
78
|
}
|
package/dist/color/color2.js
CHANGED
|
@@ -4105,82 +4105,6 @@ export type TreeProps = {
|
|
|
4105
4105
|
onselect?: (e: CustomEvent<never>) => void;
|
|
4106
4106
|
};
|
|
4107
4107
|
|
|
4108
|
-
export type ViewportGridlinesProps = {
|
|
4109
|
-
/** Content-space x coordinate of the grid origin. */
|
|
4110
|
-
"origin-x"?: number;
|
|
4111
|
-
/** Content-space y coordinate of the grid origin. */
|
|
4112
|
-
"origin-y"?: number;
|
|
4113
|
-
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
4114
|
-
"target-spacing"?: number;
|
|
4115
|
-
/** Grid pattern to render. */
|
|
4116
|
-
pattern?: "lines" | "dots" | "crosses";
|
|
4117
|
-
/** Smallest gridline interval in content-space units. */
|
|
4118
|
-
step?: number;
|
|
4119
|
-
/** Content-space x coordinate of the grid origin. */
|
|
4120
|
-
originX?: number;
|
|
4121
|
-
/** Content-space y coordinate of the grid origin. */
|
|
4122
|
-
originY?: number;
|
|
4123
|
-
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
4124
|
-
targetSpacing?: number;
|
|
4125
|
-
};
|
|
4126
|
-
|
|
4127
|
-
export type ViewportMinimapProps = {};
|
|
4128
|
-
|
|
4129
|
-
export type ViewportProps = {
|
|
4130
|
-
/** Inclusive lower scale limit. */
|
|
4131
|
-
"min-scale"?: number;
|
|
4132
|
-
/** Inclusive upper scale limit. */
|
|
4133
|
-
"max-scale"?: number;
|
|
4134
|
-
/** Scale stops for keyboard and command zoom, clamped to the scale bounds.
|
|
4135
|
-
Defaults to built-in stops; an empty array uses only the bounds. */
|
|
4136
|
-
"zoom-stops"?: readonly number[] | undefined;
|
|
4137
|
-
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
4138
|
-
"behavior-pan"?: boolean | "space";
|
|
4139
|
-
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
4140
|
-
"behavior-zoom"?: boolean;
|
|
4141
|
-
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
4142
|
-
"fit-inset"?: number;
|
|
4143
|
-
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
4144
|
-
"drag-threshold"?: number;
|
|
4145
|
-
/** Horizontal content-space coordinate at the viewport origin. */
|
|
4146
|
-
x?: number;
|
|
4147
|
-
/** Vertical content-space coordinate at the viewport origin. */
|
|
4148
|
-
y?: number;
|
|
4149
|
-
/** Content-to-viewport CSS-pixel scale. */
|
|
4150
|
-
scale?: number;
|
|
4151
|
-
/** Inclusive lower scale limit. */
|
|
4152
|
-
minScale?: number;
|
|
4153
|
-
/** Inclusive upper scale limit. */
|
|
4154
|
-
maxScale?: number;
|
|
4155
|
-
/** Scale stops for keyboard and command zoom, clamped to the scale bounds.
|
|
4156
|
-
Defaults to built-in stops; an empty array uses only the bounds. */
|
|
4157
|
-
zoomStops?: readonly number[] | undefined;
|
|
4158
|
-
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
4159
|
-
behaviorPan?: boolean | "space";
|
|
4160
|
-
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
4161
|
-
behaviorZoom?: boolean;
|
|
4162
|
-
/** Fits measurable direct default-slot content once after initial layout. */
|
|
4163
|
-
autoFit?: boolean;
|
|
4164
|
-
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
4165
|
-
fitInset?: number;
|
|
4166
|
-
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
4167
|
-
dragThreshold?: number;
|
|
4168
|
-
/** Dispatched after effective user-input pan or zoom admission changes. */
|
|
4169
|
-
oncapabilitieschange?: (e: CustomEvent<Event>) => void;
|
|
4170
|
-
/** Dispatched once after a render that commits one or more viewport transform changes. */
|
|
4171
|
-
onviewportchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
4172
|
-
/** */
|
|
4173
|
-
ontype?: (e: CustomEvent<CustomEvent>) => void;
|
|
4174
|
-
/** Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session. */
|
|
4175
|
-
onpanstart?: (e: CustomEvent<never>) => void;
|
|
4176
|
-
/** Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation. */
|
|
4177
|
-
onpan?: (e: CustomEvent<never>) => void;
|
|
4178
|
-
/** Dispatched once when a sustained pan ends, including its terminal reason. */
|
|
4179
|
-
onpanend?: (e: CustomEvent<never>) => void;
|
|
4180
|
-
/** Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation. */
|
|
4181
|
-
onzoom?: (e: CustomEvent<never>) => void;
|
|
4182
|
-
};
|
|
4183
|
-
|
|
4184
4108
|
export type WeekProps = {
|
|
4185
4109
|
/** Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) */
|
|
4186
4110
|
"fit-text"?: boolean;
|
|
@@ -6857,87 +6781,6 @@ export type CustomElements = {
|
|
|
6857
6781
|
*/
|
|
6858
6782
|
"nve-tree": Partial<TreeProps & BaseProps & BaseEvents>;
|
|
6859
6783
|
|
|
6860
|
-
/**
|
|
6861
|
-
* Renders origin-stable, zoom-adaptive gridline patterns behind viewport content.
|
|
6862
|
-
* ---
|
|
6863
|
-
*
|
|
6864
|
-
*
|
|
6865
|
-
* ### **CSS Properties:**
|
|
6866
|
-
* - **--color** - Sets the gridline pattern color. _(default: undefined)_
|
|
6867
|
-
* - **--line-width** - Sets the approximate stroke width in CSS pixels. _(default: undefined)_
|
|
6868
|
-
* - **--dot-radius** - Sets the approximate dot radius in CSS pixels. _(default: undefined)_
|
|
6869
|
-
* - **--cross-size** - Sets the approximate full width and height of each cross in CSS pixels. _(default: undefined)_
|
|
6870
|
-
*/
|
|
6871
|
-
"nve-viewport-gridlines": Partial<ViewportGridlinesProps & BaseProps & BaseEvents>;
|
|
6872
|
-
|
|
6873
|
-
/**
|
|
6874
|
-
* Provides a simplified overview and direct navigation for its parent viewport.
|
|
6875
|
-
* ---
|
|
6876
|
-
*
|
|
6877
|
-
*
|
|
6878
|
-
* ### **Methods:**
|
|
6879
|
-
* - **refresh(): _void_** - Remeasures content bounds after preview or viewport roots move without resizing.
|
|
6880
|
-
*
|
|
6881
|
-
* ### **Slots:**
|
|
6882
|
-
* - **preview** - Optional simplified content drawn in viewport content coordinates. Replaces automatic root rectangles.
|
|
6883
|
-
*
|
|
6884
|
-
* ### **CSS Properties:**
|
|
6885
|
-
* - **--background** - Color of the surface behind preview geometry. _(default: undefined)_
|
|
6886
|
-
* - **--color** - Color of automatically drawn root rectangles. _(default: undefined)_
|
|
6887
|
-
* - **--indicator-color** - Color of the current visible-region indicator. _(default: undefined)_
|
|
6888
|
-
* - **--border-radius** - Corner radius of the minimap. _(default: undefined)_
|
|
6889
|
-
* - **--recenter-cursor** - Cursor for clicking the background to center the viewport. _(default: undefined)_
|
|
6890
|
-
* - **--pan-cursor** - Cursor over a draggable visible region. _(default: undefined)_
|
|
6891
|
-
* - **--panning-cursor** - Cursor during a visible-region drag. _(default: undefined)_
|
|
6892
|
-
*/
|
|
6893
|
-
"nve-viewport-minimap": Partial<ViewportMinimapProps & BaseProps & BaseEvents>;
|
|
6894
|
-
|
|
6895
|
-
/**
|
|
6896
|
-
* A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.
|
|
6897
|
-
* ---
|
|
6898
|
-
*
|
|
6899
|
-
*
|
|
6900
|
-
* ### **Events:**
|
|
6901
|
-
* - **capabilitieschange** - Dispatched after effective user-input pan or zoom admission changes.
|
|
6902
|
-
* - **viewportchange** - Dispatched once after a render that commits one or more viewport transform changes.
|
|
6903
|
-
* - **type**
|
|
6904
|
-
* - **panstart** - Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session.
|
|
6905
|
-
* - **pan** - Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation.
|
|
6906
|
-
* - **panend** - Dispatched once when a sustained pan ends, including its terminal reason.
|
|
6907
|
-
* - **zoom** - Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation.
|
|
6908
|
-
*
|
|
6909
|
-
* ### **Methods:**
|
|
6910
|
-
* - **toViewportCoords(contentX: _number_, contentY: _number_): _ViewportPoint_** - Converts a content-space point to viewport CSS pixels.
|
|
6911
|
-
* - **toContentCoords(viewportX: _number_, viewportY: _number_): _ViewportPoint_** - Converts a viewport CSS-pixel point to content space.
|
|
6912
|
-
* - **getTransform(): _ViewportTransform_** - Returns the current content-space origin and CSS-pixel scale.
|
|
6913
|
-
* - **getVisibleRect(): _ViewportRect_** - Returns the visible content-space rectangle.
|
|
6914
|
-
* - **requestPan(proposal: _ViewportPanProposal_): _boolean_** - Requests one discrete user-originated pan. When pannable, the viewport dispatches
|
|
6915
|
-
* a cancelable `pan` and applies the default transform if no listener cancels the event.
|
|
6916
|
-
* Returns true only when that default changes the transform.
|
|
6917
|
-
* - **requestZoom(proposal: _ViewportZoomProposal_, options: _ViewportZoomRequestOptions_): _boolean_** - Requests one discrete user-originated zoom. When zoomable, the viewport dispatches
|
|
6918
|
-
* a cancelable `zoom` and applies the default transform if no listener cancels the event.
|
|
6919
|
-
* Set `options.animated` to animate the uncanceled default; the option is absent from the `zoom` detail.
|
|
6920
|
-
* Returns true when the default changes or schedules a change to the transform.
|
|
6921
|
-
* - **startPan(proposal: _ViewportPanProposal_): _ViewportPanSession | undefined_** - Starts a sustained semantic pan after the caller crosses its activation threshold.
|
|
6922
|
-
* Dispatches `panstart`, performs the initial `pan` update, and returns a session for later updates
|
|
6923
|
-
* and one terminal `panend`. Returns undefined when pannable is false.
|
|
6924
|
-
* - **animateTo(target: _Partial<ViewportTransform>_, options: _ViewportAnimationOptions_): _void_** - Animates the viewport to the requested partial transform.
|
|
6925
|
-
* - **reveal(region: _{ x: number; y: number; width?: number; height?: number }_, options: _ViewportRevealOptions_): _void_** - Centers or fits a content-space region within the viewport.
|
|
6926
|
-
* - **fitContents(options: _ViewportRevealOptions_): _void_** - Fits the union of direct default-slot element boxes within the viewport.
|
|
6927
|
-
*
|
|
6928
|
-
* ### **Slots:**
|
|
6929
|
-
* - _default_ - Content positioned in the viewport's infinite content space.
|
|
6930
|
-
* - **background** - Custom content rendered behind viewport content and excluded from content fitting
|
|
6931
|
-
* - **overlay** - Interactive content fixed above the transformed plane and excluded from content fitting
|
|
6932
|
-
*
|
|
6933
|
-
* ### **CSS Properties:**
|
|
6934
|
-
* - **--background** - Background color of the fixed viewport area. _(default: undefined)_
|
|
6935
|
-
* - **--min-height** - undefined _(default: undefined)_
|
|
6936
|
-
* - **--pan-cursor** - Cursor shown over a background eligible for primary-pointer panning. _(default: undefined)_
|
|
6937
|
-
* - **--panning-cursor** - Cursor shown while a pointer pan is active. _(default: undefined)_
|
|
6938
|
-
*/
|
|
6939
|
-
"nve-viewport": Partial<ViewportProps & BaseProps & BaseEvents>;
|
|
6940
|
-
|
|
6941
6784
|
/**
|
|
6942
6785
|
* A week picker is a control that enables users to choose a week value.
|
|
6943
6786
|
* ---
|
|
@@ -3862,80 +3862,6 @@ type TreeProps = {
|
|
|
3862
3862
|
onselect?: (e: CustomEvent<never>) => void;
|
|
3863
3863
|
};
|
|
3864
3864
|
|
|
3865
|
-
type ViewportGridlinesProps = {
|
|
3866
|
-
/** Content-space x coordinate of the grid origin. */
|
|
3867
|
-
"origin-x"?: number;
|
|
3868
|
-
/** Content-space y coordinate of the grid origin. */
|
|
3869
|
-
"origin-y"?: number;
|
|
3870
|
-
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
3871
|
-
"target-spacing"?: number;
|
|
3872
|
-
/** Grid pattern to render. */
|
|
3873
|
-
pattern?: "lines" | "dots" | "crosses";
|
|
3874
|
-
/** Smallest gridline interval in content-space units. */
|
|
3875
|
-
step?: number;
|
|
3876
|
-
/** Content-space x coordinate of the grid origin. */
|
|
3877
|
-
originX?: number;
|
|
3878
|
-
/** Content-space y coordinate of the grid origin. */
|
|
3879
|
-
originY?: number;
|
|
3880
|
-
/** Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. */
|
|
3881
|
-
targetSpacing?: number;
|
|
3882
|
-
};
|
|
3883
|
-
|
|
3884
|
-
type ViewportMinimapProps = {};
|
|
3885
|
-
|
|
3886
|
-
type ViewportProps = {
|
|
3887
|
-
/** Inclusive lower scale limit. */
|
|
3888
|
-
"min-scale"?: number;
|
|
3889
|
-
/** Inclusive upper scale limit. */
|
|
3890
|
-
"max-scale"?: number;
|
|
3891
|
-
/** Scale stops for keyboard and command zoom, clamped to the scale bounds.
|
|
3892
|
-
Defaults to built-in stops; an empty array uses only the bounds. */
|
|
3893
|
-
"zoom-stops"?: readonly number[] | undefined;
|
|
3894
|
-
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
3895
|
-
"behavior-pan"?: boolean | "space";
|
|
3896
|
-
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
3897
|
-
"fit-inset"?: number;
|
|
3898
|
-
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
3899
|
-
"drag-threshold"?: number;
|
|
3900
|
-
/** Horizontal content-space coordinate at the viewport origin. */
|
|
3901
|
-
x?: number;
|
|
3902
|
-
/** Vertical content-space coordinate at the viewport origin. */
|
|
3903
|
-
y?: number;
|
|
3904
|
-
/** Content-to-viewport CSS-pixel scale. */
|
|
3905
|
-
scale?: number;
|
|
3906
|
-
/** Inclusive lower scale limit. */
|
|
3907
|
-
minScale?: number;
|
|
3908
|
-
/** Inclusive upper scale limit. */
|
|
3909
|
-
maxScale?: number;
|
|
3910
|
-
/** Scale stops for keyboard and command zoom, clamped to the scale bounds.
|
|
3911
|
-
Defaults to built-in stops; an empty array uses only the bounds. */
|
|
3912
|
-
zoomStops?: readonly number[] | undefined;
|
|
3913
|
-
/** Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. */
|
|
3914
|
-
behaviorPan?: boolean | "space";
|
|
3915
|
-
/** Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. */
|
|
3916
|
-
behaviorZoom?: boolean;
|
|
3917
|
-
/** Fits measurable direct default-slot content once after initial layout. */
|
|
3918
|
-
autoFit?: boolean;
|
|
3919
|
-
/** Default uniform CSS-pixel inset reserved around bounds when fitting content. */
|
|
3920
|
-
fitInset?: number;
|
|
3921
|
-
/** CSS-pixel pointer movement required before a pointer pan begins. */
|
|
3922
|
-
dragThreshold?: number;
|
|
3923
|
-
/** Dispatched after effective user-input pan or zoom admission changes. */
|
|
3924
|
-
oncapabilitieschange?: (e: CustomEvent<Event>) => void;
|
|
3925
|
-
/** Dispatched once after a render that commits one or more viewport transform changes. */
|
|
3926
|
-
onviewportchange?: (e: CustomEvent<CustomEvent>) => void;
|
|
3927
|
-
/** */
|
|
3928
|
-
ontype?: (e: CustomEvent<CustomEvent>) => void;
|
|
3929
|
-
/** Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session. */
|
|
3930
|
-
onpanstart?: (e: CustomEvent<never>) => void;
|
|
3931
|
-
/** Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation. */
|
|
3932
|
-
onpan?: (e: CustomEvent<never>) => void;
|
|
3933
|
-
/** Dispatched once when a sustained pan ends, including its terminal reason. */
|
|
3934
|
-
onpanend?: (e: CustomEvent<never>) => void;
|
|
3935
|
-
/** Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation. */
|
|
3936
|
-
onzoom?: (e: CustomEvent<never>) => void;
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
3865
|
type WeekProps = {
|
|
3940
3866
|
/** Reduces the visual container for a minimal borderless appearance while preserving whitespace bounds.
|
|
3941
3867
|
Use when embedding within another container such as a toolbar. */
|
|
@@ -6608,87 +6534,6 @@ export type CustomElements = {
|
|
|
6608
6534
|
*/
|
|
6609
6535
|
"nve-tree": DefineComponent<TreeProps>;
|
|
6610
6536
|
|
|
6611
|
-
/**
|
|
6612
|
-
* Renders origin-stable, zoom-adaptive gridline patterns behind viewport content.
|
|
6613
|
-
* ---
|
|
6614
|
-
*
|
|
6615
|
-
*
|
|
6616
|
-
* ### **CSS Properties:**
|
|
6617
|
-
* - **--color** - Sets the gridline pattern color. _(default: undefined)_
|
|
6618
|
-
* - **--line-width** - Sets the approximate stroke width in CSS pixels. _(default: undefined)_
|
|
6619
|
-
* - **--dot-radius** - Sets the approximate dot radius in CSS pixels. _(default: undefined)_
|
|
6620
|
-
* - **--cross-size** - Sets the approximate full width and height of each cross in CSS pixels. _(default: undefined)_
|
|
6621
|
-
*/
|
|
6622
|
-
"nve-viewport-gridlines": DefineComponent<ViewportGridlinesProps>;
|
|
6623
|
-
|
|
6624
|
-
/**
|
|
6625
|
-
* Provides a simplified overview and direct navigation for its parent viewport.
|
|
6626
|
-
* ---
|
|
6627
|
-
*
|
|
6628
|
-
*
|
|
6629
|
-
* ### **Methods:**
|
|
6630
|
-
* - **refresh(): _void_** - Remeasures content bounds after preview or viewport roots move without resizing.
|
|
6631
|
-
*
|
|
6632
|
-
* ### **Slots:**
|
|
6633
|
-
* - **preview** - Optional simplified content drawn in viewport content coordinates. Replaces automatic root rectangles.
|
|
6634
|
-
*
|
|
6635
|
-
* ### **CSS Properties:**
|
|
6636
|
-
* - **--background** - Color of the surface behind preview geometry. _(default: undefined)_
|
|
6637
|
-
* - **--color** - Color of automatically drawn root rectangles. _(default: undefined)_
|
|
6638
|
-
* - **--indicator-color** - Color of the current visible-region indicator. _(default: undefined)_
|
|
6639
|
-
* - **--border-radius** - Corner radius of the minimap. _(default: undefined)_
|
|
6640
|
-
* - **--recenter-cursor** - Cursor for clicking the background to center the viewport. _(default: undefined)_
|
|
6641
|
-
* - **--pan-cursor** - Cursor over a draggable visible region. _(default: undefined)_
|
|
6642
|
-
* - **--panning-cursor** - Cursor during a visible-region drag. _(default: undefined)_
|
|
6643
|
-
*/
|
|
6644
|
-
"nve-viewport-minimap": DefineComponent<ViewportMinimapProps>;
|
|
6645
|
-
|
|
6646
|
-
/**
|
|
6647
|
-
* A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.
|
|
6648
|
-
* ---
|
|
6649
|
-
*
|
|
6650
|
-
*
|
|
6651
|
-
* ### **Events:**
|
|
6652
|
-
* - **capabilitieschange** - Dispatched after effective user-input pan or zoom admission changes.
|
|
6653
|
-
* - **viewportchange** - Dispatched once after a render that commits one or more viewport transform changes.
|
|
6654
|
-
* - **type**
|
|
6655
|
-
* - **panstart** - Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session.
|
|
6656
|
-
* - **pan** - Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation.
|
|
6657
|
-
* - **panend** - Dispatched once when a sustained pan ends, including its terminal reason.
|
|
6658
|
-
* - **zoom** - Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation.
|
|
6659
|
-
*
|
|
6660
|
-
* ### **Methods:**
|
|
6661
|
-
* - **toViewportCoords(contentX: _number_, contentY: _number_): _ViewportPoint_** - Converts a content-space point to viewport CSS pixels.
|
|
6662
|
-
* - **toContentCoords(viewportX: _number_, viewportY: _number_): _ViewportPoint_** - Converts a viewport CSS-pixel point to content space.
|
|
6663
|
-
* - **getTransform(): _ViewportTransform_** - Returns the current content-space origin and CSS-pixel scale.
|
|
6664
|
-
* - **getVisibleRect(): _ViewportRect_** - Returns the visible content-space rectangle.
|
|
6665
|
-
* - **requestPan(proposal: _ViewportPanProposal_): _boolean_** - Requests one discrete user-originated pan. When pannable, the viewport dispatches
|
|
6666
|
-
* a cancelable `pan` and applies the default transform if no listener cancels the event.
|
|
6667
|
-
* Returns true only when that default changes the transform.
|
|
6668
|
-
* - **requestZoom(proposal: _ViewportZoomProposal_, options: _ViewportZoomRequestOptions_): _boolean_** - Requests one discrete user-originated zoom. When zoomable, the viewport dispatches
|
|
6669
|
-
* a cancelable `zoom` and applies the default transform if no listener cancels the event.
|
|
6670
|
-
* Set `options.animated` to animate the uncanceled default; the option is absent from the `zoom` detail.
|
|
6671
|
-
* Returns true when the default changes or schedules a change to the transform.
|
|
6672
|
-
* - **startPan(proposal: _ViewportPanProposal_): _ViewportPanSession | undefined_** - Starts a sustained semantic pan after the caller crosses its activation threshold.
|
|
6673
|
-
* Dispatches `panstart`, performs the initial `pan` update, and returns a session for later updates
|
|
6674
|
-
* and one terminal `panend`. Returns undefined when pannable is false.
|
|
6675
|
-
* - **animateTo(target: _Partial<ViewportTransform>_, options: _ViewportAnimationOptions_): _void_** - Animates the viewport to the requested partial transform.
|
|
6676
|
-
* - **reveal(region: _{ x: number; y: number; width?: number; height?: number }_, options: _ViewportRevealOptions_): _void_** - Centers or fits a content-space region within the viewport.
|
|
6677
|
-
* - **fitContents(options: _ViewportRevealOptions_): _void_** - Fits the union of direct default-slot element boxes within the viewport.
|
|
6678
|
-
*
|
|
6679
|
-
* ### **Slots:**
|
|
6680
|
-
* - _default_ - Content positioned in the viewport's infinite content space.
|
|
6681
|
-
* - **background** - Custom content rendered behind viewport content and excluded from content fitting
|
|
6682
|
-
* - **overlay** - Interactive content fixed above the transformed plane and excluded from content fitting
|
|
6683
|
-
*
|
|
6684
|
-
* ### **CSS Properties:**
|
|
6685
|
-
* - **--background** - Background color of the fixed viewport area. _(default: undefined)_
|
|
6686
|
-
* - **--min-height** - undefined _(default: undefined)_
|
|
6687
|
-
* - **--pan-cursor** - Cursor shown over a background eligible for primary-pointer panning. _(default: undefined)_
|
|
6688
|
-
* - **--panning-cursor** - Cursor shown while a pointer pan is active. _(default: undefined)_
|
|
6689
|
-
*/
|
|
6690
|
-
"nve-viewport": DefineComponent<ViewportProps>;
|
|
6691
|
-
|
|
6692
6537
|
/**
|
|
6693
6538
|
* A week picker is a control that enables users to choose a week value.
|
|
6694
6539
|
* ---
|