@nova-design-system/nova-webcomponents 3.0.0-beta.24 → 3.0.0-beta.25

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 (223) hide show
  1. package/dist/blazor-docs.json +949 -0
  2. package/dist/cjs/{app-globals-2ceecab2.js → app-globals-d8cbb987.js} +2 -2
  3. package/dist/cjs/{app-globals-2ceecab2.js.map → app-globals-d8cbb987.js.map} +1 -1
  4. package/dist/cjs/{index-5d1f2412.js → index-c50face0.js} +37 -17
  5. package/dist/cjs/index-c50face0.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/native.cjs.js +4 -4
  8. package/dist/cjs/native.cjs.js.map +1 -1
  9. package/dist/cjs/nv-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/nv-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/nv-base.cjs.entry.js +1 -1
  13. package/dist/cjs/nv-button.cjs.entry.js +1 -1
  14. package/dist/cjs/nv-col.cjs.entry.js +1 -1
  15. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
  16. package/dist/cjs/nv-fielddropdown.cjs.entry.js +367 -0
  17. package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -0
  18. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +62 -0
  19. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -0
  20. package/dist/cjs/nv-fieldnumber.cjs.entry.js +4 -4
  21. package/dist/cjs/nv-fieldpassword.cjs.entry.js +4 -4
  22. package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
  23. package/dist/cjs/nv-fieldselect.cjs.entry.js +6 -6
  24. package/dist/cjs/nv-fieldtext.cjs.entry.js +4 -4
  25. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +4 -4
  26. package/dist/cjs/nv-fieldtoggle.cjs.entry.js +3 -3
  27. package/dist/cjs/nv-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
  29. package/dist/cjs/nv-iconbutton.cjs.entry.js +2 -2
  30. package/dist/cjs/nv-loader.cjs.entry.js +2 -2
  31. package/dist/cjs/nv-menu.cjs.entry.js +2 -2
  32. package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
  33. package/dist/cjs/nv-popover.cjs.entry.js +2 -2
  34. package/dist/cjs/nv-row.cjs.entry.js +2 -2
  35. package/dist/cjs/nv-stack.cjs.entry.js +2 -2
  36. package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
  37. package/dist/collection/collection-manifest.json +3 -1
  38. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +195 -0
  39. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +160 -0
  40. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -0
  41. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +751 -0
  42. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -0
  43. package/dist/collection/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.js +2 -0
  44. package/dist/collection/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.js.map +1 -0
  45. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.css +46 -0
  46. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +6 -0
  47. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js.map +1 -0
  48. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +160 -0
  49. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -0
  50. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
  51. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
  52. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
  53. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
  54. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
  55. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
  56. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +2 -2
  57. package/dist/collection/components/nv-icon/nv-icon.js +2 -2
  58. package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
  59. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
  60. package/dist/collection/components/nv-loader/nv-loader.js +1 -1
  61. package/dist/collection/components/nv-menu/nv-menu.js +1 -1
  62. package/dist/collection/components/nv-popover/nv-popover.js +1 -1
  63. package/dist/collection/components/nv-row/nv-row.js +1 -1
  64. package/dist/collection/components/nv-stack/nv-stack.js +1 -1
  65. package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
  66. package/dist/components/index.js +3 -3
  67. package/dist/components/nv-alert.js +2 -2
  68. package/dist/components/nv-avatar.js +2 -2
  69. package/dist/components/nv-badge.js +2 -2
  70. package/dist/components/nv-base.js +1 -1
  71. package/dist/components/nv-button.js +2 -2
  72. package/dist/components/nv-col.js +1 -1
  73. package/dist/components/nv-fieldcheckbox.js +1 -1
  74. package/dist/components/nv-fielddropdown.d.ts +11 -0
  75. package/dist/components/nv-fielddropdown.js +434 -0
  76. package/dist/components/nv-fielddropdown.js.map +1 -0
  77. package/dist/components/nv-fielddropdownitem.d.ts +11 -0
  78. package/dist/components/nv-fielddropdownitem.js +8 -0
  79. package/dist/components/nv-fielddropdownitem.js.map +1 -0
  80. package/dist/components/nv-fieldnumber.js +5 -5
  81. package/dist/components/nv-fieldpassword.js +7 -7
  82. package/dist/components/nv-fieldradio.js +4 -4
  83. package/dist/components/nv-fieldselect.js +7 -7
  84. package/dist/components/nv-fieldtext.js +5 -5
  85. package/dist/components/nv-fieldtextarea.js +4 -4
  86. package/dist/components/nv-fieldtoggle.js +3 -3
  87. package/dist/components/nv-icon.js +1 -1
  88. package/dist/components/nv-iconbutton.js +1 -1
  89. package/dist/components/nv-loader.js +1 -1
  90. package/dist/components/nv-menu.js +3 -3
  91. package/dist/components/nv-menuitem.js +2 -2
  92. package/dist/components/nv-popover.js +1 -1
  93. package/dist/components/nv-row.js +2 -2
  94. package/dist/components/nv-stack.js +2 -2
  95. package/dist/components/nv-tooltip.js +3 -3
  96. package/dist/components/{p-8da6d9a3.js → p-69cc7819.js} +3 -3
  97. package/dist/components/{p-8da6d9a3.js.map → p-69cc7819.js.map} +1 -1
  98. package/dist/components/p-76eb28db.js +84 -0
  99. package/dist/components/p-76eb28db.js.map +1 -0
  100. package/dist/components/{p-d9a2aa08.js → p-9647924f.js} +5 -5
  101. package/dist/components/{p-d9a2aa08.js.map → p-9647924f.js.map} +1 -1
  102. package/dist/components/{p-137af295.js → p-9be1ebd4.js} +3 -3
  103. package/dist/components/{p-137af295.js.map → p-9be1ebd4.js.map} +1 -1
  104. package/dist/components/{p-50bd2808.js → p-ae6a0d80.js} +21 -7
  105. package/dist/components/p-ae6a0d80.js.map +1 -0
  106. package/dist/components/{p-632bedb8.js → p-d506ae63.js} +33 -19
  107. package/dist/components/p-d506ae63.js.map +1 -0
  108. package/dist/components/{p-c711fe67.js → p-ff97f99e.js} +4 -4
  109. package/dist/components/{p-c711fe67.js.map → p-ff97f99e.js.map} +1 -1
  110. package/dist/docs.json +939 -2
  111. package/dist/esm/{app-globals-df0a3c8d.js → app-globals-eea8674a.js} +2 -2
  112. package/dist/esm/{app-globals-df0a3c8d.js.map → app-globals-eea8674a.js.map} +1 -1
  113. package/dist/esm/{index-179dfba2.js → index-e7b35c14.js} +37 -17
  114. package/dist/esm/index-e7b35c14.js.map +1 -0
  115. package/dist/esm/loader.js +4 -4
  116. package/dist/esm/native.js +5 -5
  117. package/dist/esm/native.js.map +1 -1
  118. package/dist/esm/nv-alert.entry.js +1 -1
  119. package/dist/esm/nv-avatar.entry.js +1 -1
  120. package/dist/esm/nv-badge.entry.js +1 -1
  121. package/dist/esm/nv-base.entry.js +1 -1
  122. package/dist/esm/nv-button.entry.js +1 -1
  123. package/dist/esm/nv-col.entry.js +1 -1
  124. package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
  125. package/dist/esm/nv-fielddropdown.entry.js +363 -0
  126. package/dist/esm/nv-fielddropdown.entry.js.map +1 -0
  127. package/dist/esm/nv-fielddropdownitem.entry.js +58 -0
  128. package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -0
  129. package/dist/esm/nv-fieldnumber.entry.js +4 -4
  130. package/dist/esm/nv-fieldpassword.entry.js +4 -4
  131. package/dist/esm/nv-fieldradio.entry.js +4 -4
  132. package/dist/esm/nv-fieldselect.entry.js +6 -6
  133. package/dist/esm/nv-fieldtext.entry.js +4 -4
  134. package/dist/esm/nv-fieldtextarea.entry.js +4 -4
  135. package/dist/esm/nv-fieldtoggle.entry.js +3 -3
  136. package/dist/esm/nv-icon.entry.js +2 -2
  137. package/dist/esm/nv-icon.entry.js.map +1 -1
  138. package/dist/esm/nv-iconbutton.entry.js +2 -2
  139. package/dist/esm/nv-loader.entry.js +2 -2
  140. package/dist/esm/nv-menu.entry.js +2 -2
  141. package/dist/esm/nv-menuitem.entry.js +1 -1
  142. package/dist/esm/nv-popover.entry.js +2 -2
  143. package/dist/esm/nv-row.entry.js +2 -2
  144. package/dist/esm/nv-stack.entry.js +2 -2
  145. package/dist/esm/nv-tooltip.entry.js +2 -2
  146. package/dist/native/native.css +1 -1
  147. package/dist/native/native.esm.js +1 -1
  148. package/dist/native/native.esm.js.map +1 -1
  149. package/dist/native/{p-617d6a09.entry.js → p-000749ae.entry.js} +2 -2
  150. package/dist/native/p-0d335326.entry.js +2 -0
  151. package/dist/native/{p-29d482cd.entry.js.map → p-0d335326.entry.js.map} +1 -1
  152. package/dist/native/{p-f5acea50.entry.js → p-1aaee302.entry.js} +2 -2
  153. package/dist/native/{p-1ceee367.entry.js → p-20ea1b61.entry.js} +2 -2
  154. package/dist/native/{p-89accab1.entry.js → p-23b20b80.entry.js} +2 -2
  155. package/dist/native/{p-f9aac71a.entry.js → p-25e1bc94.entry.js} +2 -2
  156. package/dist/native/{p-6f762ec2.entry.js → p-2fca31c0.entry.js} +2 -2
  157. package/dist/native/{p-7ce1b712.entry.js → p-330c929d.entry.js} +2 -2
  158. package/dist/native/{p-43cd42ca.entry.js → p-396b65bb.entry.js} +2 -2
  159. package/dist/native/{p-b8eb4c31.entry.js → p-4a43953f.entry.js} +2 -2
  160. package/dist/native/p-4b550f95.entry.js +2 -0
  161. package/dist/native/{p-b5e4a9e7.entry.js → p-4cba27be.entry.js} +2 -2
  162. package/dist/native/{p-06f64d05.entry.js → p-5172aa15.entry.js} +2 -2
  163. package/dist/native/{p-71d6aad8.entry.js → p-69ca8c88.entry.js} +2 -2
  164. package/dist/native/{p-8b65b16f.entry.js → p-71fbdb92.entry.js} +2 -2
  165. package/dist/native/{p-519e0f59.entry.js → p-89468485.entry.js} +2 -2
  166. package/dist/native/{p-fb6f42b7.entry.js → p-8de6396f.entry.js} +2 -2
  167. package/dist/native/{p-124a7067.entry.js → p-a016e4b6.entry.js} +2 -2
  168. package/dist/native/{p-0aa0193b.entry.js → p-a59ec107.entry.js} +2 -2
  169. package/dist/native/{p-dccf739a.entry.js → p-aeaa326f.entry.js} +2 -2
  170. package/dist/native/{p-dccf739a.entry.js.map → p-aeaa326f.entry.js.map} +1 -1
  171. package/dist/native/p-b4aea326.js +3 -0
  172. package/dist/native/p-b4aea326.js.map +1 -0
  173. package/dist/native/p-bb243eaf.entry.js +2 -0
  174. package/dist/native/p-bb243eaf.entry.js.map +1 -0
  175. package/dist/native/{p-d5a8b6c4.entry.js → p-c16a4fbe.entry.js} +2 -2
  176. package/dist/native/{p-14c08510.entry.js → p-d4e0b6e1.entry.js} +2 -2
  177. package/dist/native/p-d5c24d8f.entry.js +2 -0
  178. package/dist/native/p-d5c24d8f.entry.js.map +1 -0
  179. package/dist/native/{p-830ec54a.entry.js → p-ed893068.entry.js} +2 -2
  180. package/dist/native/p-eeb6a3dc.js +2 -0
  181. package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +185 -0
  182. package/dist/types/components/nv-fielddropdown/nv-fielddropdown.docs.d.ts +4 -0
  183. package/dist/types/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.d.ts +9 -0
  184. package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +40 -0
  185. package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.d.ts +4 -0
  186. package/dist/types/components.d.ts +233 -0
  187. package/dist/types/stencil-public-runtime.d.ts +2 -0
  188. package/dist/vscode-data.json +288 -0
  189. package/hydrate/index.js +586 -110
  190. package/hydrate/index.mjs +586 -110
  191. package/hydrate/package.json +1 -1
  192. package/package.json +2 -2
  193. package/dist/cjs/index-5d1f2412.js.map +0 -1
  194. package/dist/components/p-50bd2808.js.map +0 -1
  195. package/dist/components/p-632bedb8.js.map +0 -1
  196. package/dist/esm/index-179dfba2.js.map +0 -1
  197. package/dist/native/p-29d482cd.entry.js +0 -2
  198. package/dist/native/p-80788ddf.js +0 -2
  199. package/dist/native/p-b99aa075.entry.js +0 -2
  200. package/dist/native/p-db2a68f3.js +0 -3
  201. package/dist/native/p-db2a68f3.js.map +0 -1
  202. /package/dist/native/{p-617d6a09.entry.js.map → p-000749ae.entry.js.map} +0 -0
  203. /package/dist/native/{p-f5acea50.entry.js.map → p-1aaee302.entry.js.map} +0 -0
  204. /package/dist/native/{p-1ceee367.entry.js.map → p-20ea1b61.entry.js.map} +0 -0
  205. /package/dist/native/{p-89accab1.entry.js.map → p-23b20b80.entry.js.map} +0 -0
  206. /package/dist/native/{p-f9aac71a.entry.js.map → p-25e1bc94.entry.js.map} +0 -0
  207. /package/dist/native/{p-6f762ec2.entry.js.map → p-2fca31c0.entry.js.map} +0 -0
  208. /package/dist/native/{p-7ce1b712.entry.js.map → p-330c929d.entry.js.map} +0 -0
  209. /package/dist/native/{p-43cd42ca.entry.js.map → p-396b65bb.entry.js.map} +0 -0
  210. /package/dist/native/{p-b8eb4c31.entry.js.map → p-4a43953f.entry.js.map} +0 -0
  211. /package/dist/native/{p-b99aa075.entry.js.map → p-4b550f95.entry.js.map} +0 -0
  212. /package/dist/native/{p-b5e4a9e7.entry.js.map → p-4cba27be.entry.js.map} +0 -0
  213. /package/dist/native/{p-06f64d05.entry.js.map → p-5172aa15.entry.js.map} +0 -0
  214. /package/dist/native/{p-71d6aad8.entry.js.map → p-69ca8c88.entry.js.map} +0 -0
  215. /package/dist/native/{p-8b65b16f.entry.js.map → p-71fbdb92.entry.js.map} +0 -0
  216. /package/dist/native/{p-519e0f59.entry.js.map → p-89468485.entry.js.map} +0 -0
  217. /package/dist/native/{p-fb6f42b7.entry.js.map → p-8de6396f.entry.js.map} +0 -0
  218. /package/dist/native/{p-124a7067.entry.js.map → p-a016e4b6.entry.js.map} +0 -0
  219. /package/dist/native/{p-0aa0193b.entry.js.map → p-a59ec107.entry.js.map} +0 -0
  220. /package/dist/native/{p-d5a8b6c4.entry.js.map → p-c16a4fbe.entry.js.map} +0 -0
  221. /package/dist/native/{p-14c08510.entry.js.map → p-d4e0b6e1.entry.js.map} +0 -0
  222. /package/dist/native/{p-830ec54a.entry.js.map → p-ed893068.entry.js.map} +0 -0
  223. /package/dist/native/{p-80788ddf.js.map → p-eeb6a3dc.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nv-fielddropdown.js","sourceRoot":"","sources":["../../../src/components/nv-fielddropdown/nv-fielddropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAIpC;;;;;;;;GAQG;AAQH,MAAM,OAAO,eAAe;;QA+Q1B;;;WAGG;QACK,8BAAyB,GAAG,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IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Watch,\n Method,\n} from '@stencil/core';\n\nimport { v4 as uuidv4 } from 'uuid';\nimport { TextInputAutocomplete } from '../../utils/constants';\nimport { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitem/DropdownItemSelectedEventDetail';\n\n/**\n * @slot content - Use a <ul></ul> tag for the slot, and place <nv-dropdownitem> elements inside.\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n\n@Component({\n tag: 'nv-fielddropdown',\n styleUrl: 'nv-fielddropdown.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NVFieldDropDown {\n @Element() el: HTMLNvFielddropdownElement;\n private inputElement!: HTMLInputElement;\n private popoverElement!: HTMLNvPopoverElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true })\n readonly description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n * The placeholder is displayed only when the filterable option is enabled.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts.\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * State of the dropdown popover.\n */\n @Prop({ reflect: true, mutable: true })\n open: boolean = false;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}` = 'off';\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the dropdown\n * field.\n * @validator message\n */\n @Prop({ reflect: true })\n readonly errorDescription: string;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * The text to display when no items match the filter.\n */\n @Prop({ reflect: true })\n readonly emptyresult: string = 'No results found';\n\n /**\n * The text entered by the user for filtering dropdown items.\n */\n @State()\n filterText: string = '';\n\n /**\n * Enables or disables the filtering feature for the dropdown items.\n */\n @Prop({ reflect: true, mutable: true })\n filterable: boolean = false;\n\n @State()\n isFilterable: boolean = this.filterable;\n\n @State()\n selectedValues: Set<string> = new Set();\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Event emitted when an item is selected.\n */\n @Event()\n dropdownItemSelected: EventEmitter<DropdownItemSelectedEventDetail>;\n\n @Listen('itemSelected')\n handleItemSelected(event: CustomEvent<DropdownItemSelectedEventDetail>) {\n if (this.disabled || this.readonly) return;\n\n // Retrieve all nv-fielddropdownitem elements present in the dropdown.\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem'),\n ) as HTMLNvFielddropdownitemElement[];\n\n // For each item, remove the 'selected' attribute and the 'selected' class.\n items.forEach(item => {\n if (item !== event.target) {\n item.removeAttribute('selected');\n item.classList.remove('selected');\n }\n });\n\n // Update the value and emit the event with the selected item.\n this.value = event.detail.value;\n (event.target as HTMLNvFielddropdownitemElement).setAttribute(\n 'selected',\n 'true',\n );\n (event.target as HTMLElement).classList.add('selected');\n this.dropdownItemSelected.emit(event.detail);\n\n // Close the popover after selecting.\n if (this.popoverElement) {\n this.popoverElement.hide();\n }\n }\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n @Listen('openChanged')\n handleOpenChanged(event: CustomEvent<boolean>) {\n this.open = event.detail; // Update `open` based on the popover state\n }\n\n @Watch('filterable')\n watchFilterableHandler(newValue: boolean) {\n this.isFilterable = newValue;\n this.filterable = newValue;\n }\n\n @Watch('value')\n watchValueHandler() {\n // Handle value change and update the corresponding dropdown item if it exists\n this.setInitialSelection();\n }\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Subscribe to click outside event.\n */\n connectedCallback() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n\n // Handle pre-selection during component initialization\n this.setInitialSelection();\n\n // Apply filtering if the dropdown is filterable and there is a value\n if (this.filterable && this.value) {\n this.filterText = this.value.toLowerCase();\n this.filterItems(); // Update the visibility of items\n } else {\n // Ensure all items are visible if no filtering is applied\n this.resetFilter();\n }\n }\n\n /**\n * Set the initial selection based on the current value and update the inputElement value.\n */\n private setInitialSelection() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem'),\n ) as HTMLNvFielddropdownitemElement[];\n\n const selectedItem = items.find(\n item =>\n item.getAttribute('label') === this.value ||\n item.getAttribute('value') === this.value ||\n item.textContent?.trim() === this.value,\n );\n\n // Remove 'selected' from all items first to reset the state\n items.forEach(item => {\n item.removeAttribute('selected');\n item.classList.remove('selected');\n });\n\n if (selectedItem) {\n // Add the `selected` attribute and `selected` class for visual styling\n selectedItem.setAttribute('selected', 'true');\n selectedItem.classList.add('selected');\n\n // Update the value and inputElement value to reflect the pre-selected item\n this.value =\n selectedItem.getAttribute('label') ||\n selectedItem.getAttribute('value') ||\n selectedItem.textContent?.trim() ||\n '';\n if (this.inputElement) {\n this.inputElement.value = this.value;\n }\n }\n }\n\n /**\n * Unsubscribe from click outside event.\n */\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n }\n\n /**\n * Handle click on the input container.\n * @param {MouseEvent} event - The click event.\n */\n private handleInputContainerClick = (event: MouseEvent) => {\n if (this.disabled || this.readonly) {\n return; // Do nothing if the dropdown is disabled or read-only\n }\n\n const target = event.target as HTMLElement;\n\n // Check if it is the paragraph or another part of the container\n if (target.tagName === 'P' || target.tagName === 'SPAN') {\n this.open = true;\n this.popoverElement.show();\n\n // Simulate focus to trigger \"focus-within\" style\n const inputContainer = this.el.querySelector(\n '.input-container',\n ) as HTMLElement;\n if (inputContainer) {\n inputContainer.classList.add('focus-within');\n\n // Remove the \"focus-within\" class after a delay or when the popover is closed\n const removeFocusWithin = () => {\n inputContainer.classList.remove('focus-within');\n };\n\n // Or remove the class when the popover is closed\n this.popoverElement.addEventListener('hide', removeFocusWithin);\n }\n }\n };\n\n /**\n * Handle input change.\n * @param {Event} event - The input event.\n */\n private handleInput = (event: Event) => {\n if (!this.filterable) return; // Do not filter if `filterable` is false\n if (this.disabled || this.readonly) {\n return; // Do not toggle the state if the dropdown is disabled or read-only\n }\n const input = event.target as HTMLInputElement;\n this.filterText = input.value.toLowerCase();\n this.value = input.value; // Update the value\n this.valueChanged.emit(input.value); // Emit an event if needed\n this.filterItems(); // Update the visibility of items\n };\n\n /**\n * Filter dropdown items based on the text entered by the user.\n * If no items are found, display a message indicating no results.\n */\n private filterItems() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem'),\n ) as HTMLNvFielddropdownitemElement[];\n\n // Remove the \"no results found\" item if it exists\n const existingEmptyItem = this.el.querySelector(\n 'nv-fielddropdownitem[data-empty]',\n );\n if (existingEmptyItem) {\n existingEmptyItem.remove();\n }\n\n let hasVisibleItems = false;\n\n // Iterate over all items and adjust their visibility\n items.forEach(item => {\n const textContent = item.textContent?.toLowerCase() || ''; // Get the textual content of the slot\n const value = item.value?.toLowerCase() || ''; // Get the value of the `value` attribute\n\n // Check if the filtered text is present either in the value or in the textual content\n const shouldShow =\n value.includes(this.filterText) ||\n textContent.includes(this.filterText);\n\n item.style.display = shouldShow ? '' : 'none'; // Hide or show the item\n\n if (shouldShow) {\n hasVisibleItems = true;\n }\n });\n\n // If no items are visible, add the \"no results found\" item\n if (!hasVisibleItems) {\n const emptyItem = document.createElement('nv-fielddropdownitem');\n emptyItem.setAttribute('data-empty', 'true');\n emptyItem.setAttribute('disabled', 'true');\n emptyItem.textContent = this.emptyresult;\n this.el.querySelector('ul[slot=\"content\"]')?.appendChild(emptyItem);\n }\n }\n\n /**\n * Reset the filter and make all items visible.\n */\n private resetFilter() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem'),\n ) as HTMLNvFielddropdownitemElement[];\n\n items.forEach(item => {\n item.style.display = '';\n });\n }\n\n /**\n * Retrieves the current filter text entered by the user.\n * @returns {string} The filter text.\n */\n @Method()\n async getFilterText(): Promise<string> {\n return this.filterText;\n }\n\n /**\n * Handle click outside the component.\n * @param {MouseEvent} event - The click event.\n */\n private handleClickOutside(event: MouseEvent) {\n if (\n this.el.contains(event.target as Node) ||\n (this.inputElement && this.inputElement.contains(event.target as Node))\n ) {\n // If the click is inside the component or on the input, do not close the popover\n return;\n }\n\n this.popoverElement.hide(); // Close the popover if the click is outside the component\n }\n\n /**\n * Handle input focus.\n */\n private handleInputFocus = () => {\n if (this.disabled || this.readonly) {\n return; // Do not toggle the state if the dropdown is disabled or read-only\n }\n this.open = true; // Force the popover to open\n };\n\n /**\n * Handle input blur.\n */\n private handleInputBlur = () => {\n // Use a delay to check if the focus is still within the popover\n setTimeout(() => {\n if (!this.el.contains(document.activeElement)) {\n this.open = false;\n this.popoverElement.hide(); // Close the popover if the focus is outside the component\n }\n }, 150);\n };\n\n /**\n * Toggle the dropdown popover.\n * @returns {void}\n */\n private togglePopover = (): void => {\n if (this.disabled || this.readonly) {\n return; // Do not toggle if disabled or read-only\n }\n\n this.open = !this.open;\n if (this.open) {\n this.popoverElement.show();\n\n // Si le dropdown n'est pas filtrable, focus sur le premier élément\n if (!this.filterable) {\n this.focusFirstItem();\n }\n } else {\n this.popoverElement.hide();\n }\n };\n\n @Listen('keydown', { passive: false })\n handleKeyDown(event: KeyboardEvent) {\n if (!this.open) {\n if (event.key === 'ArrowDown') {\n this.open = true;\n this.popoverElement.show();\n\n if (!this.filterable) {\n // Focus sur le premier élément si ce n'est pas filtrable\n this.focusFirstItem();\n }\n\n event.preventDefault();\n return;\n }\n return;\n }\n\n // Vérifiez si le popover est défini avant de chercher les items\n if (!this.popoverElement) {\n console.warn('Popover element is not defined');\n return;\n }\n\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem:not([data-empty])'),\n ) as HTMLNvFielddropdownitemElement[];\n\n // Vérifiez si les items existent\n if (items.length === 0) {\n console.warn('No dropdown items found to navigate');\n return;\n }\n\n let currentIndex = items.findIndex(item =>\n item.classList.contains('highlighted'),\n );\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n currentIndex = (currentIndex + 1) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n currentIndex = (currentIndex - 1 + items.length) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'Enter' && currentIndex >= 0) {\n event.preventDefault();\n items[currentIndex].click();\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.open = false;\n this.popoverElement.hide();\n if (this.inputElement) {\n this.inputElement.blur();\n }\n }\n }\n\n private updateHighlightedItem(\n items: HTMLNvFielddropdownitemElement[],\n index: number,\n ) {\n items.forEach((item, i) => {\n if (i === index) {\n item.classList.add('highlighted');\n item.setAttribute('tabindex', '0');\n if (!item.checkVisibility()) {\n console.log('Item not focused');\n }\n\n item.focus(); // Forcer le focus ici\n item.scrollIntoView({ block: 'nearest' });\n } else {\n item.classList.remove('highlighted');\n item.setAttribute('tabindex', '-1');\n }\n });\n }\n\n private focusFirstItem() {\n const firstItem = this.el.querySelector('nv-fielddropdownitem');\n if (firstItem) {\n (firstItem as HTMLElement).focus();\n this.updateHighlightedItem(\n Array.from(\n this.el.querySelectorAll('nv-fielddropdownitem'),\n ) as HTMLNvFielddropdownitemElement[],\n 0,\n );\n } else {\n console.warn('No first item found to focus');\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <nv-popover\n ref={el => (this.popoverElement = el as HTMLNvPopoverElement)}\n triggerMode=\"controlled\"\n placement=\"bottom-start\"\n open={this.open}\n >\n <div class=\"input-wrapper\" slot=\"trigger\">\n <slot name=\"before-input\"></slot>\n\n <div\n class=\"input-container\"\n onClick={this.handleInputContainerClick}\n >\n <slot name=\"leading-input\"></slot>\n\n {this.isFilterable || this.disabled || this.readonly ? (\n <input\n id={this.inputId}\n type=\"search\"\n ref={e => (this.inputElement = e)}\n autocomplete={this.autocomplete}\n placeholder={this.placeholder}\n name={this.name}\n value={this.value}\n required={this.required}\n disabled={this.disabled}\n readOnly={this.readonly}\n onInput={this.handleInput}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n onKeyDown={this.handleKeyDown} // Gérer les touches fléchées ici\n />\n ) : (\n <p\n id={this.inputId}\n class=\"non-filterable-text\"\n onClick={this.handleInputContainerClick}\n tabIndex={0} // Ajout du tabindex pour permettre de le focus\n onKeyDown={this.handleKeyDown} // Gérer les touches fléchées ici également\n onFocus={this.handleInputFocus}\n >\n <span>{this.value || this.placeholder}</span>\n </p>\n )}\n\n <nv-iconbutton\n class=\"toggle-dropdown-icon\"\n name={this.open ? 'chevron-top' : 'chevron-down'}\n size=\"md\"\n emphasis=\"lower\"\n aria-label={this.open ? 'Hide dropdown' : 'Show dropdown'}\n aria-pressed={this.open.toString()}\n onClick={this.togglePopover}\n />\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n <slot name=\"content\"></slot>\n </nv-popover>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n //#endregion RENDER\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DropdownItemSelectedEventDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemSelectedEventDetail.js","sourceRoot":"","sources":["../../../src/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.tsx"],"names":[],"mappings":"","sourcesContent":["/**\n * Interface for the event emitted by the dropdown item.\n */\nexport interface DropdownItemSelectedEventDetail {\n label?: string;\n value: string;\n selected: boolean;\n disabled: boolean;\n}\n"]}
@@ -0,0 +1,46 @@
1
+ nv-fielddropdownitem {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ max-width: 300px;
6
+ width: 100%;
7
+ padding: var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);
8
+ font-size: var(--menu-contextual-item-font-size);
9
+ font-weight: var(--menu-contextual-item-font-weight);
10
+ color: var(--components-menu-contextual-item-content);
11
+ border-radius: var(--menu-contextual-item-radius);
12
+ transition: background-color 150ms ease-out, color 150ms ease-out;
13
+ cursor: pointer;
14
+ }
15
+ nv-fielddropdownitem:hover, nv-fielddropdownitem:focus, nv-fielddropdownitem:focus-within {
16
+ background-color: var(--components-menu-contextual-item-background-hover);
17
+ color: var(--components-menu-contextual-item-content-hover);
18
+ }
19
+ nv-fielddropdownitem.selected {
20
+ background-color: var(--components-menu-contextual-item-background-selected);
21
+ color: var(--components-menu-contextual-item-content-selected);
22
+ }
23
+ nv-fielddropdownitem[disabled]:not([disabled=false]) {
24
+ cursor: not-allowed;
25
+ background-color: unset;
26
+ color: var(--components-menu-contextual-item-content-disabled);
27
+ }
28
+ nv-fielddropdownitem [data-scope=text] {
29
+ flex-grow: 1;
30
+ overflow: hidden;
31
+ text-overflow: ellipsis;
32
+ white-space: nowrap;
33
+ }
34
+ nv-fielddropdownitem .selection-icon {
35
+ padding-left: 10px;
36
+ color: var(--components-menu-contextual-item-icon-selected);
37
+ align-self: center;
38
+ }
39
+
40
+ :root {
41
+ --components-menu-contextual-item-background-selected: #f5f6f7;
42
+ --components-menu-contextual-item-content-selected: #171f22;
43
+ --components-menu-contextual-item-icon-selected: #007f00;
44
+ --components-menu-contextual-item-background-hover: #f5f6f7;
45
+ --components-menu-contextual-item-content-hover: #171f22;
46
+ }
@@ -0,0 +1,6 @@
1
+ const NvFielddropdownitemDocs = {
2
+ component: 'nv-fielddropdownitem',
3
+ skip: true,
4
+ };
5
+ export default NvFielddropdownitemDocs;
6
+ //# sourceMappingURL=nv-fielddropdownitem.docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nv-fielddropdownitem.docs.js","sourceRoot":"","sources":["../../../src/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.tsx"],"names":[],"mappings":"AAGA,MAAM,uBAAuB,GAA6C;IACxE,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import type { NovaDocs } from '../../nova-docs';\nimport { Components } from '../../components';\n\nconst NvFielddropdownitemDocs: NovaDocs<Components.NvFielddropdownitem> = {\n component: 'nv-fielddropdownitem',\n skip: true,\n};\n\nexport default NvFielddropdownitemDocs;\n"]}
@@ -0,0 +1,160 @@
1
+ import { Host, h, } from "@stencil/core";
2
+ /**
3
+ * @slot default - The content to be displayed inside the dropdown item.
4
+ */
5
+ export class NvFielddropdownitem {
6
+ constructor() {
7
+ this.handleClick = () => {
8
+ if (!this.disabled) {
9
+ let itemValue = this.value || '';
10
+ if (!itemValue) {
11
+ itemValue =
12
+ Array.from(this.el.childNodes)
13
+ .map(node => { var _a; return (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim(); })
14
+ .filter(text => text && text.length > 0)
15
+ .join(' ') || '';
16
+ }
17
+ this.selected = !this.selected; // Toggle the selected state
18
+ this.itemSelected.emit({
19
+ label: this.label,
20
+ value: itemValue,
21
+ selected: this.selected,
22
+ disabled: this.disabled,
23
+ });
24
+ }
25
+ };
26
+ this.disabled = false;
27
+ this.selected = false;
28
+ this.value = undefined;
29
+ this.label = undefined;
30
+ }
31
+ //#endregion EVENTS
32
+ /****************************************************************************/
33
+ //#region METHODS
34
+ /**
35
+ * Utility function to check if a string is null, empty, or contains only whitespace.
36
+ * @param {string | null | undefined} input - The string to check.
37
+ * @returns {boolean} - Returns true if the string is null, empty, or contains only whitespace; otherwise, false.
38
+ */
39
+ isNullOrEmptyOrWhitespace(input) {
40
+ return !input || input.trim().length === 0;
41
+ }
42
+ //#endregion METHODS
43
+ /****************************************************************************/
44
+ //#region RENDER
45
+ render() {
46
+ const showDefaultLayout = this.isNullOrEmptyOrWhitespace(this.label);
47
+ return (h(Host, { key: '7883f469059e808bca1d6fa7f4a0bbef75681d81', role: "menuitem", tabindex: this.disabled ? '-1' : '0', onClick: this.handleClick, class: { selected: this.selected } }, showDefaultLayout ? (h("slot", null)) : (h("div", { class: "flex gap-2" }, h("span", { "data-scope": "text" }, this.label), this.selected && (h("nv-icon", { name: "check", "aria-hidden": "true", class: "selection-icon" }))))));
48
+ }
49
+ static get is() { return "nv-fielddropdownitem"; }
50
+ static get originalStyleUrls() {
51
+ return {
52
+ "$": ["nv-fielddropdownitem.scss"]
53
+ };
54
+ }
55
+ static get styleUrls() {
56
+ return {
57
+ "$": ["nv-fielddropdownitem.css"]
58
+ };
59
+ }
60
+ static get properties() {
61
+ return {
62
+ "disabled": {
63
+ "type": "boolean",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "boolean",
67
+ "resolved": "boolean",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Disables the item, preventing any user interaction."
75
+ },
76
+ "attribute": "disabled",
77
+ "reflect": true,
78
+ "defaultValue": "false"
79
+ },
80
+ "selected": {
81
+ "type": "boolean",
82
+ "mutable": true,
83
+ "complexType": {
84
+ "original": "boolean",
85
+ "resolved": "boolean",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Indicates if the item is selected."
93
+ },
94
+ "attribute": "selected",
95
+ "reflect": true,
96
+ "defaultValue": "false"
97
+ },
98
+ "value": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "string",
103
+ "resolved": "string",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": true,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Value associated with the item."
111
+ },
112
+ "attribute": "value",
113
+ "reflect": true
114
+ },
115
+ "label": {
116
+ "type": "string",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "string",
120
+ "resolved": "string",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": true,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": "Label used as the value for the default layout."
128
+ },
129
+ "attribute": "label",
130
+ "reflect": true
131
+ }
132
+ };
133
+ }
134
+ static get events() {
135
+ return [{
136
+ "method": "itemSelected",
137
+ "name": "itemSelected",
138
+ "bubbles": true,
139
+ "cancelable": true,
140
+ "composed": true,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Event emitted when an item is clicked."
144
+ },
145
+ "complexType": {
146
+ "original": "DropdownItemSelectedEventDetail",
147
+ "resolved": "DropdownItemSelectedEventDetail",
148
+ "references": {
149
+ "DropdownItemSelectedEventDetail": {
150
+ "location": "import",
151
+ "path": "./DropdownItemSelectedEventDetail",
152
+ "id": "src/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.tsx::DropdownItemSelectedEventDetail"
153
+ }
154
+ }
155
+ }
156
+ }];
157
+ }
158
+ static get elementRef() { return "el"; }
159
+ }
160
+ //# sourceMappingURL=nv-fielddropdownitem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nv-fielddropdownitem.js","sourceRoot":"","sources":["../../../src/components/nv-fielddropdownitem/nv-fielddropdownitem.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,E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GAAG,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAErE,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EACpC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAEjC,iBAAiB,CAAC,CAAC,CAAC,CACnB,eAAa,CACd,CAAC,CAAC,CAAC,CACF,WAAK,KAAK,EAAC,YAAY;YACrB,0BAAiB,MAAM,IAAE,IAAI,CAAC,KAAK,CAAQ;YAC1C,IAAI,CAAC,QAAQ,IAAI,CAChB,eACE,IAAI,EAAC,OAAO,iBACA,MAAM,EAClB,KAAK,EAAC,gBAAgB,GACb,CACZ,CACG,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n} from '@stencil/core';\nimport { DropdownItemSelectedEventDetail } from './DropdownItemSelectedEventDetail';\n\n/**\n * @slot default - The content to be displayed inside the dropdown item.\n */\n\n@Component({\n tag: 'nv-fielddropdownitem',\n styleUrl: 'nv-fielddropdownitem.scss',\n shadow: false,\n})\nexport class NvFielddropdownitem {\n @Element() el: HTMLNvFielddropdownitemElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Disables the item, preventing any user interaction.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Indicates if the item is selected.\n */\n @Prop({ reflect: true, mutable: true })\n selected: boolean = false;\n\n /**\n * Value associated with the item.\n */\n @Prop({ reflect: true })\n readonly value?: string;\n\n /**\n * Label used as the value for the default layout.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Event emitted when an item is clicked.\n */\n @Event()\n itemSelected: EventEmitter<DropdownItemSelectedEventDetail>;\n\n private handleClick = () => {\n if (!this.disabled) {\n let itemValue = this.value || '';\n if (!itemValue) {\n itemValue =\n Array.from(this.el.childNodes)\n .map(node => node.textContent?.trim())\n .filter(text => text && text.length > 0)\n .join(' ') || '';\n }\n\n this.selected = !this.selected; // Toggle the selected state\n\n this.itemSelected.emit({\n label: this.label,\n value: itemValue,\n selected: this.selected,\n disabled: this.disabled,\n });\n }\n };\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Utility function to check if a string is null, empty, or contains only whitespace.\n * @param {string | null | undefined} input - The string to check.\n * @returns {boolean} - Returns true if the string is null, empty, or contains only whitespace; otherwise, false.\n */\n private isNullOrEmptyOrWhitespace(input: string | null | undefined): boolean {\n return !input || input.trim().length === 0;\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n const showDefaultLayout = this.isNullOrEmptyOrWhitespace(this.label);\n\n return (\n <Host\n role=\"menuitem\"\n tabindex={this.disabled ? '-1' : '0'}\n onClick={this.handleClick}\n class={{ selected: this.selected }}\n >\n {showDefaultLayout ? (\n <slot></slot>\n ) : (\n <div class=\"flex gap-2\">\n <span data-scope=\"text\">{this.label}</span>\n {this.selected && (\n <nv-icon\n name=\"check\"\n aria-hidden=\"true\"\n class=\"selection-icon\"\n ></nv-icon>\n )}\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
@@ -75,9 +75,9 @@ export class NvFieldnumber {
75
75
  /****************************************************************************/
76
76
  //#region RENDER
77
77
  render() {
78
- return (h(Host, { key: 'a150acab0261cad03438abbce43dda76c2fd222f' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '69519f99052729a6a2b62b001694048342b6c0ae', htmlFor: this.inputId }, h("slot", { key: '21427c7b39a7282f14fcbca437f7ca74d59f3cbe', name: "label" }, this.label))), h("div", { key: '23cc57bdefec4c0d200afe9176407d9306cd296f', class: "input-wrapper" }, h("slot", { key: 'd9c83c42093fff848a75d9e79940f19cb945c7ff', name: "before-input" }), h("div", { key: '9edcc27d93280f193e2e7bf51efd63d815ffcf7e', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '8b844a90904874f63965d91a33c2a78b32b4fa96', name: "leading-input" }), h("input", { key: '19520af4e0bea22a5092201270051a97faed62a1', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '5f5ad3a9e4a6dc88710a6f0714bb3cf7c54bfb27', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '2c81457c414bc282ad602156ee1e17bdc02a87fe', name: "circle-check", class: "validation", size: "md" })), h("div", { key: '56408d1860ffb8f59971b15a5c4155d6f8da027f', class: "stepper-spacer" }), h("div", { key: '237b6d01a886bd2648d8c00d19ef32cce7a8bbd5', class: "stepper" }, h("nv-icon", { key: '7ea54e299fbbbaee4eaaa955057c52f6be47fce3', name: "minus", size: "md", onClick: this.handleMinus, class: clsx({ disabled: this.isMinValueReached() }) }), h("nv-icon", { key: 'fbfd4a9cd3d78bfbeefa99b2a74f0710fb72a60d', name: "plus", size: "md", onClick: this.handlePlus, class: clsx({ disabled: this.isMaxValueReached() }) }))), h("slot", { key: '5d43fe5dabf1eecb3c00ce809e2e4802326f4599', name: "after-input" })), (this.description ||
79
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'a76876356c76c22a3189fd4bfb5c50dd80329a67', class: "description" }, h("slot", { key: '91877b6ce1ea6b9c8e1f67e13a733cfa70cd635a', name: "description" }, this.description))), (this.errorDescription ||
80
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '2449f25e9fac52a815ece32de6d488044ce78969', hidden: !this.error, class: "error-description" }, h("slot", { key: '276537a3e19c182de08c4a48c4f5b4a9bbbdda09', name: "error-description" }, this.errorDescription)))));
78
+ return (h(Host, { key: '3a9223b9ec5b98988453bb2e4c3d321c753dbcd7' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'be1746ca557a151ff837a1477b37291297aebbb8', htmlFor: this.inputId }, h("slot", { key: '982e9f0d6aeed6fe243e7f3ad44de0efba796df1', name: "label" }, this.label))), h("div", { key: '931b96aeac31f348be4ee0650e9db607d1b67376', class: "input-wrapper" }, h("slot", { key: 'dfc3887c891cdf34591254294cd510a1850b22eb', name: "before-input" }), h("div", { key: '59724e6aa3c46b55f88ec02bfe4fefa271e988d1', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'db0ad5990287b5e5d731346ea9088d18aea437f9', name: "leading-input" }), h("input", { key: 'c524743652559eb6d039a71c9507cfbb08e2a115', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), this.error && (h("nv-icon", { key: 'eeba7946b7576c8eb37954479864d0fe5616609e', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '50ca73fb3cb891f2267da51bf4e2fe6c08e8384e', name: "circle-check", class: "validation", size: "md" })), h("div", { key: '399d9a01d07c98dbfd75cbe1f17720a3e2e7d892', class: "stepper-spacer" }), h("div", { key: '5d006aba51286bdbf6727e7970ffa6b7a1d089e6', class: "stepper" }, h("nv-icon", { key: 'bc7b73f787d0749fc617d689944eea3df06eb78d', name: "minus", size: "md", onClick: this.handleMinus, class: clsx({ disabled: this.isMinValueReached() }) }), h("nv-icon", { key: '5e4389fa084cb76c82f086d1937b6967c8292d53', name: "plus", size: "md", onClick: this.handlePlus, class: clsx({ disabled: this.isMaxValueReached() }) }))), h("slot", { key: '462809599f077fd76f8fac8bab40870885ec1369', name: "after-input" })), (this.description ||
79
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '0cfe8a2d53663147451a173fc524fd20af5391ba', class: "description" }, h("slot", { key: '99ddab81b68af0835b80a2d7bd5745ccb698da12', name: "description" }, this.description))), (this.errorDescription ||
80
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'c9199d6a3cf00ae2b63f93a11a15ff247fea2eda', hidden: !this.error, class: "error-description" }, h("slot", { key: '0bb584f886a73deaa18dfbbc5e93b25c96f22b1a', name: "error-description" }, this.errorDescription)))));
81
81
  }
82
82
  static get is() { return "nv-fieldnumber"; }
83
83
  static get formAssociated() { return true; }
@@ -60,9 +60,9 @@ export class NvFieldpassword {
60
60
  /****************************************************************************/
61
61
  //#region RENDER
62
62
  render() {
63
- return (h(Host, { key: '12607b189f41947cc3083d2feb88bd47d2c24327' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '1f4055bc907a3c184c435e1c5d522bb8693d3177', htmlFor: this.inputId }, h("slot", { key: '048db2f8c164b645b4087990731c0f78c14949b3', name: "label" }, this.label))), h("div", { key: 'c519d50463b405c0c887b96b9c2e15276dfcc179', class: "input-wrapper" }, h("slot", { key: 'e2a203745d188c4cf8ec2d68cdc795dafe260c89', name: "before-input" }), h("div", { key: 'c19efd9bfdd1a685d4a77fc8caa43d0a5bc9f0d0', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '18554d4beb2fe523880e14738bbdfb0cf6d90fe2', name: "leading-input" }), h("input", { key: 'b52c85804a3cb9d9705412bbb70aa0d37b4cd000', id: this.inputId, ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), !this.hidePasswordIcon && (h("nv-iconbutton", { key: '8b90cd19d7fcd2b10dcd8bff8862e09b4590f64b', class: "toggle-password-icon", name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, onKeyDown: this.handleKeyDown, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() })), (this.success || this.error) && (h("nv-icon", { key: '7de3d6d824a5e1d8b456a5cdaf44edc0f284a1f1', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" }))), h("slot", { key: 'ef0034098648349218e1de6850c55ee7bac830d3', name: "after-input" })), (this.description ||
64
- this.el.querySelector('[slot="description"]')) && (h("div", { key: '00df78e3991f968880006eaca78f957e5e81e932', class: "description" }, h("slot", { key: '4614e4cbdd49380194e337c4fe381cf426dd9be3', name: "description" }, this.description))), (this.errorDescription ||
65
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'ef7fa856c04d4dc4751067184a3fd94c18ed5b0f', hidden: !this.error, class: "error-description" }, h("slot", { key: '96c24255cf95f9172a1c41f2579106157f2c1b8a', name: "error-description" }, this.errorDescription)))));
63
+ return (h(Host, { key: '69ec0ce8bb09a3d18bc35ea9d3507642577e1d73' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'd1d7da07f6a385d9f1e533bcd2265416ad72c081', htmlFor: this.inputId }, h("slot", { key: 'e3636425c7ff4774efcebf23003c4ddfffd8deeb', name: "label" }, this.label))), h("div", { key: 'b1c900415a7c52f7c8049ee25095d672fcf0b2ae', class: "input-wrapper" }, h("slot", { key: 'a185ce16ac38763e53a874221a6d356b5a124a26', name: "before-input" }), h("div", { key: 'fea4f799535237b6eeaf74f4c689df99a9961676', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '9d0b505fc3c5289d6e58c097d4c60ee7afee7df1', name: "leading-input" }), h("input", { key: 'c3edbe0d8ff28fe7fc37adc73857654bebab642b', id: this.inputId, ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), !this.hidePasswordIcon && (h("nv-iconbutton", { key: '603d51f607526c519a181fd76d4e710948485041', class: "toggle-password-icon", name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, onKeyDown: this.handleKeyDown, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() })), (this.success || this.error) && (h("nv-icon", { key: '64d7c84b4c559a1d5abde6838f851a7020a13479', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" }))), h("slot", { key: 'a4b2924196420f0907721fe48d759720cf0b2bbb', name: "after-input" })), (this.description ||
64
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: 'e5d33079071a718cafc7b0fc8fde5f9117dda201', class: "description" }, h("slot", { key: '29ea9388ff1d4ec61ae54c13ff34f9101661bc62', name: "description" }, this.description))), (this.errorDescription ||
65
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '34ed51e1bf050712126bd5a48ab9f426a3444db9', hidden: !this.error, class: "error-description" }, h("slot", { key: '940aa4d7799df58265a82b9440bf1e0bb36eb68e', name: "error-description" }, this.errorDescription)))));
66
66
  }
67
67
  static get is() { return "nv-fieldpassword"; }
68
68
  static get formAssociated() { return true; }
@@ -59,9 +59,9 @@ export class NvFieldradio {
59
59
  /****************************************************************************/
60
60
  //#region RENDER
61
61
  render() {
62
- return (h(Host, { key: '923184aa248f433413ecdc49e4da07a60b408047', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h("input", { key: '37c0948ac9a100352908a60dd2ad94e1f7fb2bab', type: "radio", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), h("div", { key: 'cb217f7f999396b1b477eb25e5e1db77e941f76a', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '84859686efb45332b5dade8f2cb3147643782588', htmlFor: this.inputId }, h("slot", { key: 'f456892bd1bad003efdd128051989952b1719ca1', name: "label" }, this.label))), (this.description ||
63
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'f518939cc9f5f2a1bd9ceccbe284484d51ac44fa', class: "description" }, h("slot", { key: 'f6b1c15c9be9d9c87311b7a658358edf1dbd9c8e', name: "description" }, this.description))), (this.errorDescription ||
64
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '3f862fccc7e1a85c076e70babca97a74680a462b', hidden: !this.error, class: "error-description" }, h("slot", { key: '3d42e75ba035117f90e5c2f924781617a297173a', name: "error-description" }, this.errorDescription))))));
62
+ return (h(Host, { key: '3b583693083de14efaeb3fec362b7841d792fd64', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h("input", { key: 'afbb24afc56563ba72f598f6bd5e195d5bcefcbf', type: "radio", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), h("div", { key: 'f7506c57b0d409e0834fff77ed6f3f20937a7684', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '094290188857979a7c54878cfbba40333ea21044', htmlFor: this.inputId }, h("slot", { key: 'dd1dd4cda3cde671224d2a96b75a0db2d68484f9', name: "label" }, this.label))), (this.description ||
63
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: 'de70a59d9849648140de4df091d0a6431bbeba66', class: "description" }, h("slot", { key: '297df2dc5e58ede572cb3ebee160d9f13cd3a2d0', name: "description" }, this.description))), (this.errorDescription ||
64
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'e514dad229d2bedb194ac1e9586ce15cf9fca9ce', hidden: !this.error, class: "error-description" }, h("slot", { key: '68e52668dc96da4c354f1bc81927b7de3b81c8f6', name: "error-description" }, this.errorDescription))))));
65
65
  }
66
66
  static get is() { return "nv-fieldradio"; }
67
67
  static get formAssociated() { return true; }
@@ -266,13 +266,13 @@ export class NvFieldselect {
266
266
  * @returns {HTMLStencilElement} The HTML element to render.
267
267
  */
268
268
  render() {
269
- return (h(Host, { key: 'b610d79592893cf82b0ef164f833cc033f43416d' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'a8232954b2230c8b44d2aadba0aba5cfd71813b5', htmlFor: this.selectId }, h("slot", { key: '457157a4cc3dece0363f13ec6c7d3357505e69f8', name: "label" }, this.label))), h("div", { key: '39b1f61586fb2e5784dba297f5f1080d5f9ab560', class: "select-wrapper" }, h("slot", { key: '9ba008fe7250f95e0158e7b0cb530ae565d6bc7f', name: "before-input" }), h("div", { key: 'e2b0b254fc64d5c33cd0252469fbf9024b6735b2', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: '9b8158bb110cecc1bd8dd37082b813a1231d7392', name: "leading-input" }), this.internalReadonly && (h("input", { key: '65163fd120b753358bf45aa731be03e1291473c2', id: this.selectId + '-readonly', type: "text", value: this.computedDisplayValue, readOnly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
269
+ return (h(Host, { key: '084b481cd9fb4a5de72475c55b160e6b52791b19' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '8af61112f500899f876163354f0b75b1e68f0874', htmlFor: this.selectId }, h("slot", { key: 'e49a64d55614534aafc53b1aae1f93ab1e164ff2', name: "label" }, this.label))), h("div", { key: '3b91159475d481c9c2cfcebfdefee9e9ada81e09', class: "select-wrapper" }, h("slot", { key: '8a1e0736dcf48b2bf6d63936011115b903cc732a', name: "before-input" }), h("div", { key: 'c5d874489e528f67c60ee2262ed053cc29ed53fa', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: '22e1ef11fb7924b71dc968ddc0cab92ce7ad0ad9', name: "leading-input" }), this.internalReadonly && (h("input", { key: 'd117241f08b1bc4e1c81cd07ff71ef4335a07768', id: this.selectId + '-readonly', type: "text", value: this.computedDisplayValue, readOnly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
270
270
  ? `${this.selectId}-error`
271
- : `${this.selectId}-description` })), h("select", { key: '5f38318e3c073e9514c9bd3d429455fc7657b783', id: this.selectId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
271
+ : `${this.selectId}-description` })), h("select", { key: '62715b40d36a97243f3126238bb89cf99bfa697a', id: this.selectId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
272
272
  ? `${this.selectId}-error`
273
- : `${this.selectId}-description` }, h("slot", { key: 'c8f9b54cd6d88603070e34748b8115ae8ccfd522' })), this.internalReadonly && (h("nv-icon", { key: 'bc0151f125212a1044768a3110982cef8da0b26e', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (h("nv-icon", { key: 'e0883e47712cfc57746ca4167df0924ad1501e57', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '085c0833541a4ff6e6fbbf3350e4fc4ae570e0ec', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: '436a1faa2b2d6d651f32556f1d69c6e6b9bdb318', name: "after-input" })), (this.description ||
274
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'c734be03a4741a2dd03406997874cf6044954214', class: "description", id: `${this.selectId}-description` }, h("slot", { key: 'dd91d274fd97401a0dbf9b5f68fe23670b2ccf02', name: "description" }, this.description))), (this.errorDescription ||
275
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '45998c6f7ecf2ee9a63c566e1f8826d1e321779c', class: "error-description", id: `${this.selectId}-error` }, h("slot", { key: '807d57d77f557d4f0d920df6ec914c2c559e4431', name: "error-description" }, this.errorDescription)))));
273
+ : `${this.selectId}-description` }, h("slot", { key: '48005aa82e831392898795ce1bf84f6ae62ebbae' })), this.internalReadonly && (h("nv-icon", { key: 'b708946069c6ae49bd56910efaa246757d5c9aa6', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (h("nv-icon", { key: '43b4b0a27420de9fa357783cea4dfc3755dad51a', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: 'd0607401dffd4bf618acb7af51ff9a21576fb6ec', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'e90a2d6a6b75e3a85c300c4913cfe68356e09cc5', name: "after-input" })), (this.description ||
274
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: 'ea723eab08cd1c2501719d327b441c4ee5f017c0', class: "description", id: `${this.selectId}-description` }, h("slot", { key: 'eb4ee8a77bef595b8f654ff38debea299f702adc', name: "description" }, this.description))), (this.errorDescription ||
275
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '3177ab730cb80127e12e807db80574dd777a2a99', class: "error-description", id: `${this.selectId}-error` }, h("slot", { key: '5e3c77cb967bfe314c8a492db0c735f40a540a66', name: "error-description" }, this.errorDescription)))));
276
276
  }
277
277
  static get is() { return "nv-fieldselect"; }
278
278
  static get formAssociated() { return true; }
@@ -67,9 +67,9 @@ export class NvFieldtext {
67
67
  /****************************************************************************/
68
68
  //#region RENDER
69
69
  render() {
70
- return (h(Host, { key: '76d1f79b55fe4ec4b09b901537900bcbe1b40f1b' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'cdc3fd4a8f7506bee14be3a3a7c22d86858f96d0', htmlFor: this.inputId }, h("slot", { key: '5b4cf92566b0f4da29dbf84cc7b3128e9229228c', name: "label" }, this.label))), h("div", { key: '3d812356dc59127180bc0dcb1bec604c8fd1f281', class: "input-wrapper" }, h("slot", { key: 'ec9ab2b19178a3008f4582997126e1516c75e80d', name: "before-input" }), h("div", { key: '5b7c78c064e5282ddba000ccc57d90e005c16f50', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'c4a420fc3233fdca8db34ebc430764f30c79e488', name: "leading-input" }), h("input", { key: 'e2e09e3643316bda2e0e718455e050b983b73486', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '79ed73de7a55f5c501e175805014512d11fc42b4', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: 'ebd69fb668f3fe391d77faf89a8c2766c88dac34', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'c6028274d27b0bce8c1cc314d173934f4c7b1cde', name: "after-input" })), (this.description ||
71
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'd0b510a930a7d3bbbd93320b7023bad73eaf507d', class: "description" }, h("slot", { key: 'ae671effb670898267e390cec5e0781190320cd3', name: "description" }, this.description))), (this.errorDescription ||
72
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '1d0b68e0ea4ac79077b730f4ac37bf66d9923fb1', hidden: !this.error, class: "error-description" }, h("slot", { key: '8e9c3464a32461fe493bc262fe240828aa247e5c', name: "error-description" }, this.errorDescription)))));
70
+ return (h(Host, { key: 'e225aa4eaca09107049fa32ccf899bce6ee470a7' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'ba7633e59530f2ee1d4705d7d1a9aba41e1b3f35', htmlFor: this.inputId }, h("slot", { key: '2baaf93329a6ccc2272dffa02b5cae183e0df7c5', name: "label" }, this.label))), h("div", { key: 'acb57998333c6f120e8f2767edb5219522cef1b1', class: "input-wrapper" }, h("slot", { key: '9514a67fc44ed12d19a77d7dbe207973c9e2a2e4', name: "before-input" }), h("div", { key: '5ddfe286f746e0a8bb227cb161f136e3accd31d8', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '468801862e9586bd7c4ced9514e03e564e003751', name: "leading-input" }), h("input", { key: '5fee6340bb6b66fa06459f646528b31e1894493f', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '29cef781d6815da459d2459749237c2fd8daa3a5', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '2d43eed9dd4cfc5545bb001809604903879cbe44', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'bf438d831e88a0a2a8886c4539c9a294f0276507', name: "after-input" })), (this.description ||
71
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '11ead2a09340dc116ed3f6701dcd42cf14393e68', class: "description" }, h("slot", { key: 'a54450d197d3fe5565d64b66899aac0a69fc27be', name: "description" }, this.description))), (this.errorDescription ||
72
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'ee77c6e156665ab92ece7d653f2079d841a3ba71', hidden: !this.error, class: "error-description" }, h("slot", { key: 'b8eb5b43f7a7df72b4f278b9b86c0c621642900b', name: "error-description" }, this.errorDescription)))));
73
73
  }
74
74
  static get is() { return "nv-fieldtext"; }
75
75
  static get formAssociated() { return true; }
@@ -128,9 +128,9 @@ export class NvFieldtextarea {
128
128
  /****************************************************************************/
129
129
  //#region RENDER
130
130
  render() {
131
- return (h(Host, { key: '05e5be100e389a0d604ef6c6a126a3992c4400d8' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'f0e8d865770ad7249748d76eafc520733a73df61', htmlFor: this.textareaId }, h("slot", { key: '88dc412644dd9ba26c1c4fd6495257071ea9355f', name: "label" }, this.label))), h("div", { key: 'ed27e42a150bacb526fad21c33167e5daa88fbdb', class: "textarea-wrapper" }, h("div", { key: '12afa52b296240e0b8cb7ee3dd68100619a0aaef', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: '9269535072a3df3aff0f4d6093618ef3d0b9aed3', id: this.textareaId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.getResize()) }))), (this.description ||
132
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'f4cbe287f58bcffa17f9175b5507ffd260652805', class: "description" }, h("slot", { key: 'b3df2bfd379089e489173b0c961ce9bc04080892', name: "description" }, this.description))), (this.errorDescription ||
133
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'cb194709b15cbe0e4f243161bb34f5e487b2e073', hidden: !this.error, class: "error-description" }, h("slot", { key: 'de80cb7d6b1ad8e9f33bd17a407604df66b8eda1', name: "error-description" }, this.errorDescription)))));
131
+ return (h(Host, { key: 'b2d6c6960de6f0345aa68d6a7745736bbc17af63' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '208a64d1a050d9660feddc5a9da12fdf5cbba3b5', htmlFor: this.textareaId }, h("slot", { key: 'c6a6c34c0a9947552b24acd1a036b960d475989c', name: "label" }, this.label))), h("div", { key: '4f843961c1411ee913394e62b340854073a7af76', class: "textarea-wrapper" }, h("div", { key: '622dc04df7e02c63f3880b55787000f81e8450a8', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: '3da5d56fed71c6a4d2ace78610a94e6fa873bc85', id: this.textareaId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.getResize()) }))), (this.description ||
132
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '3f7dee56c20b55baa0f57cb366e54048cb247599', class: "description" }, h("slot", { key: '3aaa22737a238e6a26818a9b0f5556aff70c1273', name: "description" }, this.description))), (this.errorDescription ||
133
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'b0849984658ba6794ee510cdc24f000b791c095e', hidden: !this.error, class: "error-description" }, h("slot", { key: '952f86cfe6f319cfcaeba136ef21f3bf1695dbec', name: "error-description" }, this.errorDescription)))));
134
134
  }
135
135
  static get is() { return "nv-fieldtextarea"; }
136
136
  static get formAssociated() { return true; }
@@ -43,8 +43,8 @@ export class NvFieldtoggle {
43
43
  }
44
44
  /********************************* RENDER ***********************************/
45
45
  render() {
46
- return (h(Host, { key: '32394c2068002d65652918e998a837ed413db2e8', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: 'd2a037dbf554e6885853e10d1c5097e2900f7594', class: "input-container" }, h("input", { key: 'c9f150ee7742ed49066f2af75e9aa2fbe03750ba', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h("div", { key: '6b6d95647dcd2eb850c6e78420581d7205707e62', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '00393d9a26ea57a6ecacc0a248d450d5ef8f543c', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '8e2f5085aea5337d59e753ecd856a3fc6e057269', name: "label" }, this.label))), (this.description ||
47
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'c44a88b35cab4b2c034a2f29a9bf0ec168b86a50', class: "description" }, h("slot", { key: '5d80f64e1ac6d61025aa54b77f5e7b0860e6cc11', name: "description" }, this.description))))));
46
+ return (h(Host, { key: '3ea68d4cbec4bc0de00705d5b4dbf4a42316319b', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: 'cef0c3c3919f7248cc9870dbd2363cba85d2b038', class: "input-container" }, h("input", { key: '74d23f8ee6ed6fd7fb91dd5d233515970ac7ceed', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h("div", { key: '09a4f4c7fce473f4bb40a35f09e52a64d2dcf1d7', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '8bd7591d0c24613aa4b8c590e1bdec1b2e722042', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '404b6150ec81bcb651ac45c8ca5b2017c1805f49', name: "label" }, this.label))), (this.description ||
47
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '464d5965f59fb70656e918f5808146d247b86b33', class: "description" }, h("slot", { key: '6d0445706d47cffbd7ec80799d11f2eae048652f', name: "description" }, this.description))))));
48
48
  }
49
49
  static get is() { return "nv-fieldtoggle"; }
50
50
  static get originalStyleUrls() {
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import clsx from "clsx";
3
3
  import { SemanticSizes } from "../../utils/constants";
4
- import iconSprite from "@eliagroup-innersource/nova-base/assets/icons/icon-sprite.svg";
4
+ import iconSprite from "@nova-design-system/nova-base/assets/icons/icon-sprite.svg";
5
5
  export class NvIcon {
6
6
  constructor() {
7
7
  this.xsmall = undefined;
@@ -46,7 +46,7 @@ export class NvIcon {
46
46
  //#region RENDER
47
47
  render() {
48
48
  //const iconSprite = getAssetPath('assets/icon-sprite.svg');
49
- return (h(Host, { key: '3d42ca8c50da067e3b7c293f803ffb6304ce1b79', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, h("svg", { key: '7dd48f09f3778e3b8c3e28a157a409d919274e9d', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, h("use", { key: 'bd722065819995d483bef237a06b418758f3d6a3', href: `${this.spriteUrl}#${this.name}` }))));
49
+ return (h(Host, { key: 'aa3f7b43ad5884ad7cde113d0628f7189d791a21', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, h("svg", { key: '4b8b9ecc37fb1d420bc6c4dd03d0e190c1b7565a', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, h("use", { key: '14ebb2c282fb36c1dea48fc2fe6be4b537e0855c', href: `${this.spriteUrl}#${this.name}` }))));
50
50
  }
51
51
  static get is() { return "nv-icon"; }
52
52
  static get originalStyleUrls() {
@@ -1 +1 @@
1
- {"version":3,"file":"nv-icon.js","sourceRoot":"","sources":["../../../src/components/nv-icon/nv-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAA4B,MAAM,uBAAuB,CAAC;AAEhF,OAAO,UAAU,MAAM,+DAA+D,CAAC;AAOvF,MAAM,OAAO,MAAM;;;;;;;;;oBA0EU,aAAa,CAAC,MAAM;;;IAjC/C,mBAAmB;QACjB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,UAAU,CAAC;QACvC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,UAAU,CA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'@stencil/core';\nimport clsx from 'clsx';\nimport { SemanticSizes, DeprecatedSemanticColors } from '../../utils/constants';\nimport { IconName } from './nv-icons';\nimport iconSprite from '@eliagroup-innersource/nova-base/assets/icons/icon-sprite.svg';\n\n@Component({\n tag: 'nv-icon',\n styleUrl: 'nv-icon.scss',\n shadow: false,\n})\nexport class NvIcon {\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Set size to ExtraSmall.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xsmall: boolean;\n /**\n * Set size to Small.\n * @deprecated use size instead.\n */\n @Prop()\n readonly small: boolean;\n /**\n * Set size to Medium.\n * @deprecated use size instead.\n */\n @Prop()\n readonly medium: boolean;\n /**\n * Set size to Large.\n * @deprecated use size instead.\n */\n @Prop()\n readonly large: boolean;\n /**\n * Set size to ExtraLarge.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xlarge: boolean;\n /**\n * Set color of the icon.\n * @deprecated use class names instead.\n */\n @Prop()\n readonly color: `${DeprecatedSemanticColors}`;\n\n componentWillRender() {\n if (this.xsmall) {\n this.size = SemanticSizes.ExtraSmall;\n }\n if (this.small) {\n this.size = SemanticSizes.Small;\n }\n if (this.medium) {\n this.size = SemanticSizes.Medium;\n }\n if (this.large) {\n this.size = SemanticSizes.Large;\n }\n if (this.xlarge) {\n this.size = SemanticSizes.ExtraLarge;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Choose the icon you want to display. This also sets the aria-label for\n * improved accessibility, helping users who rely on screen readers.\n */\n @Prop({ reflect: true })\n readonly name: `${IconName}` | string;\n\n /**\n * Adjust the size of the icon to fit your design needs.\n */\n @Prop({ mutable: true, reflect: true })\n size: `${SemanticSizes}` = SemanticSizes.Medium;\n\n @State()\n spriteUrl: string;\n\n async componentWillLoad() {\n const response = await fetch(iconSprite);\n const blob = await response.blob();\n this.spriteUrl = URL.createObjectURL(blob);\n }\n\n disconnectedCallback() {\n if (this.spriteUrl) {\n URL.revokeObjectURL(this.spriteUrl);\n }\n }\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n\n render() {\n //const iconSprite = getAssetPath('assets/icon-sprite.svg');\n return (\n <Host\n class={clsx(this.color && `${this.color}`)}\n role=\"img\"\n aria-label={`${this.name}-icon`}\n >\n <svg\n stroke=\"currentColor\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class={`nv-icon-${this.size}`}\n >\n <use href={`${this.spriteUrl}#${this.name}`} />\n </svg>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"nv-icon.js","sourceRoot":"","sources":["../../../src/components/nv-icon/nv-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAA4B,MAAM,uBAAuB,CAAC;AAEhF,OAAO,UAAU,MAAM,4DAA4D,CAAC;AAOpF,MAAM,OAAO,MAAM;;;;;;;;;oBA0EU,aAAa,CAAC,MAAM;;;IAjC/C,mBAAmB;QACjB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,UAAU,CAAC;QACvC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport clsx from 'clsx';\nimport { SemanticSizes, DeprecatedSemanticColors } from '../../utils/constants';\nimport { IconName } from './nv-icons';\nimport iconSprite from '@nova-design-system/nova-base/assets/icons/icon-sprite.svg';\n\n@Component({\n tag: 'nv-icon',\n styleUrl: 'nv-icon.scss',\n shadow: false,\n})\nexport class NvIcon {\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Set size to ExtraSmall.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xsmall: boolean;\n /**\n * Set size to Small.\n * @deprecated use size instead.\n */\n @Prop()\n readonly small: boolean;\n /**\n * Set size to Medium.\n * @deprecated use size instead.\n */\n @Prop()\n readonly medium: boolean;\n /**\n * Set size to Large.\n * @deprecated use size instead.\n */\n @Prop()\n readonly large: boolean;\n /**\n * Set size to ExtraLarge.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xlarge: boolean;\n /**\n * Set color of the icon.\n * @deprecated use class names instead.\n */\n @Prop()\n readonly color: `${DeprecatedSemanticColors}`;\n\n componentWillRender() {\n if (this.xsmall) {\n this.size = SemanticSizes.ExtraSmall;\n }\n if (this.small) {\n this.size = SemanticSizes.Small;\n }\n if (this.medium) {\n this.size = SemanticSizes.Medium;\n }\n if (this.large) {\n this.size = SemanticSizes.Large;\n }\n if (this.xlarge) {\n this.size = SemanticSizes.ExtraLarge;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Choose the icon you want to display. This also sets the aria-label for\n * improved accessibility, helping users who rely on screen readers.\n */\n @Prop({ reflect: true })\n readonly name: `${IconName}` | string;\n\n /**\n * Adjust the size of the icon to fit your design needs.\n */\n @Prop({ mutable: true, reflect: true })\n size: `${SemanticSizes}` = SemanticSizes.Medium;\n\n @State()\n spriteUrl: string;\n\n async componentWillLoad() {\n const response = await fetch(iconSprite);\n const blob = await response.blob();\n this.spriteUrl = URL.createObjectURL(blob);\n }\n\n disconnectedCallback() {\n if (this.spriteUrl) {\n URL.revokeObjectURL(this.spriteUrl);\n }\n }\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n\n render() {\n //const iconSprite = getAssetPath('assets/icon-sprite.svg');\n return (\n <Host\n class={clsx(this.color && `${this.color}`)}\n role=\"img\"\n aria-label={`${this.name}-icon`}\n >\n <svg\n stroke=\"currentColor\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class={`nv-icon-${this.size}`}\n >\n <use href={`${this.spriteUrl}#${this.name}`} />\n </svg>\n </Host>\n );\n }\n}\n"]}
@@ -63,7 +63,7 @@ export class NvIconbutton {
63
63
  /****************************************************************************/
64
64
  //#region RENDER
65
65
  render() {
66
- return (h(Host, { key: '3ca84b14312db9e4fff85fac71fbb0cc7ae7db44', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && h("nv-loader", { key: 'bfb6c6ee4dbfa56595b704f436120c3ae18f4fc4', size: this.size }), !this.loading && h("nv-icon", { key: '7e87da2f6d233289bbce12416bf0d39b647f43f3', name: this.name, size: this.size }), h("slot", { key: '43972e79cf4efb921cbc9714110b13590144a268' })));
66
+ return (h(Host, { key: '50d222f7466955415b3f14d23661cea99cac11d3', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && h("nv-loader", { key: '53956bced12f2fa88bd8a1c53edef08df06b03c6', size: this.size }), !this.loading && h("nv-icon", { key: '802248d952f0724dcb8f9e22821d270a01c52800', name: this.name, size: this.size }), h("slot", { key: '3429a4dfaa3d683a23c0b18770a8caf0bfb26726' })));
67
67
  }
68
68
  static get is() { return "nv-iconbutton"; }
69
69
  static get formAssociated() { return true; }
@@ -10,7 +10,7 @@ export class NvLoader {
10
10
  //#region RENDER
11
11
  /* <slot> empty to force rendering change */
12
12
  render() {
13
- return (h(Host, { key: 'b4c0dab3c3ea4e2bdd434d779d4b736577bd467e', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
13
+ return (h(Host, { key: '1b1c99d9d22aabedb2037b67fe277c679b0c9cb9', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
14
14
  }
15
15
  static get is() { return "nv-loader"; }
16
16
  static get originalStyleUrls() {
@@ -172,7 +172,7 @@ export class NvMenu {
172
172
  /****************************************************************************/
173
173
  //#region RENDER
174
174
  render() {
175
- return (h(Host, { key: '5a3a0645d952724b5c2ddd1f2578201568bf827b' }, h("slot", { key: '65506a9b7035ef645daa87079339ad7e7cd76377', name: "trigger" }), h("nv-popover", { key: 'f5998e3d878671d09ea684de2a54bca504513f48', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, h("slot", { key: '267e0e587177bdb8b6ce9b10f36c43158547d5b2', name: "content" }))));
175
+ return (h(Host, { key: '7a68c75f464a73f44ca5e9b586f14074f8997ef7' }, h("slot", { key: '844e291a25b0761e00b3d491fca937b652d9289b', name: "trigger" }), h("nv-popover", { key: 'cb231870f62e952483ee32fe07e92c03dfa18acf', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, h("slot", { key: 'b59e6458addf054a4ef370a50498bb6620676166', name: "content" }))));
176
176
  }
177
177
  static get is() { return "nv-menu"; }
178
178
  static get originalStyleUrls() {
@@ -253,7 +253,7 @@ export class NvPopover {
253
253
  /****************************************************************************/
254
254
  //#region RENDER
255
255
  render() {
256
- return (h(Host, { key: '8d32b4cb618de8d8c88e813b5cb446eb4e667f27' }, h("slot", { key: 'bb4688a7ed334a32c1033c340d765e5abc8aef4a', name: "trigger" }), h("div", { key: '2e3847dd205be87742f3794f806ed1d903d88f14', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: '8259476267d3c14043c649b95d875452909e1e08', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: 'e6d68d89876b7353c0abd349b7c3bc1bfe790a76', name: "content" }))));
256
+ return (h(Host, { key: '4af33bb11f90830320677d0c7e9d1c7e6e6fe3e4' }, h("slot", { key: '7c1a62939502345813b4f2c9b33f4a9d3bbb6f4e', name: "trigger" }), h("div", { key: '52c93de45bcb3411e75414604d71f5f28ead7450', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: 'd12fde333309d12224c5bf0a4959c9549396755b', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: '8c8475dd19a1373d5bdd3f679a241e5e0accb5a1', name: "content" }))));
257
257
  }
258
258
  static get is() { return "nv-popover"; }
259
259
  static get originalStyleUrls() {
@@ -6,7 +6,7 @@ export class NvRow {
6
6
  /****************************************************************************/
7
7
  //#region RENDER
8
8
  render() {
9
- return (h(Host, { key: 'b6a2c143bf767ab622d0305574be11c71a770421' }, h("slot", { key: '8665290a25fdb12165d52436fc64d1a11ff93814' })));
9
+ return (h(Host, { key: '0509e4652dd679fbfb5b4eadb3aaef8979d879e7' }, h("slot", { key: '75a3a0b83eec4f573a3e54340b3679dc8f529fda' })));
10
10
  }
11
11
  static get is() { return "nv-row"; }
12
12
  static get originalStyleUrls() {