@nvidia-elements/core 2.20.2 → 2.21.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 +18 -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/bundles/index.js +10 -10
- 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/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-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/iframe/iframe2.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 +1 -1
- package/dist/internal/controllers/keynav-list.controller.js.map +1 -1
- package/dist/internal/index.js +23 -23
- package/dist/internal/styles/popover2.js +3 -10
- package/dist/internal/styles/popover2.js.map +1 -1
- package/dist/internal/utils/dom.js.map +1 -1
- package/dist/joystick/joystick2.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-group2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +17 -12
- package/dist/menu/menu2.js.map +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-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 +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/tabs-item-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 -2
package/dist/internal/index.js
CHANGED
|
@@ -25,13 +25,13 @@ import { TypeSSRController as Pe, typeSSR as Fe } from "./controllers/type-ssr.c
|
|
|
25
25
|
import { hostAttr as Ie } from "./decorators/host-attr.js";
|
|
26
26
|
import { scopedRegistry as Le } from "./decorators/scoped-registry.js";
|
|
27
27
|
import { colorStateStyles as Re, statusStateStyles as ze, supportStateStyles as Be, useStyles as Ve } from "./styles/index.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
28
|
+
import { popoverStyles as He } from "./styles/popover2.js";
|
|
29
|
+
import { TransitionService as Ue } from "./services/transition.service.js";
|
|
30
|
+
import { statusIcons as We } from "./types/index.js";
|
|
31
|
+
import { formatStandardNumber as Ge, getDifference as Ke, isObject as qe, parseVersion as Je } from "./utils/objects.js";
|
|
32
|
+
import { createLightDismiss as Ye, onKeys as Xe } from "./utils/keynav.js";
|
|
33
|
+
import { finiteOr as Ze, nonnegativeFiniteOr as Qe, positiveFiniteOr as $e } from "./utils/numeric.js";
|
|
34
|
+
import { supportsCSSLegacyInsetArea as et, supportsCSSPositionArea as tt, supportsNativeCSSAnchorPosition as nt } from "./utils/supports.js";
|
|
35
35
|
export * from "@nvidia-elements/foundations/internal/i18n";
|
|
36
36
|
// src/internal/index.ts
|
|
37
37
|
var rt = /* @__PURE__ */ ee({
|
|
@@ -48,7 +48,7 @@ var rt = /* @__PURE__ */ ee({
|
|
|
48
48
|
StateHighlightedController: () => Se,
|
|
49
49
|
StateScrollController: () => we,
|
|
50
50
|
StateSelectedController: () => Ee,
|
|
51
|
-
TransitionService: () =>
|
|
51
|
+
TransitionService: () => Ue,
|
|
52
52
|
TypeAnchorController: () => Oe,
|
|
53
53
|
TypeClosableController: () => Ae,
|
|
54
54
|
TypeExpandableController: () => je,
|
|
@@ -69,15 +69,15 @@ var rt = /* @__PURE__ */ ee({
|
|
|
69
69
|
clickOutsideElementBounds: () => E,
|
|
70
70
|
colorStateStyles: () => Re,
|
|
71
71
|
createGhostElement: () => D,
|
|
72
|
-
createLightDismiss: () =>
|
|
72
|
+
createLightDismiss: () => Ye,
|
|
73
73
|
debounce: () => l,
|
|
74
74
|
endOfScrollBox: () => O,
|
|
75
75
|
excessiveInstanceLimit: () => 50,
|
|
76
|
-
finiteOr: () =>
|
|
76
|
+
finiteOr: () => Ze,
|
|
77
77
|
focusElement: () => p,
|
|
78
78
|
focusElementTimeout: () => m,
|
|
79
79
|
formatFileSize: () => r,
|
|
80
|
-
formatStandardNumber: () =>
|
|
80
|
+
formatStandardNumber: () => Ge,
|
|
81
81
|
generateId: () => k,
|
|
82
82
|
getActiveElement: () => h,
|
|
83
83
|
getAnchorNames: () => A,
|
|
@@ -85,7 +85,7 @@ var rt = /* @__PURE__ */ ee({
|
|
|
85
85
|
getAttributeListChanges: () => M,
|
|
86
86
|
getChildren: () => N,
|
|
87
87
|
getCustomElementRegistry: () => P,
|
|
88
|
-
getDifference: () =>
|
|
88
|
+
getDifference: () => Ke,
|
|
89
89
|
getDisplayValue: () => F,
|
|
90
90
|
getElementUpdate: () => I,
|
|
91
91
|
getFlattenedDOMTree: () => L,
|
|
@@ -102,20 +102,20 @@ var rt = /* @__PURE__ */ ee({
|
|
|
102
102
|
isContextMenuClick: () => W,
|
|
103
103
|
isFocusable: () => _,
|
|
104
104
|
isImmediateRootActiveElement: () => v,
|
|
105
|
-
isObject: () =>
|
|
105
|
+
isObject: () => qe,
|
|
106
106
|
isSimpleFocusable: () => y,
|
|
107
107
|
keyNavigationGrid: () => le,
|
|
108
108
|
keyNavigationList: () => fe,
|
|
109
109
|
matchesElementName: () => G,
|
|
110
|
-
nonnegativeFiniteOr: () =>
|
|
110
|
+
nonnegativeFiniteOr: () => Qe,
|
|
111
111
|
onChildListMutation: () => u,
|
|
112
|
-
onKeys: () =>
|
|
112
|
+
onKeys: () => Xe,
|
|
113
113
|
onListboxActivate: () => b,
|
|
114
114
|
openEyeDropper: () => K,
|
|
115
115
|
parseTokenNumber: () => q,
|
|
116
|
-
parseVersion: () =>
|
|
117
|
-
popoverStyles: () =>
|
|
118
|
-
positiveFiniteOr: () =>
|
|
116
|
+
parseVersion: () => Je,
|
|
117
|
+
popoverStyles: () => He,
|
|
118
|
+
positiveFiniteOr: () => $e,
|
|
119
119
|
removeAnchorName: () => J,
|
|
120
120
|
removeEmptySlotWhitespace: () => Y,
|
|
121
121
|
removeEmptyTextNode: () => X,
|
|
@@ -130,14 +130,14 @@ var rt = /* @__PURE__ */ ee({
|
|
|
130
130
|
stateHighlighted: () => Ce,
|
|
131
131
|
stateScroll: () => Te,
|
|
132
132
|
stateSelected: () => De,
|
|
133
|
-
statusIcons: () =>
|
|
133
|
+
statusIcons: () => We,
|
|
134
134
|
statusStateStyles: () => ze,
|
|
135
135
|
stopEvent: () => d,
|
|
136
136
|
styleSheetToString: () => ae,
|
|
137
137
|
supportStateStyles: () => Be,
|
|
138
|
-
supportsCSSLegacyInsetArea: () =>
|
|
139
|
-
supportsCSSPositionArea: () =>
|
|
140
|
-
supportsNativeCSSAnchorPosition: () =>
|
|
138
|
+
supportsCSSLegacyInsetArea: () => et,
|
|
139
|
+
supportsCSSPositionArea: () => tt,
|
|
140
|
+
supportsNativeCSSAnchorPosition: () => nt,
|
|
141
141
|
throttle: () => f,
|
|
142
142
|
typeAnchor: () => ke,
|
|
143
143
|
typeSSR: () => Fe,
|
|
@@ -147,6 +147,6 @@ var rt = /* @__PURE__ */ ee({
|
|
|
147
147
|
});
|
|
148
148
|
import * as it from "@nvidia-elements/foundations/internal/i18n";
|
|
149
149
|
te(rt, it);
|
|
150
|
-
export { a as AuditController, n as DOCS_URL, s as GestureController, se as KeyNavigationGridController, ue as KeyNavigationListController, pe as KeyNavigationSpatialController, c as KeyStateController, S as KeynavCode, e as LogService, be as StateExpandedController, Se as StateHighlightedController, we as StateScrollController, Ee as StateSelectedController,
|
|
150
|
+
export { a as AuditController, n as DOCS_URL, s as GestureController, se as KeyNavigationGridController, ue as KeyNavigationListController, pe as KeyNavigationSpatialController, c as KeyStateController, S as KeynavCode, e as LogService, be as StateExpandedController, Se as StateHighlightedController, we as StateScrollController, Ee as StateSelectedController, Ue as TransitionService, Oe as TypeAnchorController, Ae as TypeClosableController, je as TypeExpandableController, Ne as TypeNativePopoverController, Pe as TypeSSRController, Me as TypeSelectableController, C as appendAnchorName, w as appendRootNodeStyle, T as applySlotContentStates, me as associateAriaDescribedBy, he as associateAriaLabel, ge as associateControlGroup, _e as associateDataList, ve as associateLabel, ye as attachInternals, o as audit, t as auditParentElement, E as clickOutsideElementBounds, Re as colorStateStyles, D as createGhostElement, Ye as createLightDismiss, l as debounce, O as endOfScrollBox, ne as excessiveInstanceLimit, Ze as finiteOr, p as focusElement, m as focusElementTimeout, r as formatFileSize, Ge as formatStandardNumber, k as generateId, h as getActiveElement, A as getAnchorNames, j as getAttributeChanges, M as getAttributeListChanges, N as getChildren, P as getCustomElementRegistry, Ke as getDifference, F as getDisplayValue, I as getElementUpdate, L as getFlattenedDOMTree, R as getFlattenedFocusableItems, ce as getNextKeyGridItem, de as getNextKeyListItem, z as getPropertyChanges, B as getThemeTokens, V as hasHorizontalScrollBar, H as hasInvalidDOMGrid, U as hasScrollBar, Ie as hostAttr, g as initializeKeyListItems, rt as internal_exports, W as isContextMenuClick, _ as isFocusable, v as isImmediateRootActiveElement, qe as isObject, y as isSimpleFocusable, le as keyNavigationGrid, fe as keyNavigationList, G as matchesElementName, Qe as nonnegativeFiniteOr, u as onChildListMutation, Xe as onKeys, b as onListboxActivate, K as openEyeDropper, q as parseTokenNumber, Je as parseVersion, He as popoverStyles, $e as positiveFiniteOr, J as removeAnchorName, Y as removeEmptySlotWhitespace, X as removeEmptyTextNode, Z as sameOrderedStringArray, Q as sameRenderRoot, Le as scopedRegistry, re as scrollBarWidth, x as setActiveKeyListItem, i as shiftLeft, ie as slotContainsOnlyWhitespace, xe as stateExpanded, Ce as stateHighlighted, Te as stateScroll, De as stateSelected, We as statusIcons, ze as statusStateStyles, d as stopEvent, ae as styleSheetToString, Be as supportStateStyles, et as supportsCSSLegacyInsetArea, tt as supportsCSSPositionArea, nt as supportsNativeCSSAnchorPosition, f as throttle, ke as typeAnchor, Fe as typeSSR, oe as uniqueNonEmptyStrings, Ve as useStyles, $ as validKeyNavigationCode };
|
|
151
151
|
|
|
152
152
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "./popover.js";
|
|
3
|
-
import { isServer as r } from "lit";
|
|
4
|
-
// src/internal/styles/popover.ts
|
|
1
|
+
import e from "./popover.js";
|
|
5
2
|
/* istanbul ignore file -- @preserve */
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
return !r && !t() && e() ? n.replaceAll("position-area", "inset-area") + i : n + i;
|
|
9
|
-
}
|
|
10
|
-
var o = a();
|
|
11
|
-
export { o as popoverStyles };
|
|
3
|
+
var t = e + "\n[internal-host] { anchor-name: --internal-host }\n.arrow { position-anchor: --internal-host }\n";
|
|
4
|
+
export { t as popoverStyles };
|
|
12
5
|
|
|
13
6
|
//# sourceMappingURL=popover2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover2.js","names":["_popoverStyles","popover_default","
|
|
1
|
+
{"version":3,"file":"popover2.js","names":["_popoverStyles","popover_default","popoverStyles"],"sources":["../../../src/internal/styles/popover.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/* istanbul ignore file -- @preserve */\nimport _popoverStyles from './popover.css?inline';\n\n// vite/esbuild minifier does not understand this syntax\nconst anchor = /* css */ `\n[internal-host] { anchor-name: --internal-host }\n.arrow { position-anchor: --internal-host }\n`;\n\nexport const popoverStyles = _popoverStyles + anchor;\n"],"mappings":";;AAYA,IAAaE,IAAgBF,IAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.js","names":["getChildren","node","slotted","generateId","getAttributeChanges","element","attr","observer","mutation","fn","getAttributeListChanges","attrs","appendRootNodeStyle","stylesheet","styles","root","host","styleSheetToString","s","rule","getPropertyChanges","own","key","descriptor","proto","setter","active","observation","val","callback","current","getElementUpdate","cleanupPropertyChanges","disconnect","clickOutsideElementBounds","event","left","right","top","bottom","parseTokenNumber","value","getCustomElementRegistry","CustomElementRegistryConstructor","isContextMenuClick","getFlattenedFocusableItems","getFlattenedDOMTree","depth","isFocusable","p","n","i","validKeyNavigationCode","keynavCodes","KeynavCode","\"End\"","\"Home\"","\"PageUp\"","\"PageDown\"","\"ArrowUp\"","\"ArrowDown\"","\"ArrowLeft\"","\"ArrowRight\"","hasInvalidDOMGrid","rows","row","removeEmptyTextNode","scrollBarWidth","div","width","hasScrollBar","el","hasHorizontalScrollBar","endOfScrollBox","offset","openEyeDropper","EyeDropperConstructor","LogService","e","getThemeTokens","parent","rules","sheet","finalArr","props","propName","propValArr","token","removeEmptySlotWhitespace","slotContainsOnlyWhitespace","slot","hasNoElements","hasOnlyEmptyTextNodes","applySlotContentStates","nodes","name","getDisplayValue","option","matchesElementName","component","createGhostElement","ghost","sourceElement","sameRenderRoot","root1","element1","root2","element2","sameShadowRoot","sameDocumentRoot","getAnchorNames","removeAnchorName","anchorNames","appendAnchorName","sameOrderedStringArray","a","b","index","uniqueNonEmptyStrings","values"],"sources":["../../../src/internal/utils/dom.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { LogService } from '../services/log.service.js';\nimport { isFocusable } from './focus.js';\n\nexport function getChildren(node: Document | Node | HTMLElement): Element[] {\n if (node instanceof Document && node.documentElement) {\n return Array.from(node.documentElement.children); // root document children\n } else if (node instanceof HTMLElement && node.shadowRoot) {\n return Array.from(node.shadowRoot.children); // shadow root direct children\n } else if (node instanceof HTMLSlotElement && node.assignedElements) {\n const slotted = node.assignedElements(); // slotted elements\n return slotted.length ? slotted : Array.from(node.children); // slot fallback\n } else {\n return Array.from((node as HTMLElement).children); // light DOM direct children\n }\n}\n\nexport function generateId() {\n const uint32 = self.crypto.getRandomValues(new Uint32Array(1))[0]!;\n return `_${uint32.toString(16)}`;\n}\n\nexport function getAttributeChanges(element: HTMLElement, attr: string, fn: (attrValue: string | null) => void) {\n fn(element.getAttribute(attr));\n const observer = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName === attr) {\n fn((mutation.target as HTMLElement).getAttribute(attr));\n }\n });\n });\n observer.observe(element, { attributes: true, subtree: true });\n return observer;\n}\n\nexport function getAttributeListChanges(element: HTMLElement, attrs: string[], fn: (mutation: MutationRecord) => void) {\n const observer = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName && attrs.includes(mutation.attributeName)) {\n fn(mutation);\n }\n });\n });\n observer.observe(element, { attributes: true, subtree: true });\n return observer;\n}\n\n/**\n * Appends styles to the render root of a given element. This is useful for\n * styles that apply outside the scope of the element's shadow\n * root such as UA styles --webkit-* that won't work in a ::slotted selector\n */\nexport function appendRootNodeStyle(host: HTMLElement, styles: string) {\n const stylesheet = new CSSStyleSheet();\n stylesheet.replaceSync(styles);\n const root = host.getRootNode() as Document | ShadowRoot;\n if (root.adoptedStyleSheets) {\n const hasStyleSheet = root.adoptedStyleSheets\n .map(s => styleSheetToString(s))\n .find(s => s === styleSheetToString(stylesheet));\n if (!hasStyleSheet) {\n root.adoptedStyleSheets = [...Array.from(root.adoptedStyleSheets), stylesheet];\n }\n }\n return stylesheet;\n}\n\nexport function styleSheetToString(stylesheet: CSSStyleSheet) {\n return stylesheet.cssRules\n ? Array.from(stylesheet.cssRules)\n .map(rule => rule.cssText || '')\n .join('\\n')\n : '';\n}\n\n/** Intercepts a property setter on an element so `callback` fires on every assignment. Does not use a MutationObserver. */\nexport function getPropertyChanges(element: HTMLElement, key: string, callback: (value: unknown) => void) {\n const own = Object.getOwnPropertyDescriptor(element, key);\n if (own?.configurable === false) return;\n\n let descriptor = own;\n let proto = Object.getPrototypeOf(element);\n while (!descriptor && proto) {\n descriptor = Object.getOwnPropertyDescriptor(proto, key);\n proto = Object.getPrototypeOf(proto);\n }\n if (!descriptor?.set) return;\n const setter = descriptor.set;\n\n let active = true;\n const observation: PropertyDescriptor = {\n configurable: true,\n enumerable: descriptor.enumerable,\n get: descriptor.get,\n set: (val: unknown) => {\n setter.call(element, val);\n if (active) callback(val);\n }\n };\n Object.defineProperty(element, key, observation);\n\n return () => {\n active = false;\n const current = Object.getOwnPropertyDescriptor(element, key);\n if (\n current?.configurable !== observation.configurable ||\n current?.enumerable !== observation.enumerable ||\n current?.get !== observation.get ||\n current?.set !== observation.set\n ) {\n return;\n }\n\n if (own) {\n Object.defineProperty(element, key, own);\n return;\n }\n\n Reflect.deleteProperty(element, key);\n };\n}\n\n/* used for cases of needing to know a property update outside of lit, example a native input value prop change */\nexport function getElementUpdate(element: HTMLElement, key: string, callback: (value: unknown) => void) {\n if (element.hasAttribute(key)) {\n callback(element.getAttribute(key));\n } else if ((element as unknown as Record<string, unknown>)[key] !== undefined) {\n callback((element as unknown as Record<string, unknown>)[key]);\n }\n\n const cleanupPropertyChanges = getPropertyChanges(element, key, callback);\n const observer = getAttributeChanges(element, key, val => callback(val));\n const disconnect = observer.disconnect.bind(observer);\n\n observer.disconnect = () => {\n cleanupPropertyChanges?.();\n disconnect();\n };\n\n return observer;\n}\n\nexport function clickOutsideElementBounds(event: PointerEvent | MouseEvent, element: HTMLElement) {\n const { left, right, top, bottom } = element.getBoundingClientRect();\n return event.clientX < left || event.clientX > right || event.clientY < top || event.clientY > bottom;\n}\n\n/** parses number out of basic calc generated by the design tokens */\nexport function parseTokenNumber(value: string) {\n return parseInt(value.includes('calc') ? value.split('*')[1]!.replace('px)', '').trim() : value, 10) || 0;\n}\n\nexport function getCustomElementRegistry(element: Element): CustomElementRegistry | undefined {\n const root = element.getRootNode();\n const CustomElementRegistryConstructor =\n element.ownerDocument.defaultView?.CustomElementRegistry ?? globalThis.CustomElementRegistry;\n if (\n CustomElementRegistryConstructor &&\n 'customElementRegistry' in root &&\n root.customElementRegistry instanceof CustomElementRegistryConstructor\n ) {\n return root.customElementRegistry;\n }\n const documentRegistry = element.ownerDocument.defaultView?.customElements;\n if (documentRegistry) return documentRegistry;\n return typeof customElements === 'undefined' ? undefined : customElements;\n}\n\nexport function isContextMenuClick(event: MouseEvent) {\n return (event.buttons === 2 && !event.ctrlKey) || (event.buttons === 1 && event.ctrlKey);\n}\n\nexport function getFlattenedFocusableItems(element: Node, depth = 10) {\n return getFlattenedDOMTree(element, depth).filter((e: HTMLElement) => isFocusable(e)) as HTMLElement[];\n}\n\n/**\n * Preserves visual DOM ordering when using slots within Shadow DOM\n * See more information/resources on Shadow DOM linear traversal\n * https://nolanlawson.com/2021/02/13/managing-focus-in-the-shadow-dom/\n * https://www.abeautifulsite.net/posts/querying-through-shadow-roots/\n */\nexport function getFlattenedDOMTree(node: Node, depth = 10): HTMLElement[] {\n return (\n Array.from(getChildren(node)).reduce(\n (p: unknown[], n: Node) => [\n ...p,\n [n, [...Array.from(getChildren(n)).map(i => [i, getFlattenedDOMTree(i, depth)])]]\n ],\n []\n ) as unknown as HTMLElement[]\n ).flat(depth);\n}\n\nexport function validKeyNavigationCode(e: KeyboardEvent): e is KeyboardEvent & { code: KeynavCode } {\n return keynavCodes.has(e.code);\n}\n\nexport enum KeynavCode {\n End = 'End',\n Home = 'Home',\n PageUp = 'PageUp',\n PageDown = 'PageDown',\n ArrowUp = 'ArrowUp',\n ArrowDown = 'ArrowDown',\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight'\n}\n\nconst keynavCodes: Set<string> = new Set(Object.values(KeynavCode));\n\nexport function hasInvalidDOMGrid(rows: HTMLElement[]) {\n return rows.some(row => row.children.length !== rows[0]!.children.length);\n}\n\nexport function removeEmptyTextNode(node: Node) {\n if ((node as Text)?.wholeText?.trim() === '') {\n (node as Text).remove();\n }\n}\n\nexport function scrollBarWidth() {\n const div = globalThis.document.createElement('div');\n div.style.setProperty('width', '100px');\n div.style.setProperty('height', '100px');\n div.style.setProperty('overflow', 'scroll');\n div.style.setProperty('position', 'absolute');\n div.style.setProperty('top', '-9999px');\n globalThis.document.body.appendChild(div);\n const width = div.offsetWidth - div.clientWidth;\n globalThis.document.body.removeChild(div);\n return width;\n}\n\nexport function hasScrollBar(el: HTMLElement) {\n return el.scrollHeight > el.clientHeight;\n}\n\nexport function hasHorizontalScrollBar(el: HTMLElement) {\n return el.scrollWidth > el.clientWidth;\n}\n\nexport function endOfScrollBox(element: HTMLElement, offset = 0) {\n return element.scrollTop + element.offsetHeight + offset >= element.scrollHeight;\n}\n\nexport async function openEyeDropper(): Promise<string> {\n const EyeDropperConstructor = (\n globalThis as unknown as { EyeDropper?: new () => { open: () => Promise<{ sRGBHex: string }> } }\n ).EyeDropper;\n\n if (!EyeDropperConstructor) {\n LogService.warn('EyeDropper API is unavailable');\n return '';\n }\n\n try {\n return (await new EyeDropperConstructor().open()).sRGBHex;\n } catch (e) {\n LogService.warn(`EyeDropper selection failed: ${(e as Error).message}`);\n return '';\n }\n}\n\n/**\n * provides a object with key/value of the currently applied design tokens\n */\nexport function getThemeTokens(element = globalThis.document.querySelector(':root')!) {\n // default root or provided element\n const styles = getComputedStyle(element);\n let parent: CSSStyleSheet[] = [];\n\n // check for parent iframe, same domain iframes change how the browser accesses style sheets\n try {\n parent = Array.from(globalThis.parent.document.styleSheets);\n } catch {\n // if not accessible, skip\n }\n\n return [...parent, ...Array.from(globalThis.document.styleSheets)]\n .reduce((finalArr: string[][], sheet) => {\n let rules: CSSRule[] = [];\n try {\n rules = [...sheet.cssRules];\n } catch {\n // if the style sheet is not accessible, skip\n }\n return finalArr.concat(\n rules\n .filter(rule => rule.type === 1)\n .reduce((propValArr: string[][], rule) => {\n const props = [...(rule as CSSStyleRule).style]\n .filter((p: string) => p.trim().includes('--nve'))\n .map((propName: string) => [\n propName.trim(),\n (rule as CSSStyleRule).style.getPropertyValue(propName).trim()\n ]);\n return [...propValArr, ...props];\n }, [])\n );\n }, [])\n .reduce(\n (p: Record<string, string>, token: string[]) => ({ ...p, [token[0]!]: styles.getPropertyValue(token[0]!) }),\n {}\n );\n}\n\nexport function removeEmptySlotWhitespace(slot: HTMLSlotElement) {\n if (slotContainsOnlyWhitespace(slot)) {\n slot.assignedNodes().forEach((node: Node) => node.parentNode?.removeChild(node));\n }\n}\n\nexport function slotContainsOnlyWhitespace(slot: HTMLSlotElement) {\n const hasNoElements = !slot.assignedNodes().find(i => i.nodeType !== Node.TEXT_NODE);\n const hasOnlyEmptyTextNodes = !slot\n .assignedNodes()\n .find(i => i.nodeType === Node.TEXT_NODE && (i.textContent ?? '').trim() !== '');\n return hasNoElements && hasOnlyEmptyTextNodes;\n}\n\nexport function applySlotContentStates(slot: HTMLSlotElement, element: HTMLElement & { _internals: ElementInternals }) {\n const nodes = slot.assignedNodes();\n const name = slot.name ?? 'slot';\n\n if (nodes.length) {\n element._internals.states.add(`has-${name}`);\n } else {\n element._internals.states.delete(`has-${name}`);\n }\n}\n\nexport function getDisplayValue(option?: { label?: string; value?: string }): string {\n return option?.label || option?.value || '';\n}\n\n/** determines if HTML element matches the given component tag */\nexport function matchesElementName(element: Partial<HTMLElement>, component: { metadata: { tag: string } }) {\n return element.localName === component.metadata.tag;\n}\n\nexport function createGhostElement(sourceElement: HTMLElement) {\n const ghost = globalThis.document.createElement('div');\n const { width } = sourceElement.getBoundingClientRect();\n ghost.setAttribute('nve-ghost', '');\n ghost.style.minWidth = `${width}px`;\n ghost.style.maxWidth = `${width}px`;\n ghost.style.height = '1px';\n ghost.slot = sourceElement.slot;\n return ghost;\n}\n\nexport function sameRenderRoot(element1: HTMLElement, element2: HTMLElement) {\n const root1 = element1.getRootNode();\n const root2 = element2.getRootNode();\n const sameShadowRoot = root1 instanceof ShadowRoot && root2 instanceof ShadowRoot && root1 === root2;\n const sameDocumentRoot = root1 === globalThis.document && root2 === globalThis.document;\n const sameUnattachedRoot = root1 === root2;\n return sameShadowRoot || sameDocumentRoot || sameUnattachedRoot;\n}\n\nexport function getAnchorNames(element: HTMLElement): string[] {\n return (\n element.style.anchorName\n ?.split(',')\n ?.map(name => name.trim())\n ?.filter(name => name !== 'none' && name !== '') ?? []\n );\n}\n\nexport function removeAnchorName(element: HTMLElement, name: string) {\n const anchorNames = getAnchorNames(element);\n element.style.anchorName = anchorNames.filter(i => i !== name).join(',');\n}\n\nexport function appendAnchorName(element: HTMLElement, name: string) {\n element.style.anchorName = Array.from(new Set([...getAnchorNames(element), name])).join(',');\n}\n\n/**\n * Returns true when both arrays have the same length and each index is strictly equal (`===`).\n */\nexport function sameOrderedStringArray(a: readonly string[], b: readonly string[]): boolean {\n return a.length === b.length && a.every((value, index) => value === b[index]);\n}\n\n/**\n * Returns unique non-empty strings in first-seen order (insertion order of a `Set` over the filtered list).\n */\nexport function uniqueNonEmptyStrings(values: Iterable<string | null | undefined>): string[] {\n return Array.from(\n new Set(Array.from(values).filter((value): value is string => typeof value === 'string' && value.length > 0))\n );\n}\n"],"mappings":";;;AAMA,SAAgBA,EAAY,GAAgD;CAC1E,IAAIC,aAAgB,YAAYA,EAAK,iBACnC,OAAO,MAAM,KAAKA,EAAK,gBAAgB,QAAQ;CAC1C,IAAIA,aAAgB,eAAeA,EAAK,YAC7C,OAAO,MAAM,KAAKA,EAAK,WAAW,QAAQ;CACrC,IAAIA,aAAgB,mBAAmBA,EAAK,kBAAkB;EACnE,IAAMC,IAAUD,EAAK,iBAAiB;EACtC,OAAOC,EAAQ,SAASA,IAAU,MAAM,KAAKD,EAAK,QAAQ;CAC5D;CACE,OAAO,MAAM,KAAMA,EAAqB,QAAQ;AAEpD;AAEA,SAAgBE,IAAa;CAE3B,OAAO,IADQ,KAAK,OAAO,gCAAgB,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,EACpD,CAAO,SAAS,EAAE;AAC/B;AAEA,SAAgBC,EAAoB,GAAsB,GAAc,GAAwC;CAC9G,EAAGC,EAAQ,aAAaC,CAAI,CAAC;CAC7B,IAAMC,IAAW,IAAI,kBAAiB,MAAa;EACjD,EAAU,SAAQ,MAAY;GAC5B,AAAIC,EAAS,kBAAkBF,KAC7BG,EAAID,EAAS,OAAuB,aAAaF,CAAI,CAAC;EAE1D,CAAC;CACH,CAAC;CAED,OADAC,EAAS,QAAQF,GAAS;EAAE,YAAY;EAAM,SAAS;CAAK,CAAC,GACtDE;AACT;AAEA,SAAgBG,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C,GAAGH,EAAezG,CAAO,GAAG0F,CAAI,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG;AAC7F;AAKA,SAAgBmB,EAAuB,GAAsB,GAA+B;CAC1F,OAAOC,EAAE,WAAWC,EAAE,UAAUD,EAAE,OAAO,GAAO,MAAU1E,MAAU2E,EAAEC,EAAM;AAC9E;AAKA,SAAgBC,EAAsB,GAAuD;CAC3F,OAAO,MAAM,KACX,IAAI,IAAI,MAAM,KAAKC,CAAM,CAAC,CAAC,QAAQ,MAA2B,OAAO9E,KAAU,YAAYA,EAAM,SAAS,CAAC,CAAC,CAC9G;AACF"}
|
|
1
|
+
{"version":3,"file":"dom.js","names":["getChildren","node","slotted","generateId","getAttributeChanges","element","attr","observer","mutation","fn","getAttributeListChanges","attrs","appendRootNodeStyle","stylesheet","styles","root","host","styleSheetToString","s","rule","getPropertyChanges","own","key","descriptor","proto","setter","active","observation","val","callback","current","getElementUpdate","cleanupPropertyChanges","disconnect","clickOutsideElementBounds","event","left","right","top","bottom","parseTokenNumber","value","getCustomElementRegistry","CustomElementRegistryConstructor","isContextMenuClick","getFlattenedFocusableItems","getFlattenedDOMTree","depth","isFocusable","p","n","i","validKeyNavigationCode","keynavCodes","KeynavCode","\"End\"","\"Home\"","\"PageUp\"","\"PageDown\"","\"ArrowUp\"","\"ArrowDown\"","\"ArrowLeft\"","\"ArrowRight\"","hasInvalidDOMGrid","rows","row","removeEmptyTextNode","scrollBarWidth","div","width","hasScrollBar","el","hasHorizontalScrollBar","endOfScrollBox","offset","openEyeDropper","EyeDropperConstructor","LogService","e","getThemeTokens","parent","rules","sheet","finalArr","props","propName","propValArr","token","removeEmptySlotWhitespace","slotContainsOnlyWhitespace","slot","hasNoElements","hasOnlyEmptyTextNodes","applySlotContentStates","nodes","name","getDisplayValue","option","matchesElementName","component","createGhostElement","ghost","sourceElement","sameRenderRoot","root1","element1","root2","element2","sameShadowRoot","sameDocumentRoot","getAnchorNames","removeAnchorName","anchorNames","appendAnchorName","sameOrderedStringArray","a","b","index","uniqueNonEmptyStrings","values"],"sources":["../../../src/internal/utils/dom.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { LogService } from '../services/log.service.js';\nimport { isFocusable } from './focus.js';\n\nexport function getChildren(node: Document | Node | HTMLElement): Element[] {\n if (node instanceof Document && node.documentElement) {\n return Array.from(node.documentElement.children); // root document children\n } else if (node instanceof HTMLElement && node.shadowRoot) {\n return Array.from(node.shadowRoot.children); // shadow root direct children\n } else if (node instanceof HTMLSlotElement && node.assignedElements) {\n const slotted = node.assignedElements(); // slotted elements\n return slotted.length ? slotted : Array.from(node.children); // slot fallback\n } else {\n return Array.from((node as HTMLElement).children); // light DOM direct children\n }\n}\n\nexport function generateId() {\n const uint32 = self.crypto.getRandomValues(new Uint32Array(1))[0]!;\n return `_${uint32.toString(16)}`;\n}\n\nexport function getAttributeChanges(element: HTMLElement, attr: string, fn: (attrValue: string | null) => void) {\n fn(element.getAttribute(attr));\n const observer = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName === attr) {\n fn((mutation.target as HTMLElement).getAttribute(attr));\n }\n });\n });\n observer.observe(element, { attributes: true, subtree: true });\n return observer;\n}\n\nexport function getAttributeListChanges(element: HTMLElement, attrs: string[], fn: (mutation: MutationRecord) => void) {\n const observer = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName && attrs.includes(mutation.attributeName)) {\n fn(mutation);\n }\n });\n });\n observer.observe(element, { attributes: true, subtree: true });\n return observer;\n}\n\n/**\n * Appends styles to the render root of a given element. This is useful for\n * styles that apply outside the scope of the element's shadow\n * root such as UA styles --webkit-* that won't work in a ::slotted selector\n */\nexport function appendRootNodeStyle(host: HTMLElement, styles: string) {\n const stylesheet = new CSSStyleSheet();\n stylesheet.replaceSync(styles);\n const root = host.getRootNode() as Document | ShadowRoot;\n if (root.adoptedStyleSheets) {\n const hasStyleSheet = root.adoptedStyleSheets\n .map(s => styleSheetToString(s))\n .find(s => s === styleSheetToString(stylesheet));\n if (!hasStyleSheet) {\n root.adoptedStyleSheets = [...Array.from(root.adoptedStyleSheets), stylesheet];\n }\n }\n return stylesheet;\n}\n\nexport function styleSheetToString(stylesheet: CSSStyleSheet) {\n return stylesheet.cssRules\n ? Array.from(stylesheet.cssRules)\n .map(rule => rule.cssText || '')\n .join('\\n')\n : '';\n}\n\n/** Intercepts a property setter on an element so `callback` fires on every assignment. Does not use a MutationObserver. */\nexport function getPropertyChanges(element: HTMLElement, key: string, callback: (value: unknown) => void) {\n const own = Object.getOwnPropertyDescriptor(element, key);\n if (own?.configurable === false) return;\n\n let descriptor = own;\n let proto = Object.getPrototypeOf(element);\n while (!descriptor && proto) {\n descriptor = Object.getOwnPropertyDescriptor(proto, key);\n proto = Object.getPrototypeOf(proto);\n }\n if (!descriptor?.set) return;\n const setter = descriptor.set;\n\n let active = true;\n const observation: PropertyDescriptor = {\n configurable: true,\n enumerable: descriptor.enumerable,\n get: descriptor.get,\n set: (val: unknown) => {\n setter.call(element, val);\n if (active) callback(val);\n }\n };\n Object.defineProperty(element, key, observation);\n\n return () => {\n active = false;\n const current = Object.getOwnPropertyDescriptor(element, key);\n if (\n current?.configurable !== observation.configurable ||\n current?.enumerable !== observation.enumerable ||\n current?.get !== observation.get ||\n current?.set !== observation.set\n ) {\n return;\n }\n\n if (own) {\n Object.defineProperty(element, key, own);\n return;\n }\n\n Reflect.deleteProperty(element, key);\n };\n}\n\n/* used for cases of needing to know a property update outside of lit, example a native input value prop change */\nexport function getElementUpdate(element: HTMLElement, key: string, callback: (value: unknown) => void) {\n if (element.hasAttribute(key)) {\n callback(element.getAttribute(key));\n } else if ((element as unknown as Record<string, unknown>)[key] !== undefined) {\n callback((element as unknown as Record<string, unknown>)[key]);\n }\n\n const cleanupPropertyChanges = getPropertyChanges(element, key, callback);\n const observer = getAttributeChanges(element, key, val => callback(val));\n const disconnect = observer.disconnect.bind(observer);\n\n observer.disconnect = () => {\n cleanupPropertyChanges?.();\n disconnect();\n };\n\n return observer;\n}\n\nexport function clickOutsideElementBounds(event: PointerEvent | MouseEvent, element: HTMLElement) {\n const { left, right, top, bottom } = element.getBoundingClientRect();\n return event.clientX < left || event.clientX > right || event.clientY < top || event.clientY > bottom;\n}\n\n/** parses number out of basic calc generated by the design tokens */\nexport function parseTokenNumber(value: string) {\n return parseInt(value.includes('calc') ? value.split('*')[1]!.replace('px)', '').trim() : value, 10) || 0;\n}\n\nexport function getCustomElementRegistry(element: Element): CustomElementRegistry | undefined {\n const root = element.getRootNode();\n const CustomElementRegistryConstructor =\n element.ownerDocument.defaultView?.CustomElementRegistry ?? globalThis.CustomElementRegistry;\n if (\n CustomElementRegistryConstructor &&\n 'customElementRegistry' in root &&\n root.customElementRegistry instanceof CustomElementRegistryConstructor\n ) {\n return root.customElementRegistry;\n }\n const documentRegistry = element.ownerDocument.defaultView?.customElements;\n if (documentRegistry) return documentRegistry;\n return typeof customElements === 'undefined' ? undefined : customElements;\n}\n\nexport function isContextMenuClick(event: MouseEvent) {\n return (event.buttons === 2 && !event.ctrlKey) || (event.buttons === 1 && event.ctrlKey);\n}\n\nexport function getFlattenedFocusableItems(element: Node, depth = 10) {\n return getFlattenedDOMTree(element, depth).filter((e: HTMLElement) => isFocusable(e));\n}\n\n/**\n * Preserves visual DOM ordering when using slots within Shadow DOM\n * See more information/resources on Shadow DOM linear traversal\n * https://nolanlawson.com/2021/02/13/managing-focus-in-the-shadow-dom/\n * https://www.abeautifulsite.net/posts/querying-through-shadow-roots/\n */\nexport function getFlattenedDOMTree(node: Node, depth = 10): HTMLElement[] {\n return (\n Array.from(getChildren(node)).reduce(\n (p: unknown[], n: Node) => [\n ...p,\n [n, [...Array.from(getChildren(n)).map(i => [i, getFlattenedDOMTree(i, depth)])]]\n ],\n []\n ) as unknown as HTMLElement[]\n ).flat(depth);\n}\n\nexport function validKeyNavigationCode(e: KeyboardEvent): e is KeyboardEvent & { code: KeynavCode } {\n return keynavCodes.has(e.code);\n}\n\nexport enum KeynavCode {\n End = 'End',\n Home = 'Home',\n PageUp = 'PageUp',\n PageDown = 'PageDown',\n ArrowUp = 'ArrowUp',\n ArrowDown = 'ArrowDown',\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight'\n}\n\nconst keynavCodes: Set<string> = new Set(Object.values(KeynavCode));\n\nexport function hasInvalidDOMGrid(rows: HTMLElement[]) {\n return rows.some(row => row.children.length !== rows[0]!.children.length);\n}\n\nexport function removeEmptyTextNode(node: Node) {\n if ((node as Text)?.wholeText?.trim() === '') {\n (node as Text).remove();\n }\n}\n\nexport function scrollBarWidth() {\n const div = globalThis.document.createElement('div');\n div.style.setProperty('width', '100px');\n div.style.setProperty('height', '100px');\n div.style.setProperty('overflow', 'scroll');\n div.style.setProperty('position', 'absolute');\n div.style.setProperty('top', '-9999px');\n globalThis.document.body.appendChild(div);\n const width = div.offsetWidth - div.clientWidth;\n globalThis.document.body.removeChild(div);\n return width;\n}\n\nexport function hasScrollBar(el: HTMLElement) {\n return el.scrollHeight > el.clientHeight;\n}\n\nexport function hasHorizontalScrollBar(el: HTMLElement) {\n return el.scrollWidth > el.clientWidth;\n}\n\nexport function endOfScrollBox(element: HTMLElement, offset = 0) {\n return element.scrollTop + element.offsetHeight + offset >= element.scrollHeight;\n}\n\nexport async function openEyeDropper(): Promise<string> {\n const EyeDropperConstructor = (\n globalThis as unknown as { EyeDropper?: new () => { open: () => Promise<{ sRGBHex: string }> } }\n ).EyeDropper;\n\n if (!EyeDropperConstructor) {\n LogService.warn('EyeDropper API is unavailable');\n return '';\n }\n\n try {\n return (await new EyeDropperConstructor().open()).sRGBHex;\n } catch (e) {\n LogService.warn(`EyeDropper selection failed: ${(e as Error).message}`);\n return '';\n }\n}\n\n/**\n * provides a object with key/value of the currently applied design tokens\n */\nexport function getThemeTokens(element = globalThis.document.querySelector(':root')!) {\n // default root or provided element\n const styles = getComputedStyle(element);\n let parent: CSSStyleSheet[] = [];\n\n // check for parent iframe, same domain iframes change how the browser accesses style sheets\n try {\n parent = Array.from(globalThis.parent.document.styleSheets);\n } catch {\n // if not accessible, skip\n }\n\n return [...parent, ...Array.from(globalThis.document.styleSheets)]\n .reduce((finalArr: string[][], sheet) => {\n let rules: CSSRule[] = [];\n try {\n rules = [...sheet.cssRules];\n } catch {\n // if the style sheet is not accessible, skip\n }\n return finalArr.concat(\n rules\n .filter(rule => rule.type === 1)\n .reduce((propValArr: string[][], rule) => {\n const props = [...(rule as CSSStyleRule).style]\n .filter((p: string) => p.trim().includes('--nve'))\n .map((propName: string) => [\n propName.trim(),\n (rule as CSSStyleRule).style.getPropertyValue(propName).trim()\n ]);\n return [...propValArr, ...props];\n }, [])\n );\n }, [])\n .reduce(\n (p: Record<string, string>, token: string[]) => ({ ...p, [token[0]!]: styles.getPropertyValue(token[0]!) }),\n {}\n );\n}\n\nexport function removeEmptySlotWhitespace(slot: HTMLSlotElement) {\n if (slotContainsOnlyWhitespace(slot)) {\n slot.assignedNodes().forEach((node: Node) => node.parentNode?.removeChild(node));\n }\n}\n\nexport function slotContainsOnlyWhitespace(slot: HTMLSlotElement) {\n const hasNoElements = !slot.assignedNodes().find(i => i.nodeType !== Node.TEXT_NODE);\n const hasOnlyEmptyTextNodes = !slot\n .assignedNodes()\n .find(i => i.nodeType === Node.TEXT_NODE && (i.textContent ?? '').trim() !== '');\n return hasNoElements && hasOnlyEmptyTextNodes;\n}\n\nexport function applySlotContentStates(slot: HTMLSlotElement, element: HTMLElement & { _internals: ElementInternals }) {\n const nodes = slot.assignedNodes();\n const name = slot.name ?? 'slot';\n\n if (nodes.length) {\n element._internals.states.add(`has-${name}`);\n } else {\n element._internals.states.delete(`has-${name}`);\n }\n}\n\nexport function getDisplayValue(option?: { label?: string; value?: string }): string {\n return option?.label || option?.value || '';\n}\n\n/** determines if HTML element matches the given component tag */\nexport function matchesElementName(element: Partial<HTMLElement>, component: { metadata: { tag: string } }) {\n return element.localName === component.metadata.tag;\n}\n\nexport function createGhostElement(sourceElement: HTMLElement) {\n const ghost = globalThis.document.createElement('div');\n const { width } = sourceElement.getBoundingClientRect();\n ghost.setAttribute('nve-ghost', '');\n ghost.style.minWidth = `${width}px`;\n ghost.style.maxWidth = `${width}px`;\n ghost.style.height = '1px';\n ghost.slot = sourceElement.slot;\n return ghost;\n}\n\nexport function sameRenderRoot(element1: HTMLElement, element2: HTMLElement) {\n const root1 = element1.getRootNode();\n const root2 = element2.getRootNode();\n const sameShadowRoot = root1 instanceof ShadowRoot && root2 instanceof ShadowRoot && root1 === root2;\n const sameDocumentRoot = root1 === globalThis.document && root2 === globalThis.document;\n const sameUnattachedRoot = root1 === root2;\n return sameShadowRoot || sameDocumentRoot || sameUnattachedRoot;\n}\n\nexport function getAnchorNames(element: HTMLElement): string[] {\n return (\n element.style.anchorName\n ?.split(',')\n ?.map(name => name.trim())\n ?.filter(name => name !== 'none' && name !== '') ?? []\n );\n}\n\nexport function removeAnchorName(element: HTMLElement, name: string) {\n const anchorNames = getAnchorNames(element);\n element.style.anchorName = anchorNames.filter(i => i !== name).join(',');\n}\n\nexport function appendAnchorName(element: HTMLElement, name: string) {\n element.style.anchorName = Array.from(new Set([...getAnchorNames(element), name])).join(',');\n}\n\n/**\n * Returns true when both arrays have the same length and each index is strictly equal (`===`).\n */\nexport function sameOrderedStringArray(a: readonly string[], b: readonly string[]): boolean {\n return a.length === b.length && a.every((value, index) => value === b[index]);\n}\n\n/**\n * Returns unique non-empty strings in first-seen order (insertion order of a `Set` over the filtered list).\n */\nexport function uniqueNonEmptyStrings(values: Iterable<string | null | undefined>): string[] {\n return Array.from(\n new Set(Array.from(values).filter((value): value is string => typeof value === 'string' && value.length > 0))\n );\n}\n"],"mappings":";;;AAMA,SAAgBA,EAAY,GAAgD;CAC1E,IAAIC,aAAgB,YAAYA,EAAK,iBACnC,OAAO,MAAM,KAAKA,EAAK,gBAAgB,QAAQ;CAC1C,IAAIA,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6 @@
|
|
|
1
1
|
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
2
|
import { appendRootNodeStyle as t } from "../internal/utils/dom.js";
|
|
3
|
-
import {
|
|
3
|
+
import { KeyNavigationListController as n } from "../internal/controllers/keynav-list.controller.js";
|
|
4
4
|
import { attachInternals as r } from "../internal/utils/a11y.js";
|
|
5
5
|
import { useStyles as i } from "../internal/styles/index.js";
|
|
6
6
|
import a from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
@@ -17,7 +17,7 @@ var f = class extends c {
|
|
|
17
17
|
static {
|
|
18
18
|
this.metadata = {
|
|
19
19
|
tag: "nve-menu",
|
|
20
|
-
version: "2.
|
|
20
|
+
version: "2.21.0",
|
|
21
21
|
children: ["nve-menu-item", "nve-divider"]
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -30,11 +30,13 @@ var f = class extends c {
|
|
|
30
30
|
items: this.items
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
#e =
|
|
34
|
-
#t =
|
|
35
|
-
#n =
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
#e = new n(this);
|
|
34
|
+
#t = [];
|
|
35
|
+
#n = null;
|
|
36
|
+
#r = !1;
|
|
37
|
+
#i = () => {
|
|
38
|
+
this.#n === null && (this.#n = requestAnimationFrame(() => {
|
|
39
|
+
this.#n = null;
|
|
38
40
|
let e = this.shadowRoot?.querySelector("[internal-host]");
|
|
39
41
|
if (!e) return;
|
|
40
42
|
let { scrollTop: t, scrollHeight: n, clientHeight: r } = e;
|
|
@@ -50,22 +52,25 @@ var f = class extends c {
|
|
|
50
52
|
}));
|
|
51
53
|
};
|
|
52
54
|
render() {
|
|
53
|
-
return l`<div internal-host><slot></slot></div>`;
|
|
55
|
+
return l`<div internal-host><slot @slotchange="${this.#a}"></slot></div>`;
|
|
54
56
|
}
|
|
55
57
|
async firstUpdated() {
|
|
56
|
-
await this.updateComplete, this.shadowRoot?.querySelector("[internal-host]")?.addEventListener("scroll", this.#
|
|
58
|
+
await this.updateComplete, this.shadowRoot?.querySelector("[internal-host]")?.addEventListener("scroll", this.#i, { passive: !0 });
|
|
57
59
|
}
|
|
58
60
|
connectedCallback() {
|
|
59
|
-
super.connectedCallback(), r(this), this._internals.role = "menu", t(this, s), this.parentElement?.localName === "nve-menu-group" && !this.slot && (this.slot = "menu", this.#
|
|
61
|
+
super.connectedCallback(), r(this), this._internals.role = "menu", t(this, s), this.hasUpdated && (this.#t = this.items), this.parentElement?.localName === "nve-menu-group" && !this.slot && (this.slot = "menu", this.#r = !0);
|
|
60
62
|
}
|
|
61
63
|
disconnectedCallback() {
|
|
62
|
-
super.disconnectedCallback(), this.#t && this.slot === "menu" && (this.slot = ""), this.#
|
|
64
|
+
super.disconnectedCallback(), this.#t = [], this.#r && this.slot === "menu" && (this.slot = ""), this.#r = !1;
|
|
63
65
|
}
|
|
66
|
+
#a = () => {
|
|
67
|
+
this.#e.refreshItems(this.#t), this.#t = this.items;
|
|
68
|
+
};
|
|
64
69
|
};
|
|
65
70
|
a([u({
|
|
66
71
|
type: String,
|
|
67
72
|
reflect: !0
|
|
68
|
-
})], f.prototype, "density", void 0), a([d()], f.prototype, "items", void 0), f = a([e()
|
|
73
|
+
})], f.prototype, "density", void 0), a([d({ selector: "nve-menu-item" })], f.prototype, "items", void 0), f = a([e()], f);
|
|
69
74
|
export { f as Menu };
|
|
70
75
|
|
|
71
76
|
//# sourceMappingURL=menu2.js.map
|
package/dist/menu/menu2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu2.js","names":["styles","globalStyles","_decorate","__decorate","menu_default","menu_global_default","Menu","LitElement","useStyles","#scrollRAF","container","#handleScroll","attachInternals","appendRootNodeStyle","#assignedMenuSlot","property","queryAssignedElements","audit"
|
|
1
|
+
{"version":3,"file":"menu2.js","names":["styles","globalStyles","_decorate","__decorate","menu_default","menu_global_default","Menu","LitElement","useStyles","KeyNavigationListController","#scrollRAF","container","#syncItems","#handleScroll","attachInternals","appendRootNodeStyle","#knownItems","#assignedMenuSlot","#keynavController","property","queryAssignedElements","audit"],"sources":["../../src/menu/menu.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { Density, KeynavListConfig } from '@nvidia-elements/core/internal';\nimport {\n useStyles,\n attachInternals,\n KeyNavigationListController,\n appendRootNodeStyle,\n audit\n} from '@nvidia-elements/core/internal';\nimport type { MenuItem } from './menu-item.js';\nimport styles from './menu.css?inline';\nimport globalStyles from './menu.global.css?inline';\n\n/**\n * @element nve-menu\n * @description A menu offers a list of choices to the user, such as a set of actions or functions. Choosing an item in a menu typically opens a sub menu, or invokes a command.\n * @documentation https://nvidia.github.io/elements/docs/elements/menu/\n * @since 0.11.0\n * @entrypoint \\@nvidia-elements/core/menu\n * @slot - default slot for `nve-menu-item`\n * @cssprop --padding\n * @cssprop --gap\n * @cssprop --width\n * @cssprop --max-width\n * @cssprop --min-width\n * @cssprop --max-height\n * @event scroll - Fires when the user scrolls the menu list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`.\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/menubar/\n */\n@audit()\nexport class Menu extends LitElement {\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-menu',\n version: '0.0.0',\n children: ['nve-menu-item', 'nve-divider']\n };\n\n static elementDefinitions = {};\n\n /**\n * Determines if the menu is in a compact layout. This hides all menu item content except the prefix icon slot.\n */\n @property({ type: String, reflect: true }) density?: Density;\n\n /** @private */\n get keynavListConfig(): KeynavListConfig {\n return {\n layout: 'vertical',\n items: this.items\n };\n }\n\n /** @private */\n declare _internals: ElementInternals;\n\n @queryAssignedElements({ selector: 'nve-menu-item' }) private items!: MenuItem[];\n\n #keynavController = new KeyNavigationListController(this);\n #knownItems: MenuItem[] = [];\n\n #scrollRAF: number | null = null;\n #assignedMenuSlot = false;\n\n #handleScroll = () => {\n if (this.#scrollRAF !== null) return;\n this.#scrollRAF = requestAnimationFrame(() => {\n this.#scrollRAF = null;\n const container = this.shadowRoot?.querySelector<HTMLElement>('[internal-host]');\n if (!container) return;\n const { scrollTop, scrollHeight, clientHeight } = container;\n this.dispatchEvent(\n new CustomEvent('scroll', {\n bubbles: true,\n composed: true,\n detail: { scrollTop, scrollHeight, clientHeight }\n })\n );\n });\n };\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${this.#syncItems}></slot>\n </div>\n `;\n }\n\n async firstUpdated() {\n await this.updateComplete;\n this.shadowRoot\n ?.querySelector('[internal-host]')\n ?.addEventListener('scroll', this.#handleScroll, { passive: true });\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'menu';\n appendRootNodeStyle(this, globalStyles);\n if (this.hasUpdated) this.#knownItems = this.items;\n\n if (this.parentElement?.localName === 'nve-menu-group' && !this.slot) {\n this.slot = 'menu';\n this.#assignedMenuSlot = true;\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.#knownItems = [];\n if (this.#assignedMenuSlot && this.slot === 'menu') {\n this.slot = '';\n }\n this.#assignedMenuSlot = false;\n }\n\n #syncItems = () => {\n this.#keynavController.refreshItems(this.#knownItems);\n this.#knownItems = this.items;\n };\n}\n"],"mappings":";;;;;;;;;;;;AAmCO,IAAMM,IAAN,cAAmBC,EAAW;;EACnB,KAAA,SAAAC,EAAU,CAACR,CAAM,CAAC;;;EAEP,KAAA,WAAA;GACzB,KAAK;GACL,SAAS;GACT,UAAU,CAAC,iBAAiB,aAAa;EAC3C;;;EAE4B,KAAA,qBAAA,CAAC;;CAQ7B,IAAI,mBAAqC;EACvC,OAAO;GACL,QAAQ;GACR,OAAO,KAAK;EACd;CACF;CAOA,KAA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UAAU,gBAAgB,CAAC,CAAA,GAAAd,EAAA,WAAA,SAAA,KAAA,CAAA,GA5BrD,IAAAJ,EAAA,CAAAmB,EAAM,CAAA,GAAAf,CAAA"}
|
package/dist/month/month2.js
CHANGED
package/dist/page/page2.js
CHANGED
package/dist/panel/panel2.js
CHANGED
|
@@ -26,7 +26,7 @@ var g = {
|
|
|
26
26
|
static {
|
|
27
27
|
this.metadata = {
|
|
28
28
|
tag: "nve-panel-header",
|
|
29
|
-
version: "2.
|
|
29
|
+
version: "2.21.0"
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
@@ -42,7 +42,7 @@ var g = {
|
|
|
42
42
|
static {
|
|
43
43
|
this.metadata = {
|
|
44
44
|
tag: "nve-panel-content",
|
|
45
|
-
version: "2.
|
|
45
|
+
version: "2.21.0"
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
@@ -55,7 +55,7 @@ var g = {
|
|
|
55
55
|
static {
|
|
56
56
|
this.metadata = {
|
|
57
57
|
tag: "nve-panel-footer",
|
|
58
|
-
version: "2.
|
|
58
|
+
version: "2.21.0"
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
@@ -74,7 +74,7 @@ var g = {
|
|
|
74
74
|
static {
|
|
75
75
|
this.metadata = {
|
|
76
76
|
tag: "nve-panel",
|
|
77
|
-
version: "2.
|
|
77
|
+
version: "2.21.0"
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
static {
|