@nvidia-elements/core 2.22.5 → 2.23.1
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 +15 -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 +4 -0
- package/dist/bundles/index.d.ts +357 -1
- package/dist/bundles/index.js +14 -14
- 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 +6 -6
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +189 -0
- package/dist/custom-elements-vue.d.ts +189 -0
- package/dist/custom-elements.json +6561 -339
- package/dist/data.html.json +133 -0
- package/dist/date/date2.js +6 -6
- package/dist/datetime/datetime2.js +6 -6
- 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-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/forms/utils/layout.d.ts +0 -1
- package/dist/forms/utils/layout.js.map +1 -1
- package/dist/forms/utils/states.d.ts +0 -1
- package/dist/forms/utils/states.js.map +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/ghost/define.d.ts +6 -0
- package/dist/ghost/define.js +6 -0
- package/dist/ghost/define.js.map +1 -0
- package/dist/ghost/ghost.d.ts +27 -0
- package/dist/ghost/ghost.examples.js +5 -0
- package/dist/ghost/ghost.examples.js.map +1 -0
- package/dist/ghost/ghost.examples.json +37 -0
- package/dist/ghost/ghost.js +5 -0
- package/dist/ghost/ghost.js.map +1 -0
- package/dist/ghost/ghost2.js +28 -0
- package/dist/ghost/ghost2.js.map +1 -0
- package/dist/ghost/index.d.ts +1 -0
- package/dist/ghost/index.js +1 -0
- 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/iframe/iframe2.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/controllers/keynav-spatial.controller.d.ts +0 -1
- package/dist/internal/controllers/keynav-spatial.controller.js.map +1 -1
- package/dist/internal/controllers/type-native-popover.utils.d.ts +0 -1
- package/dist/internal/controllers/type-native-popover.utils.js.map +1 -1
- package/dist/internal/index.d.ts +0 -1
- package/dist/internal/index.js +116 -128
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/types/index.d.ts +37 -3
- package/dist/internal/types/index.js.map +1 -1
- package/dist/internal/utils/audit-logs.d.ts +0 -1
- package/dist/internal/utils/audit-logs.js.map +1 -1
- package/dist/internal/utils/dom.d.ts +0 -5
- package/dist/internal/utils/dom.js +30 -46
- package/dist/internal/utils/dom.js.map +1 -1
- package/dist/internal/utils/events.d.ts +0 -1
- package/dist/internal/utils/events.js +4 -7
- package/dist/internal/utils/events.js.map +1 -1
- package/dist/internal/utils/keynav.d.ts +0 -1
- package/dist/internal/utils/keynav.js +2 -5
- package/dist/internal/utils/keynav.js.map +1 -1
- package/dist/internal/utils/objects.d.ts +0 -2
- package/dist/internal/utils/objects.js +2 -8
- package/dist/internal/utils/objects.js.map +1 -1
- package/dist/joystick/joystick2.js +5 -5
- 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 +6 -6
- 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 +6 -6
- package/dist/preferences-input/preferences-input2.js +5 -5
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-dot/progress-dot2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +5 -5
- package/dist/search/search2.js +6 -6
- 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 +6 -6
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs-item-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +5 -5
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +6 -6
- 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 +6 -6
- package/dist/workspace/controllers/workspace-command.controller.d.ts +34 -0
- package/dist/workspace/controllers/workspace-command.controller.js +87 -0
- package/dist/workspace/controllers/workspace-command.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-composition.controller.d.ts +54 -0
- package/dist/workspace/controllers/workspace-composition.controller.js +169 -0
- package/dist/workspace/controllers/workspace-composition.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.d.ts +25 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.js +84 -0
- package/dist/workspace/controllers/workspace-fullscreen.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-measurement.controller.d.ts +19 -0
- package/dist/workspace/controllers/workspace-measurement.controller.js +188 -0
- package/dist/workspace/controllers/workspace-measurement.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.d.ts +40 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.js +385 -0
- package/dist/workspace/controllers/workspace-rearrange.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-resize.controller.d.ts +43 -0
- package/dist/workspace/controllers/workspace-resize.controller.js +168 -0
- package/dist/workspace/controllers/workspace-resize.controller.js.map +1 -0
- package/dist/workspace/controllers/workspace-restoration.controller.d.ts +24 -0
- package/dist/workspace/controllers/workspace-restoration.controller.js +193 -0
- package/dist/workspace/controllers/workspace-restoration.controller.js.map +1 -0
- package/dist/workspace/define.d.ts +10 -0
- package/dist/workspace/define.js +9 -0
- package/dist/workspace/define.js.map +1 -0
- package/dist/workspace/index.d.ts +11 -0
- package/dist/workspace/index.js +6 -0
- package/dist/workspace/panel/panel.d.ts +48 -0
- package/dist/workspace/panel/panel.js +5 -0
- package/dist/workspace/panel/panel.js.map +1 -0
- package/dist/workspace/panel/panel2.js +53 -0
- package/dist/workspace/panel/panel2.js.map +1 -0
- package/dist/workspace/panel-content/panel-content.d.ts +20 -0
- package/dist/workspace/panel-content/panel-content.js +5 -0
- package/dist/workspace/panel-content/panel-content.js.map +1 -0
- package/dist/workspace/panel-content/panel-content2.js +22 -0
- package/dist/workspace/panel-content/panel-content2.js.map +1 -0
- package/dist/workspace/panel-footer/panel-footer.d.ts +24 -0
- package/dist/workspace/panel-footer/panel-footer.js +5 -0
- package/dist/workspace/panel-footer/panel-footer.js.map +1 -0
- package/dist/workspace/panel-footer/panel-footer2.js +28 -0
- package/dist/workspace/panel-footer/panel-footer2.js.map +1 -0
- package/dist/workspace/panel-header/panel-header.d.ts +61 -0
- package/dist/workspace/panel-header/panel-header.js +5 -0
- package/dist/workspace/panel-header/panel-header.js.map +1 -0
- package/dist/workspace/panel-header/panel-header2.js +102 -0
- package/dist/workspace/panel-header/panel-header2.js.map +1 -0
- package/dist/workspace/utils/evaluation.utils.d.ts +83 -0
- package/dist/workspace/utils/evaluation.utils.js +294 -0
- package/dist/workspace/utils/evaluation.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/allocation.utils.d.ts +40 -0
- package/dist/workspace/utils/geometry/allocation.utils.js +73 -0
- package/dist/workspace/utils/geometry/allocation.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/partition.utils.d.ts +10 -0
- package/dist/workspace/utils/geometry/partition.utils.js +40 -0
- package/dist/workspace/utils/geometry/partition.utils.js.map +1 -0
- package/dist/workspace/utils/geometry/sizing.utils.d.ts +35 -0
- package/dist/workspace/utils/geometry/sizing.utils.js +42 -0
- package/dist/workspace/utils/geometry/sizing.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/boundary.utils.d.ts +40 -0
- package/dist/workspace/utils/interaction/boundary.utils.js +91 -0
- package/dist/workspace/utils/interaction/boundary.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/command.utils.d.ts +74 -0
- package/dist/workspace/utils/interaction/command.utils.js +189 -0
- package/dist/workspace/utils/interaction/command.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.d.ts +79 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.js +16 -0
- package/dist/workspace/utils/interaction/drag-preview.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.d.ts +58 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.js +259 -0
- package/dist/workspace/utils/interaction/insertion-offers.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.d.ts +55 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.js +242 -0
- package/dist/workspace/utils/interaction/placement-decision.utils.js.map +1 -0
- package/dist/workspace/utils/interaction/resize-input.utils.d.ts +1 -0
- package/dist/workspace/utils/interaction/resize-input.utils.js +17 -0
- package/dist/workspace/utils/interaction/resize-input.utils.js.map +1 -0
- package/dist/workspace/utils/model/layout.utils.d.ts +22 -0
- package/dist/workspace/utils/model/layout.utils.js +41 -0
- package/dist/workspace/utils/model/layout.utils.js.map +1 -0
- package/dist/workspace/utils/model/membership.utils.d.ts +14 -0
- package/dist/workspace/utils/model/membership.utils.js +17 -0
- package/dist/workspace/utils/model/membership.utils.js.map +1 -0
- package/dist/workspace/utils/model/operations.utils.d.ts +31 -0
- package/dist/workspace/utils/model/operations.utils.js +178 -0
- package/dist/workspace/utils/model/operations.utils.js.map +1 -0
- package/dist/workspace/utils/model/projection.utils.d.ts +7 -0
- package/dist/workspace/utils/model/projection.utils.js +87 -0
- package/dist/workspace/utils/model/projection.utils.js.map +1 -0
- package/dist/workspace/utils/model/value.utils.d.ts +5 -0
- package/dist/workspace/utils/model/value.utils.js +68 -0
- package/dist/workspace/utils/model/value.utils.js.map +1 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.d.ts +32 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.js +152 -0
- package/dist/workspace/utils/placement/acquisition-sizing.utils.js.map +1 -0
- package/dist/workspace/utils/placement/context.utils.d.ts +36 -0
- package/dist/workspace/utils/placement/context.utils.js +135 -0
- package/dist/workspace/utils/placement/context.utils.js.map +1 -0
- package/dist/workspace/utils/placement/group-insertion.utils.d.ts +26 -0
- package/dist/workspace/utils/placement/group-insertion.utils.js +171 -0
- package/dist/workspace/utils/placement/group-insertion.utils.js.map +1 -0
- package/dist/workspace/utils/placement/origin.utils.d.ts +13 -0
- package/dist/workspace/utils/placement/origin.utils.js +49 -0
- package/dist/workspace/utils/placement/origin.utils.js.map +1 -0
- package/dist/workspace/utils/placement/planner.utils.d.ts +22 -0
- package/dist/workspace/utils/placement/planner.utils.js +184 -0
- package/dist/workspace/utils/placement/planner.utils.js.map +1 -0
- package/dist/workspace/utils/placement/preparation.utils.d.ts +28 -0
- package/dist/workspace/utils/placement/preparation.utils.js +140 -0
- package/dist/workspace/utils/placement/preparation.utils.js.map +1 -0
- package/dist/workspace/utils/placement/region.utils.d.ts +15 -0
- package/dist/workspace/utils/placement/region.utils.js +111 -0
- package/dist/workspace/utils/placement/region.utils.js.map +1 -0
- package/dist/workspace/utils/placement/split-sizing.utils.d.ts +18 -0
- package/dist/workspace/utils/placement/split-sizing.utils.js +108 -0
- package/dist/workspace/utils/placement/split-sizing.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/composition.utils.d.ts +17 -0
- package/dist/workspace/utils/presentation/composition.utils.js +95 -0
- package/dist/workspace/utils/presentation/composition.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/groups.utils.d.ts +91 -0
- package/dist/workspace/utils/presentation/groups.utils.js +169 -0
- package/dist/workspace/utils/presentation/groups.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.d.ts +11 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.js +7 -0
- package/dist/workspace/utils/presentation/header-configuration.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/measurements.utils.d.ts +21 -0
- package/dist/workspace/utils/presentation/measurements.utils.js +28 -0
- package/dist/workspace/utils/presentation/measurements.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/offers.utils.d.ts +43 -0
- package/dist/workspace/utils/presentation/offers.utils.js +137 -0
- package/dist/workspace/utils/presentation/offers.utils.js.map +1 -0
- package/dist/workspace/utils/presentation/preview.utils.d.ts +6 -0
- package/dist/workspace/utils/presentation/preview.utils.js +36 -0
- package/dist/workspace/utils/presentation/preview.utils.js.map +1 -0
- package/dist/workspace/workspace.d.ts +103 -0
- package/dist/workspace/workspace.examples.js +5 -0
- package/dist/workspace/workspace.examples.js.map +1 -0
- package/dist/workspace/workspace.examples.json +133 -0
- package/dist/workspace/workspace.js +5 -0
- package/dist/workspace/workspace.js.map +1 -0
- package/dist/workspace/workspace.types.d.ts +3 -0
- package/dist/workspace/workspace2.js +518 -0
- package/dist/workspace/workspace2.js.map +1 -0
- package/package.json +27 -3
- package/dist/internal/utils/supports.d.ts +0 -3
- package/dist/internal/utils/supports.js +0 -13
- package/dist/internal/utils/supports.js.map +0 -1
package/dist/internal/index.js
CHANGED
|
@@ -5,148 +5,136 @@ import { DOCS_URL as n, formatFileSize as r, shiftLeft as i } from "./utils/stri
|
|
|
5
5
|
import { AuditController as a, audit as o, excessiveInstanceLimit as ne } from "./controllers/audit.controller.js";
|
|
6
6
|
import { GestureController as s } from "./controllers/gesture.controller.js";
|
|
7
7
|
import { KeyStateController as c } from "./controllers/key-state.controller.js";
|
|
8
|
-
import { debounce as l, onChildListMutation as u,
|
|
9
|
-
import { focusElement as
|
|
10
|
-
import { KeynavCode as
|
|
11
|
-
import { KeyNavigationGridController as
|
|
12
|
-
import { KeyNavigationListController as
|
|
13
|
-
import { KeyNavigationSpatialController as
|
|
14
|
-
import { associateAriaDescribedBy as
|
|
15
|
-
import { StateExpandedController as
|
|
16
|
-
import { StateHighlightedController as
|
|
17
|
-
import { StateScrollController as
|
|
18
|
-
import { StateSelectedController as
|
|
19
|
-
import { TypeAnchorController as
|
|
20
|
-
import { TypeClosableController as
|
|
21
|
-
import { TypeExpandableController as
|
|
22
|
-
import { TypeSelectableController as
|
|
23
|
-
import { TypeNativePopoverController as
|
|
24
|
-
import { TypeSSRController as
|
|
25
|
-
import { hostAttr as
|
|
26
|
-
import { scopedRegistry as
|
|
27
|
-
import { colorStateStyles as
|
|
28
|
-
import { popoverStyles as
|
|
29
|
-
import { TransitionService as
|
|
30
|
-
import { statusIcons as
|
|
31
|
-
import { formatStandardNumber as
|
|
32
|
-
import { createLightDismiss as
|
|
33
|
-
import { finiteOr as
|
|
34
|
-
import { supportsCSSLegacyInsetArea as et, supportsCSSPositionArea as tt, supportsNativeCSSAnchorPosition as nt } from "./utils/supports.js";
|
|
8
|
+
import { debounce as l, onChildListMutation as u, throttle as d } from "./utils/events.js";
|
|
9
|
+
import { focusElement as f, focusElementTimeout as p, getActiveElement as m, initializeKeyListItems as h, isFocusable as g, isImmediateRootActiveElement as _, isSimpleFocusable as v, onListboxActivate as y, setActiveKeyListItem as b } from "./utils/focus.js";
|
|
10
|
+
import { KeynavCode as x, appendAnchorName as S, appendRootNodeStyle as C, applySlotContentStates as w, clickOutsideElementBounds as T, createGhostElement as E, endOfScrollBox as D, generateId as O, getAnchorNames as k, getAttributeChanges as A, getAttributeListChanges as j, getChildren as M, getCustomElementRegistry as N, getDisplayValue as P, getElementUpdate as F, getFlattenedDOMTree as I, getFlattenedFocusableItems as L, getPropertyChanges as R, getThemeTokens as z, hasHorizontalScrollBar as B, hasInvalidDOMGrid as V, isContextMenuClick as H, matchesElementName as U, openEyeDropper as W, removeAnchorName as G, removeEmptySlotWhitespace as K, removeEmptyTextNode as q, sameOrderedStringArray as J, slotContainsOnlyWhitespace as Y, styleSheetToString as re, uniqueNonEmptyStrings as X, validKeyNavigationCode as Z } from "./utils/dom.js";
|
|
11
|
+
import { KeyNavigationGridController as Q, getNextKeyGridItem as $, keyNavigationGrid as ie } from "./controllers/keynav-grid.controller.js";
|
|
12
|
+
import { KeyNavigationListController as ae, getNextKeyListItem as oe, keyNavigationList as se } from "./controllers/keynav-list.controller.js";
|
|
13
|
+
import { KeyNavigationSpatialController as ce } from "./controllers/keynav-spatial.controller.js";
|
|
14
|
+
import { associateAriaDescribedBy as le, associateAriaLabel as ue, associateControlGroup as de, associateDataList as fe, associateLabel as pe, attachInternals as me } from "./utils/a11y.js";
|
|
15
|
+
import { StateExpandedController as he, stateExpanded as ge } from "./controllers/state-expanded.controller.js";
|
|
16
|
+
import { StateHighlightedController as _e, stateHighlighted as ve } from "./controllers/state-highlighted.controller.js";
|
|
17
|
+
import { StateScrollController as ye, stateScroll as be } from "./controllers/state-scroll.controller.js";
|
|
18
|
+
import { StateSelectedController as xe, stateSelected as Se } from "./controllers/state-selected.controller.js";
|
|
19
|
+
import { TypeAnchorController as Ce, typeAnchor as we } from "./controllers/type-anchor.controller.js";
|
|
20
|
+
import { TypeClosableController as Te } from "./controllers/type-closable.controller.js";
|
|
21
|
+
import { TypeExpandableController as Ee } from "./controllers/type-expandable.controller.js";
|
|
22
|
+
import { TypeSelectableController as De } from "./controllers/type-selectable.controller.js";
|
|
23
|
+
import { TypeNativePopoverController as Oe } from "./controllers/type-native-popover.controller.js";
|
|
24
|
+
import { TypeSSRController as ke, typeSSR as Ae } from "./controllers/type-ssr.controller.js";
|
|
25
|
+
import { hostAttr as je } from "./decorators/host-attr.js";
|
|
26
|
+
import { scopedRegistry as Me } from "./decorators/scoped-registry.js";
|
|
27
|
+
import { colorStateStyles as Ne, statusStateStyles as Pe, supportStateStyles as Fe, useStyles as Ie } from "./styles/index.js";
|
|
28
|
+
import { popoverStyles as Le } from "./styles/popover2.js";
|
|
29
|
+
import { TransitionService as Re } from "./services/transition.service.js";
|
|
30
|
+
import { statusIcons as ze } from "./types/index.js";
|
|
31
|
+
import { formatStandardNumber as Be, parseVersion as Ve } from "./utils/objects.js";
|
|
32
|
+
import { createLightDismiss as He } from "./utils/keynav.js";
|
|
33
|
+
import { finiteOr as Ue, nonnegativeFiniteOr as We, positiveFiniteOr as Ge } from "./utils/numeric.js";
|
|
35
34
|
export * from "@nvidia-elements/foundations/internal/i18n";
|
|
36
35
|
// src/internal/index.ts
|
|
37
|
-
var
|
|
36
|
+
var Ke = /* @__PURE__ */ ee({
|
|
38
37
|
AuditController: () => a,
|
|
39
38
|
DOCS_URL: () => n,
|
|
40
39
|
GestureController: () => s,
|
|
41
|
-
KeyNavigationGridController: () =>
|
|
42
|
-
KeyNavigationListController: () =>
|
|
43
|
-
KeyNavigationSpatialController: () =>
|
|
40
|
+
KeyNavigationGridController: () => Q,
|
|
41
|
+
KeyNavigationListController: () => ae,
|
|
42
|
+
KeyNavigationSpatialController: () => ce,
|
|
44
43
|
KeyStateController: () => c,
|
|
45
|
-
KeynavCode: () =>
|
|
44
|
+
KeynavCode: () => x,
|
|
46
45
|
LogService: () => e,
|
|
47
|
-
StateExpandedController: () =>
|
|
48
|
-
StateHighlightedController: () =>
|
|
49
|
-
StateScrollController: () =>
|
|
50
|
-
StateSelectedController: () =>
|
|
51
|
-
TransitionService: () =>
|
|
52
|
-
TypeAnchorController: () =>
|
|
53
|
-
TypeClosableController: () =>
|
|
54
|
-
TypeExpandableController: () =>
|
|
55
|
-
TypeNativePopoverController: () =>
|
|
56
|
-
TypeSSRController: () =>
|
|
57
|
-
TypeSelectableController: () =>
|
|
58
|
-
appendAnchorName: () =>
|
|
59
|
-
appendRootNodeStyle: () =>
|
|
60
|
-
applySlotContentStates: () =>
|
|
61
|
-
associateAriaDescribedBy: () =>
|
|
62
|
-
associateAriaLabel: () =>
|
|
63
|
-
associateControlGroup: () =>
|
|
64
|
-
associateDataList: () =>
|
|
65
|
-
associateLabel: () =>
|
|
66
|
-
attachInternals: () =>
|
|
46
|
+
StateExpandedController: () => he,
|
|
47
|
+
StateHighlightedController: () => _e,
|
|
48
|
+
StateScrollController: () => ye,
|
|
49
|
+
StateSelectedController: () => xe,
|
|
50
|
+
TransitionService: () => Re,
|
|
51
|
+
TypeAnchorController: () => Ce,
|
|
52
|
+
TypeClosableController: () => Te,
|
|
53
|
+
TypeExpandableController: () => Ee,
|
|
54
|
+
TypeNativePopoverController: () => Oe,
|
|
55
|
+
TypeSSRController: () => ke,
|
|
56
|
+
TypeSelectableController: () => De,
|
|
57
|
+
appendAnchorName: () => S,
|
|
58
|
+
appendRootNodeStyle: () => C,
|
|
59
|
+
applySlotContentStates: () => w,
|
|
60
|
+
associateAriaDescribedBy: () => le,
|
|
61
|
+
associateAriaLabel: () => ue,
|
|
62
|
+
associateControlGroup: () => de,
|
|
63
|
+
associateDataList: () => fe,
|
|
64
|
+
associateLabel: () => pe,
|
|
65
|
+
attachInternals: () => me,
|
|
67
66
|
audit: () => o,
|
|
68
67
|
auditParentElement: () => t,
|
|
69
|
-
clickOutsideElementBounds: () =>
|
|
70
|
-
colorStateStyles: () =>
|
|
71
|
-
createGhostElement: () =>
|
|
72
|
-
createLightDismiss: () =>
|
|
68
|
+
clickOutsideElementBounds: () => T,
|
|
69
|
+
colorStateStyles: () => Ne,
|
|
70
|
+
createGhostElement: () => E,
|
|
71
|
+
createLightDismiss: () => He,
|
|
73
72
|
debounce: () => l,
|
|
74
|
-
endOfScrollBox: () =>
|
|
73
|
+
endOfScrollBox: () => D,
|
|
75
74
|
excessiveInstanceLimit: () => 50,
|
|
76
|
-
finiteOr: () =>
|
|
77
|
-
focusElement: () =>
|
|
78
|
-
focusElementTimeout: () =>
|
|
75
|
+
finiteOr: () => Ue,
|
|
76
|
+
focusElement: () => f,
|
|
77
|
+
focusElementTimeout: () => p,
|
|
79
78
|
formatFileSize: () => r,
|
|
80
|
-
formatStandardNumber: () =>
|
|
81
|
-
generateId: () =>
|
|
82
|
-
getActiveElement: () =>
|
|
83
|
-
getAnchorNames: () =>
|
|
84
|
-
getAttributeChanges: () =>
|
|
85
|
-
getAttributeListChanges: () =>
|
|
86
|
-
getChildren: () =>
|
|
87
|
-
getCustomElementRegistry: () =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
keyNavigationList: () => fe,
|
|
109
|
-
matchesElementName: () => G,
|
|
110
|
-
nonnegativeFiniteOr: () => Qe,
|
|
79
|
+
formatStandardNumber: () => Be,
|
|
80
|
+
generateId: () => O,
|
|
81
|
+
getActiveElement: () => m,
|
|
82
|
+
getAnchorNames: () => k,
|
|
83
|
+
getAttributeChanges: () => A,
|
|
84
|
+
getAttributeListChanges: () => j,
|
|
85
|
+
getChildren: () => M,
|
|
86
|
+
getCustomElementRegistry: () => N,
|
|
87
|
+
getDisplayValue: () => P,
|
|
88
|
+
getElementUpdate: () => F,
|
|
89
|
+
getFlattenedDOMTree: () => I,
|
|
90
|
+
getFlattenedFocusableItems: () => L,
|
|
91
|
+
getNextKeyGridItem: () => $,
|
|
92
|
+
getNextKeyListItem: () => oe,
|
|
93
|
+
getPropertyChanges: () => R,
|
|
94
|
+
getThemeTokens: () => z,
|
|
95
|
+
hasHorizontalScrollBar: () => B,
|
|
96
|
+
hasInvalidDOMGrid: () => V,
|
|
97
|
+
hostAttr: () => je,
|
|
98
|
+
initializeKeyListItems: () => h,
|
|
99
|
+
isContextMenuClick: () => H,
|
|
100
|
+
isFocusable: () => g,
|
|
101
|
+
isImmediateRootActiveElement: () => _,
|
|
102
|
+
isSimpleFocusable: () => v,
|
|
103
|
+
keyNavigationGrid: () => ie,
|
|
104
|
+
keyNavigationList: () => se,
|
|
105
|
+
matchesElementName: () => U,
|
|
106
|
+
nonnegativeFiniteOr: () => We,
|
|
111
107
|
onChildListMutation: () => u,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
sameRenderRoot: () => Q,
|
|
124
|
-
scopedRegistry: () => Le,
|
|
125
|
-
scrollBarWidth: () => re,
|
|
126
|
-
setActiveKeyListItem: () => x,
|
|
108
|
+
onListboxActivate: () => y,
|
|
109
|
+
openEyeDropper: () => W,
|
|
110
|
+
parseVersion: () => Ve,
|
|
111
|
+
popoverStyles: () => Le,
|
|
112
|
+
positiveFiniteOr: () => Ge,
|
|
113
|
+
removeAnchorName: () => G,
|
|
114
|
+
removeEmptySlotWhitespace: () => K,
|
|
115
|
+
removeEmptyTextNode: () => q,
|
|
116
|
+
sameOrderedStringArray: () => J,
|
|
117
|
+
scopedRegistry: () => Me,
|
|
118
|
+
setActiveKeyListItem: () => b,
|
|
127
119
|
shiftLeft: () => i,
|
|
128
|
-
slotContainsOnlyWhitespace: () =>
|
|
129
|
-
stateExpanded: () =>
|
|
130
|
-
stateHighlighted: () =>
|
|
131
|
-
stateScroll: () =>
|
|
132
|
-
stateSelected: () =>
|
|
133
|
-
statusIcons: () =>
|
|
134
|
-
statusStateStyles: () =>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
typeSSR: () => Fe,
|
|
144
|
-
uniqueNonEmptyStrings: () => oe,
|
|
145
|
-
useStyles: () => Ve,
|
|
146
|
-
validKeyNavigationCode: () => $
|
|
120
|
+
slotContainsOnlyWhitespace: () => Y,
|
|
121
|
+
stateExpanded: () => ge,
|
|
122
|
+
stateHighlighted: () => ve,
|
|
123
|
+
stateScroll: () => be,
|
|
124
|
+
stateSelected: () => Se,
|
|
125
|
+
statusIcons: () => ze,
|
|
126
|
+
statusStateStyles: () => Pe,
|
|
127
|
+
styleSheetToString: () => re,
|
|
128
|
+
supportStateStyles: () => Fe,
|
|
129
|
+
throttle: () => d,
|
|
130
|
+
typeAnchor: () => we,
|
|
131
|
+
typeSSR: () => Ae,
|
|
132
|
+
uniqueNonEmptyStrings: () => X,
|
|
133
|
+
useStyles: () => Ie,
|
|
134
|
+
validKeyNavigationCode: () => Z
|
|
147
135
|
});
|
|
148
|
-
import * as
|
|
149
|
-
te(
|
|
150
|
-
export { a as AuditController, n as DOCS_URL, s as GestureController,
|
|
136
|
+
import * as qe from "@nvidia-elements/foundations/internal/i18n";
|
|
137
|
+
te(Ke, qe);
|
|
138
|
+
export { a as AuditController, n as DOCS_URL, s as GestureController, Q as KeyNavigationGridController, ae as KeyNavigationListController, ce as KeyNavigationSpatialController, c as KeyStateController, x as KeynavCode, e as LogService, he as StateExpandedController, _e as StateHighlightedController, ye as StateScrollController, xe as StateSelectedController, Re as TransitionService, Ce as TypeAnchorController, Te as TypeClosableController, Ee as TypeExpandableController, Oe as TypeNativePopoverController, ke as TypeSSRController, De as TypeSelectableController, S as appendAnchorName, C as appendRootNodeStyle, w as applySlotContentStates, le as associateAriaDescribedBy, ue as associateAriaLabel, de as associateControlGroup, fe as associateDataList, pe as associateLabel, me as attachInternals, o as audit, t as auditParentElement, T as clickOutsideElementBounds, Ne as colorStateStyles, E as createGhostElement, He as createLightDismiss, l as debounce, D as endOfScrollBox, ne as excessiveInstanceLimit, Ue as finiteOr, f as focusElement, p as focusElementTimeout, r as formatFileSize, Be as formatStandardNumber, O as generateId, m as getActiveElement, k as getAnchorNames, A as getAttributeChanges, j as getAttributeListChanges, M as getChildren, N as getCustomElementRegistry, P as getDisplayValue, F as getElementUpdate, I as getFlattenedDOMTree, L as getFlattenedFocusableItems, $ as getNextKeyGridItem, oe as getNextKeyListItem, R as getPropertyChanges, z as getThemeTokens, B as hasHorizontalScrollBar, V as hasInvalidDOMGrid, je as hostAttr, h as initializeKeyListItems, Ke as internal_exports, H as isContextMenuClick, g as isFocusable, _ as isImmediateRootActiveElement, v as isSimpleFocusable, ie as keyNavigationGrid, se as keyNavigationList, U as matchesElementName, We as nonnegativeFiniteOr, u as onChildListMutation, y as onListboxActivate, W as openEyeDropper, Ve as parseVersion, Le as popoverStyles, Ge as positiveFiniteOr, G as removeAnchorName, K as removeEmptySlotWhitespace, q as removeEmptyTextNode, J as sameOrderedStringArray, Me as scopedRegistry, b as setActiveKeyListItem, i as shiftLeft, Y as slotContainsOnlyWhitespace, ge as stateExpanded, ve as stateHighlighted, be as stateScroll, Se as stateSelected, ze as statusIcons, Pe as statusStateStyles, re as styleSheetToString, Fe as supportStateStyles, d as throttle, we as typeAnchor, Ae as typeSSR, X as uniqueNonEmptyStrings, Ie as useStyles, Z as validKeyNavigationCode };
|
|
151
139
|
|
|
152
140
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["internal_exports","AuditController","DOCS_URL","GestureController","KeyNavigationGridController","KeyNavigationListController","KeyNavigationSpatialController","KeyStateController","KeynavCode","LogService","StateExpandedController","StateHighlightedController","StateScrollController","StateSelectedController","TransitionService","TypeAnchorController","TypeClosableController","TypeExpandableController","TypeNativePopoverController","TypeSSRController","TypeSelectableController","appendAnchorName","appendRootNodeStyle","applySlotContentStates","associateAriaDescribedBy","associateAriaLabel","associateControlGroup","associateDataList","associateLabel","attachInternals","audit","auditParentElement","clickOutsideElementBounds","colorStateStyles","createGhostElement","createLightDismiss","debounce","endOfScrollBox","finiteOr","focusElement","focusElementTimeout","formatFileSize","formatStandardNumber","generateId","getActiveElement","getAnchorNames","getAttributeChanges","getAttributeListChanges","getChildren","getCustomElementRegistry","
|
|
1
|
+
{"version":3,"file":"index.js","names":["internal_exports","AuditController","DOCS_URL","GestureController","KeyNavigationGridController","KeyNavigationListController","KeyNavigationSpatialController","KeyStateController","KeynavCode","LogService","StateExpandedController","StateHighlightedController","StateScrollController","StateSelectedController","TransitionService","TypeAnchorController","TypeClosableController","TypeExpandableController","TypeNativePopoverController","TypeSSRController","TypeSelectableController","appendAnchorName","appendRootNodeStyle","applySlotContentStates","associateAriaDescribedBy","associateAriaLabel","associateControlGroup","associateDataList","associateLabel","attachInternals","audit","auditParentElement","clickOutsideElementBounds","colorStateStyles","createGhostElement","createLightDismiss","debounce","endOfScrollBox","finiteOr","focusElement","focusElementTimeout","formatFileSize","formatStandardNumber","generateId","getActiveElement","getAnchorNames","getAttributeChanges","getAttributeListChanges","getChildren","getCustomElementRegistry","getDisplayValue","getElementUpdate","getFlattenedDOMTree","getFlattenedFocusableItems","getNextKeyGridItem","getNextKeyListItem","getPropertyChanges","getThemeTokens","hasHorizontalScrollBar","hasInvalidDOMGrid","hostAttr","initializeKeyListItems","isContextMenuClick","isFocusable","isImmediateRootActiveElement","isSimpleFocusable","keyNavigationGrid","keyNavigationList","matchesElementName","nonnegativeFiniteOr","onChildListMutation","onListboxActivate","openEyeDropper","parseVersion","popoverStyles","positiveFiniteOr","removeAnchorName","removeEmptySlotWhitespace","removeEmptyTextNode","sameOrderedStringArray","scopedRegistry","setActiveKeyListItem","shiftLeft","slotContainsOnlyWhitespace","stateExpanded","stateHighlighted","stateScroll","stateSelected","statusIcons","statusStateStyles","styleSheetToString","supportStateStyles","throttle","typeAnchor","typeSSR","uniqueNonEmptyStrings","useStyles","validKeyNavigationCode","import__nvidia_elements_foundations_internal_i18n","__reExport","excessiveInstanceLimit"],"sources":["../../src/internal/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @internal private common utilities for Elements\n */\nexport * from './controllers/audit.controller.js';\nexport * from './controllers/gesture.controller.js';\nexport * from './controllers/key-state.controller.js';\nexport * from './controllers/keynav-grid.controller.js';\nexport * from './controllers/keynav-list.controller.js';\nexport * from './controllers/keynav-spatial.controller.js';\nexport * from './controllers/state-expanded.controller.js';\nexport * from './controllers/state-highlighted.controller.js';\nexport * from './controllers/state-scroll.controller.js';\nexport * from './controllers/state-selected.controller.js';\nexport * from './controllers/type-anchor.controller.js';\nexport * from './controllers/type-closable.controller.js';\nexport * from './controllers/type-expandable.controller.js';\nexport * from './controllers/type-selectable.controller.js';\nexport * from './controllers/type-native-popover.controller.js';\nexport * from './controllers/type-ssr.controller.js';\nexport * from './decorators/host-attr.js';\nexport * from './decorators/scoped-registry.js';\nexport * from './styles/index.js';\nexport * from './styles/popover.js';\nexport * from '@nvidia-elements/foundations/internal/i18n';\nexport * from './services/log.service.js';\nexport * from './services/transition.service.js';\nexport * from './types/index.js';\nexport * from './utils/a11y.js';\nexport * from './utils/audit.js';\nexport * from './utils/dom.js';\nexport * from './utils/events.js';\nexport * from './utils/objects.js';\nexport * from './utils/strings.js';\nexport * from './utils/focus.js';\nexport * from './utils/keynav.js';\nexport * from './utils/numeric.js';\n"],"mappings":""}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { TemplateResult } from 'lit';
|
|
2
2
|
import type { IconName } from './icons.js';
|
|
3
3
|
import type { I18nStrings } from '@nvidia-elements/foundations/internal/i18n';
|
|
4
|
+
/** @public */
|
|
4
5
|
export type Color = 'red-cardinal' | 'gray-slate' | 'gray-denim' | 'blue-indigo' | 'blue-cobalt' | 'blue-sky' | 'teal-cyan' | 'green-mint' | 'teal-seafoam' | 'green-grass' | 'yellow-amber' | 'orange-pumpkin' | 'red-tomato' | 'pink-magenta' | 'purple-plum' | 'purple-violet' | 'purple-lavender' | 'pink-rose' | 'green-jade' | 'lime-pear' | 'yellow-nova' | 'brand-green';
|
|
5
6
|
/** Controls the visual scale of an element to match its importance and available space.
|
|
6
7
|
* - `sm` - Compact size for dense layouts or secondary elements with less visual prominence.
|
|
7
8
|
* - `md` - Standard size that works well in most contexts and provides balanced visibility.
|
|
8
9
|
* - `lg` - Larger size for emphasizing important elements or improving touch targets in spacious layouts.
|
|
10
|
+
* @public
|
|
9
11
|
*/
|
|
10
12
|
export type Size = 'sm' | 'md' | 'lg';
|
|
11
13
|
/** Controls the visual scale of an element to match its importance and available space.
|
|
@@ -14,11 +16,13 @@ export type Size = 'sm' | 'md' | 'lg';
|
|
|
14
16
|
* - `md` - Standard size that works well in most contexts and provides balanced visibility.
|
|
15
17
|
* - `lg` - Larger size for emphasizing important elements or improving touch targets in spacious layouts.
|
|
16
18
|
* - `xl` - Extra large size for emphasizing elements or sparse layouts.
|
|
19
|
+
* @public
|
|
17
20
|
*/
|
|
18
21
|
export type SizeExpanded = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
19
22
|
/** Controls the visual prominence to establish hierarchy and guide user attention.
|
|
20
23
|
* - `emphasis` - Increases visual weight to draw attention and highlight important elements.
|
|
21
24
|
* - `muted` - Reduces visual weight for supporting content that should remain subtle and unobtrusive.
|
|
25
|
+
* @public
|
|
22
26
|
*/
|
|
23
27
|
export type Prominence = 'emphasis' | 'muted';
|
|
24
28
|
/**
|
|
@@ -27,11 +31,13 @@ export type Prominence = 'emphasis' | 'muted';
|
|
|
27
31
|
* - `inline` Element container reduces to fit within inline content such as a block of text.
|
|
28
32
|
* - `inset` Element container optimizes for embedding or inset placement inside another containing element.
|
|
29
33
|
* - `full` Element container optimizes for filling its container bounds.
|
|
34
|
+
* @public
|
|
30
35
|
*/
|
|
31
36
|
export type Container = 'inline' | 'flat' | 'inset' | 'full';
|
|
32
37
|
/** Controls the visual density of an element to match its context and available space.
|
|
33
38
|
* - `compact` - Reduces visual weight and spacing for dense layouts or secondary elements with less visual prominence.
|
|
34
39
|
* - `default` - Standard size that works well in most contexts and provides balanced visibility.
|
|
40
|
+
* @public
|
|
35
41
|
*/
|
|
36
42
|
export type Density = 'compact' | 'default';
|
|
37
43
|
/** Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions.
|
|
@@ -39,15 +45,19 @@ export type Density = 'compact' | 'default';
|
|
|
39
45
|
* - `warning` - Indicates cautionary actions that require careful consideration before proceeding.
|
|
40
46
|
* - `success` - Represents positive outcomes, confirmations, or constructive actions.
|
|
41
47
|
* - `danger` - Signals destructive or irreversible actions that need extra attention and confirmation.
|
|
48
|
+
* @public
|
|
42
49
|
*/
|
|
43
50
|
export type SupportStatus = 'accent' | 'warning' | 'success' | 'danger';
|
|
44
51
|
/** Controls how the chart connects intermediate values between points in a data series.
|
|
45
52
|
* - `linear` - Connects points with straight line segments.
|
|
46
53
|
* - `smooth` - Connects points with smooth bezier curves.
|
|
47
54
|
* - `step` - Connects points with horizontal and vertical step segments.
|
|
55
|
+
* @public
|
|
48
56
|
*/
|
|
49
57
|
export type Interpolation = 'linear' | 'smooth' | 'step';
|
|
50
|
-
/** Determines the orientation of an element.
|
|
58
|
+
/** Determines the orientation of an element.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
51
61
|
export type Orientation = 'vertical' | 'horizontal';
|
|
52
62
|
/** Communicates the current state of a task or process to keep users informed of progress and outcomes.
|
|
53
63
|
* - `scheduled` - Task has a scheduled future execution at a specific time.
|
|
@@ -61,6 +71,7 @@ export type Orientation = 'vertical' | 'horizontal';
|
|
|
61
71
|
* - `failed` - Task encountered an error and did not complete as intended.
|
|
62
72
|
* - `unknown` - Task status remains unknown or unavailable.
|
|
63
73
|
* - `ignored` - Task was intentionally skipped or excluded from execution.
|
|
74
|
+
* @public
|
|
64
75
|
*/
|
|
65
76
|
export type TaskStatus = 'scheduled' | 'queued' | 'pending' | 'starting' | 'running' | 'restarting' | 'stopping' | 'finished' | 'failed' | 'unknown' | 'ignored';
|
|
66
77
|
/**
|
|
@@ -68,8 +79,10 @@ export type TaskStatus = 'scheduled' | 'queued' | 'pending' | 'starting' | 'runn
|
|
|
68
79
|
* - `auto` light dismiss, focus on open, return to trigger
|
|
69
80
|
* - `manual` no light dismiss, no auto focus
|
|
70
81
|
* - `hint` no light dismiss, no auto focus, open/close on hover/focus
|
|
82
|
+
* @public
|
|
71
83
|
*/
|
|
72
84
|
export type PopoverType = 'auto' | 'manual' | 'hint' | 'inline';
|
|
85
|
+
/** @public */
|
|
73
86
|
export type InterestEvent = Event & {
|
|
74
87
|
source: HTMLElement;
|
|
75
88
|
};
|
|
@@ -77,6 +90,7 @@ export type InterestEvent = Event & {
|
|
|
77
90
|
* - `start` - Aligns the popover to the beginning edge of the anchor for left or top alignment.
|
|
78
91
|
* - `end` - Aligns the popover to the ending edge of the anchor for right or bottom alignment.
|
|
79
92
|
* - `center` - Centers the popover along the anchor's edge for balanced positioning.
|
|
93
|
+
* @public
|
|
80
94
|
*/
|
|
81
95
|
export type PopoverAlign = 'start' | 'end' | 'center';
|
|
82
96
|
/** Determines the popover position relative to its assigned anchor and alignment.
|
|
@@ -84,6 +98,7 @@ export type PopoverAlign = 'start' | 'end' | 'center';
|
|
|
84
98
|
* - `bottom` - Positions the popover below the anchor element.
|
|
85
99
|
* - `left` - Positions the popover to the left side of the anchor element.
|
|
86
100
|
* - `right` - Positions the popover to the right side of the anchor element.
|
|
101
|
+
* @public
|
|
87
102
|
*/
|
|
88
103
|
export type PopoverSides = 'top' | 'bottom' | 'left' | 'right';
|
|
89
104
|
/** Controls the placement of the popover relative to its anchor element.
|
|
@@ -92,20 +107,25 @@ export type PopoverSides = 'top' | 'bottom' | 'left' | 'right';
|
|
|
92
107
|
* - `bottom` - Positions the popover below the anchor element.
|
|
93
108
|
* - `left` - Positions the popover to the left side of the anchor element.
|
|
94
109
|
* - `right` - Positions the popover to the right side of the anchor element.
|
|
110
|
+
* @public
|
|
95
111
|
*/
|
|
96
112
|
export type PopoverPosition = 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
97
|
-
/** Determines the position of an element relative to its anchor
|
|
113
|
+
/** Determines the position of an element relative to its anchor
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
98
116
|
export type Placement = PopoverPosition | `${PopoverSides}-${PopoverAlign}`;
|
|
99
117
|
/** Controls the directional arrangement and spacing behavior of the element's content.
|
|
100
118
|
* - `vertical` - Arranges content in a vertical stack with block-level spacing.
|
|
101
119
|
* - `vertical-inline` - Arranges content vertically with compact inline spacing for dense layouts.
|
|
102
120
|
* - `horizontal` - Arranges content in a horizontal row with block-level spacing.
|
|
103
121
|
* - `horizontal-inline` - Arranges content horizontally with compact inline spacing.
|
|
122
|
+
* @public
|
|
104
123
|
*/
|
|
105
124
|
export type ControlLayout = 'vertical' | 'vertical-inline' | 'horizontal' | 'horizontal-inline';
|
|
106
125
|
/** 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)
|
|
107
126
|
* - `page` - Marks the current page within a set of navigation links.
|
|
108
127
|
* - `step` - Marks the current step within a multi-step process or workflow.
|
|
128
|
+
* @public
|
|
109
129
|
*/
|
|
110
130
|
export type Current = 'page' | 'step';
|
|
111
131
|
/** Controls how data points are visually encoded in a sparkline chart.
|
|
@@ -114,8 +134,10 @@ export type Current = 'page' | 'step';
|
|
|
114
134
|
* - `gradient` - Renders a line with gradient color treatment to communicate value intensity across the series.
|
|
115
135
|
* - `column` - Renders data as vertical columns for easy comparison of discrete values.
|
|
116
136
|
* - `winloss` - Renders outcomes as binary or ternary bars to highlight wins, losses, and optional ties.
|
|
137
|
+
* @public
|
|
117
138
|
*/
|
|
118
139
|
export type SparklineMark = 'line' | 'area' | 'gradient' | 'column' | 'winloss';
|
|
140
|
+
/** @public */
|
|
119
141
|
export interface NveElement {
|
|
120
142
|
/**
|
|
121
143
|
* 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)
|
|
@@ -267,20 +289,26 @@ export interface NveElement {
|
|
|
267
289
|
* - `footer` - Content that appears at the bottom of the element, used for supplementary information or actions.
|
|
268
290
|
* - `actions` - Content area specifically for interactive controls like buttons or links.
|
|
269
291
|
* - `icon` - Content area for displaying an icon that represents the element's purpose or state.
|
|
292
|
+
* @public
|
|
270
293
|
*/
|
|
271
294
|
export type SlotName = 'default' | 'prefix' | 'suffix' | 'header' | 'footer' | 'actions' | 'icon';
|
|
272
295
|
/** The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors.
|
|
273
296
|
* - `emphasis` Shows the interaction targets emphasis or highlighting primary actions.
|
|
274
297
|
* - `destructive` Shows the interaction targets destructive actions such as deleting or removing.
|
|
298
|
+
* @public
|
|
275
299
|
*/
|
|
276
300
|
export type Interaction = 'emphasis' | 'destructive';
|
|
301
|
+
/** @public */
|
|
277
302
|
export interface ContainerElement {
|
|
278
303
|
container?: Partial<Container>;
|
|
279
304
|
}
|
|
280
|
-
/** An element that renders complex data structures (e.g., arrays, series, matrices) rather than composable UI content and values expressible with primitive attributes.
|
|
305
|
+
/** An element that renders complex data structures (e.g., arrays, series, matrices) rather than composable UI content and values expressible with primitive attributes.
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
281
308
|
export interface DataElement<T extends unknown[] | Record<string, unknown>> {
|
|
282
309
|
data?: T;
|
|
283
310
|
}
|
|
311
|
+
/** @public */
|
|
284
312
|
export declare const statusIcons: {
|
|
285
313
|
[key: string]: IconName;
|
|
286
314
|
};
|
|
@@ -297,24 +325,30 @@ declare global {
|
|
|
297
325
|
prototype: CustomElementRegistry;
|
|
298
326
|
};
|
|
299
327
|
}
|
|
328
|
+
/** @public */
|
|
300
329
|
export interface Point {
|
|
301
330
|
x: number;
|
|
302
331
|
y: number;
|
|
303
332
|
}
|
|
333
|
+
/** @public */
|
|
304
334
|
export interface OffsetPoint {
|
|
305
335
|
offsetX: number;
|
|
306
336
|
offsetY: number;
|
|
307
337
|
}
|
|
338
|
+
/** @public */
|
|
308
339
|
export interface Dimensions {
|
|
309
340
|
width: number;
|
|
310
341
|
height: number;
|
|
311
342
|
}
|
|
343
|
+
/** @public */
|
|
312
344
|
export type Rect = Point & Dimensions;
|
|
345
|
+
/** @public */
|
|
313
346
|
export interface Scale {
|
|
314
347
|
min: number;
|
|
315
348
|
max: number;
|
|
316
349
|
}
|
|
317
350
|
/** https://github.com/tc39/proposal-decorators */
|
|
351
|
+
/** @public */
|
|
318
352
|
export type LegacyDecoratorTarget = Function & {
|
|
319
353
|
addInitializer?: (initializer: (instance: any) => void) => void;
|
|
320
354
|
};
|