@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,751 @@
1
+ import { Host, h, } from "@stencil/core";
2
+ import { v4 as uuidv4 } from "uuid";
3
+ /**
4
+ * @slot content - Use a <ul></ul> tag for the slot, and place <nv-dropdownitem> elements inside.
5
+ * @slot leading-input - Content to be placed before the input text, within the input container.
6
+ * @slot before-input - Content to be placed before the input text, outside the input container.
7
+ * @slot after-input - Content to be placed after the input text, outside the input container.
8
+ * @slot label - Content to be placed as the label, will override the label prop.
9
+ * @slot description - Content to be placed as the description, will override the description prop.
10
+ * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
11
+ */
12
+ export class NVFieldDropDown {
13
+ constructor() {
14
+ /**
15
+ * Handle click on the input container.
16
+ * @param {MouseEvent} event - The click event.
17
+ */
18
+ this.handleInputContainerClick = (event) => {
19
+ if (this.disabled || this.readonly) {
20
+ return; // Do nothing if the dropdown is disabled or read-only
21
+ }
22
+ const target = event.target;
23
+ // Check if it is the paragraph or another part of the container
24
+ if (target.tagName === 'P' || target.tagName === 'SPAN') {
25
+ this.open = true;
26
+ this.popoverElement.show();
27
+ // Simulate focus to trigger "focus-within" style
28
+ const inputContainer = this.el.querySelector('.input-container');
29
+ if (inputContainer) {
30
+ inputContainer.classList.add('focus-within');
31
+ // Remove the "focus-within" class after a delay or when the popover is closed
32
+ const removeFocusWithin = () => {
33
+ inputContainer.classList.remove('focus-within');
34
+ };
35
+ // Or remove the class when the popover is closed
36
+ this.popoverElement.addEventListener('hide', removeFocusWithin);
37
+ }
38
+ }
39
+ };
40
+ /**
41
+ * Handle input change.
42
+ * @param {Event} event - The input event.
43
+ */
44
+ this.handleInput = (event) => {
45
+ if (!this.filterable)
46
+ return; // Do not filter if `filterable` is false
47
+ if (this.disabled || this.readonly) {
48
+ return; // Do not toggle the state if the dropdown is disabled or read-only
49
+ }
50
+ const input = event.target;
51
+ this.filterText = input.value.toLowerCase();
52
+ this.value = input.value; // Update the value
53
+ this.valueChanged.emit(input.value); // Emit an event if needed
54
+ this.filterItems(); // Update the visibility of items
55
+ };
56
+ /**
57
+ * Handle input focus.
58
+ */
59
+ this.handleInputFocus = () => {
60
+ if (this.disabled || this.readonly) {
61
+ return; // Do not toggle the state if the dropdown is disabled or read-only
62
+ }
63
+ this.open = true; // Force the popover to open
64
+ };
65
+ /**
66
+ * Handle input blur.
67
+ */
68
+ this.handleInputBlur = () => {
69
+ // Use a delay to check if the focus is still within the popover
70
+ setTimeout(() => {
71
+ if (!this.el.contains(document.activeElement)) {
72
+ this.open = false;
73
+ this.popoverElement.hide(); // Close the popover if the focus is outside the component
74
+ }
75
+ }, 150);
76
+ };
77
+ /**
78
+ * Toggle the dropdown popover.
79
+ * @returns {void}
80
+ */
81
+ this.togglePopover = () => {
82
+ if (this.disabled || this.readonly) {
83
+ return; // Do not toggle if disabled or read-only
84
+ }
85
+ this.open = !this.open;
86
+ if (this.open) {
87
+ this.popoverElement.show();
88
+ // Si le dropdown n'est pas filtrable, focus sur le premier élément
89
+ if (!this.filterable) {
90
+ this.focusFirstItem();
91
+ }
92
+ }
93
+ else {
94
+ this.popoverElement.hide();
95
+ }
96
+ };
97
+ this.inputId = uuidv4();
98
+ this.label = undefined;
99
+ this.description = undefined;
100
+ this.placeholder = undefined;
101
+ this.name = undefined;
102
+ this.open = false;
103
+ this.autocomplete = 'off';
104
+ this.value = undefined;
105
+ this.required = false;
106
+ this.error = false;
107
+ this.errorDescription = undefined;
108
+ this.readonly = false;
109
+ this.disabled = false;
110
+ this.emptyresult = 'No results found';
111
+ this.filterText = '';
112
+ this.filterable = false;
113
+ this.isFilterable = this.filterable;
114
+ this.selectedValues = new Set();
115
+ }
116
+ handleItemSelected(event) {
117
+ if (this.disabled || this.readonly)
118
+ return;
119
+ // Retrieve all nv-fielddropdownitem elements present in the dropdown.
120
+ const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
121
+ // For each item, remove the 'selected' attribute and the 'selected' class.
122
+ items.forEach(item => {
123
+ if (item !== event.target) {
124
+ item.removeAttribute('selected');
125
+ item.classList.remove('selected');
126
+ }
127
+ });
128
+ // Update the value and emit the event with the selected item.
129
+ this.value = event.detail.value;
130
+ event.target.setAttribute('selected', 'true');
131
+ event.target.classList.add('selected');
132
+ this.dropdownItemSelected.emit(event.detail);
133
+ // Close the popover after selecting.
134
+ if (this.popoverElement) {
135
+ this.popoverElement.hide();
136
+ }
137
+ }
138
+ handleOpenChanged(event) {
139
+ this.open = event.detail; // Update `open` based on the popover state
140
+ }
141
+ watchFilterableHandler(newValue) {
142
+ this.isFilterable = newValue;
143
+ this.filterable = newValue;
144
+ }
145
+ watchValueHandler() {
146
+ // Handle value change and update the corresponding dropdown item if it exists
147
+ this.setInitialSelection();
148
+ }
149
+ //#endregion EVENTS
150
+ /****************************************************************************/
151
+ //#region METHODS
152
+ /**
153
+ * Subscribe to click outside event.
154
+ */
155
+ connectedCallback() {
156
+ document.addEventListener('click', this.handleClickOutside.bind(this));
157
+ // Handle pre-selection during component initialization
158
+ this.setInitialSelection();
159
+ // Apply filtering if the dropdown is filterable and there is a value
160
+ if (this.filterable && this.value) {
161
+ this.filterText = this.value.toLowerCase();
162
+ this.filterItems(); // Update the visibility of items
163
+ }
164
+ else {
165
+ // Ensure all items are visible if no filtering is applied
166
+ this.resetFilter();
167
+ }
168
+ }
169
+ /**
170
+ * Set the initial selection based on the current value and update the inputElement value.
171
+ */
172
+ setInitialSelection() {
173
+ var _a;
174
+ const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
175
+ const selectedItem = items.find(item => {
176
+ var _a;
177
+ return item.getAttribute('label') === this.value ||
178
+ item.getAttribute('value') === this.value ||
179
+ ((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
180
+ });
181
+ // Remove 'selected' from all items first to reset the state
182
+ items.forEach(item => {
183
+ item.removeAttribute('selected');
184
+ item.classList.remove('selected');
185
+ });
186
+ if (selectedItem) {
187
+ // Add the `selected` attribute and `selected` class for visual styling
188
+ selectedItem.setAttribute('selected', 'true');
189
+ selectedItem.classList.add('selected');
190
+ // Update the value and inputElement value to reflect the pre-selected item
191
+ this.value =
192
+ selectedItem.getAttribute('label') ||
193
+ selectedItem.getAttribute('value') ||
194
+ ((_a = selectedItem.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
195
+ '';
196
+ if (this.inputElement) {
197
+ this.inputElement.value = this.value;
198
+ }
199
+ }
200
+ }
201
+ /**
202
+ * Unsubscribe from click outside event.
203
+ */
204
+ disconnectedCallback() {
205
+ document.removeEventListener('click', this.handleClickOutside.bind(this));
206
+ }
207
+ /**
208
+ * Filter dropdown items based on the text entered by the user.
209
+ * If no items are found, display a message indicating no results.
210
+ */
211
+ filterItems() {
212
+ var _a;
213
+ const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
214
+ // Remove the "no results found" item if it exists
215
+ const existingEmptyItem = this.el.querySelector('nv-fielddropdownitem[data-empty]');
216
+ if (existingEmptyItem) {
217
+ existingEmptyItem.remove();
218
+ }
219
+ let hasVisibleItems = false;
220
+ // Iterate over all items and adjust their visibility
221
+ items.forEach(item => {
222
+ var _a, _b;
223
+ const textContent = ((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ''; // Get the textual content of the slot
224
+ const value = ((_b = item.value) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || ''; // Get the value of the `value` attribute
225
+ // Check if the filtered text is present either in the value or in the textual content
226
+ const shouldShow = value.includes(this.filterText) ||
227
+ textContent.includes(this.filterText);
228
+ item.style.display = shouldShow ? '' : 'none'; // Hide or show the item
229
+ if (shouldShow) {
230
+ hasVisibleItems = true;
231
+ }
232
+ });
233
+ // If no items are visible, add the "no results found" item
234
+ if (!hasVisibleItems) {
235
+ const emptyItem = document.createElement('nv-fielddropdownitem');
236
+ emptyItem.setAttribute('data-empty', 'true');
237
+ emptyItem.setAttribute('disabled', 'true');
238
+ emptyItem.textContent = this.emptyresult;
239
+ (_a = this.el.querySelector('ul[slot="content"]')) === null || _a === void 0 ? void 0 : _a.appendChild(emptyItem);
240
+ }
241
+ }
242
+ /**
243
+ * Reset the filter and make all items visible.
244
+ */
245
+ resetFilter() {
246
+ const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
247
+ items.forEach(item => {
248
+ item.style.display = '';
249
+ });
250
+ }
251
+ /**
252
+ * Retrieves the current filter text entered by the user.
253
+ * @returns {string} The filter text.
254
+ */
255
+ async getFilterText() {
256
+ return this.filterText;
257
+ }
258
+ /**
259
+ * Handle click outside the component.
260
+ * @param {MouseEvent} event - The click event.
261
+ */
262
+ handleClickOutside(event) {
263
+ if (this.el.contains(event.target) ||
264
+ (this.inputElement && this.inputElement.contains(event.target))) {
265
+ // If the click is inside the component or on the input, do not close the popover
266
+ return;
267
+ }
268
+ this.popoverElement.hide(); // Close the popover if the click is outside the component
269
+ }
270
+ handleKeyDown(event) {
271
+ if (!this.open) {
272
+ if (event.key === 'ArrowDown') {
273
+ this.open = true;
274
+ this.popoverElement.show();
275
+ if (!this.filterable) {
276
+ // Focus sur le premier élément si ce n'est pas filtrable
277
+ this.focusFirstItem();
278
+ }
279
+ event.preventDefault();
280
+ return;
281
+ }
282
+ return;
283
+ }
284
+ // Vérifiez si le popover est défini avant de chercher les items
285
+ if (!this.popoverElement) {
286
+ console.warn('Popover element is not defined');
287
+ return;
288
+ }
289
+ const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem:not([data-empty])'));
290
+ // Vérifiez si les items existent
291
+ if (items.length === 0) {
292
+ console.warn('No dropdown items found to navigate');
293
+ return;
294
+ }
295
+ let currentIndex = items.findIndex(item => item.classList.contains('highlighted'));
296
+ if (event.key === 'ArrowDown') {
297
+ event.preventDefault();
298
+ currentIndex = (currentIndex + 1) % items.length;
299
+ this.updateHighlightedItem(items, currentIndex);
300
+ }
301
+ else if (event.key === 'ArrowUp') {
302
+ event.preventDefault();
303
+ currentIndex = (currentIndex - 1 + items.length) % items.length;
304
+ this.updateHighlightedItem(items, currentIndex);
305
+ }
306
+ else if (event.key === 'Enter' && currentIndex >= 0) {
307
+ event.preventDefault();
308
+ items[currentIndex].click();
309
+ }
310
+ else if (event.key === 'Escape') {
311
+ event.preventDefault();
312
+ this.open = false;
313
+ this.popoverElement.hide();
314
+ if (this.inputElement) {
315
+ this.inputElement.blur();
316
+ }
317
+ }
318
+ }
319
+ updateHighlightedItem(items, index) {
320
+ items.forEach((item, i) => {
321
+ if (i === index) {
322
+ item.classList.add('highlighted');
323
+ item.setAttribute('tabindex', '0');
324
+ if (!item.checkVisibility()) {
325
+ console.log('Item not focused');
326
+ }
327
+ item.focus(); // Forcer le focus ici
328
+ item.scrollIntoView({ block: 'nearest' });
329
+ }
330
+ else {
331
+ item.classList.remove('highlighted');
332
+ item.setAttribute('tabindex', '-1');
333
+ }
334
+ });
335
+ }
336
+ focusFirstItem() {
337
+ const firstItem = this.el.querySelector('nv-fielddropdownitem');
338
+ if (firstItem) {
339
+ firstItem.focus();
340
+ this.updateHighlightedItem(Array.from(this.el.querySelectorAll('nv-fielddropdownitem')), 0);
341
+ }
342
+ else {
343
+ console.warn('No first item found to focus');
344
+ }
345
+ }
346
+ //#endregion METHODS
347
+ /****************************************************************************/
348
+ //#region RENDER
349
+ render() {
350
+ return (h(Host, { key: '250c1480057430dc7ed9b9f9e754f141f72ae8df' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '381c4c83a2a868e3714770c942e02f7553c02593', htmlFor: this.inputId }, h("slot", { key: '213591b66daee583e63f8f13097ce5d7e00176b5', name: "label" }, this.label))), h("nv-popover", { key: '935e926058a328f1279002853a6125fb14183b3d', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h("div", { key: 'e0b285ab5bb4af2bf84afd20457fccbad87c7ab6', class: "input-wrapper", slot: "trigger" }, h("slot", { key: '78a732873c07adb228c2e1c930bcadc3f77a25c6', name: "before-input" }), h("div", { key: '7413239369a4d03acd13875f63d8f4973bf3147e', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '228cf0a81fdc68fd8ed9c25ce15da5ad88b4e1fb', name: "leading-input" }), this.isFilterable || this.disabled || this.readonly ? (h("input", { id: this.inputId, type: "search", ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyDown: this.handleKeyDown })) : (h("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, h("span", null, this.value || this.placeholder))), h("nv-iconbutton", { key: 'b6be1247858609d11db9401f08625445961c0c5c', class: "toggle-dropdown-icon", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover })), h("slot", { key: 'c0ad34bdf23bdfdb1adbdab04b4629b2b1c6bc9d', name: "after-input" })), h("slot", { key: 'e8d4a526b62a84caca5f28aa0a9d448683d3ad51', name: "content" })), (this.description ||
351
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '22273a23815f4048dce904b491c7972fce7051fd', class: "description" }, h("slot", { key: '8f8364a20416b5cf20c75e9ead5a2856d1ad307f', name: "description" }, this.description))), (this.errorDescription ||
352
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'e13aa744e80484699a0abf26f93a1ed2490d13cb', hidden: !this.error, class: "error-description" }, h("slot", { key: 'faf36f46aede8b40e9f7c01c36119cee11ad5dd2', name: "error-description" }, this.errorDescription)))));
353
+ }
354
+ static get is() { return "nv-fielddropdown"; }
355
+ static get formAssociated() { return true; }
356
+ static get originalStyleUrls() {
357
+ return {
358
+ "$": ["nv-fielddropdown.scss"]
359
+ };
360
+ }
361
+ static get styleUrls() {
362
+ return {
363
+ "$": ["nv-fielddropdown.css"]
364
+ };
365
+ }
366
+ static get properties() {
367
+ return {
368
+ "inputId": {
369
+ "type": "string",
370
+ "mutable": false,
371
+ "complexType": {
372
+ "original": "string",
373
+ "resolved": "string",
374
+ "references": {}
375
+ },
376
+ "required": false,
377
+ "optional": false,
378
+ "docs": {
379
+ "tags": [],
380
+ "text": "Sets the ID for the input element and the for attribute of the associated\nlabel. If no ID is provided, a random one will be automatically generated\nto ensure unique identification, facilitating proper label association and\naccessibility."
381
+ },
382
+ "attribute": "input-id",
383
+ "reflect": true,
384
+ "defaultValue": "uuidv4()"
385
+ },
386
+ "label": {
387
+ "type": "string",
388
+ "mutable": false,
389
+ "complexType": {
390
+ "original": "string",
391
+ "resolved": "string",
392
+ "references": {}
393
+ },
394
+ "required": false,
395
+ "optional": false,
396
+ "docs": {
397
+ "tags": [],
398
+ "text": "Lets you define the text that explains what users should enter in the text\ninput field. It\u2019s a crucial element for making forms clear and\nuser-friendly."
399
+ },
400
+ "attribute": "label",
401
+ "reflect": true
402
+ },
403
+ "description": {
404
+ "type": "string",
405
+ "mutable": false,
406
+ "complexType": {
407
+ "original": "string",
408
+ "resolved": "string",
409
+ "references": {}
410
+ },
411
+ "required": false,
412
+ "optional": false,
413
+ "docs": {
414
+ "tags": [],
415
+ "text": "Add helpful hints or extra information under the text input field. This is\nwhere you can clarify what users should enter or provide additional\ninstructions, making the form easier to fill out correctly."
416
+ },
417
+ "attribute": "description",
418
+ "reflect": true
419
+ },
420
+ "placeholder": {
421
+ "type": "string",
422
+ "mutable": false,
423
+ "complexType": {
424
+ "original": "string",
425
+ "resolved": "string",
426
+ "references": {}
427
+ },
428
+ "required": false,
429
+ "optional": false,
430
+ "docs": {
431
+ "tags": [],
432
+ "text": "Display temporary text inside the input field to give users a hint about\nwhat to type. It\u2019s a great way to provide examples or suggestions directly\nin the field before they start typing.\nThe placeholder is displayed only when the filterable option is enabled."
433
+ },
434
+ "attribute": "placeholder",
435
+ "reflect": true
436
+ },
437
+ "name": {
438
+ "type": "string",
439
+ "mutable": false,
440
+ "complexType": {
441
+ "original": "string",
442
+ "resolved": "string",
443
+ "references": {}
444
+ },
445
+ "required": false,
446
+ "optional": false,
447
+ "docs": {
448
+ "tags": [],
449
+ "text": "Defines the name attribute of the input field, which is crucial for form\nsubmission. This value is used as the key in the key-value pair sent to\nthe server, representing the input\u2019s data in form submissions. It should be\nunique within the form to avoid conflicts."
450
+ },
451
+ "attribute": "name",
452
+ "reflect": true
453
+ },
454
+ "open": {
455
+ "type": "boolean",
456
+ "mutable": true,
457
+ "complexType": {
458
+ "original": "boolean",
459
+ "resolved": "boolean",
460
+ "references": {}
461
+ },
462
+ "required": false,
463
+ "optional": false,
464
+ "docs": {
465
+ "tags": [],
466
+ "text": "State of the dropdown popover."
467
+ },
468
+ "attribute": "open",
469
+ "reflect": true,
470
+ "defaultValue": "false"
471
+ },
472
+ "autocomplete": {
473
+ "type": "string",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "`${TextInputAutocomplete}`",
477
+ "resolved": "\"on\" | \"off\" | \"section-*\" | \"shipping\" | \"billing\" | \"home\" | \"work\" | \"mobile\" | \"fax\" | \"pager\" | \"tel\" | \"tel-country-code\" | \"tel-national\" | \"tel-area-code\" | \"tel-local\" | \"tel-local-prefix\" | \"tel-local-suffix\" | \"tel-extension\" | \"email\" | \"impp\" | \"name\" | \"honorific-prefix\" | \"given-name\" | \"additional-name\" | \"family-name\" | \"honorific-suffix\" | \"nickname\" | \"username\" | \"new-password\" | \"current-password\" | \"one-time-code\" | \"organization-title\" | \"organization\" | \"street-address\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"address-level4\" | \"address-level3\" | \"address-level2\" | \"address-level1\" | \"country\" | \"country-name\" | \"postal-code\" | \"cc-name\" | \"cc-given-name\" | \"cc-additional-name\" | \"cc-family-name\" | \"cc-number\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-csc\" | \"cc-type\" | \"transaction-currency\" | \"transaction-amount\" | \"language\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"sex\" | \"url\" | \"photo\"",
478
+ "references": {
479
+ "TextInputAutocomplete": {
480
+ "location": "import",
481
+ "path": "../../utils/constants",
482
+ "id": "src/utils/constants.ts::TextInputAutocomplete"
483
+ }
484
+ }
485
+ },
486
+ "required": false,
487
+ "optional": false,
488
+ "docs": {
489
+ "tags": [],
490
+ "text": "The autocomplete prop helps users fill out the input field faster by\nsuggesting entries they\u2019ve used before, like their email or address.\nYou can turn it on to make forms more convenient or off to ensure users\nalways type in fresh data."
491
+ },
492
+ "attribute": "autocomplete",
493
+ "reflect": true,
494
+ "defaultValue": "'off'"
495
+ },
496
+ "value": {
497
+ "type": "string",
498
+ "mutable": true,
499
+ "complexType": {
500
+ "original": "string",
501
+ "resolved": "string",
502
+ "references": {}
503
+ },
504
+ "required": false,
505
+ "optional": false,
506
+ "docs": {
507
+ "tags": [],
508
+ "text": "Specifies the value of the input field, which determines the text displayed\nwithin the field. This prop is typically used in controlled components\nwhere the input\u2019s value is managed by the component\u2019s state."
509
+ },
510
+ "attribute": "value",
511
+ "reflect": true
512
+ },
513
+ "required": {
514
+ "type": "boolean",
515
+ "mutable": false,
516
+ "complexType": {
517
+ "original": "boolean",
518
+ "resolved": "boolean",
519
+ "references": {}
520
+ },
521
+ "required": false,
522
+ "optional": false,
523
+ "docs": {
524
+ "tags": [],
525
+ "text": "Marks the input field as required, ensuring that the user must fill it out\nbefore submitting the form."
526
+ },
527
+ "attribute": "required",
528
+ "reflect": true,
529
+ "defaultValue": "false"
530
+ },
531
+ "error": {
532
+ "type": "boolean",
533
+ "mutable": false,
534
+ "complexType": {
535
+ "original": "boolean",
536
+ "resolved": "boolean",
537
+ "references": {}
538
+ },
539
+ "required": false,
540
+ "optional": false,
541
+ "docs": {
542
+ "tags": [{
543
+ "name": "validator",
544
+ "text": "error"
545
+ }],
546
+ "text": "Alters the input field\u2019s appearance to indicate an error, helping users\nidentify fields that need correction."
547
+ },
548
+ "attribute": "error",
549
+ "reflect": true,
550
+ "defaultValue": "false"
551
+ },
552
+ "errorDescription": {
553
+ "type": "string",
554
+ "mutable": false,
555
+ "complexType": {
556
+ "original": "string",
557
+ "resolved": "string",
558
+ "references": {}
559
+ },
560
+ "required": false,
561
+ "optional": false,
562
+ "docs": {
563
+ "tags": [{
564
+ "name": "validator",
565
+ "text": "message"
566
+ }],
567
+ "text": "A description that appears when there is an error related to the dropdown\nfield."
568
+ },
569
+ "attribute": "error-description",
570
+ "reflect": true
571
+ },
572
+ "readonly": {
573
+ "type": "boolean",
574
+ "mutable": false,
575
+ "complexType": {
576
+ "original": "boolean",
577
+ "resolved": "boolean",
578
+ "references": {}
579
+ },
580
+ "required": false,
581
+ "optional": false,
582
+ "docs": {
583
+ "tags": [],
584
+ "text": "Display the input field\u2019s content without allowing users to change it.\nUsers can still click on it, select, and copy the text, but they won\u2019t be\nable to type or delete anything."
585
+ },
586
+ "attribute": "readonly",
587
+ "reflect": true,
588
+ "defaultValue": "false"
589
+ },
590
+ "disabled": {
591
+ "type": "boolean",
592
+ "mutable": false,
593
+ "complexType": {
594
+ "original": "boolean",
595
+ "resolved": "boolean",
596
+ "references": {}
597
+ },
598
+ "required": false,
599
+ "optional": false,
600
+ "docs": {
601
+ "tags": [],
602
+ "text": "The disabled prop lets you turn off the input field so that users can\u2019t\ntype in it. When disabled, the field is grayed out and won\u2019t respond to\nclicks or touches."
603
+ },
604
+ "attribute": "disabled",
605
+ "reflect": true,
606
+ "defaultValue": "false"
607
+ },
608
+ "emptyresult": {
609
+ "type": "string",
610
+ "mutable": false,
611
+ "complexType": {
612
+ "original": "string",
613
+ "resolved": "string",
614
+ "references": {}
615
+ },
616
+ "required": false,
617
+ "optional": false,
618
+ "docs": {
619
+ "tags": [],
620
+ "text": "The text to display when no items match the filter."
621
+ },
622
+ "attribute": "emptyresult",
623
+ "reflect": true,
624
+ "defaultValue": "'No results found'"
625
+ },
626
+ "filterable": {
627
+ "type": "boolean",
628
+ "mutable": true,
629
+ "complexType": {
630
+ "original": "boolean",
631
+ "resolved": "boolean",
632
+ "references": {}
633
+ },
634
+ "required": false,
635
+ "optional": false,
636
+ "docs": {
637
+ "tags": [],
638
+ "text": "Enables or disables the filtering feature for the dropdown items."
639
+ },
640
+ "attribute": "filterable",
641
+ "reflect": true,
642
+ "defaultValue": "false"
643
+ }
644
+ };
645
+ }
646
+ static get states() {
647
+ return {
648
+ "filterText": {},
649
+ "isFilterable": {},
650
+ "selectedValues": {}
651
+ };
652
+ }
653
+ static get events() {
654
+ return [{
655
+ "method": "dropdownItemSelected",
656
+ "name": "dropdownItemSelected",
657
+ "bubbles": true,
658
+ "cancelable": true,
659
+ "composed": true,
660
+ "docs": {
661
+ "tags": [],
662
+ "text": "Event emitted when an item is selected."
663
+ },
664
+ "complexType": {
665
+ "original": "DropdownItemSelectedEventDetail",
666
+ "resolved": "DropdownItemSelectedEventDetail",
667
+ "references": {
668
+ "DropdownItemSelectedEventDetail": {
669
+ "location": "import",
670
+ "path": "../nv-fielddropdownitem/DropdownItemSelectedEventDetail",
671
+ "id": "src/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.tsx::DropdownItemSelectedEventDetail"
672
+ }
673
+ }
674
+ }
675
+ }, {
676
+ "method": "valueChanged",
677
+ "name": "valueChanged",
678
+ "bubbles": true,
679
+ "cancelable": true,
680
+ "composed": true,
681
+ "docs": {
682
+ "tags": [{
683
+ "name": "bind",
684
+ "text": "value"
685
+ }],
686
+ "text": "Emitted when the input value changes."
687
+ },
688
+ "complexType": {
689
+ "original": "string",
690
+ "resolved": "string",
691
+ "references": {}
692
+ }
693
+ }];
694
+ }
695
+ static get methods() {
696
+ return {
697
+ "getFilterText": {
698
+ "complexType": {
699
+ "signature": "() => Promise<string>",
700
+ "parameters": [],
701
+ "references": {
702
+ "Promise": {
703
+ "location": "global",
704
+ "id": "global::Promise"
705
+ }
706
+ },
707
+ "return": "Promise<string>"
708
+ },
709
+ "docs": {
710
+ "text": "Retrieves the current filter text entered by the user.",
711
+ "tags": [{
712
+ "name": "returns",
713
+ "text": "The filter text."
714
+ }]
715
+ }
716
+ }
717
+ };
718
+ }
719
+ static get elementRef() { return "el"; }
720
+ static get watchers() {
721
+ return [{
722
+ "propName": "filterable",
723
+ "methodName": "watchFilterableHandler"
724
+ }, {
725
+ "propName": "value",
726
+ "methodName": "watchValueHandler"
727
+ }];
728
+ }
729
+ static get listeners() {
730
+ return [{
731
+ "name": "itemSelected",
732
+ "method": "handleItemSelected",
733
+ "target": undefined,
734
+ "capture": false,
735
+ "passive": false
736
+ }, {
737
+ "name": "openChanged",
738
+ "method": "handleOpenChanged",
739
+ "target": undefined,
740
+ "capture": false,
741
+ "passive": false
742
+ }, {
743
+ "name": "keydown",
744
+ "method": "handleKeyDown",
745
+ "target": undefined,
746
+ "capture": false,
747
+ "passive": false
748
+ }];
749
+ }
750
+ }
751
+ //# sourceMappingURL=nv-fielddropdown.js.map