@nova-design-system/nova-webcomponents 3.0.0-beta.34 → 3.0.0-beta.35

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 (226) hide show
  1. package/dist/blazor-docs.json +1402 -175
  2. package/dist/cjs/index-ddc37f87.js +12 -12
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/native.cjs.js +1 -1
  5. package/dist/cjs/{nv-badge.cjs.entry.js → nv-badge_2.cjs.entry.js} +43 -1
  6. package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -0
  7. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1067 -0
  8. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -0
  9. package/dist/cjs/nv-fieldnumber.cjs.entry.js +3 -3
  10. package/dist/cjs/nv-fieldpassword.cjs.entry.js +3 -3
  11. package/dist/cjs/nv-fieldradio.cjs.entry.js +3 -3
  12. package/dist/cjs/nv-fieldselect.cjs.entry.js +5 -5
  13. package/dist/cjs/nv-fieldtext.cjs.entry.js +3 -3
  14. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +3 -3
  15. package/dist/cjs/nv-fieldtoggle.cjs.entry.js +2 -2
  16. package/dist/cjs/nv-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/{nv-iconbutton.cjs.entry.js → nv-iconbutton_2.cjs.entry.js} +28 -2
  18. package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +1 -0
  19. package/dist/cjs/nv-menu.cjs.entry.js +1 -1
  20. package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
  21. package/dist/cjs/nv-popover.cjs.entry.js +1 -1
  22. package/dist/cjs/nv-row.cjs.entry.js +1 -1
  23. package/dist/cjs/nv-stack.cjs.entry.js +1 -1
  24. package/dist/cjs/nv-table.cjs.entry.js +2 -2
  25. package/dist/cjs/nv-tablebody.cjs.entry.js +1 -1
  26. package/dist/cjs/nv-tablecolumn.cjs.entry.js +1 -1
  27. package/dist/cjs/nv-tabledatacell.cjs.entry.js +1 -1
  28. package/dist/cjs/nv-tablehead.cjs.entry.js +1 -1
  29. package/dist/cjs/nv-tablerow.cjs.entry.js +1 -1
  30. package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
  31. package/dist/collection/collection-manifest.json +2 -0
  32. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +12 -0
  33. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +6 -0
  34. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +1 -0
  35. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +185 -0
  36. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +1 -0
  37. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +204 -0
  38. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +249 -0
  39. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -0
  40. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +1651 -0
  41. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -0
  42. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
  43. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
  44. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
  45. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
  46. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
  47. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
  48. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +2 -2
  49. package/dist/collection/components/nv-icon/nv-icon.js +1 -1
  50. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
  51. package/dist/collection/components/nv-loader/nv-loader.js +1 -1
  52. package/dist/collection/components/nv-menu/nv-menu.js +1 -1
  53. package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
  54. package/dist/collection/components/nv-popover/nv-popover.js +1 -1
  55. package/dist/collection/components/nv-row/nv-row.js +1 -1
  56. package/dist/collection/components/nv-stack/nv-stack.js +1 -1
  57. package/dist/collection/components/nv-table/nv-table.js +2 -2
  58. package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
  59. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +1 -1
  60. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +1 -1
  61. package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
  62. package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
  63. package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
  64. package/dist/components/nv-alert.js +1 -1
  65. package/dist/components/nv-avatar.js +1 -1
  66. package/dist/components/nv-badge.js +1 -173
  67. package/dist/components/nv-badge.js.map +1 -1
  68. package/dist/components/nv-breadcrumb.js +3 -3
  69. package/dist/components/nv-button.js +1 -1
  70. package/dist/components/nv-fieldcheckbox.js +1 -152
  71. package/dist/components/nv-fieldcheckbox.js.map +1 -1
  72. package/dist/components/nv-fielddropdown.js +5 -5
  73. package/dist/components/nv-fielddropdownitem.js +1 -1
  74. package/dist/components/nv-fielddropdownitemcheck.d.ts +11 -0
  75. package/dist/components/nv-fielddropdownitemcheck.js +8 -0
  76. package/dist/components/nv-fielddropdownitemcheck.js.map +1 -0
  77. package/dist/components/nv-fieldmultiselect.d.ts +11 -0
  78. package/dist/components/nv-fieldmultiselect.js +1159 -0
  79. package/dist/components/nv-fieldmultiselect.js.map +1 -0
  80. package/dist/components/nv-fieldnumber.js +4 -4
  81. package/dist/components/nv-fieldpassword.js +6 -6
  82. package/dist/components/nv-fieldradio.js +3 -3
  83. package/dist/components/nv-fieldselect.js +6 -6
  84. package/dist/components/nv-fieldtext.js +4 -4
  85. package/dist/components/nv-fieldtextarea.js +3 -3
  86. package/dist/components/nv-fieldtoggle.js +2 -2
  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 +2 -2
  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 +1 -1
  94. package/dist/components/nv-stack.js +1 -1
  95. package/dist/components/nv-table.js +2 -2
  96. package/dist/components/nv-tablebody.js +1 -1
  97. package/dist/components/nv-tablecolumn.js +1 -1
  98. package/dist/components/nv-tabledatacell.js +1 -1
  99. package/dist/components/nv-tablehead.js +1 -1
  100. package/dist/components/nv-tablerow.js +1 -1
  101. package/dist/components/nv-tooltip.js +1 -1
  102. package/dist/components/{p-b7462fc2.js → p-0b30dd1b.js} +2 -2
  103. package/dist/components/{p-b7462fc2.js.map → p-0b30dd1b.js.map} +1 -1
  104. package/dist/{esm/nv-badge.entry.js → components/p-2abfadb8.js} +48 -12
  105. package/dist/components/p-2abfadb8.js.map +1 -0
  106. package/dist/components/{p-a61d9ce8.js → p-5b98036c.js} +2 -2
  107. package/dist/components/{p-a61d9ce8.js.map → p-5b98036c.js.map} +1 -1
  108. package/dist/components/p-63afc71f.js +74 -0
  109. package/dist/components/p-63afc71f.js.map +1 -0
  110. package/dist/components/{p-ce67d70c.js → p-78e7c594.js} +2 -2
  111. package/dist/components/{p-ce67d70c.js.map → p-78e7c594.js.map} +1 -1
  112. package/dist/components/{p-09a2a880.js → p-7a19fef7.js} +2 -2
  113. package/dist/components/{p-09a2a880.js.map → p-7a19fef7.js.map} +1 -1
  114. package/dist/components/{p-e7131c30.js → p-7c0db67e.js} +3 -3
  115. package/dist/components/{p-e7131c30.js.map → p-7c0db67e.js.map} +1 -1
  116. package/dist/components/p-afa1c98e.js +156 -0
  117. package/dist/components/p-afa1c98e.js.map +1 -0
  118. package/dist/components/{p-0cdf2cc7.js → p-d3b1c116.js} +4 -4
  119. package/dist/components/{p-0cdf2cc7.js.map → p-d3b1c116.js.map} +1 -1
  120. package/dist/docs.json +1394 -183
  121. package/dist/esm/index-cd557d0a.js +12 -12
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/esm/native.js +1 -1
  124. package/dist/esm/nv-badge_2.entry.js +182 -0
  125. package/dist/esm/nv-badge_2.entry.js.map +1 -0
  126. package/dist/esm/nv-fieldmultiselect.entry.js +1063 -0
  127. package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -0
  128. package/dist/esm/nv-fieldnumber.entry.js +3 -3
  129. package/dist/esm/nv-fieldpassword.entry.js +3 -3
  130. package/dist/esm/nv-fieldradio.entry.js +3 -3
  131. package/dist/esm/nv-fieldselect.entry.js +5 -5
  132. package/dist/esm/nv-fieldtext.entry.js +3 -3
  133. package/dist/esm/nv-fieldtextarea.entry.js +3 -3
  134. package/dist/esm/nv-fieldtoggle.entry.js +2 -2
  135. package/dist/esm/nv-icon.entry.js +1 -1
  136. package/dist/esm/{nv-iconbutton.entry.js → nv-iconbutton_2.entry.js} +28 -3
  137. package/dist/esm/nv-iconbutton_2.entry.js.map +1 -0
  138. package/dist/esm/nv-menu.entry.js +1 -1
  139. package/dist/esm/nv-menuitem.entry.js +1 -1
  140. package/dist/esm/nv-popover.entry.js +1 -1
  141. package/dist/esm/nv-row.entry.js +1 -1
  142. package/dist/esm/nv-stack.entry.js +1 -1
  143. package/dist/esm/nv-table.entry.js +2 -2
  144. package/dist/esm/nv-tablebody.entry.js +1 -1
  145. package/dist/esm/nv-tablecolumn.entry.js +1 -1
  146. package/dist/esm/nv-tabledatacell.entry.js +1 -1
  147. package/dist/esm/nv-tablehead.entry.js +1 -1
  148. package/dist/esm/nv-tablerow.entry.js +1 -1
  149. package/dist/esm/nv-tooltip.entry.js +1 -1
  150. package/dist/native/native.css +1 -1
  151. package/dist/native/native.esm.js +1 -1
  152. package/dist/native/native.esm.js.map +1 -1
  153. package/dist/native/{p-b902c7c0.entry.js → p-0a9a738c.entry.js} +2 -2
  154. package/dist/native/{p-f1545844.entry.js → p-18b227b5.entry.js} +2 -2
  155. package/dist/native/p-18b227b5.entry.js.map +1 -0
  156. package/dist/native/{p-3e9521a0.entry.js → p-1e2bd4e3.entry.js} +2 -2
  157. package/dist/native/p-225962f2.entry.js +2 -0
  158. package/dist/native/{p-bbc45099.entry.js.map → p-225962f2.entry.js.map} +1 -1
  159. package/dist/native/{p-f2ea8aa9.entry.js → p-3283505f.entry.js} +2 -2
  160. package/dist/native/{p-c59e3500.entry.js → p-3adf0c45.entry.js} +2 -2
  161. package/dist/native/{p-0710efd7.entry.js → p-4e056cd8.entry.js} +2 -2
  162. package/dist/native/p-4ffd5c51.entry.js +2 -0
  163. package/dist/native/{p-6c1b9c89.entry.js.map → p-4ffd5c51.entry.js.map} +1 -1
  164. package/dist/native/{p-ee78addb.entry.js → p-552e7ea4.entry.js} +2 -2
  165. package/dist/native/{p-74778f5f.entry.js → p-575ea40b.entry.js} +2 -2
  166. package/dist/native/p-5f160072.entry.js +2 -0
  167. package/dist/native/{p-10a06059.entry.js → p-6bb2c88f.entry.js} +2 -2
  168. package/dist/native/{p-e56d3715.entry.js → p-6ea62d17.entry.js} +2 -2
  169. package/dist/native/{p-45aa0c68.entry.js → p-788712dd.entry.js} +2 -2
  170. package/dist/native/{p-9cef006d.entry.js → p-7dfb4a60.entry.js} +2 -2
  171. package/dist/native/p-826f1d28.entry.js +2 -0
  172. package/dist/native/p-826f1d28.entry.js.map +1 -0
  173. package/dist/native/p-8ae9aaf1.entry.js +2 -0
  174. package/dist/native/p-967f1aee.entry.js +2 -0
  175. package/dist/native/p-967f1aee.entry.js.map +1 -0
  176. package/dist/native/{p-f4ecacf6.entry.js → p-cd251f91.entry.js} +2 -2
  177. package/dist/native/p-e8d181e6.entry.js +2 -0
  178. package/dist/native/{p-e390557d.entry.js → p-ed825c80.entry.js} +2 -2
  179. package/dist/native/{p-d0f83d1f.entry.js → p-f79752ca.entry.js} +2 -2
  180. package/dist/native/p-fc8cad13.entry.js +2 -0
  181. package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +56 -0
  182. package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +4 -0
  183. package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +404 -0
  184. package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +4 -0
  185. package/dist/types/components.d.ts +329 -0
  186. package/dist/vscode-data.json +324 -0
  187. package/hydrate/index.js +1201 -38
  188. package/hydrate/index.mjs +1201 -38
  189. package/package.json +10 -2
  190. package/dist/cjs/nv-badge.cjs.entry.js.map +0 -1
  191. package/dist/cjs/nv-iconbutton.cjs.entry.js.map +0 -1
  192. package/dist/cjs/nv-loader.cjs.entry.js +0 -35
  193. package/dist/cjs/nv-loader.cjs.entry.js.map +0 -1
  194. package/dist/esm/nv-badge.entry.js.map +0 -1
  195. package/dist/esm/nv-iconbutton.entry.js.map +0 -1
  196. package/dist/esm/nv-loader.entry.js +0 -31
  197. package/dist/esm/nv-loader.entry.js.map +0 -1
  198. package/dist/native/p-132b8588.entry.js +0 -2
  199. package/dist/native/p-132b8588.entry.js.map +0 -1
  200. package/dist/native/p-5d67a825.entry.js +0 -2
  201. package/dist/native/p-6c1b9c89.entry.js +0 -2
  202. package/dist/native/p-907c3eda.entry.js +0 -2
  203. package/dist/native/p-91d4b4d7.entry.js +0 -2
  204. package/dist/native/p-a9b6461b.entry.js +0 -2
  205. package/dist/native/p-a9b6461b.entry.js.map +0 -1
  206. package/dist/native/p-bbc45099.entry.js +0 -2
  207. package/dist/native/p-f1545844.entry.js.map +0 -1
  208. package/dist/native/p-f42e87b5.entry.js +0 -2
  209. /package/dist/native/{p-b902c7c0.entry.js.map → p-0a9a738c.entry.js.map} +0 -0
  210. /package/dist/native/{p-3e9521a0.entry.js.map → p-1e2bd4e3.entry.js.map} +0 -0
  211. /package/dist/native/{p-f2ea8aa9.entry.js.map → p-3283505f.entry.js.map} +0 -0
  212. /package/dist/native/{p-c59e3500.entry.js.map → p-3adf0c45.entry.js.map} +0 -0
  213. /package/dist/native/{p-0710efd7.entry.js.map → p-4e056cd8.entry.js.map} +0 -0
  214. /package/dist/native/{p-ee78addb.entry.js.map → p-552e7ea4.entry.js.map} +0 -0
  215. /package/dist/native/{p-74778f5f.entry.js.map → p-575ea40b.entry.js.map} +0 -0
  216. /package/dist/native/{p-5d67a825.entry.js.map → p-5f160072.entry.js.map} +0 -0
  217. /package/dist/native/{p-10a06059.entry.js.map → p-6bb2c88f.entry.js.map} +0 -0
  218. /package/dist/native/{p-e56d3715.entry.js.map → p-6ea62d17.entry.js.map} +0 -0
  219. /package/dist/native/{p-45aa0c68.entry.js.map → p-788712dd.entry.js.map} +0 -0
  220. /package/dist/native/{p-9cef006d.entry.js.map → p-7dfb4a60.entry.js.map} +0 -0
  221. /package/dist/native/{p-907c3eda.entry.js.map → p-8ae9aaf1.entry.js.map} +0 -0
  222. /package/dist/native/{p-f4ecacf6.entry.js.map → p-cd251f91.entry.js.map} +0 -0
  223. /package/dist/native/{p-f42e87b5.entry.js.map → p-e8d181e6.entry.js.map} +0 -0
  224. /package/dist/native/{p-e390557d.entry.js.map → p-ed825c80.entry.js.map} +0 -0
  225. /package/dist/native/{p-d0f83d1f.entry.js.map → p-f79752ca.entry.js.map} +0 -0
  226. /package/dist/native/{p-91d4b4d7.entry.js.map → p-fc8cad13.entry.js.map} +0 -0
@@ -0,0 +1,404 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { TextInputAutocomplete } from '../../utils/constants';
3
+ import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitem/DropdownItemSelectedEventDetail';
4
+ /**
5
+ * @slot content - The content of the list.
6
+ * @slot leading-input - Content to be placed before the input text, within the input container.
7
+ * @slot before-input - Content to be placed before the input text, outside the input container.
8
+ * @slot after-input - Content to be placed after the input text, outside the input container.
9
+ * @slot label - Content to be placed as the label, will override the label prop.
10
+ * @slot description - Content to be placed as the description, will override the description prop.
11
+ * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
12
+ */
13
+ export declare class NvFieldmultiselect {
14
+ el: HTMLNvFieldmultiselectElement;
15
+ private inputElement;
16
+ private popoverElement;
17
+ /**
18
+ * Timer for debouncing input events.
19
+ * Private property preferred over @State as it:
20
+ * - Doesn't need to trigger re-renders
21
+ * - Is purely for internal logic
22
+ * - Improves performance by avoiding Stencil's reactivity system
23
+ */
24
+ private debounceTimer;
25
+ /****************************************************************************/
26
+ /**
27
+ * Sets the ID for the input element and the for attribute of the associated
28
+ * label. If no ID is provided, a random one will be automatically generated
29
+ * to ensure unique identification, facilitating proper label association and
30
+ * accessibility.
31
+ */
32
+ readonly inputId: string;
33
+ /**
34
+ * Defines the name attribute of the input field, which is crucial for form
35
+ * submission. This value is used as the key in the key-value pair sent to
36
+ * the server, representing the input's data in form submissions. It should be
37
+ * unique within the form to avoid conflicts.
38
+ */
39
+ readonly name: string;
40
+ /**
41
+ * Lets you define the text that explains what users should enter in the text
42
+ * input field. It's a crucial element for making forms clear and user-friendly.
43
+ */
44
+ readonly label: string;
45
+ /**
46
+ * Add helpful hints or extra information under the text input field.
47
+ */
48
+ readonly description: string;
49
+ /**
50
+ * Display temporary text inside the input field.
51
+ */
52
+ readonly placeholder: string;
53
+ /**
54
+ * Defines the maximum height of the multiselect list when open.
55
+ */
56
+ readonly maxHeight: string;
57
+ /**
58
+ * Text for the badge showing the number of selected items.
59
+ */
60
+ readonly badgeLabel: string;
61
+ /**
62
+ * The text to display when no items match the filter.
63
+ */
64
+ readonly emptyresult: string;
65
+ /**
66
+ * Marks the input field as required.
67
+ */
68
+ readonly required: boolean;
69
+ /**
70
+ * Alters the input field's appearance to indicate an error.
71
+ */
72
+ readonly error: boolean;
73
+ /**
74
+ * A description that appears when there is an error.
75
+ */
76
+ readonly errorDescription: string;
77
+ /**
78
+ * Display the input field's content without allowing users to change it.
79
+ */
80
+ readonly readonly: boolean;
81
+ /**
82
+ * Disables the input field.
83
+ */
84
+ readonly disabled: boolean;
85
+ /**
86
+ * The autocomplete prop for faster input filling.
87
+ */
88
+ readonly autocomplete: `${TextInputAutocomplete}`;
89
+ /**
90
+ * Enables or disables the filtering feature for the multiselect items.
91
+ */
92
+ filterable: boolean;
93
+ /**
94
+ * Specifies the value of the input field.
95
+ */
96
+ value: string;
97
+ /**
98
+ * State of the multiselect popover.
99
+ */
100
+ open: boolean;
101
+ /**
102
+ * Multiselect mode: 'options' (JSON data) or 'slots' (custom items).
103
+ * This property is now reflected in the modeState.
104
+ */
105
+ readonly mode: 'options' | 'slots';
106
+ /**
107
+ * List of options available in the multiselect.
108
+ * @description The options are passed as a JSON string.
109
+ * @example options='[{"label": "Option 1", "value": "option1"}, {"label": "Option 2", "value": "option2"}]'
110
+ */
111
+ readonly options?: string;
112
+ /**
113
+ * Options configuration for the multiselect items.
114
+ */
115
+ parsedOptions: Array<{
116
+ /** Label to display for the option */
117
+ label: string;
118
+ /** Value associated with the option */
119
+ value: string;
120
+ /** Whether this option is a divider */
121
+ isDivider?: boolean;
122
+ /** Whether this option is disabled */
123
+ disabled?: boolean;
124
+ /** Additional description for the option */
125
+ description?: string;
126
+ /** Whether this option is pre-checked */
127
+ checked?: boolean;
128
+ }>;
129
+ /**
130
+ * List of selected values in the multiselect.
131
+ */
132
+ selectedValues: string[];
133
+ /**
134
+ * Sorted options for display.
135
+ */
136
+ sortedOptions: Array<{
137
+ /** Label to display for the option */
138
+ label: string;
139
+ /** Value associated with the option */
140
+ value: string;
141
+ /** Whether this option is a divider */
142
+ isDivider?: boolean;
143
+ }>;
144
+ /**
145
+ * The text entered by the user for filtering multiselect items.
146
+ */
147
+ filterText: string;
148
+ /**
149
+ * Determines whether the multiselect is filterable.
150
+ */
151
+ isFilterable: boolean;
152
+ /**
153
+ * Delay in milliseconds before the search is triggered when typing in the filter input.
154
+ * @default 300
155
+ */
156
+ readonly debounceDelay: number;
157
+ /**
158
+ * State for the mode of the multiselect.
159
+ * @type {'options' | 'slots'}
160
+ * @default 'options'
161
+ */
162
+ modeState: 'options' | 'slots';
163
+ private isHandlingEscape;
164
+ /****************************************************************************/
165
+ /**
166
+ * Subscribe to click outside event.
167
+ */
168
+ connectedCallback(): void;
169
+ /**
170
+ * Set the mode state and handle options change.
171
+ */
172
+ componentWillLoad(): void;
173
+ /**
174
+ * Force reorder if options mode in componentDidLoad because of the initial render not trigger @watch
175
+ */
176
+ componentDidLoad(): void;
177
+ /**
178
+ * Unsubscribe from click outside event.
179
+ */
180
+ disconnectedCallback(): void;
181
+ /****************************************************************************/
182
+ /**
183
+ * Event emitted when an item is selected.
184
+ */
185
+ dropdownItemSelected: EventEmitter<DropdownItemSelectedEventDetail>;
186
+ /**
187
+ * Emitted when the input value changes.
188
+ * @bind value
189
+ */
190
+ valueChanged: EventEmitter<string>;
191
+ /**
192
+ * Event emitted when the selection changes in the multiselect.
193
+ * Emits the current list of selected values.
194
+ */
195
+ multiselectChange: EventEmitter<string[]>;
196
+ /**
197
+ * Emitted when the input loses focus.
198
+ * @param {CustomEvent<boolean>} event - The event object containing the focus state.
199
+ */
200
+ handleOpenChanged(event: CustomEvent<boolean>): void;
201
+ /**
202
+ * Listen for the `itemChecked` event emitted by child items.
203
+ * @param {CustomEvent<{ value: string; checked: boolean }>} event - The event object containing the selected value and its checked state.
204
+ */
205
+ handleItemChecked(event: CustomEvent<{
206
+ /** Value associated with the option */
207
+ value: string;
208
+ /** Whether this option is checked */
209
+ checked: boolean;
210
+ }>): void;
211
+ /**
212
+ * Emitted when the options change.
213
+ * @param {string | Array<{label: string, value: string, isDivider?: boolean, disabled?: boolean, description?: string, checked?: boolean}>} newValue - The new value of the options.
214
+ */
215
+ handleOptionsChange(newValue: string | Array<{
216
+ /** Label to display for the option */
217
+ label: string;
218
+ /** Value associated with the option */
219
+ value: string;
220
+ /** Whether this option is a divider */
221
+ isDivider?: boolean;
222
+ /** Whether this option is disabled */
223
+ disabled?: boolean;
224
+ /** Additional description for the option */
225
+ description?: string;
226
+ /** Whether this option is pre-checked */
227
+ checked?: boolean;
228
+ }>): void;
229
+ /**
230
+ * Emitted when the value changes.
231
+ */
232
+ watchValueHandler(): void;
233
+ /**
234
+ * Emitted when the filterable property changes.
235
+ * @param {boolean} newValue - The new value of the filterable property.
236
+ */
237
+ watchFilterableHandler(newValue: boolean): void;
238
+ handleSlotChange(event: Event): void;
239
+ /****************************************************************************/
240
+ /**
241
+ * Retrieves the current filter text entered by the user.
242
+ * @returns {string} The filter text.
243
+ */
244
+ getFilterText(): Promise<string>;
245
+ /**
246
+ * Set the initial selection based on the current value and update the inputElement value.
247
+ */
248
+ private setInitialSelection;
249
+ /**
250
+ * Reset the filter and make all items visible.
251
+ */
252
+ resetFilter(): Promise<void>;
253
+ /**
254
+ * Returns the list of selected values.
255
+ * @returns {string[]} The selected values.
256
+ */
257
+ getSelectedValues(): Promise<string[]>;
258
+ /**
259
+ * Reorder the content of the slot.
260
+ */
261
+ private reorderSlotContent;
262
+ /**
263
+ * Reorder the content for options mode with async handling
264
+ */
265
+ private reorderOptionsContent;
266
+ /**
267
+ * Filter multiselect items based on the text entered by the user.
268
+ */
269
+ private filterItems;
270
+ /**
271
+ * Filter multiselect items in options mode.
272
+ */
273
+ private filterItemsOption;
274
+ /**
275
+ * Filter multiselect items in slots mode
276
+ */
277
+ private filterSlotsItems;
278
+ /**x
279
+ * Handle badge close for options mode.
280
+ */
281
+ private handleBadgeCloseOptions;
282
+ /**
283
+ * Handle badge close for slots mode.
284
+ */
285
+ private handleBadgeCloseSlots;
286
+ /**
287
+ * Normalizes text by removing accents and converting to lowercase
288
+ * @param {string} text - The text to normalize
289
+ * @returns {string} The normalized text
290
+ *
291
+ * @example
292
+ * normalizeText("Café Latte") => "cafe latte"
293
+ *
294
+ * @description
295
+ * This function performs text normalization in three steps:
296
+ * 1. Decomposes characters into their base form and combining characters (NFD)
297
+ * 2. Removes all diacritical marks (accents, umlauts, etc.)
298
+ * 3. Converts to lowercase and trims whitespace
299
+ *
300
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize} - MDN documentation on String.normalize()
301
+ * @see {@link https://en.wikipedia.org/wiki/Unicode_equivalence#Normal_forms} - More info about Unicode normalization forms
302
+ */
303
+ private normalizeText;
304
+ /**
305
+ * Handle click outside the component.
306
+ * @param {MouseEvent} event - The click event.
307
+ */
308
+ private handleClickOutside;
309
+ /**
310
+ * Handle popover close
311
+ */
312
+ private handlePopoverClose;
313
+ /**
314
+ * Handle input blur for options mode.
315
+ */
316
+ private handleInputBlurOptions;
317
+ /**
318
+ * Handle keyboard events & arrow key navigation.
319
+ * If the multiselect is not open, opens it and focuses on the first item if the list is not filterable.
320
+ * If the multiselect is open, handles arrow key navigation and closes it if the focus is outside the component.
321
+ * @param {KeyboardEvent} event - The keyboard event.
322
+ */
323
+ handleKeyDown(event: KeyboardEvent): Promise<void>;
324
+ /**
325
+ * Updates the highlighted item in the dropdown list.
326
+ *
327
+ * @param {(HTMLNvFielddropdownitemElement | HTMLNvFielddropdownitemcheckElement)[]} items - The items to update.
328
+ * @param {number} index - The index of the item to highlight.
329
+ */
330
+ private updateHighlightedItem;
331
+ /**
332
+ * Focus on the first item in the dropdown list.
333
+ */
334
+ private focusFirstItem;
335
+ /**
336
+ * Handle click on the input container for options mode.
337
+ * @param {MouseEvent} event - The click event.
338
+ */
339
+ private handleInputContainerClickOptions;
340
+ /**
341
+ * Handle click on the input container for slots mode.
342
+ * @param {MouseEvent} event - The click event.
343
+ */
344
+ private handleInputContainerClickSlots;
345
+ /**
346
+ * Handle input change for options mode.
347
+ * @param {Event} event - The input event.
348
+ */
349
+ private readonly handleInputOptions;
350
+ private addEmptyMessageOption;
351
+ private removeEmptyMessageOption;
352
+ /**
353
+ * Handle input change for slots mode
354
+ * @param {Event} event - The input event.
355
+ */
356
+ private readonly handleInputSlots;
357
+ /**
358
+ * Handle input focus for options mode.
359
+ */
360
+ private handleInputFocusOptions;
361
+ /**
362
+ * Handle input focus for slots mode.
363
+ */
364
+ private handleInputFocusSlots;
365
+ /**
366
+ * Handle input blur for slots mode.
367
+ */
368
+ private handleInputBlurSlots;
369
+ /**
370
+ * Toggle the multiselect popover for options mode.
371
+ */
372
+ private togglePopoverOptions;
373
+ /**
374
+ * Toggle the multiselect popover for slots mode.
375
+ */
376
+ private togglePopoverSlots;
377
+ /**
378
+ * Watch for changes in the mode prop and update modeState accordingly
379
+ * @param {string} newValue - The new mode value
380
+ */
381
+ handleModeChange(newValue: 'options' | 'slots'): void;
382
+ private manageDivider;
383
+ /****************************************************************************/
384
+ /**
385
+ * Renders the component in options mode
386
+ * @returns {any} The JSX for options mode
387
+ */
388
+ private renderOptionsMode;
389
+ /**
390
+ * Renders the component in slots mode
391
+ * @returns {any} The JSX for slots mode
392
+ */
393
+ private renderSlotsMode;
394
+ /**
395
+ * Renders description and error description sections
396
+ * @returns {any} The JSX for descriptions
397
+ */
398
+ private renderDescriptions;
399
+ /**
400
+ * Main render method that decides which mode to render
401
+ * @returns {any} The JSX for the component
402
+ */
403
+ render(): any;
404
+ }
@@ -0,0 +1,4 @@
1
+ import type { NovaDocs } from '../../nova-docs';
2
+ import { Components } from '../../components';
3
+ declare const NvFieldmultiselectDocs: NovaDocs<Components.NvFieldmultiselect>;
4
+ export default NvFieldmultiselectDocs;