@nvidia-elements/core 0.2.2 → 0.2.3

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/accordion/accordion2.js +39 -39
  3. package/dist/alert/alert-group2.js +14 -14
  4. package/dist/alert/alert2.js +20 -20
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +6 -6
  7. package/dist/badge/badge2.js +21 -21
  8. package/dist/breadcrumb/breadcrumb2.js +12 -12
  9. package/dist/bundles/index.d.ts +418 -1802
  10. package/dist/bundles/index.js +6 -6
  11. package/dist/button/button.d.ts +5 -2
  12. package/dist/button/button2.js +13 -13
  13. package/dist/button/button2.js.map +1 -1
  14. package/dist/button-group/button-group2.js +15 -15
  15. package/dist/card/card2.js +17 -17
  16. package/dist/chat-message/chat-message2.js +7 -7
  17. package/dist/checkbox/checkbox-group2.js +7 -7
  18. package/dist/checkbox/checkbox2.js +7 -7
  19. package/dist/color/color2.js +7 -7
  20. package/dist/combobox/combobox2.js +10 -10
  21. package/dist/copy-button/copy-button2.js +10 -10
  22. package/dist/custom-elements-jsx.d.ts +346 -613
  23. package/dist/custom-elements-vue.d.ts +346 -613
  24. package/dist/custom-elements.json +4870 -14220
  25. package/dist/data.html.json +252 -168
  26. package/dist/data.snippets.json +42 -42
  27. package/dist/date/date2.js +7 -7
  28. package/dist/datetime/datetime2.js +7 -7
  29. package/dist/dialog/dialog-footer2.js +6 -6
  30. package/dist/dialog/dialog-header2.js +6 -6
  31. package/dist/dialog/dialog2.js +19 -19
  32. package/dist/divider/divider2.js +5 -5
  33. package/dist/dot/dot2.js +8 -8
  34. package/dist/drawer/drawer-content2.js +6 -6
  35. package/dist/drawer/drawer-footer2.js +6 -6
  36. package/dist/drawer/drawer-header2.js +6 -6
  37. package/dist/drawer/drawer2.js +19 -19
  38. package/dist/dropdown/dropdown-footer2.js +6 -6
  39. package/dist/dropdown/dropdown-header2.js +6 -6
  40. package/dist/dropdown/dropdown2.js +16 -16
  41. package/dist/dropdown-group/dropdown-group.js +16 -16
  42. package/dist/dropzone/dropzone.d.ts +1 -404
  43. package/dist/dropzone/dropzone2.js +14 -14
  44. package/dist/dropzone/dropzone2.js.map +1 -1
  45. package/dist/file/file2.js +1 -1
  46. package/dist/format-datetime/format-datetime2.js +10 -10
  47. package/dist/format-number/format-number2.js +16 -16
  48. package/dist/format-relative-time/format-relative-time2.js +7 -7
  49. package/dist/forms/control/control2.js +19 -19
  50. package/dist/forms/control-group/control-group2.js +6 -6
  51. package/dist/forms/control-message/control-message2.js +9 -9
  52. package/dist/grid/cell/cell2.js +1 -1
  53. package/dist/grid/column/column2.js +10 -10
  54. package/dist/grid/footer/footer2.js +6 -6
  55. package/dist/grid/grid2.js +12 -12
  56. package/dist/grid/header/header2.js +9 -9
  57. package/dist/grid/placeholder/placeholder2.js +1 -1
  58. package/dist/grid/row/row2.js +9 -9
  59. package/dist/icon/icon2.js +15 -15
  60. package/dist/icon-button/icon-button2.js +9 -9
  61. package/dist/index.js +4 -4
  62. package/dist/input/input-group2.js +1 -1
  63. package/dist/input/input2.js +6 -6
  64. package/dist/internal/controllers/keynav-grid.controller.js +39 -39
  65. package/dist/internal/controllers/type-button.controller.examples.js.map +1 -1
  66. package/dist/internal/controllers/type-button.controller.examples.json +1 -1
  67. package/dist/internal/controllers/type-command.controller.d.ts +10 -1
  68. package/dist/internal/controllers/type-command.controller.js +23 -14
  69. package/dist/internal/controllers/type-command.controller.js.map +1 -1
  70. package/dist/internal/controllers/type-native-popover.utils.js +7 -7
  71. package/dist/internal/index.d.ts +0 -1
  72. package/dist/internal/index.js +40 -41
  73. package/dist/internal/services/global.service.js +1 -1
  74. package/dist/logo/logo2.js +6 -6
  75. package/dist/menu/menu-item.d.ts +4 -2
  76. package/dist/menu/menu-item2.js +12 -12
  77. package/dist/menu/menu-item2.js.map +1 -1
  78. package/dist/menu/menu2.js +10 -10
  79. package/dist/month/month2.js +7 -7
  80. package/dist/notification/notification-group2.js +11 -11
  81. package/dist/notification/notification2.js +22 -22
  82. package/dist/page/page-panel/page-panel-content2.js +1 -1
  83. package/dist/page/page-panel/page-panel-footer2.js +6 -6
  84. package/dist/page/page-panel/page-panel-header2.js +6 -6
  85. package/dist/page/page-panel/page-panel2.js +14 -14
  86. package/dist/page/page2.js +9 -9
  87. package/dist/page-header/page-header2.js +1 -1
  88. package/dist/page-loader/page-loader2.js +10 -10
  89. package/dist/pagination/pagination.d.ts +1 -404
  90. package/dist/pagination/pagination2.js +17 -17
  91. package/dist/pagination/pagination2.js.map +1 -1
  92. package/dist/panel/panel2.js +21 -21
  93. package/dist/password/password2.js +7 -7
  94. package/dist/preferences-input/preferences-input.d.ts +1 -404
  95. package/dist/preferences-input/preferences-input2.js +9 -9
  96. package/dist/preferences-input/preferences-input2.js.map +1 -1
  97. package/dist/progress-bar/progress-bar2.js +8 -8
  98. package/dist/progress-ring/progress-ring2.js +15 -15
  99. package/dist/progressive-filter-chip/progressive-filter-chip2.js +15 -15
  100. package/dist/pulse/pulse2.js +6 -6
  101. package/dist/radio/radio-group2.js +7 -7
  102. package/dist/radio/radio2.js +7 -7
  103. package/dist/range/range2.js +5 -5
  104. package/dist/resize-handle/resize-handle.d.ts +1 -404
  105. package/dist/resize-handle/resize-handle2.js +16 -16
  106. package/dist/resize-handle/resize-handle2.js.map +1 -1
  107. package/dist/search/search2.js +8 -8
  108. package/dist/select/select2.js +18 -18
  109. package/dist/skeleton/skeleton2.js +7 -7
  110. package/dist/sort-button/sort-button.d.ts +4 -2
  111. package/dist/sort-button/sort-button2.js +19 -19
  112. package/dist/sort-button/sort-button2.js.map +1 -1
  113. package/dist/sparkline/sparkline2.js +14 -14
  114. package/dist/star-rating/star-rating2.js +6 -6
  115. package/dist/steps/steps.d.ts +4 -2
  116. package/dist/steps/steps2.js +36 -36
  117. package/dist/steps/steps2.js.map +1 -1
  118. package/dist/switch/switch-group2.js +6 -6
  119. package/dist/switch/switch2.js +7 -7
  120. package/dist/tabs/tabs-group2.js +21 -21
  121. package/dist/tabs/tabs.d.ts +4 -2
  122. package/dist/tabs/tabs2.js +30 -30
  123. package/dist/tabs/tabs2.js.map +1 -1
  124. package/dist/tag/tag.d.ts +5 -2
  125. package/dist/tag/tag2.js +20 -20
  126. package/dist/tag/tag2.js.map +1 -1
  127. package/dist/textarea/textarea2.js +1 -1
  128. package/dist/time/time2.js +7 -7
  129. package/dist/toast/toast2.js +21 -21
  130. package/dist/toggletip/toggletip-footer2.js +6 -6
  131. package/dist/toggletip/toggletip-header2.js +6 -6
  132. package/dist/toggletip/toggletip2.js +17 -17
  133. package/dist/toolbar/toolbar2.js +11 -11
  134. package/dist/tooltip/tooltip2.js +16 -16
  135. package/dist/tree/tree-node2.js +30 -30
  136. package/dist/tree/tree2.js +14 -14
  137. package/dist/week/week2.js +7 -7
  138. package/package.json +3 -3
  139. package/dist/internal/base/button.d.ts +0 -114
  140. package/dist/internal/base/button.js +0 -117
  141. package/dist/internal/base/button.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-input2.js","names":["#setColorScheme","#setScale","#setReducedMotion","#i18nController","#updatePreferences","#update"],"sources":["../../src/preferences-input/preferences-input.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, isServer, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { I18nController, scopedRegistry, useStyles } from '@nvidia-elements/core/internal';\nimport { state } from 'lit/decorators/state.js';\nimport { FormControlMixin } from '@nvidia-elements/forms/mixin';\nimport { type IconName, Icon } from '@nvidia-elements/core/icon';\nimport { Control } from '@nvidia-elements/core/forms';\nimport { Divider } from '@nvidia-elements/core/divider';\nimport { Menu, MenuItem } from '@nvidia-elements/core/menu';\nimport { Switch } from '@nvidia-elements/core/switch';\nimport styles from './preferences-input.css?inline';\n\nexport type ColorScheme = 'auto' | 'light' | 'dark' | 'high-contrast';\nexport type Scale = 'default' | 'compact' | 'relaxed';\nexport type Variant = 'reduced-motion';\n\nconst colorSchemes: ColorScheme[] = ['auto', 'light', 'dark', 'high-contrast'];\nconst scales: Scale[] = ['default', 'compact'];\nconst colorSchemesIcons = {\n auto: 'computer',\n light: 'sun',\n dark: 'moon',\n 'high-contrast': 'circle-half'\n} satisfies Record<ColorScheme, IconName>;\n\nfunction getActivePreferences(element = globalThis.document.documentElement) {\n const computedStyle = getComputedStyle(element);\n\n return {\n light: computedStyle.getPropertyValue('--nve-config-color-scheme-light') === 'true',\n dark: computedStyle.getPropertyValue('--nve-config-color-scheme-dark') === 'true',\n 'high-contrast': computedStyle.getPropertyValue('--nve-config-color-scheme-high-contrast') === 'true',\n compact: computedStyle.getPropertyValue('--nve-config-scale-compact') === 'true',\n 'reduced-motion': computedStyle.getPropertyValue('--nve-config-reduced-motion') === 'true'\n } satisfies Partial<Record<ColorScheme | Scale | Variant, boolean>>;\n}\n\nexport interface PreferencesInputValue {\n 'color-scheme'?: ColorScheme | string;\n scale?: Scale | string;\n 'reduced-motion'?: boolean;\n}\n\n/**\n * @element nve-preferences-input\n * @description A preferences input is a widget for controlling apperance. Stylesheets register to the preferences input by including a css-property, see Standard for an example.\n * @since 1.23.7\n * @entrypoint \\@nvidia-elements/core/preferences-input\n * @event input - Dispatched when the value has changed\n * @event change - Dispatched when the value has changed\n * @cssprop --color\n * @cssprop --width\n * @csspart control - The control wrapper elements that contain the labels and menus\n * @csspart menu - The menu elements that display color scheme and scale options\n * @csspart menu-item - The individual menu item elements for each selectable option\n * @csspart icon - The icon element displayed next to color scheme options\n * @csspart divider - The divider elements that separate preference sections\n * @csspart switch - The switch element for the reduced motion toggle\n *\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/listbox/\n *\n */\n@scopedRegistry()\nexport class PreferencesInput extends FormControlMixin<typeof LitElement, PreferencesInputValue>(LitElement) {\n #i18nController: I18nController<this> = new I18nController<this>(this);\n\n /**\n * Enables updating internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-preferences-input',\n version: '0.0.0',\n valueSchema: {\n type: 'object' as const,\n properties: {\n 'color-scheme': { type: 'string' as const },\n scale: { type: 'string' as const },\n 'reduced-motion': { type: 'boolean' as const }\n }\n }\n };\n\n static elementDefinitions = {\n [Control.metadata.tag]: Control,\n [Divider.metadata.tag]: Divider,\n [Icon.metadata.tag]: Icon,\n [Menu.metadata.tag]: Menu,\n [MenuItem.metadata.tag]: MenuItem,\n [Switch.metadata.tag]: Switch\n };\n\n @state() private activePreferences: ReturnType<typeof getActivePreferences> = {\n light: false,\n dark: false,\n 'high-contrast': false,\n compact: false,\n 'reduced-motion': false\n };\n\n // eslint-disable-next-line max-lines-per-function\n render() {\n return html`\n <div internal-host>\n <nve-control part=\"control\">\n <label>${this.i18n.colorScheme}</label>\n <nve-menu part=\"menu\" nve-control>\n ${colorSchemes.map(\n value => html`\n <nve-menu-item part=\"menu-item\"\n .selected=${this.value?.['color-scheme'] === value}\n .value=${value}\n @click=${() => this.#setColorScheme(value)}\n >\n <nve-icon part=\"icon\" name=${colorSchemesIcons[value]}></nve-icon> ${value}\n </nve-menu-item>\n `\n )}\n </nve-menu>\n </nve-control>\n ${\n this.activePreferences['compact']\n ? html`\n <nve-divider part=\"divider\"></nve-divider>\n <nve-control part=\"control\">\n <label>${this.i18n.scale}</label>\n <nve-menu part=\"menu\" nve-control>\n ${scales.map(\n value => html`\n <nve-menu-item part=\"menu-item\"\n .selected=${this.value?.['scale'] === value}\n .value=${value}\n @click=${() => this.#setScale(value)}\n >\n ${value}\n </nve-menu-item>\n `\n )}\n </nve-menu>\n </nve-control>\n `\n : ''\n }\n ${\n this.activePreferences['reduced-motion']\n ? html`\n <nve-divider part=\"divider\"></nve-divider>\n <nve-switch part=\"switch\">\n <label>${this.i18n.reducedMotion}</label>\n <input\n type=\"checkbox\"\n value=\"reduced-motion\"\n .checked=${this.value?.['reduced-motion']}\n @change=${(e: { target: HTMLInputElement }) => this.#setReducedMotion(e.target.checked)}\n />\n </nve-switch>`\n : ''\n }\n </div>\n `;\n }\n\n constructor() {\n super();\n this.value = {\n 'color-scheme': 'auto',\n 'reduced-motion': false,\n scale: 'default'\n };\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('nve-control', '');\n this.#updatePreferences();\n }\n\n /** @private */\n updateValue(value: PreferencesInputValue) {\n super.updateValue({ ...this.value, ...value });\n this.#updatePreferences();\n }\n\n #updatePreferences() {\n /* istanbul ignore else -- Lit SSR mode is not reachable in browser unit tests. */\n if (!isServer) {\n const preferences = getActivePreferences();\n if (JSON.stringify(this.activePreferences) !== JSON.stringify(preferences)) {\n this.activePreferences = preferences;\n }\n }\n }\n\n #setColorScheme(value: ColorScheme) {\n this.value = { ...this.value, 'color-scheme': value };\n this.#update();\n }\n\n #setScale(value: Scale) {\n this.value = { ...this.value, scale: value };\n this.#update();\n }\n\n #setReducedMotion(value: boolean) {\n this.value = { ...this.value, 'reduced-motion': value };\n this.#update();\n }\n\n #update() {\n this.dispatchInputEvent();\n this.dispatchChangeEvent();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,IAAM,IAA8B;CAAC;CAAQ;CAAS;CAAQ;AAAe,GACvE,IAAkB,CAAC,WAAW,SAAS,GACvC,IAAoB;CACxB,MAAM;CACN,OAAO;CACP,MAAM;CACN,iBAAiB;AACnB;AAEA,SAAS,EAAqB,IAAU,WAAW,SAAS,iBAAiB;CAC3E,IAAM,IAAgB,iBAAiB,CAAO;CAE9C,OAAO;EACL,OAAO,EAAc,iBAAiB,iCAAiC,MAAM;EAC7E,MAAM,EAAc,iBAAiB,gCAAgC,MAAM;EAC3E,iBAAiB,EAAc,iBAAiB,yCAAyC,MAAM;EAC/F,SAAS,EAAc,iBAAiB,4BAA4B,MAAM;EAC1E,kBAAkB,EAAc,i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gB;GAChB,kBAAkB;GAClB,OAAO;EACT;CACF;CAEA,oBAAoB;EAGlB,AAFA,MAAM,kBAAkB,GACxB,KAAK,aAAa,eAAe,EAAE,GACnC,KAAKC,GAAmB;CAC1B;CAGA,YAAY,GAA8B;EAExC,AADA,MAAM,YAAY;GAAE,GAAG,KAAK;GAAO,GAAG;EAAM,CAAC,GAC7C,KAAKA,GAAmB;CAC1B;CAEA,KAAqB;;EAEnB,IAAI,CAAC,GAAU;GACb,IAAM,IAAc,EAAqB;GACzC,AAAI,KAAK,UAAU,KAAK,iBAAiB,MAAM,KAAK,UAAU,CAAW,MACvE,KAAK,oBAAoB;EAE7B;CACF;CAEA,GAAgB,GAAoB;EAElC,AADA,KAAK,QAAQ;GAAE,GAAG,KAAK;GAAO,gBAAgB;EAAM,GACpD,KAAKC,GAAQ;CACf;CAEA,GAAU,GAAc;EAEtB,AADA,KAAK,QAAQ;GAAE,GAAG,KAAK;GAAO,OAAO;EAAM,GAC3C,KAAKA,GAAQ;CACf;CAEA,GAAkB,GAAgB;EAEhC,AADA,KAAK,QAAQ;GAAE,GAAG,KAAK;GAAO,kBAAkB;EAAM,GACtD,KAAKA,GAAQ;CACf;CAEA,KAAU;EAER,AADA,KAAK,mBAAmB,GACxB,KAAK,oBAAoB;CAC3B;AACF;GAlJG,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MA0BzB,EAAM,CAAA,GAAA,EAAA,WAAA,qBAAA,KAAA,CAAA,UAjCR,EAAe,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"preferences-input2.js","names":["#setColorScheme","#setScale","#setReducedMotion","#i18nController","#updatePreferences","#update"],"sources":["../../src/preferences-input/preferences-input.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, isServer, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { I18nController, scopedRegistry, useStyles } from '@nvidia-elements/core/internal';\nimport { state } from 'lit/decorators/state.js';\nimport { FormControlMixin } from '@nvidia-elements/forms/mixins';\nimport { type IconName, Icon } from '@nvidia-elements/core/icon';\nimport { Control } from '@nvidia-elements/core/forms';\nimport { Divider } from '@nvidia-elements/core/divider';\nimport { Menu, MenuItem } from '@nvidia-elements/core/menu';\nimport { Switch } from '@nvidia-elements/core/switch';\nimport styles from './preferences-input.css?inline';\n\nexport type ColorScheme = 'auto' | 'light' | 'dark' | 'high-contrast';\nexport type Scale = 'default' | 'compact' | 'relaxed';\nexport type Variant = 'reduced-motion';\n\nconst colorSchemes: ColorScheme[] = ['auto', 'light', 'dark', 'high-contrast'];\nconst scales: Scale[] = ['default', 'compact'];\nconst colorSchemesIcons = {\n auto: 'computer',\n light: 'sun',\n dark: 'moon',\n 'high-contrast': 'circle-half'\n} satisfies Record<ColorScheme, IconName>;\n\nfunction getActivePreferences(element = globalThis.document.documentElement) {\n const computedStyle = getComputedStyle(element);\n\n return {\n light: computedStyle.getPropertyValue('--nve-config-color-scheme-light') === 'true',\n dark: computedStyle.getPropertyValue('--nve-config-color-scheme-dark') === 'true',\n 'high-contrast': computedStyle.getPropertyValue('--nve-config-color-scheme-high-contrast') === 'true',\n compact: computedStyle.getPropertyValue('--nve-config-scale-compact') === 'true',\n 'reduced-motion': computedStyle.getPropertyValue('--nve-config-reduced-motion') === 'true'\n } satisfies Partial<Record<ColorScheme | Scale | Variant, boolean>>;\n}\n\nexport interface PreferencesInputValue {\n 'color-scheme'?: ColorScheme | string;\n scale?: Scale | string;\n 'reduced-motion'?: boolean;\n}\n\n/**\n * @element nve-preferences-input\n * @description A preferences input is a widget for controlling apperance. Stylesheets register to the preferences input by including a css-property, see Standard for an example.\n * @since 1.23.7\n * @entrypoint \\@nvidia-elements/core/preferences-input\n * @event input - Dispatched when the value has changed\n * @event change - Dispatched when the value has changed\n * @cssprop --color\n * @cssprop --width\n * @csspart control - The control wrapper elements that contain the labels and menus\n * @csspart menu - The menu elements that display color scheme and scale options\n * @csspart menu-item - The individual menu item elements for each selectable option\n * @csspart icon - The icon element displayed next to color scheme options\n * @csspart divider - The divider elements that separate preference sections\n * @csspart switch - The switch element for the reduced motion toggle\n *\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/listbox/\n *\n */\n@scopedRegistry()\nexport class PreferencesInput extends FormControlMixin<typeof LitElement, PreferencesInputValue>(LitElement) {\n #i18nController: I18nController<this> = new I18nController<this>(this);\n\n /**\n * Enables updating internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-preferences-input',\n version: '0.0.0',\n valueSchema: {\n type: 'object' as const,\n properties: {\n 'color-scheme': { type: 'string' as const },\n scale: { type: 'string' as const },\n 'reduced-motion': { type: 'boolean' as const }\n }\n }\n };\n\n static elementDefinitions = {\n [Control.metadata.tag]: Control,\n [Divider.metadata.tag]: Divider,\n [Icon.metadata.tag]: Icon,\n [Menu.metadata.tag]: Menu,\n [MenuItem.metadata.tag]: MenuItem,\n [Switch.metadata.tag]: Switch\n };\n\n @state() private activePreferences: ReturnType<typeof getActivePreferences> = {\n light: false,\n dark: false,\n 'high-contrast': false,\n compact: false,\n 'reduced-motion': false\n };\n\n // eslint-disable-next-line max-lines-per-function\n render() {\n return html`\n <div internal-host>\n <nve-control part=\"control\">\n <label>${this.i18n.colorScheme}</label>\n <nve-menu part=\"menu\" nve-control>\n ${colorSchemes.map(\n value => html`\n <nve-menu-item part=\"menu-item\"\n .selected=${this.value?.['color-scheme'] === value}\n .value=${value}\n @click=${() => this.#setColorScheme(value)}\n >\n <nve-icon part=\"icon\" name=${colorSchemesIcons[value]}></nve-icon> ${value}\n </nve-menu-item>\n `\n )}\n </nve-menu>\n </nve-control>\n ${\n this.activePreferences['compact']\n ? html`\n <nve-divider part=\"divider\"></nve-divider>\n <nve-control part=\"control\">\n <label>${this.i18n.scale}</label>\n <nve-menu part=\"menu\" nve-control>\n ${scales.map(\n value => html`\n <nve-menu-item part=\"menu-item\"\n .selected=${this.value?.['scale'] === value}\n .value=${value}\n @click=${() => this.#setScale(value)}\n >\n ${value}\n </nve-menu-item>\n `\n )}\n </nve-menu>\n </nve-control>\n `\n : ''\n }\n ${\n this.activePreferences['reduced-motion']\n ? html`\n <nve-divider part=\"divider\"></nve-divider>\n <nve-switch part=\"switch\">\n <label>${this.i18n.reducedMotion}</label>\n <input\n type=\"checkbox\"\n value=\"reduced-motion\"\n .checked=${this.value?.['reduced-motion']}\n @change=${(e: { target: HTMLInputElement }) => this.#setReducedMotion(e.target.checked)}\n />\n </nve-switch>`\n : ''\n }\n </div>\n `;\n }\n\n constructor() {\n super();\n this.value = {\n 'color-scheme': 'auto',\n 'reduced-motion': false,\n scale: 'default'\n };\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('nve-control', '');\n this.#updatePreferences();\n }\n\n /** @private */\n updateValue(value: PreferencesInputValue) {\n super.updateValue({ ...this.value, ...value });\n this.#updatePreferences();\n }\n\n #updatePreferences() {\n /* istanbul ignore else -- Lit SSR mode is not reachable in browser unit tests. */\n if (!isServer) {\n const preferences = getActivePreferences();\n if (JSON.stringify(this.activePreferences) !== JSON.stringify(preferences)) {\n this.activePreferences = preferences;\n }\n }\n }\n\n #setColorScheme(value: ColorScheme) {\n this.value = { ...this.value, 'color-scheme': value };\n this.#update();\n }\n\n #setScale(value: Scale) {\n this.value = { ...this.value, scale: value };\n this.#update();\n }\n\n #setReducedMotion(value: boolean) {\n this.value = { ...this.value, 'reduced-motion': value };\n this.#update();\n }\n\n #update() {\n this.dispatchInputEvent();\n this.dispatchChangeEvent();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,IAAM,IAA8B;CAAC;CAAQ;CAAS;CAAQ;AAAe,GACvE,IAAkB,CAAC,WAAW,SAAS,GACvC,IAAoB;CACxB,MAAM;CACN,OAAO;CACP,MAAM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A,KAAA,CAAA,UAjCR,EAAe,CAAA,GAAA,CAAA"}
@@ -1,6 +1,6 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { scopedRegistry as t } from "../internal/decorators/scoped-registry.js";
3
- import { useStyles as n } from "../internal/styles/index.js";
1
+ import { scopedRegistry as e } from "../internal/decorators/scoped-registry.js";
2
+ import { useStyles as t } from "../internal/styles/index.js";
3
+ import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import r from "./progress-bar.js";
5
5
  import { LitElement as i, html as a } from "lit";
6
6
  import { property as o } from "lit/decorators/property.js";
@@ -11,12 +11,12 @@ var c = class extends i {
11
11
  super(...e), this.max = 100;
12
12
  }
13
13
  static {
14
- this.styles = n([r]);
14
+ this.styles = t([r]);
15
15
  }
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-progress-bar",
19
- version: "0.2.2"
19
+ version: "0.2.3"
20
20
  };
21
21
  }
22
22
  render() {
@@ -28,13 +28,13 @@ var c = class extends i {
28
28
  return a`<progress internal-host .max="${this.max}" .value="${this.value === void 0 ? 100 : this.value}" class="${s(e)}"></progress>`;
29
29
  }
30
30
  };
31
- e([o({
31
+ n([o({
32
32
  type: Number,
33
33
  reflect: !0
34
- })], c.prototype, "value", void 0), e([o({ type: Number })], c.prototype, "max", void 0), e([o({
34
+ })], c.prototype, "value", void 0), n([o({ type: Number })], c.prototype, "max", void 0), n([o({
35
35
  type: String,
36
36
  reflect: !0
37
- })], c.prototype, "status", void 0), c = e([t()], c);
37
+ })], c.prototype, "status", void 0), c = n([e()], c);
38
38
  //#endregion
39
39
  export { c as ProgressBar };
40
40
 
@@ -1,9 +1,9 @@
1
- import { attachInternals as e } from "../internal/utils/a11y.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { I18nController as n } from "../internal/controllers/i18n.controller.js";
4
- import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
5
- import { useStyles as i } from "../internal/styles/index.js";
6
- import { statusIcons as a } from "../internal/types/index.js";
1
+ import { I18nController as e } from "../internal/controllers/i18n.controller.js";
2
+ import { attachInternals as t } from "../internal/utils/a11y.js";
3
+ import { scopedRegistry as n } from "../internal/decorators/scoped-registry.js";
4
+ import { useStyles as r } from "../internal/styles/index.js";
5
+ import { statusIcons as i } from "../internal/types/index.js";
6
+ import { __decorate as a } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
7
7
  import { Icon as o } from "../icon/icon2.js";
8
8
  import s from "./progress-ring.js";
9
9
  import { LitElement as c, html as l } from "lit";
@@ -11,16 +11,16 @@ import { property as u } from "lit/decorators/property.js";
11
11
  import { queryAssignedElements as d } from "lit/decorators/query-assigned-elements.js";
12
12
  //#region src/progress-ring/progress-ring.ts
13
13
  var f = class extends c {
14
- constructor(...e) {
15
- super(...e), this.max = 100, this.status = "neutral", this.#e = new n(this), this.i18n = this.#e.i18n, this.#t = !1;
14
+ constructor(...t) {
15
+ super(...t), this.max = 100, this.status = "neutral", this.#e = new e(this), this.i18n = this.#e.i18n, this.#t = !1;
16
16
  }
17
17
  static {
18
- this.styles = i([s]);
18
+ this.styles = r([s]);
19
19
  }
20
20
  static {
21
21
  this.metadata = {
22
22
  tag: "nve-progress-ring",
23
- version: "0.2.2"
23
+ version: "0.2.3"
24
24
  };
25
25
  }
26
26
  static {
@@ -29,10 +29,10 @@ var f = class extends c {
29
29
  #e;
30
30
  #t;
31
31
  render() {
32
- return l`<div internal-host ?indeterminate="${this.value === void 0}"><svg viewBox="0 0 16 16" role="presentation"><circle cx="8px" cy="8px" r="6.5px" class="background"></circle><circle cx="8px" cy="8px" r="6.5px" class="ring" stroke-dasharray="${`${(this.value ?? 0) / (this.max ?? 100) * 44}px 44px`}"></circle></svg><slot>${this.status !== "accent" && !this.#t ? l`<nve-icon part="icon" .name="${this.status ? a[this.status] : void 0}" .status="${this.status}" aria-hidden="true"></nve-icon>` : ""}</slot><slot name="status-icon" @slotchange="${this.#n}"></slot></div>`;
32
+ return l`<div internal-host ?indeterminate="${this.value === void 0}"><svg viewBox="0 0 16 16" role="presentation"><circle cx="8px" cy="8px" r="6.5px" class="background"></circle><circle cx="8px" cy="8px" r="6.5px" class="ring" stroke-dasharray="${`${(this.value ?? 0) / (this.max ?? 100) * 44}px 44px`}"></circle></svg><slot>${this.status !== "accent" && !this.#t ? l`<nve-icon part="icon" .name="${this.status ? i[this.status] : void 0}" .status="${this.status}" aria-hidden="true"></nve-icon>` : ""}</slot><slot name="status-icon" @slotchange="${this.#n}"></slot></div>`;
33
33
  }
34
34
  connectedCallback() {
35
- super.connectedCallback(), e(this), this._internals.role = "progressbar";
35
+ super.connectedCallback(), t(this), this._internals.role = "progressbar";
36
36
  }
37
37
  updated(e) {
38
38
  super.updated(e), this._internals.ariaValueNow = `${this.value === void 0 ? "" : this.value}`, this._internals.ariaValueMax = `${this.max}`;
@@ -43,13 +43,13 @@ var f = class extends c {
43
43
  this.#t = this._deprecatedStatusIconSlot.length > 0, this.requestUpdate();
44
44
  }
45
45
  };
46
- t([u({ type: Number })], f.prototype, "value", void 0), t([u({ type: Number })], f.prototype, "max", void 0), t([u({
46
+ a([u({ type: Number })], f.prototype, "value", void 0), a([u({ type: Number })], f.prototype, "max", void 0), a([u({
47
47
  type: String,
48
48
  reflect: !0
49
- })], f.prototype, "status", void 0), t([u({
49
+ })], f.prototype, "status", void 0), a([u({
50
50
  type: String,
51
51
  reflect: !0
52
- })], f.prototype, "size", void 0), t([u({ type: Object })], f.prototype, "i18n", void 0), t([d({ slot: "status-icon" })], f.prototype, "_deprecatedStatusIconSlot", void 0), f = t([r()], f);
52
+ })], f.prototype, "size", void 0), a([u({ type: Object })], f.prototype, "i18n", void 0), a([d({ slot: "status-icon" })], f.prototype, "_deprecatedStatusIconSlot", void 0), f = a([n()], f);
53
53
  //#endregion
54
54
  export { f as ProgressRing };
55
55
 
@@ -1,11 +1,11 @@
1
- import { appendRootNodeStyle as e, generateId as t } from "../internal/utils/dom.js";
2
- import { attachInternals as n } from "../internal/utils/a11y.js";
3
- import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
- import { I18nController as i } from "../internal/controllers/i18n.controller.js";
5
- import { TypeClosableController as a } from "../internal/controllers/type-closable.controller.js";
6
- import { typeSSR as o } from "../internal/controllers/type-ssr.controller.js";
7
- import { scopedRegistry as s } from "../internal/decorators/scoped-registry.js";
8
- import { useStyles as c } from "../internal/styles/index.js";
1
+ import { I18nController as e } from "../internal/controllers/i18n.controller.js";
2
+ import { appendRootNodeStyle as t, generateId as n } from "../internal/utils/dom.js";
3
+ import { attachInternals as r } from "../internal/utils/a11y.js";
4
+ import { TypeClosableController as i } from "../internal/controllers/type-closable.controller.js";
5
+ import { typeSSR as a } from "../internal/controllers/type-ssr.controller.js";
6
+ import { scopedRegistry as o } from "../internal/decorators/scoped-registry.js";
7
+ import { useStyles as s } from "../internal/styles/index.js";
8
+ import { __decorate as c } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
9
9
  import { IconButton as l } from "../icon-button/icon-button2.js";
10
10
  import { Input as u } from "../input/input2.js";
11
11
  import { Select as d } from "../select/select2.js";
@@ -17,13 +17,13 @@ import { property as v } from "lit/decorators/property.js";
17
17
  import { state as y } from "lit/decorators/state.js";
18
18
  //#region src/progressive-filter-chip/progressive-filter-chip.ts
19
19
  var b = class extends h {
20
- constructor(...e) {
21
- super(...e), this.#e = new i(this), this.i18n = this.#e.i18n, this.inputs = [], this.#t = new a(this);
20
+ constructor(...t) {
21
+ super(...t), this.#e = new e(this), this.i18n = this.#e.i18n, this.inputs = [], this.#t = new i(this);
22
22
  }
23
23
  static {
24
24
  this.metadata = {
25
25
  tag: "nve-progressive-filter-chip",
26
- version: "0.2.2"
26
+ version: "0.2.3"
27
27
  };
28
28
  }
29
29
  static {
@@ -36,7 +36,7 @@ var b = class extends h {
36
36
  }
37
37
  #e;
38
38
  static {
39
- this.styles = c([m]);
39
+ this.styles = s([m]);
40
40
  }
41
41
  #t;
42
42
  #n(e) {
@@ -47,7 +47,7 @@ var b = class extends h {
47
47
  return g`<div internal-host>${this.inputs.map((e) => this.#n(e))} ${this.closable ? g`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${() => this.#t.close()}" .ariaLabel="${this.i18n.close}" icon-name="cancel"></nve-icon-button>` : _}</div><slot hidden-slot @slotchange="${this.#i}"></slot>`;
48
48
  }
49
49
  connectedCallback() {
50
- super.connectedCallback(), n(this), this._internals.role = "toolbar", this.setAttribute("nve-control", ""), e(this, p);
50
+ super.connectedCallback(), r(this), this._internals.role = "toolbar", this.setAttribute("nve-control", ""), t(this, p);
51
51
  }
52
52
  #r(e) {
53
53
  e.target.assignedElements().length || this.#a();
@@ -56,14 +56,14 @@ var b = class extends h {
56
56
  if (e.target && e.target.assignedElements().length) {
57
57
  this.#a();
58
58
  let e = Array.from(this.shadowRoot.querySelector("slot:not([name])").assignedElements()).filter((e) => e.matches("input, select, nve-button, [nve-control]"));
59
- e.forEach((e) => e.slot = t()), this.inputs = e.length ? e : this.inputs;
59
+ e.forEach((e) => e.slot = n()), this.inputs = e.length ? e : this.inputs;
60
60
  }
61
61
  }
62
62
  #a() {
63
63
  Array.from(this.shadowRoot.querySelectorAll("slot")).flatMap((e) => e.assignedElements()).forEach((e) => e.slot = "");
64
64
  }
65
65
  };
66
- r([v({ type: Boolean })], b.prototype, "closable", void 0), r([v({ type: Object })], b.prototype, "i18n", void 0), r([y()], b.prototype, "inputs", void 0), b = r([o(), s()], b);
66
+ c([v({ type: Boolean })], b.prototype, "closable", void 0), c([v({ type: Object })], b.prototype, "i18n", void 0), c([y()], b.prototype, "inputs", void 0), b = c([a(), o()], b);
67
67
  //#endregion
68
68
  export { b as ProgressiveFilterChip };
69
69
 
@@ -1,6 +1,6 @@
1
1
  import { attachInternals as e } from "../internal/utils/a11y.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { useStyles as n } from "../internal/styles/index.js";
2
+ import { useStyles as t } from "../internal/styles/index.js";
3
+ import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import { Icon as r } from "../icon/icon2.js";
5
5
  import i from "./pulse.js";
6
6
  import { LitElement as a, html as o } from "lit";
@@ -8,12 +8,12 @@ import { property as s } from "lit/decorators/property.js";
8
8
  //#region src/pulse/pulse.ts
9
9
  var c = class extends a {
10
10
  static {
11
- this.styles = n([i]);
11
+ this.styles = t([i]);
12
12
  }
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-pulse",
16
- version: "0.2.2"
16
+ version: "0.2.3"
17
17
  };
18
18
  }
19
19
  static {
@@ -26,10 +26,10 @@ var c = class extends a {
26
26
  return o`<svg internal-host width="100%" height="100%" viewBox="0 0 200 200"><circle class="circle" cx="100" cy="100" r="25"></circle><circle class="circle c1" cx="100" cy="100" r="25"></circle><circle class="circle c2" cx="100" cy="100" r="25"></circle><circle class="circle c3" cx="100" cy="100" r="25"></circle></svg>`;
27
27
  }
28
28
  };
29
- t([s({
29
+ n([s({
30
30
  type: String,
31
31
  reflect: !0
32
- })], c.prototype, "size", void 0), t([s({
32
+ })], c.prototype, "size", void 0), n([s({
33
33
  type: String,
34
34
  reflect: !0
35
35
  })], c.prototype, "status", void 0);
@@ -1,18 +1,18 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { audit as t } from "../internal/controllers/audit.controller.js";
3
- import { typeSSR as n } from "../internal/controllers/type-ssr.controller.js";
4
- import { useStyles as r } from "../internal/styles/index.js";
1
+ import { audit as e } from "../internal/controllers/audit.controller.js";
2
+ import { typeSSR as t } from "../internal/controllers/type-ssr.controller.js";
3
+ import { useStyles as n } from "../internal/styles/index.js";
4
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
5
5
  import { ControlGroup as i } from "../forms/control-group/control-group2.js";
6
6
  import a from "./radio-group.js";
7
7
  //#region src/radio/radio-group.ts
8
8
  var o = class extends i {
9
9
  static {
10
- this.styles = r([...i.styles, a]);
10
+ this.styles = n([...i.styles, a]);
11
11
  }
12
12
  static {
13
13
  this.metadata = {
14
14
  tag: "nve-radio-group",
15
- version: "0.2.2",
15
+ version: "0.2.3",
16
16
  children: [
17
17
  "label",
18
18
  "nve-control-message",
@@ -21,7 +21,7 @@ var o = class extends i {
21
21
  };
22
22
  }
23
23
  };
24
- o = e([t(), n()], o);
24
+ o = r([e(), t()], o);
25
25
  //#endregion
26
26
  export { o as RadioGroup };
27
27
 
@@ -1,7 +1,7 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { audit as t } from "../internal/controllers/audit.controller.js";
3
- import { hostAttr as n } from "../internal/decorators/host-attr.js";
4
- import { useStyles as r } from "../internal/styles/index.js";
1
+ import { audit as e } from "../internal/controllers/audit.controller.js";
2
+ import { hostAttr as t } from "../internal/decorators/host-attr.js";
3
+ import { useStyles as n } from "../internal/styles/index.js";
4
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
5
5
  import { Control as i } from "../forms/control/control2.js";
6
6
  import a from "./radio.js";
7
7
  //#region src/radio/radio.ts
@@ -10,12 +10,12 @@ var o = class extends i {
10
10
  super(...e), this.nveControl = "inline";
11
11
  }
12
12
  static {
13
- this.styles = r([...i.styles, a]);
13
+ this.styles = n([...i.styles, a]);
14
14
  }
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-radio",
18
- version: "0.2.2",
18
+ version: "0.2.3",
19
19
  children: [
20
20
  "label",
21
21
  "input",
@@ -24,7 +24,7 @@ var o = class extends i {
24
24
  };
25
25
  }
26
26
  };
27
- e([n({ attribute: "nve-control" })], o.prototype, "nveControl", void 0), o = e([t()], o);
27
+ r([t({ attribute: "nve-control" })], o.prototype, "nveControl", void 0), o = r([e()], o);
28
28
  //#endregion
29
29
  export { o as Radio };
30
30
 
@@ -1,6 +1,6 @@
1
1
  import { appendRootNodeStyle as e, getElementUpdate as t } from "../internal/utils/dom.js";
2
- import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { useStyles as r } from "../internal/styles/index.js";
2
+ import { useStyles as n } from "../internal/styles/index.js";
3
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import { Control as i } from "../forms/control/control2.js";
5
5
  import a from "./range.global.js";
6
6
  import o from "./range.js";
@@ -12,12 +12,12 @@ var d = class extends i {
12
12
  super(...e), this.orientation = "horizontal";
13
13
  }
14
14
  static {
15
- this.styles = r([...i.styles, o]);
15
+ this.styles = n([...i.styles, o]);
16
16
  }
17
17
  static {
18
18
  this.metadata = {
19
19
  tag: "nve-range",
20
- version: "0.2.2"
20
+ version: "0.2.3"
21
21
  };
22
22
  }
23
23
  connectedCallback() {
@@ -45,7 +45,7 @@ var d = class extends i {
45
45
  })}</div>`;
46
46
  }
47
47
  };
48
- n([u({
48
+ r([u({
49
49
  type: String,
50
50
  reflect: !0
51
51
  })], d.prototype, "orientation", void 0);