@esri/solutions-components 0.0.2 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @esri/solutions-components might be problematic. Click here for more details.

Files changed (892) hide show
  1. package/README.md +6 -5
  2. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
  3. package/dist/cjs/CalciteHeading-d765addc.js +0 -2
  4. package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
  5. package/dist/cjs/array-cd6c0c32.js +0 -2
  6. package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
  7. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
  8. package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
  9. package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
  10. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
  11. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
  12. package/dist/cjs/calcite-action.cjs.entry.js +0 -2
  13. package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
  14. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
  15. package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
  16. package/dist/cjs/calcite-block.cjs.entry.js +0 -2
  17. package/dist/cjs/calcite-button.cjs.entry.js +0 -2
  18. package/dist/cjs/calcite-card.cjs.entry.js +0 -2
  19. package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
  20. package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
  21. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
  22. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
  23. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
  24. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
  25. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
  26. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
  27. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
  28. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
  29. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
  30. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
  31. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
  32. package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
  33. package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
  34. package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
  35. package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
  36. package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
  37. package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
  38. package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
  39. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
  40. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
  41. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
  42. package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
  43. package/dist/cjs/calcite-label.cjs.entry.js +0 -2
  44. package/dist/cjs/calcite-link.cjs.entry.js +0 -2
  45. package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
  46. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
  47. package/dist/cjs/calcite-list.cjs.entry.js +0 -2
  48. package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
  49. package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
  50. package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
  51. package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
  52. package/dist/cjs/calcite-option.cjs.entry.js +0 -2
  53. package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
  54. package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
  55. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
  56. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
  57. package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
  58. package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
  59. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
  60. package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
  61. package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
  62. package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
  63. package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
  64. package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
  65. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
  66. package/dist/cjs/calcite-select.cjs.entry.js +0 -2
  67. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
  68. package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
  69. package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
  70. package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
  71. package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
  72. package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
  73. package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
  74. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
  75. package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
  76. package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
  77. package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
  78. package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
  79. package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
  80. package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
  81. package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
  82. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
  83. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
  84. package/dist/cjs/common-a4edb52d.js +216 -0
  85. package/dist/cjs/date-0554c4d1.js +0 -2
  86. package/dist/cjs/debounce-df22462b.js +0 -2
  87. package/dist/cjs/dom-62511f59.js +0 -2
  88. package/dist/cjs/editStore-36fc36e6.js +2024 -0
  89. package/dist/cjs/forIn-6a1c2f6d.js +0 -2
  90. package/dist/cjs/form-0b5b2d4e.js +0 -2
  91. package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
  92. package/dist/cjs/guid-c6be9504.js +0 -2
  93. package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
  94. package/dist/cjs/index-81c17948.js +0 -2
  95. package/dist/cjs/index.cjs.js +0 -2
  96. package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
  97. package/dist/cjs/key-2a6290c8.js +0 -2
  98. package/dist/cjs/label-46482470.js +0 -2
  99. package/dist/cjs/loader.cjs.js +1 -3
  100. package/dist/cjs/locale-0db34680.js +0 -2
  101. package/dist/cjs/math-71f8de66.js +0 -2
  102. package/dist/cjs/number-697ce34c.js +0 -2
  103. package/dist/cjs/observers-88bbd6ef.js +0 -2
  104. package/dist/cjs/popper-8c8dc960.js +0 -2
  105. package/dist/cjs/request-6905140c.js +550 -0
  106. package/dist/cjs/resources-20f88094.js +0 -2
  107. package/dist/cjs/resources-27c22d8a.js +0 -2
  108. package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
  109. package/dist/cjs/resources-46af0638.js +0 -2
  110. package/dist/cjs/resources-509951f9.js +0 -2
  111. package/dist/cjs/resources-5b7958e4.js +0 -2
  112. package/dist/cjs/resources-a265534b.js +0 -2
  113. package/dist/cjs/resources-e231446d.js +0 -2
  114. package/dist/cjs/resources-ef6c71a1.js +0 -2
  115. package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
  116. package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
  117. package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
  118. package/dist/cjs/solutions.cjs.js +1 -3
  119. package/dist/cjs/sortable.esm-14548a17.js +0 -2
  120. package/dist/cjs/store-manager.cjs.entry.js +17 -8
  121. package/dist/cjs/templates-a0242ced.js +422 -0
  122. package/dist/cjs/time-c87dc79e.js +0 -2
  123. package/dist/cjs/utils-c19d354a.js +0 -2
  124. package/dist/cjs/utils-cb7373e6.js +0 -2
  125. package/dist/collection/assets/nls/fr/strings.js +2 -0
  126. package/dist/collection/assets/nls/strings.js +2 -0
  127. package/dist/collection/collection-manifest.json +9 -9
  128. package/dist/collection/components/json-editor/json-editor.js +40 -2
  129. package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
  130. package/dist/collection/components/solution-contents/solution-contents.js +12 -3
  131. package/dist/collection/components/solution-item/solution-item.css +1 -0
  132. package/dist/collection/components/solution-item/solution-item.js +2 -2
  133. package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
  134. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
  135. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
  136. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
  137. package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
  138. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
  139. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
  140. package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
  141. package/dist/collection/components/solution-variables/solution-variables.js +2 -2
  142. package/dist/collection/components/store-manager/store-manager.js +49 -5
  143. package/dist/collection/demos/browse-solutions.html +136 -54
  144. package/dist/collection/demos/solution-configuration.html +139 -12
  145. package/dist/collection/demos/solution-spatial-ref.html +1 -1
  146. package/dist/collection/index.js +0 -1
  147. package/dist/collection/utils/common.js +25 -77
  148. package/dist/collection/utils/common.ts +42 -73
  149. package/dist/collection/utils/editStore.js +0 -1
  150. package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
  151. package/dist/collection/utils/interfaces.ts +126 -0
  152. package/dist/collection/utils/templates.js +8 -6
  153. package/dist/collection/utils/templates.ts +19 -33
  154. package/dist/custom-elements/index.js +3161 -152
  155. package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
  156. package/dist/esm/CalciteHeading-79b4b347.js +0 -2
  157. package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
  158. package/dist/esm/array-71e0c501.js +0 -2
  159. package/dist/esm/calcite-accordion-item.entry.js +0 -2
  160. package/dist/esm/calcite-accordion.entry.js +0 -2
  161. package/dist/esm/calcite-action-bar.entry.js +0 -2
  162. package/dist/esm/calcite-action-group.entry.js +0 -2
  163. package/dist/esm/calcite-action-menu_3.entry.js +0 -2
  164. package/dist/esm/calcite-action-pad.entry.js +0 -2
  165. package/dist/esm/calcite-action.entry.js +0 -2
  166. package/dist/esm/calcite-alert.entry.js +0 -2
  167. package/dist/esm/calcite-avatar.entry.js +0 -2
  168. package/dist/esm/calcite-block-section.entry.js +0 -2
  169. package/dist/esm/calcite-block.entry.js +0 -2
  170. package/dist/esm/calcite-button.entry.js +0 -2
  171. package/dist/esm/calcite-card.entry.js +0 -2
  172. package/dist/esm/calcite-checkbox_4.entry.js +0 -2
  173. package/dist/esm/calcite-chip.entry.js +0 -2
  174. package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
  175. package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
  176. package/dist/esm/calcite-color-picker.entry.js +3 -4
  177. package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
  178. package/dist/esm/calcite-combobox-item.entry.js +0 -2
  179. package/dist/esm/calcite-combobox.entry.js +0 -2
  180. package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
  181. package/dist/esm/calcite-date-picker.entry.js +0 -2
  182. package/dist/esm/calcite-dropdown-group.entry.js +0 -2
  183. package/dist/esm/calcite-dropdown-item.entry.js +0 -2
  184. package/dist/esm/calcite-dropdown.entry.js +0 -2
  185. package/dist/esm/calcite-fab.entry.js +0 -2
  186. package/dist/esm/calcite-filter.entry.js +0 -2
  187. package/dist/esm/calcite-flow.entry.js +0 -2
  188. package/dist/esm/calcite-graph.entry.js +0 -2
  189. package/dist/esm/calcite-handle.entry.js +0 -2
  190. package/dist/esm/calcite-icon.entry.js +0 -2
  191. package/dist/esm/calcite-inline-editable.entry.js +0 -2
  192. package/dist/esm/calcite-input-date-picker.entry.js +0 -2
  193. package/dist/esm/calcite-input-message.entry.js +0 -2
  194. package/dist/esm/calcite-input-time-picker.entry.js +0 -2
  195. package/dist/esm/calcite-input_2.entry.js +0 -2
  196. package/dist/esm/calcite-label.entry.js +0 -2
  197. package/dist/esm/calcite-link.entry.js +0 -2
  198. package/dist/esm/calcite-list-item-group.entry.js +0 -2
  199. package/dist/esm/calcite-list-item.entry.js +0 -2
  200. package/dist/esm/calcite-list.entry.js +0 -2
  201. package/dist/esm/calcite-loader.entry.js +0 -2
  202. package/dist/esm/calcite-modal.entry.js +0 -2
  203. package/dist/esm/calcite-notice.entry.js +0 -2
  204. package/dist/esm/calcite-option-group.entry.js +0 -2
  205. package/dist/esm/calcite-option.entry.js +0 -2
  206. package/dist/esm/calcite-pagination.entry.js +0 -2
  207. package/dist/esm/calcite-panel_14.entry.js +37 -4
  208. package/dist/esm/calcite-pick-list-group.entry.js +0 -2
  209. package/dist/esm/calcite-pick-list-item.entry.js +0 -2
  210. package/dist/esm/calcite-pick-list.entry.js +0 -2
  211. package/dist/esm/calcite-popover-manager.entry.js +0 -2
  212. package/dist/esm/calcite-radio-button-group.entry.js +0 -2
  213. package/dist/esm/calcite-radio-button.entry.js +0 -2
  214. package/dist/esm/calcite-radio-group-item.entry.js +0 -2
  215. package/dist/esm/calcite-radio-group.entry.js +0 -2
  216. package/dist/esm/calcite-radio.entry.js +0 -2
  217. package/dist/esm/calcite-rating.entry.js +0 -2
  218. package/dist/esm/calcite-scrim.entry.js +0 -2
  219. package/dist/esm/calcite-select.entry.js +0 -2
  220. package/dist/esm/calcite-shell-center-row.entry.js +0 -2
  221. package/dist/esm/calcite-slider.entry.js +0 -2
  222. package/dist/esm/calcite-sortable-list.entry.js +0 -2
  223. package/dist/esm/calcite-split-button.entry.js +0 -2
  224. package/dist/esm/calcite-stepper-item.entry.js +0 -2
  225. package/dist/esm/calcite-stepper.entry.js +0 -2
  226. package/dist/esm/calcite-switch.entry.js +0 -2
  227. package/dist/esm/calcite-tile-select-group.entry.js +0 -2
  228. package/dist/esm/calcite-tile-select.entry.js +0 -2
  229. package/dist/esm/calcite-tile.entry.js +0 -2
  230. package/dist/esm/calcite-time-picker.entry.js +0 -2
  231. package/dist/esm/calcite-tip-group.entry.js +0 -2
  232. package/dist/esm/calcite-tip-manager.entry.js +0 -2
  233. package/dist/esm/calcite-tip.entry.js +0 -2
  234. package/dist/esm/calcite-tooltip.entry.js +0 -2
  235. package/dist/esm/calcite-value-list-item.entry.js +0 -2
  236. package/dist/esm/calcite-value-list.entry.js +0 -2
  237. package/dist/esm/common-70333fb9.js +213 -0
  238. package/dist/esm/date-5d75460a.js +0 -2
  239. package/dist/esm/debounce-23ad5849.js +0 -2
  240. package/dist/esm/dom-1cc617ae.js +0 -2
  241. package/dist/esm/editStore-197be454.js +2022 -0
  242. package/dist/esm/forIn-c922d47c.js +0 -2
  243. package/dist/esm/form-636dfed1.js +0 -2
  244. package/dist/esm/generalHelpers-91e92dc0.js +161 -0
  245. package/dist/esm/guid-740f1f1a.js +0 -2
  246. package/dist/esm/index-a3c3e3db.js +0 -2
  247. package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
  248. package/dist/esm/index.js +0 -2
  249. package/dist/esm/interfaces-4f07beec.js +0 -2
  250. package/dist/esm/key-1748eb79.js +0 -2
  251. package/dist/esm/label-851f8926.js +0 -2
  252. package/dist/esm/loader.js +1 -3
  253. package/dist/esm/locale-31c8d43b.js +0 -2
  254. package/dist/esm/math-d8795f31.js +0 -2
  255. package/dist/esm/number-47ecb380.js +0 -2
  256. package/dist/esm/observers-b13ff24b.js +0 -2
  257. package/dist/esm/popper-25874f2f.js +0 -2
  258. package/dist/esm/request-9c2c9a49.js +548 -0
  259. package/dist/esm/resources-12c3b829.js +0 -2
  260. package/dist/esm/resources-32d7dd89.js +0 -2
  261. package/dist/esm/resources-466ccf86.js +0 -2
  262. package/dist/esm/resources-4cc0ef44.js +0 -2
  263. package/dist/esm/resources-861d0240.js +0 -2
  264. package/dist/esm/resources-b023c30a.js +0 -2
  265. package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
  266. package/dist/esm/resources-e56b6e53.js +0 -2
  267. package/dist/esm/resources-ec79cfd7.js +0 -2
  268. package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
  269. package/dist/esm/solution-configuration.entry.js +172 -14
  270. package/dist/esm/solution-contents_3.entry.js +42 -68
  271. package/dist/esm/solutions.js +1 -3
  272. package/dist/esm/sortable.esm-7856912e.js +0 -2
  273. package/dist/esm/store-manager.entry.js +17 -8
  274. package/dist/esm/templates-c15e0de2.js +414 -0
  275. package/dist/esm/time-a3b29c35.js +0 -2
  276. package/dist/esm/utils-021cb956.js +0 -2
  277. package/dist/esm/utils-5fdd203c.js +0 -2
  278. package/dist/solutions/assets/nls/fr/strings.js +2 -0
  279. package/dist/solutions/assets/nls/strings.js +2 -0
  280. package/dist/solutions/demos/browse-solutions.html +136 -54
  281. package/dist/solutions/demos/solution-configuration.html +139 -12
  282. package/dist/solutions/demos/solution-spatial-ref.html +1 -1
  283. package/dist/solutions/index.esm.js +0 -2
  284. package/dist/solutions/p-03c9247d.entry.js +10 -0
  285. package/dist/solutions/p-03da5f23.entry.js +6 -0
  286. package/dist/solutions/p-054256c8.entry.js +10 -0
  287. package/dist/solutions/p-05c73b7d.js +1 -2
  288. package/dist/solutions/p-06c2b347.entry.js +6 -0
  289. package/dist/solutions/p-09a06209.entry.js +6 -0
  290. package/dist/solutions/p-09e5283f.entry.js +6 -0
  291. package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
  292. package/dist/solutions/p-0b8525e2.js +1 -2
  293. package/dist/solutions/p-0bddf168.entry.js +10 -0
  294. package/dist/solutions/p-0dd00bd7.entry.js +6 -0
  295. package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
  296. package/dist/solutions/p-1345c0c8.js +6 -0
  297. package/dist/solutions/p-1387e8ef.entry.js +10 -0
  298. package/dist/solutions/p-17195493.entry.js +6 -0
  299. package/dist/solutions/p-172b8454.js +38 -0
  300. package/dist/solutions/p-173c3a97.entry.js +10 -0
  301. package/dist/solutions/p-175fe700.entry.js +6 -0
  302. package/dist/solutions/p-17f21116.entry.js +6 -0
  303. package/dist/solutions/p-18657c74.entry.js +10 -0
  304. package/dist/solutions/p-20c8a31e.entry.js +14 -0
  305. package/dist/solutions/p-228131f3.js +3 -3
  306. package/dist/solutions/p-2480c2c3.entry.js +10 -0
  307. package/dist/solutions/p-291cbb4f.js +1 -2
  308. package/dist/solutions/p-29d230fb.entry.js +6 -0
  309. package/dist/solutions/p-2de43402.entry.js +10 -0
  310. package/dist/solutions/p-2e1cd889.js +1 -2
  311. package/dist/solutions/p-386bc1f5.entry.js +10 -0
  312. package/dist/solutions/p-3956acc6.entry.js +6 -0
  313. package/dist/solutions/p-3ce922dd.js +20 -0
  314. package/dist/solutions/p-3e67ed97.js +1 -2
  315. package/dist/solutions/p-3eac2c21.entry.js +10 -0
  316. package/dist/solutions/p-3fd65329.entry.js +6 -0
  317. package/dist/solutions/p-41c2e1cc.js +1 -2
  318. package/dist/solutions/p-42f5b6d1.entry.js +10 -0
  319. package/dist/solutions/p-44e661a2.js +1 -2
  320. package/dist/solutions/p-4847f326.entry.js +10 -0
  321. package/dist/solutions/p-4a5b86a0.entry.js +10 -0
  322. package/dist/solutions/p-4f8cae93.entry.js +10 -0
  323. package/dist/solutions/p-51c9f2db.entry.js +10 -0
  324. package/dist/solutions/p-52d835be.entry.js +10 -0
  325. package/dist/solutions/p-55dddf06.entry.js +10 -0
  326. package/dist/solutions/p-56a376ea.entry.js +6 -0
  327. package/dist/solutions/p-57e5029a.entry.js +6 -0
  328. package/dist/solutions/p-58b7f4aa.entry.js +10 -0
  329. package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
  330. package/dist/solutions/p-5dd4cf97.entry.js +6 -0
  331. package/dist/solutions/p-5edf418e.entry.js +10 -0
  332. package/dist/solutions/p-64711824.entry.js +10 -0
  333. package/dist/solutions/p-68bf7243.entry.js +11 -0
  334. package/dist/solutions/p-7096464e.js +3 -4
  335. package/dist/solutions/p-720922e5.entry.js +10 -0
  336. package/dist/solutions/p-73e2d13f.js +1 -2
  337. package/dist/solutions/p-73e8d41c.entry.js +10 -0
  338. package/dist/solutions/p-7804ce97.js +1 -2
  339. package/dist/solutions/p-79064f42.entry.js +6 -0
  340. package/dist/solutions/p-7976d171.entry.js +6 -0
  341. package/dist/solutions/p-7a98627f.entry.js +10 -0
  342. package/dist/solutions/p-7aaed3f1.entry.js +10 -0
  343. package/dist/solutions/p-7cc9c6af.js +2 -7
  344. package/dist/solutions/p-7df393df.js +1 -2
  345. package/dist/solutions/p-7f93b2dd.entry.js +6 -0
  346. package/dist/solutions/p-82ab483b.entry.js +10 -0
  347. package/dist/solutions/p-8565f0c1.entry.js +10 -0
  348. package/dist/solutions/p-85cf288c.js +1 -2
  349. package/dist/solutions/p-8701d184.entry.js +10 -0
  350. package/dist/solutions/p-946521e1.js +2 -3
  351. package/dist/solutions/p-974d27a4.entry.js +10 -0
  352. package/dist/solutions/p-9c08ce38.entry.js +6 -0
  353. package/dist/solutions/p-9deb6df3.js +36 -0
  354. package/dist/solutions/p-9df9ac35.js +1 -2
  355. package/dist/solutions/p-9ed0c781.entry.js +6 -0
  356. package/dist/solutions/p-9f3fa133.entry.js +10 -0
  357. package/dist/solutions/p-a10dc180.js +1 -2
  358. package/dist/solutions/p-a201c2ea.entry.js +6 -0
  359. package/dist/solutions/p-a598cbb6.entry.js +10 -0
  360. package/dist/solutions/p-a59dfe85.entry.js +6 -0
  361. package/dist/solutions/p-a5fbf459.entry.js +11 -0
  362. package/dist/solutions/p-a6faf819.entry.js +10 -0
  363. package/dist/solutions/p-a8b4d400.entry.js +10 -0
  364. package/dist/solutions/p-a93a4772.entry.js +10 -0
  365. package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
  366. package/dist/solutions/p-a9df64c4.js +1 -2
  367. package/dist/solutions/p-aa11e35b.entry.js +10 -0
  368. package/dist/solutions/p-ae4a329c.entry.js +6 -0
  369. package/dist/solutions/p-af9be2ca.js +1 -2
  370. package/dist/solutions/p-b16a91ae.entry.js +6 -0
  371. package/dist/solutions/p-b5693287.entry.js +6 -0
  372. package/dist/solutions/p-b5bbe558.entry.js +10 -0
  373. package/dist/solutions/p-b81ebd54.entry.js +10 -0
  374. package/dist/solutions/p-b85c1b6a.entry.js +6 -0
  375. package/dist/solutions/p-bb3adfc7.entry.js +10 -0
  376. package/dist/solutions/p-c11b966c.entry.js +10 -0
  377. package/dist/solutions/p-c1e7f656.entry.js +6 -0
  378. package/dist/solutions/p-c27b17b8.entry.js +10 -0
  379. package/dist/solutions/p-c34e0641.js +1 -2
  380. package/dist/solutions/p-c5216bba.entry.js +10 -0
  381. package/dist/solutions/p-c8a69756.entry.js +10 -0
  382. package/dist/solutions/p-cb35cbb3.entry.js +6 -0
  383. package/dist/solutions/p-cb5cb9a8.js +1 -2
  384. package/dist/solutions/p-cef98db7.js +6 -0
  385. package/dist/solutions/p-d69bc5fd.entry.js +10 -0
  386. package/dist/solutions/p-de45b192.entry.js +6 -0
  387. package/dist/solutions/p-e4edca3b.js +1 -2
  388. package/dist/solutions/p-e581f631.js +1 -2
  389. package/dist/solutions/p-e762b2d1.js +3 -3
  390. package/dist/solutions/p-eb2efc0f.js +1 -2
  391. package/dist/solutions/p-ec178ea9.js +1 -2
  392. package/dist/solutions/p-ed17446f.entry.js +6 -0
  393. package/dist/solutions/p-edd6d948.entry.js +10 -0
  394. package/dist/solutions/p-ee6eca93.js +18 -0
  395. package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
  396. package/dist/solutions/p-f187755e.js +1 -2
  397. package/dist/solutions/p-f49bc4a8.js +1 -2
  398. package/dist/solutions/p-f75876eb.js +21 -0
  399. package/dist/solutions/p-f780039d.js +1 -2
  400. package/dist/solutions/p-fa58627d.entry.js +10 -0
  401. package/dist/solutions/p-fbdf3e06.js +2 -3
  402. package/dist/solutions/p-fc1c8168.js +3 -3
  403. package/dist/solutions/p-fd2712a3.entry.js +10 -0
  404. package/dist/solutions/solutions.esm.js +1 -2
  405. package/dist/solutions/utils/common.ts +42 -73
  406. package/dist/solutions/utils/interfaces.ts +126 -0
  407. package/dist/solutions/utils/templates.ts +19 -33
  408. package/dist/types/components/json-editor/json-editor.d.ts +11 -0
  409. package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
  410. package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
  411. package/dist/types/components/solution-item/solution-item.d.ts +1 -11
  412. package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
  413. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
  414. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
  415. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
  416. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
  417. package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
  418. package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
  419. package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
  420. package/dist/types/components/store-manager/store-manager.d.ts +9 -0
  421. package/dist/types/components.d.ts +49 -17
  422. package/dist/types/utils/common.d.ts +13 -38
  423. package/dist/types/utils/interfaces.d.ts +111 -0
  424. package/dist/types/utils/templates.d.ts +2 -25
  425. package/package.json +4 -3
  426. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
  427. package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
  428. package/dist/cjs/array-cd6c0c32.js.map +0 -1
  429. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
  430. package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
  431. package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
  432. package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
  433. package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
  434. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
  435. package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
  436. package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
  437. package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
  438. package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
  439. package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
  440. package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
  441. package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
  442. package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
  443. package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
  444. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
  445. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
  446. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
  447. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
  448. package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
  449. package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
  450. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
  451. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
  452. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
  453. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
  454. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
  455. package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
  456. package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
  457. package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
  458. package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
  459. package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
  460. package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
  461. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
  462. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
  463. package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
  464. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
  465. package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
  466. package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
  467. package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
  468. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
  469. package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
  470. package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
  471. package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
  472. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  473. package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
  474. package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
  475. package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
  476. package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
  477. package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
  478. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
  479. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
  480. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
  481. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
  482. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
  483. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
  484. package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
  485. package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
  486. package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
  487. package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
  488. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  489. package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
  490. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
  491. package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
  492. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
  493. package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
  494. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
  495. package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
  496. package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
  497. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
  498. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
  499. package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
  500. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
  501. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
  502. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
  503. package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
  504. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
  505. package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
  506. package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
  507. package/dist/cjs/common-df66d950.js +0 -53
  508. package/dist/cjs/common-df66d950.js.map +0 -1
  509. package/dist/cjs/date-0554c4d1.js.map +0 -1
  510. package/dist/cjs/debounce-df22462b.js.map +0 -1
  511. package/dist/cjs/dom-62511f59.js.map +0 -1
  512. package/dist/cjs/editStore-7a250b85.js +0 -227
  513. package/dist/cjs/editStore-7a250b85.js.map +0 -1
  514. package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
  515. package/dist/cjs/form-0b5b2d4e.js.map +0 -1
  516. package/dist/cjs/guid-c6be9504.js.map +0 -1
  517. package/dist/cjs/index-706750dc.js.map +0 -1
  518. package/dist/cjs/index-81c17948.js.map +0 -1
  519. package/dist/cjs/index.cjs.js.map +0 -1
  520. package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
  521. package/dist/cjs/key-2a6290c8.js.map +0 -1
  522. package/dist/cjs/label-46482470.js.map +0 -1
  523. package/dist/cjs/loader.cjs.js.map +0 -1
  524. package/dist/cjs/locale-0db34680.js.map +0 -1
  525. package/dist/cjs/math-71f8de66.js.map +0 -1
  526. package/dist/cjs/number-697ce34c.js.map +0 -1
  527. package/dist/cjs/observers-88bbd6ef.js.map +0 -1
  528. package/dist/cjs/popper-8c8dc960.js.map +0 -1
  529. package/dist/cjs/resources-20f88094.js.map +0 -1
  530. package/dist/cjs/resources-27c22d8a.js.map +0 -1
  531. package/dist/cjs/resources-369e7421.js.map +0 -1
  532. package/dist/cjs/resources-46af0638.js.map +0 -1
  533. package/dist/cjs/resources-509951f9.js.map +0 -1
  534. package/dist/cjs/resources-5b7958e4.js.map +0 -1
  535. package/dist/cjs/resources-a265534b.js.map +0 -1
  536. package/dist/cjs/resources-e231446d.js.map +0 -1
  537. package/dist/cjs/resources-ef6c71a1.js.map +0 -1
  538. package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
  539. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  540. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  541. package/dist/cjs/solutions.cjs.js.map +0 -1
  542. package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
  543. package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
  544. package/dist/cjs/templates-fe6dd431.js +0 -237
  545. package/dist/cjs/templates-fe6dd431.js.map +0 -1
  546. package/dist/cjs/time-c87dc79e.js.map +0 -1
  547. package/dist/cjs/utils-c19d354a.js.map +0 -1
  548. package/dist/cjs/utils-cb7373e6.js.map +0 -1
  549. package/dist/collection/components/json-editor/json-editor.js.map +0 -1
  550. package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
  551. package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
  552. package/dist/collection/components/solution-item/solution-item.js.map +0 -1
  553. package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
  554. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
  555. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
  556. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
  557. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
  558. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
  559. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
  560. package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
  561. package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
  562. package/dist/collection/components/store-manager/store-manager.js.map +0 -1
  563. package/dist/collection/index.js.map +0 -1
  564. package/dist/collection/utils/common.js.map +0 -1
  565. package/dist/collection/utils/editStore.js.map +0 -1
  566. package/dist/collection/utils/templates.js.map +0 -1
  567. package/dist/custom-elements/index.js.map +0 -1
  568. package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
  569. package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
  570. package/dist/esm/array-71e0c501.js.map +0 -1
  571. package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
  572. package/dist/esm/calcite-accordion.entry.js.map +0 -1
  573. package/dist/esm/calcite-action-bar.entry.js.map +0 -1
  574. package/dist/esm/calcite-action-group.entry.js.map +0 -1
  575. package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
  576. package/dist/esm/calcite-action-pad.entry.js.map +0 -1
  577. package/dist/esm/calcite-action.entry.js.map +0 -1
  578. package/dist/esm/calcite-alert.entry.js.map +0 -1
  579. package/dist/esm/calcite-avatar.entry.js.map +0 -1
  580. package/dist/esm/calcite-block-section.entry.js.map +0 -1
  581. package/dist/esm/calcite-block.entry.js.map +0 -1
  582. package/dist/esm/calcite-button.entry.js.map +0 -1
  583. package/dist/esm/calcite-card.entry.js.map +0 -1
  584. package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
  585. package/dist/esm/calcite-chip.entry.js.map +0 -1
  586. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
  587. package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
  588. package/dist/esm/calcite-color-picker.entry.js.map +0 -1
  589. package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
  590. package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
  591. package/dist/esm/calcite-combobox.entry.js.map +0 -1
  592. package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
  593. package/dist/esm/calcite-date-picker.entry.js.map +0 -1
  594. package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
  595. package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
  596. package/dist/esm/calcite-dropdown.entry.js.map +0 -1
  597. package/dist/esm/calcite-fab.entry.js.map +0 -1
  598. package/dist/esm/calcite-filter.entry.js.map +0 -1
  599. package/dist/esm/calcite-flow.entry.js.map +0 -1
  600. package/dist/esm/calcite-graph.entry.js.map +0 -1
  601. package/dist/esm/calcite-handle.entry.js.map +0 -1
  602. package/dist/esm/calcite-icon.entry.js.map +0 -1
  603. package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
  604. package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
  605. package/dist/esm/calcite-input-message.entry.js.map +0 -1
  606. package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
  607. package/dist/esm/calcite-input_2.entry.js.map +0 -1
  608. package/dist/esm/calcite-label.entry.js.map +0 -1
  609. package/dist/esm/calcite-link.entry.js.map +0 -1
  610. package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
  611. package/dist/esm/calcite-list-item.entry.js.map +0 -1
  612. package/dist/esm/calcite-list.entry.js.map +0 -1
  613. package/dist/esm/calcite-loader.entry.js.map +0 -1
  614. package/dist/esm/calcite-modal.entry.js.map +0 -1
  615. package/dist/esm/calcite-notice.entry.js.map +0 -1
  616. package/dist/esm/calcite-option-group.entry.js.map +0 -1
  617. package/dist/esm/calcite-option.entry.js.map +0 -1
  618. package/dist/esm/calcite-pagination.entry.js.map +0 -1
  619. package/dist/esm/calcite-panel_14.entry.js.map +0 -1
  620. package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
  621. package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
  622. package/dist/esm/calcite-pick-list.entry.js.map +0 -1
  623. package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
  624. package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
  625. package/dist/esm/calcite-radio-button.entry.js.map +0 -1
  626. package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
  627. package/dist/esm/calcite-radio-group.entry.js.map +0 -1
  628. package/dist/esm/calcite-radio.entry.js.map +0 -1
  629. package/dist/esm/calcite-rating.entry.js.map +0 -1
  630. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  631. package/dist/esm/calcite-select.entry.js.map +0 -1
  632. package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
  633. package/dist/esm/calcite-slider.entry.js.map +0 -1
  634. package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
  635. package/dist/esm/calcite-split-button.entry.js.map +0 -1
  636. package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
  637. package/dist/esm/calcite-stepper.entry.js.map +0 -1
  638. package/dist/esm/calcite-switch.entry.js.map +0 -1
  639. package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
  640. package/dist/esm/calcite-tile-select.entry.js.map +0 -1
  641. package/dist/esm/calcite-tile.entry.js.map +0 -1
  642. package/dist/esm/calcite-time-picker.entry.js.map +0 -1
  643. package/dist/esm/calcite-tip-group.entry.js.map +0 -1
  644. package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
  645. package/dist/esm/calcite-tip.entry.js.map +0 -1
  646. package/dist/esm/calcite-tooltip.entry.js.map +0 -1
  647. package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
  648. package/dist/esm/calcite-value-list.entry.js.map +0 -1
  649. package/dist/esm/common-ccccf04d.js +0 -50
  650. package/dist/esm/common-ccccf04d.js.map +0 -1
  651. package/dist/esm/date-5d75460a.js.map +0 -1
  652. package/dist/esm/debounce-23ad5849.js.map +0 -1
  653. package/dist/esm/dom-1cc617ae.js.map +0 -1
  654. package/dist/esm/editStore-30a293f5.js +0 -225
  655. package/dist/esm/editStore-30a293f5.js.map +0 -1
  656. package/dist/esm/forIn-c922d47c.js.map +0 -1
  657. package/dist/esm/form-636dfed1.js.map +0 -1
  658. package/dist/esm/guid-740f1f1a.js.map +0 -1
  659. package/dist/esm/index-934f242e.js.map +0 -1
  660. package/dist/esm/index-a3c3e3db.js.map +0 -1
  661. package/dist/esm/index.js.map +0 -1
  662. package/dist/esm/interfaces-4f07beec.js.map +0 -1
  663. package/dist/esm/key-1748eb79.js.map +0 -1
  664. package/dist/esm/label-851f8926.js.map +0 -1
  665. package/dist/esm/loader.js.map +0 -1
  666. package/dist/esm/locale-31c8d43b.js.map +0 -1
  667. package/dist/esm/math-d8795f31.js.map +0 -1
  668. package/dist/esm/number-47ecb380.js.map +0 -1
  669. package/dist/esm/observers-b13ff24b.js.map +0 -1
  670. package/dist/esm/popper-25874f2f.js.map +0 -1
  671. package/dist/esm/resources-12c3b829.js.map +0 -1
  672. package/dist/esm/resources-32d7dd89.js.map +0 -1
  673. package/dist/esm/resources-466ccf86.js.map +0 -1
  674. package/dist/esm/resources-4cc0ef44.js.map +0 -1
  675. package/dist/esm/resources-861d0240.js.map +0 -1
  676. package/dist/esm/resources-b023c30a.js.map +0 -1
  677. package/dist/esm/resources-c537bacb.js.map +0 -1
  678. package/dist/esm/resources-e56b6e53.js.map +0 -1
  679. package/dist/esm/resources-ec79cfd7.js.map +0 -1
  680. package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
  681. package/dist/esm/solution-configuration.entry.js.map +0 -1
  682. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  683. package/dist/esm/solutions.js.map +0 -1
  684. package/dist/esm/sortable.esm-7856912e.js.map +0 -1
  685. package/dist/esm/store-manager.entry.js.map +0 -1
  686. package/dist/esm/templates-3480c08e.js +0 -230
  687. package/dist/esm/templates-3480c08e.js.map +0 -1
  688. package/dist/esm/time-a3b29c35.js.map +0 -1
  689. package/dist/esm/utils-021cb956.js.map +0 -1
  690. package/dist/esm/utils-5fdd203c.js.map +0 -1
  691. package/dist/solutions/index.esm.js.map +0 -1
  692. package/dist/solutions/p-019fe34e.entry.js +0 -11
  693. package/dist/solutions/p-019fe34e.entry.js.map +0 -1
  694. package/dist/solutions/p-01d537aa.entry.js +0 -11
  695. package/dist/solutions/p-01d537aa.entry.js.map +0 -1
  696. package/dist/solutions/p-05c73b7d.js.map +0 -1
  697. package/dist/solutions/p-05da6de1.entry.js +0 -11
  698. package/dist/solutions/p-05da6de1.entry.js.map +0 -1
  699. package/dist/solutions/p-05eb87fc.entry.js +0 -11
  700. package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
  701. package/dist/solutions/p-07099311.entry.js.map +0 -1
  702. package/dist/solutions/p-07f15398.entry.js +0 -7
  703. package/dist/solutions/p-07f15398.entry.js.map +0 -1
  704. package/dist/solutions/p-093edbdc.entry.js +0 -11
  705. package/dist/solutions/p-093edbdc.entry.js.map +0 -1
  706. package/dist/solutions/p-0b8525e2.js.map +0 -1
  707. package/dist/solutions/p-0c91e100.js +0 -7
  708. package/dist/solutions/p-0c91e100.js.map +0 -1
  709. package/dist/solutions/p-0fcee724.entry.js +0 -7
  710. package/dist/solutions/p-0fcee724.entry.js.map +0 -1
  711. package/dist/solutions/p-17a2150d.entry.js +0 -11
  712. package/dist/solutions/p-17a2150d.entry.js.map +0 -1
  713. package/dist/solutions/p-1aaa9800.entry.js +0 -7
  714. package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
  715. package/dist/solutions/p-228131f3.js.map +0 -1
  716. package/dist/solutions/p-22d67647.entry.js +0 -11
  717. package/dist/solutions/p-22d67647.entry.js.map +0 -1
  718. package/dist/solutions/p-291cbb4f.js.map +0 -1
  719. package/dist/solutions/p-2a5c409a.entry.js +0 -7
  720. package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
  721. package/dist/solutions/p-2aca233c.entry.js +0 -11
  722. package/dist/solutions/p-2aca233c.entry.js.map +0 -1
  723. package/dist/solutions/p-2b6ef800.entry.js +0 -7
  724. package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
  725. package/dist/solutions/p-2bae730e.entry.js +0 -11
  726. package/dist/solutions/p-2bae730e.entry.js.map +0 -1
  727. package/dist/solutions/p-2d59c6d7.entry.js +0 -11
  728. package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
  729. package/dist/solutions/p-2e1cd889.js.map +0 -1
  730. package/dist/solutions/p-35eafdfb.entry.js +0 -11
  731. package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
  732. package/dist/solutions/p-372da016.entry.js +0 -7
  733. package/dist/solutions/p-372da016.entry.js.map +0 -1
  734. package/dist/solutions/p-37407f95.entry.js +0 -7
  735. package/dist/solutions/p-37407f95.entry.js.map +0 -1
  736. package/dist/solutions/p-3ae90cbb.entry.js +0 -7
  737. package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
  738. package/dist/solutions/p-3c3ccd03.entry.js +0 -11
  739. package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
  740. package/dist/solutions/p-3e168893.entry.js +0 -11
  741. package/dist/solutions/p-3e168893.entry.js.map +0 -1
  742. package/dist/solutions/p-3e67ed97.js.map +0 -1
  743. package/dist/solutions/p-3ed5096e.entry.js +0 -11
  744. package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
  745. package/dist/solutions/p-41c2e1cc.js.map +0 -1
  746. package/dist/solutions/p-44e661a2.js.map +0 -1
  747. package/dist/solutions/p-4573d7c2.js.map +0 -1
  748. package/dist/solutions/p-4635ae4a.entry.js +0 -11
  749. package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
  750. package/dist/solutions/p-46bcadbd.entry.js +0 -11
  751. package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
  752. package/dist/solutions/p-4b0b2534.entry.js +0 -11
  753. package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
  754. package/dist/solutions/p-51e4c002.entry.js +0 -7
  755. package/dist/solutions/p-51e4c002.entry.js.map +0 -1
  756. package/dist/solutions/p-520d8443.entry.js +0 -11
  757. package/dist/solutions/p-520d8443.entry.js.map +0 -1
  758. package/dist/solutions/p-591d5666.entry.js +0 -11
  759. package/dist/solutions/p-591d5666.entry.js.map +0 -1
  760. package/dist/solutions/p-5aff6fc3.entry.js +0 -11
  761. package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
  762. package/dist/solutions/p-5c95f5ee.entry.js +0 -11
  763. package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
  764. package/dist/solutions/p-606933f1.entry.js +0 -11
  765. package/dist/solutions/p-606933f1.entry.js.map +0 -1
  766. package/dist/solutions/p-62464fb3.entry.js +0 -11
  767. package/dist/solutions/p-62464fb3.entry.js.map +0 -1
  768. package/dist/solutions/p-6e970d4c.entry.js +0 -7
  769. package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
  770. package/dist/solutions/p-6f861da6.entry.js +0 -11
  771. package/dist/solutions/p-6f861da6.entry.js.map +0 -1
  772. package/dist/solutions/p-7096464e.js.map +0 -1
  773. package/dist/solutions/p-73e2d13f.js.map +0 -1
  774. package/dist/solutions/p-745f85bf.entry.js +0 -11
  775. package/dist/solutions/p-745f85bf.entry.js.map +0 -1
  776. package/dist/solutions/p-7480bdae.entry.js +0 -7
  777. package/dist/solutions/p-7480bdae.entry.js.map +0 -1
  778. package/dist/solutions/p-7611d9ad.entry.js +0 -11
  779. package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
  780. package/dist/solutions/p-77b056db.entry.js +0 -7
  781. package/dist/solutions/p-77b056db.entry.js.map +0 -1
  782. package/dist/solutions/p-7804ce97.js.map +0 -1
  783. package/dist/solutions/p-7cc15662.entry.js +0 -15
  784. package/dist/solutions/p-7cc15662.entry.js.map +0 -1
  785. package/dist/solutions/p-7cc9c6af.js.map +0 -1
  786. package/dist/solutions/p-7d84c932.entry.js +0 -11
  787. package/dist/solutions/p-7d84c932.entry.js.map +0 -1
  788. package/dist/solutions/p-7df393df.js.map +0 -1
  789. package/dist/solutions/p-7f49ef40.entry.js +0 -11
  790. package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
  791. package/dist/solutions/p-7f5c2987.entry.js +0 -7
  792. package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
  793. package/dist/solutions/p-7fd90af2.entry.js +0 -11
  794. package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
  795. package/dist/solutions/p-815449b1.entry.js +0 -11
  796. package/dist/solutions/p-815449b1.entry.js.map +0 -1
  797. package/dist/solutions/p-819aff56.entry.js +0 -11
  798. package/dist/solutions/p-819aff56.entry.js.map +0 -1
  799. package/dist/solutions/p-85cf288c.js.map +0 -1
  800. package/dist/solutions/p-87d812ce.entry.js +0 -7
  801. package/dist/solutions/p-87d812ce.entry.js.map +0 -1
  802. package/dist/solutions/p-8b616d33.entry.js +0 -7
  803. package/dist/solutions/p-8b616d33.entry.js.map +0 -1
  804. package/dist/solutions/p-8efca26d.entry.js +0 -7
  805. package/dist/solutions/p-8efca26d.entry.js.map +0 -1
  806. package/dist/solutions/p-946521e1.js.map +0 -1
  807. package/dist/solutions/p-970f1072.js +0 -22
  808. package/dist/solutions/p-970f1072.js.map +0 -1
  809. package/dist/solutions/p-9a953609.entry.js +0 -11
  810. package/dist/solutions/p-9a953609.entry.js.map +0 -1
  811. package/dist/solutions/p-9b381784.entry.js +0 -11
  812. package/dist/solutions/p-9b381784.entry.js.map +0 -1
  813. package/dist/solutions/p-9dad5583.entry.js +0 -11
  814. package/dist/solutions/p-9dad5583.entry.js.map +0 -1
  815. package/dist/solutions/p-9df9ac35.js.map +0 -1
  816. package/dist/solutions/p-9ee74ad4.entry.js +0 -7
  817. package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
  818. package/dist/solutions/p-9fab6046.entry.js +0 -22
  819. package/dist/solutions/p-9fab6046.entry.js.map +0 -1
  820. package/dist/solutions/p-9fc06fc3.entry.js +0 -15
  821. package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
  822. package/dist/solutions/p-a10dc180.js.map +0 -1
  823. package/dist/solutions/p-a1c40865.entry.js +0 -11
  824. package/dist/solutions/p-a1c40865.entry.js.map +0 -1
  825. package/dist/solutions/p-a3b16f15.entry.js +0 -7
  826. package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
  827. package/dist/solutions/p-a7906d52.entry.js +0 -11
  828. package/dist/solutions/p-a7906d52.entry.js.map +0 -1
  829. package/dist/solutions/p-a8a106f7.entry.js +0 -7
  830. package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
  831. package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
  832. package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
  833. package/dist/solutions/p-a98c5d29.entry.js +0 -11
  834. package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
  835. package/dist/solutions/p-a9df64c4.js.map +0 -1
  836. package/dist/solutions/p-ad54d2e2.entry.js +0 -11
  837. package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
  838. package/dist/solutions/p-adf3704d.entry.js +0 -11
  839. package/dist/solutions/p-adf3704d.entry.js.map +0 -1
  840. package/dist/solutions/p-af46b00f.entry.js +0 -11
  841. package/dist/solutions/p-af46b00f.entry.js.map +0 -1
  842. package/dist/solutions/p-af9be2ca.js.map +0 -1
  843. package/dist/solutions/p-b797d79b.entry.js +0 -23
  844. package/dist/solutions/p-b797d79b.entry.js.map +0 -1
  845. package/dist/solutions/p-c09fc04d.entry.js +0 -11
  846. package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
  847. package/dist/solutions/p-c11f84d9.entry.js +0 -11
  848. package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
  849. package/dist/solutions/p-c195dbb7.entry.js +0 -7
  850. package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
  851. package/dist/solutions/p-c34e0641.js.map +0 -1
  852. package/dist/solutions/p-c5428bbc.entry.js +0 -11
  853. package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
  854. package/dist/solutions/p-cb5cb9a8.js.map +0 -1
  855. package/dist/solutions/p-ce3e9060.entry.js +0 -11
  856. package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
  857. package/dist/solutions/p-d132d8ad.entry.js +0 -7
  858. package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
  859. package/dist/solutions/p-d320e3a2.entry.js +0 -7
  860. package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
  861. package/dist/solutions/p-d70ef015.entry.js +0 -11
  862. package/dist/solutions/p-d70ef015.entry.js.map +0 -1
  863. package/dist/solutions/p-e4edca3b.js.map +0 -1
  864. package/dist/solutions/p-e581f631.js.map +0 -1
  865. package/dist/solutions/p-e65a8700.entry.js +0 -11
  866. package/dist/solutions/p-e65a8700.entry.js.map +0 -1
  867. package/dist/solutions/p-e762b2d1.js.map +0 -1
  868. package/dist/solutions/p-eb2efc0f.js.map +0 -1
  869. package/dist/solutions/p-ec178ea9.js.map +0 -1
  870. package/dist/solutions/p-ecbfddde.js.map +0 -1
  871. package/dist/solutions/p-eceb11d1.js +0 -22
  872. package/dist/solutions/p-eceb11d1.js.map +0 -1
  873. package/dist/solutions/p-ede2beab.entry.js +0 -7
  874. package/dist/solutions/p-ede2beab.entry.js.map +0 -1
  875. package/dist/solutions/p-f0a6135d.entry.js +0 -11
  876. package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
  877. package/dist/solutions/p-f187755e.js.map +0 -1
  878. package/dist/solutions/p-f3c6b68d.entry.js +0 -7
  879. package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
  880. package/dist/solutions/p-f49bc4a8.js.map +0 -1
  881. package/dist/solutions/p-f6e8ee98.entry.js +0 -7
  882. package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
  883. package/dist/solutions/p-f780039d.js.map +0 -1
  884. package/dist/solutions/p-fa40e7e7.entry.js +0 -7
  885. package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
  886. package/dist/solutions/p-fb25fc4a.entry.js +0 -7
  887. package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
  888. package/dist/solutions/p-fbdf3e06.js.map +0 -1
  889. package/dist/solutions/p-fc1c8168.js.map +0 -1
  890. package/dist/solutions/p-ff3697a9.entry.js +0 -7
  891. package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
  892. package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as e,H as s,g as a}from"./p-2e1cd889.js";import{a as n,S as o,d as r}from"./p-eb2efc0f.js";import{i as c,f as h}from"./p-e581f631.js";import{a as l}from"./p-e762b2d1.js";import{g as p}from"./p-7df393df.js";import{u as d,c as u,C as m}from"./p-fc1c8168.js";import{g as f}from"./p-ec178ea9.js";import{C as b,g,a as v,h as x,b as w,c as y,d as C}from"./p-228131f3.js";import{c as k,d as I,g as H}from"./p-cb5cb9a8.js";import{c as A,a as D,d as E,H as j}from"./p-0b8525e2.js";import{c as L}from"./p-a10dc180.js";function z(t,i){var e=-1,s=t==null?0:t.length,a=Array(s);while(++e<s){a[e]=i(t[e],e,t)}return a}var _=1/0;var M=o?o.prototype:undefined,$=M?M.toString:undefined;function P(t){if(typeof t=="string"){return t}if(c(t)){return z(t,P)+""}if(n(t)){return $?$.call(t):""}var i=t+"";return i=="0"&&1/t==-_?"-0":i}function S(t){return t==null?"":P(t)}var F=/[\\^$.*+?()[\]{}|]/g,T=RegExp(F.source);function O(t){t=S(t);return t&&T.test(t)?t.replace(F,"\\$&"):t}
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const R=(t,i)=>{const e=O(i);const s=new RegExp(e,"i");if(t.length===0){console.warn(`No data was passed to the filter function.\n The data argument should be an array of objects`)}const a=(t,i)=>{var e;if((e=t)===null||e===void 0?void 0:e.constant){return true}let s=false;h(t,(t=>{if(typeof t==="function"){return}if(Array.isArray(t)||typeof t==="object"&&t!==null){if(a(t,i)){s=true}}else if(i.test(t)){s=true}}));return s};const n=t.filter((t=>a(t,s)));return n};const B="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:relative}:host([disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input{flex-grow:1;font-family:inherit;padding:0;background-color:transparent;border-style:none;color:var(--calcite-ui-text-1);-webkit-appearance:none;appearance:none;font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0;margin-top:0;padding:0}.wrapper--active .input-single{cursor:text}.input--hidden{width:0;min-width:0;opacity:0;pointer-events:none}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:flex;flex-grow:1}.input-wrap--single{flex:1 1 auto;overflow:hidden}.label{padding:0;display:flex;font-weight:var(--calcite-font-weight-normal);flex:1 1 auto;pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0;padding-bottom:0;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{cursor:pointer;display:flex;align-items:center;width:1rem}.icon-end{flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;transition:var(--calcite-popper-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{overflow-y:auto;max-height:100vh;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{display:block;margin:0;padding:0}.list--hide{height:0;overflow:hidden}.chip{margin:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) var(--calcite-combobox-item-spacing-unit-s) calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-child{margin-right:0}.chip--rtl{margin-right:unset;margin-left:var(--calcite-combobox-item-spacing-unit-l)}.chip--rtl:last-child{margin-left:0}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const N=t=>t.tagName===y;let X=class{constructor(e){t(this,e);this.calciteLookupChange=i(this,"calciteLookupChange",7);this.calciteComboboxChange=i(this,"calciteComboboxChange",7);this.calciteComboboxFilterChange=i(this,"calciteComboboxFilterChange",7);this.calciteComboboxChipDismiss=i(this,"calciteComboboxChipDismiss",7);this.calciteComboboxOpen=i(this,"calciteComboboxOpen",7);this.calciteComboboxClose=i(this,"calciteComboboxClose",7);this.active=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.required=false;this.selectionMode="multi";this.scale="m";this.value=null;this.internalValueChangeFlag=false;this.items=[];this.groupItems=[];this.selectedItems=[];this.visibleItems=[];this.hideList=!this.active;this.activeItemIndex=-1;this.activeChipIndex=-1;this.activeDescendant="";this.text="";this.open=this.active;this.maxScrollerHeight=0;this.textInput=null;this.mutationObserver=L("mutation",(()=>this.updateItems()));this.guid=f();this.inputHeight=0;this.ignoreSelectedEventsFlag=false;this.activeTransitionProp="opacity";this.getValue=()=>{const t=this.selectedItems.map((t=>t===null||t===void 0?void 0:t.value.toString()));return(t===null||t===void 0?void 0:t.length)?t.length>1?t:t[0]:""};this.onLabelClick=()=>{this.setFocus()};this.keydownHandler=t=>{const i=p(t.key,l(this.el));switch(i){case"Tab":this.activeChipIndex=-1;this.activeItemIndex=-1;if(this.allowCustomValues&&this.text){this.addCustomChip(this.text,true);t.preventDefault()}else{this.active=false}break;case"ArrowLeft":this.previousChip();break;case"ArrowRight":this.nextChip();break;case"ArrowUp":t.preventDefault();this.active=true;this.shiftActiveItemIndex(-1);break;case"ArrowDown":t.preventDefault();this.active=true;this.shiftActiveItemIndex(1);break;case"Home":this.active=true;this.updateActiveItemIndex(0);break;case"End":this.active=true;this.updateActiveItemIndex(this.visibleItems.length-1);break;case"Escape":this.active=false;break;case"Enter":if(this.activeItemIndex>-1){this.toggleSelection(this.visibleItems[this.activeItemIndex])}else if(this.activeChipIndex>-1){this.removeActiveChip()}else if(this.allowCustomValues&&this.text){this.addCustomChip(this.text,true)}break;case"Delete":case"Backspace":if(this.activeChipIndex>-1){this.removeActiveChip()}else if(!this.text&&this.isMulti()){this.removeLastChip()}break;default:if(!this.active){this.setFocus()}break}};this.toggleCloseEnd=()=>{this.hideList=true;this.el.removeEventListener("calciteComboboxClose",this.toggleCloseEnd)};this.toggleOpenEnd=()=>{this.hideList=false;this.el.removeEventListener("calciteComboboxOpen",this.toggleOpenEnd)};this.transitionEnd=t=>{if(t.propertyName===this.activeTransitionProp){this.active?this.calciteComboboxOpen.emit():this.calciteComboboxClose.emit()}};this.setMaxScrollerHeight=()=>{if(this.active){this.maxScrollerHeight=this.getMaxScrollerHeight(this.getCombinedItems())}};this.calciteChipDismissHandler=(t,i)=>{this.active=false;const e=this.items.find((t=>t===i));if(e){this.toggleSelection(e,false)}this.calciteComboboxChipDismiss.emit(t.detail)};this.setFocusClick=t=>{if(t.composedPath().some((t=>t.tagName==="CALCITE-CHIP"))){return}this.setFocus()};this.setInactiveIfNotContained=t=>{const i=t.composedPath();if(!this.active||i.includes(this.el)||i.includes(this.referenceEl)){return}if(this.allowCustomValues&&this.text){this.addCustomChip(this.text)}if(this.selectionMode==="single"){if(this.textInput){this.textInput.value=""}this.text="";this.filterItems("");this.updateActiveItemIndex(-1)}this.active=false};this.setMenuEl=t=>{this.menuEl=t};this.setListContainerEl=t=>{this.listContainerEl=t};this.setReferenceEl=t=>{this.referenceEl=t};this.inputHandler=t=>{const i=t.target.value;this.text=i;this.filterItems(i);if(i){this.activeChipIndex=-1}};this.filterItems=(()=>{const t=(t,i)=>t&&i.some((({label:i,value:e})=>{if(N(t)){return e===t.label||e===t.label}return e===t.textLabel||e===t.value||i===t.textLabel||i===t.value}));return r((i=>{const e=R(this.data,i);const s=this.getCombinedItems();s.forEach((i=>{const s=!t(i,e);i.hidden=s;const[a,n]=i.ancestors;if(t(a,e)||t(n,e)){i.hidden=false}if(!s){i.ancestors.forEach((t=>t.hidden=false))}}));this.visibleItems=this.getVisibleItems();this.calciteComboboxFilterChange.emit({visibleItems:[...this.visibleItems],text:i})}),100)})();this.internalCalciteLookupChangeEvent=()=>{this.calciteLookupChange.emit(this.selectedItems)};this.emitCalciteLookupChange=r(this.internalCalciteLookupChangeEvent,0);this.internalComboboxChangeEvent=()=>{const{selectedItems:t}=this;this.calciteComboboxChange.emit({selectedItems:t})};this.emitComboboxChange=r(this.internalComboboxChangeEvent,0);this.updateItems=()=>{this.items=this.getItems();this.groupItems=this.getGroupItems();this.data=this.getData();this.selectedItems=this.getSelectedItems();this.visibleItems=this.getVisibleItems();this.needsIcon=this.getNeedsIcon();if(!this.allowCustomValues){this.setMaxScrollerHeight()}};this.comboboxFocusHandler=()=>{var t;this.active=true;(t=this.textInput)===null||t===void 0?void 0:t.focus()};this.comboboxBlurHandler=t=>{this.setInactiveIfNotContained(t)}}activeHandler(t,i){if(i&&!t){this.el.addEventListener("calciteComboboxClose",this.toggleCloseEnd);this.open=false}else if(!i&&t){this.el.addEventListener("calciteComboboxOpen",this.toggleOpenEnd);requestAnimationFrame((()=>{this.reposition();this.setMaxScrollerHeight();this.open=true}))}this.reposition();this.setMaxScrollerHeight()}maxItemsHandler(){this.setMaxScrollerHeight()}valueHandler(t){if(!this.internalValueChangeFlag){const i=this.getItems();if(Array.isArray(t)){i.forEach((i=>i.selected=t.includes(i.value)))}else if(t){i.forEach((i=>i.selected=t===i.value))}else{i.forEach((t=>t.selected=false))}this.updateItems()}}documentClickHandler(t){this.setInactiveIfNotContained(t)}calciteComboboxItemChangeHandler(t){if(this.ignoreSelectedEventsFlag){return}const i=t.target;this.toggleSelection(i,i.selected)}async reposition(){const{popper:t,menuEl:i}=this;const e=this.getModifiers();t?await d({el:i,modifiers:e,placement:C,popper:t}):this.createPopper()}async setFocus(){var t;this.active=true;(t=this.textInput)===null||t===void 0?void 0:t.focus();this.activeChipIndex=-1;this.activeItemIndex=-1}connectedCallback(){var t;this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.createPopper();k(this);A(this)}componentWillLoad(){this.updateItems()}componentDidLoad(){D(this,this.getValue())}componentDidRender(){if(this.el.offsetHeight!==this.inputHeight){this.reposition();this.inputHeight=this.el.offsetHeight}}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper();I(this);E(this)}selectedItemsHandler(){this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false}textHandler(){this.updateActiveItemIndex(-1)}getModifiers(){const t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]}createPopper(){this.destroyPopper();const{menuEl:t,referenceEl:i,overlayPositioning:e}=this;const s=this.getModifiers();this.popper=u({el:t,modifiers:s,overlayPositioning:e,placement:C,referenceEl:i})}destroyPopper(){const{popper:t}=this;if(t){t.destroy()}this.popper=null}getMaxScrollerHeight(t){const{maxItems:i}=this;let e=0;let s=0;t.forEach((t=>{if(e<i&&i>0){const i=this.calculateSingleItemHeight(t);if(i>0){s+=i;e++}}}));return s}calculateSingleItemHeight(t){let i=t.offsetHeight;const e=Array.from(t.querySelectorAll(b));e.map((t=>t===null||t===void 0?void 0:t.offsetHeight)).forEach((t=>{i-=t}));return i}getCombinedItems(){return[...this.groupItems,...this.items]}toggleSelection(t,i=!t.selected){if(!t){return}if(this.isMulti()){t.selected=i;this.updateAncestors(t);this.selectedItems=this.getSelectedItems();this.emitCalciteLookupChange();this.emitComboboxChange();this.resetText();this.filterItems("")}else{this.ignoreSelectedEventsFlag=true;this.items.forEach((e=>e.selected=e===t?i:false));this.ignoreSelectedEventsFlag=false;this.selectedItems=this.getSelectedItems();this.emitComboboxChange();if(this.textInput){this.textInput.value=t.textLabel}this.active=false;this.updateActiveItemIndex(-1);this.resetText();this.filterItems("")}}updateAncestors(t){if(this.selectionMode!=="ancestors"){return}const i=g(t);const e=v(t);if(t.selected){i.forEach((t=>{t.selected=true}))}else{e.forEach((t=>t.selected=false));[...i].forEach((t=>{if(!x(t)){t.selected=false}}))}}getVisibleItems(){return this.items.filter((t=>!t.hidden))}getSelectedItems(){return!this.isMulti()?[this.items.find((t=>t.selected))]:this.items.filter((t=>t.selected&&(this.selectionMode!=="ancestors"||!x(t)))).sort(((t,i)=>{const e=this.selectedItems.indexOf(t);const s=this.selectedItems.indexOf(i);if(e>-1&&s>-1){return e-s}return s-e}))}getData(){return this.items.map((t=>({constant:t.constant,value:t.value,label:t.textLabel,guid:t.guid})))}getNeedsIcon(){return this.selectionMode==="single"&&this.items.some((t=>t.icon))}resetText(){if(this.textInput){this.textInput.value=""}this.text=""}getItems(){const t=Array.from(this.el.querySelectorAll(w));return t.filter((t=>!t.disabled))}getGroupItems(){return Array.from(this.el.querySelectorAll(y))}addCustomChip(t,i){const e=this.items.find((i=>i.textLabel===t));if(e){this.toggleSelection(e,true)}else{const e=document.createElement(w);e.value=t;e.textLabel=t;e.guid=f();e.selected=true;this.el.appendChild(e);this.resetText();if(i){this.setFocus()}this.updateItems();this.filterItems("");this.emitCalciteLookupChange();this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],false);this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false);this.setFocus()}previousChip(){if(this.text){return}const t=this.selectedItems.length-1;const i=this.activeChipIndex;this.activeChipIndex=i===-1?t:Math.max(i-1,0);this.updateActiveItemIndex(-1);this.focusChip()}nextChip(){if(this.text||this.activeChipIndex===-1){return}const t=this.selectedItems.length-1;const i=this.activeChipIndex+1;if(i>t){this.activeChipIndex=-1;this.setFocus()}else{this.activeChipIndex=i;this.focusChip()}this.updateActiveItemIndex(-1)}focusChip(){var t;const i=(t=this.selectedItems[this.activeChipIndex])===null||t===void 0?void 0:t.guid;const e=this.referenceEl.querySelector(`#chip-${i}`);e===null||e===void 0?void 0:e.setFocus()}shiftActiveItemIndex(t){const i=this.visibleItems.length;const e=(this.activeItemIndex+i+t)%i;this.updateActiveItemIndex(e);const s=this.visibleItems[this.activeItemIndex];const a=this.calculateSingleItemHeight(s);const{offsetHeight:n,scrollTop:o}=this.listContainerEl;if(n+o<s.offsetTop+a){this.listContainerEl.scrollTop=s.offsetTop-n+a}else if(s.offsetTop<o){this.listContainerEl.scrollTop=s.offsetTop}}updateActiveItemIndex(t){var i;this.activeItemIndex=t;let e=null;this.visibleItems.forEach(((i,s)=>{if(s===t){i.active=true;e=i.guid}else{i.active=false}}));this.activeDescendant=e;if(this.activeItemIndex>-1){this.activeChipIndex=-1;(i=this.textInput)===null||i===void 0?void 0:i.focus()}}isMulti(){return this.selectionMode!=="single"}renderChips(){const{activeChipIndex:t,scale:i,selectionMode:s,el:a}=this;const n=l(a);return this.selectedItems.map(((a,o)=>{const r={chip:true,"chip--active":t===o,"chip--rtl":n==="rtl"};const c=[...g(a)].reverse();const h=[...c,a].map((t=>t.textLabel));const l=s!=="ancestors"?a.textLabel:h.join(" / ");return e("calcite-chip",{"aria-label":l,class:r,dismissLabel:"remove tag",dismissible:true,icon:a.icon,id:`chip-${a.guid}`,key:a.textLabel,onCalciteChipDismiss:t=>this.calciteChipDismissHandler(t,a),scale:i,title:l,value:a.value},l)}))}renderInput(){const{active:t,disabled:i,placeholder:s,selectionMode:a,needsIcon:n,selectedItems:o}=this;const r=a==="single";const c=o[0];const h=!t&&r&&!!c;return e("span",{class:{"input-wrap":true,"input-wrap--single":r}},h&&e("span",{class:{label:true,"label--spaced":n},key:"label",onFocus:this.comboboxFocusHandler,tabindex:"0"},c.textLabel),e("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":f,"aria-label":H(this),class:{input:true,"input--single":true,"input--transparent":this.activeChipIndex>-1,"input--hidden":h,"input--icon":r&&n},disabled:i,id:`${f}-input`,key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:s,ref:t=>this.textInput=t,type:"text"}))}renderListBoxOptions(){return this.visibleItems.map((t=>e("li",{"aria-selected":(!!t.selected).toString(),id:t.guid,role:"option",tabindex:"-1"},t.textLabel)))}renderPopperContainer(){const{active:t,maxScrollerHeight:i,setMenuEl:s,setListContainerEl:a,hideList:n,open:o}=this;const r={"list-container":true,[m.animation]:true,[m.animationActive]:t};const c={maxHeight:i>0?`${i}px`:""};return e("div",{"aria-hidden":"true",class:{"popper-container":true,"popper-container--active":o},ref:s},e("div",{class:r,onTransitionEnd:this.transitionEnd,ref:a,style:c},e("ul",{class:{list:true,"list--hide":n}},e("slot",null))))}renderIconStart(){const{selectionMode:t,needsIcon:i,selectedItems:s}=this;const a=s[0];return t==="single"&&i&&e("span",{class:"icon-start"},(a===null||a===void 0?void 0:a.icon)&&e("calcite-icon",{class:"selected-icon",icon:a.icon,scale:"s"}))}renderIconEnd(){return e("span",{class:"icon-end"},e("calcite-icon",{icon:"chevron-down",scale:"s"}))}render(){const{guid:t,open:i,label:a}=this;const n=this.selectionMode==="single";const o=`${t}-label`;return e(s,{onKeyDown:this.keydownHandler},e("div",{"aria-autocomplete":"list","aria-expanded":i.toString(),"aria-haspopup":"listbox","aria-labelledby":o,"aria-owns":t,class:{wrapper:true,"wrapper--single":n||!this.selectedItems.length,"wrapper--active":i},onClick:this.setFocusClick,ref:this.setReferenceEl,role:"combobox"},e("div",{class:"grid-input"},this.renderIconStart(),!n&&this.renderChips(),e("label",{class:"screen-readers-only",htmlFor:`${t}-input`,id:o},a),this.renderInput()),this.renderIconEnd()),e("ul",{"aria-labelledby":o,"aria-multiselectable":"true",class:"screen-readers-only",id:t,role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderPopperContainer(),e(j,{component:this}))}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],value:["valueHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"]}}};X.style=B;export{X as calcite_combobox};
11
- //# sourceMappingURL=p-22d67647.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/lodash-es/_arrayMap.js","node_modules/lodash-es/_baseToString.js","node_modules/lodash-es/toString.js","node_modules/lodash-es/escapeRegExp.js","node_modules/@esri/calcite-components/dist/collection/utils/filter.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/calcite-combobox.css?tag=calcite-combobox&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/calcite-combobox.js"],"names":["arrayMap","array","iteratee","index","length","result","Array","INFINITY","symbolProto","Symbol","prototype","undefined","symbolToString","toString","baseToString","value","isArray","isSymbol","call","reRegExpChar","reHasRegExpChar","RegExp","source","escapeRegExp","string","test","replace","filter","data","escapedValue","regex","console","warn","find","input","RE","_a","constant","found","forIn","val","item","calciteComboboxCss","isGroup","el","tagName","ComboboxItemGroup","CalciteCombobox","[object Object]","hostRef","this","active","disabled","maxItems","overlayPositioning","required","selectionMode","scale","internalValueChangeFlag","items","groupItems","selectedItems","visibleItems","hideList","activeItemIndex","activeChipIndex","activeDescendant","text","open","maxScrollerHeight","textInput","mutationObserver","createObserver","updateItems","guid","inputHeight","ignoreSelectedEventsFlag","activeTransitionProp","getValue","map","onLabelClick","setFocus","keydownHandler","event","key","getKey","getElementDir","allowCustomValues","addCustomChip","preventDefault","previousChip","nextChip","shiftActiveItemIndex","updateActiveItemIndex","toggleSelection","removeActiveChip","isMulti","removeLastChip","toggleCloseEnd","removeEventListener","toggleOpenEnd","transitionEnd","propertyName","calciteComboboxOpen","emit","calciteComboboxClose","setMaxScrollerHeight","getMaxScrollerHeight","getCombinedItems","calciteChipDismissHandler","comboboxItem","selection","calciteComboboxChipDismiss","detail","setFocusClick","composedPath","some","node","setInactiveIfNotContained","includes","referenceEl","filterItems","setMenuEl","menuEl","setListContainerEl","listContainerEl","setReferenceEl","inputHandler","target","filteredData","label","textLabel","debounce","forEach","hidden","parent","grandparent","ancestors","ancestor","getVisibleItems","calciteComboboxFilterChange","internalCalciteLookupChangeEvent","calciteLookupChange","emitCalciteLookupChange","internalComboboxChangeEvent","calciteComboboxChange","emitComboboxChange","getItems","getGroupItems","getData","getSelectedItems","needsIcon","getNeedsIcon","comboboxFocusHandler","focus","comboboxBlurHandler","newValue","oldValue","addEventListener","requestAnimationFrame","reposition","selected","popper","modifiers","getModifiers","updatePopper","placement","ComboboxDefaultPlacement","createPopper","observe","childList","subtree","connectLabel","connectForm","afterConnectDefaultValueSet","offsetHeight","disconnect","destroyPopper","disconnectLabel","disconnectForm","flipModifier","name","enabled","options","fallbackPlacements","destroy","itemsToProcess","height","calculateSingleItemHeight","children","from","querySelectorAll","ComboboxChildSelector","child","updateAncestors","resetText","getItemAncestors","getItemChildren","hasActiveChildren","sort","a","b","aIdx","indexOf","bIdx","icon","ComboboxItem","existingItem","document","createElement","appendChild","Math","max","focusChip","last","newIndex","chip","querySelector","delta","activeItem","scrollTop","offsetTop","i","dir","chipClasses","chip--active","chip--rtl","reverse","pathLabel","join","h","aria-label","class","dismissLabel","dismissible","id","onCalciteChipDismiss","title","placeholder","single","selectedItem","showLabel","input-wrap","input-wrap--single","label--spaced","onFocus","tabindex","aria-activedescendant","aria-autocomplete","aria-controls","getLabelText","input--single","input--transparent","input--hidden","input--icon","onBlur","onInput","ref","type","aria-selected","role","classes","list-container","PopperCSS","animation","animationActive","style","maxHeight","aria-hidden","popper-container","popper-container--active","onTransitionEnd","list","list--hide","labelId","Host","onKeyDown","aria-expanded","aria-haspopup","aria-labelledby","aria-owns","wrapper","wrapper--single","wrapper--active","onClick","renderIconStart","renderChips","htmlFor","renderInput","renderIconEnd","aria-multiselectable","tabIndex","renderListBoxOptions","renderPopperContainer","HiddenFormInputSlot","component"],"mappings":";;;;;mhBASA,SAASA,EAASC,EAAOC,GACvB,IAAIC,GAAS,EACTC,EAASH,GAAS,KAAO,EAAIA,EAAMG,OACnCC,EAASC,MAAMF,GAEnB,QAASD,EAAQC,EAAQ,CACvBC,EAAOF,GAASD,EAASD,EAAME,GAAQA,EAAOF,GAEhD,OAAOI,ECXT,IAAIE,EAAW,EAAI,EAGnB,IAAIC,EAAcC,EAASA,EAAOC,UAAYC,UAC1CC,EAAiBJ,EAAcA,EAAYK,SAAWF,UAU1D,SAASG,EAAaC,GAEpB,UAAWA,GAAS,SAAU,CAC5B,OAAOA,EAET,GAAIC,EAAQD,GAAQ,CAElB,OAAOf,EAASe,EAAOD,GAAgB,GAEzC,GAAIG,EAASF,GAAQ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AS7L,KAAKM,gBAAkB,SACtC,MAAM0N,EAAU,GAAGxM,UACnB,OAAQ4J,EAAE6C,EAAM,CAAEC,UAAWlO,KAAKgC,gBAChCoJ,EAAE,MAAO,CAAEkB,oBAAqB,OAAQ6B,gBAAiBjN,EAAKvD,WAAYyQ,gBAAiB,UAAWC,kBAAmBL,EAASM,YAAa9M,EAAM8J,MAAO,CACxJiD,QAAS,KACTC,kBAAmB3C,IAAW7L,KAAKW,cAAczD,OACjDuR,kBAAmBvN,GAClBwN,QAAS1O,KAAKgE,cAAe+I,IAAK/M,KAAK4E,eAAgBsI,KAAM,YAChE9B,EAAE,MAAO,CAAEE,MAAO,cAChBtL,KAAK2O,mBACJ9C,GAAU7L,KAAK4O,cAChBxD,EAAE,QAAS,CAAEE,MAAO,sBAAuBuD,QAAS,GAAGrN,UAAciK,GAAIuC,GAAWhJ,GACpFhF,KAAK8O,eACP9O,KAAK+O,iBACP3D,EAAE,KAAM,CAAEiD,kBAAmBL,EAASgB,uBAAwB,OAAQ1D,MAAO,sBAAuBG,GAAIjK,EAAM0L,KAAM,UAAW+B,UAAW,GAAKjP,KAAKkP,wBACpJlP,KAAKmP,wBACL/D,EAAEgE,EAAqB,CAAEC,UAAWrP","sourcesContent":["/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","import toString from './toString.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n/**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\nfunction escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n}\n\nexport default escapeRegExp;\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { escapeRegExp, forIn } from \"lodash-es\";\nexport const filter = (data, value) => {\n const escapedValue = escapeRegExp(value);\n const regex = new RegExp(escapedValue, \"i\");\n if (data.length === 0) {\n console.warn(`No data was passed to the filter function.\n The data argument should be an array of objects`);\n }\n const find = (input, RE) => {\n var _a;\n if ((_a = input) === null || _a === void 0 ? void 0 : _a.constant) {\n return true;\n }\n let found = false;\n forIn(input, (val) => {\n if (typeof val === \"function\") {\n return;\n }\n if (Array.isArray(val) || (typeof val === \"object\" && val !== null)) {\n if (find(val, RE)) {\n found = true;\n }\n }\n else if (RE.test(val)) {\n found = true;\n }\n });\n return found;\n };\n const result = data.filter((item) => {\n return find(item, regex);\n });\n return result;\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-combobox-input-height: the height of the combobox input\n*/\n\n:host {\n display: block;\n position: relative;\n}\n\n:host([disabled]) {\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n opacity: 0.5;\n}\n\n:host([scale=s]) {\n font-size: var(--calcite-font-size--2);\n --calcite-combobox-item-spacing-unit-l: 0.5rem;\n --calcite-combobox-item-spacing-unit-s: 0.25rem;\n --calcite-combobox-input-height: 1.5rem;\n}\n\n:host([scale=m]) {\n font-size: var(--calcite-font-size--1);\n --calcite-combobox-item-spacing-unit-l: 0.75rem;\n --calcite-combobox-item-spacing-unit-s: 0.5rem;\n --calcite-combobox-input-height: 2rem;\n}\n\n:host([scale=l]) {\n font-size: var(--calcite-font-size-0);\n --calcite-combobox-item-spacing-unit-l: 1rem;\n --calcite-combobox-item-spacing-unit-s: 0.75rem;\n --calcite-combobox-input-height: 2.75rem;\n}\n\n.wrapper {\n display: flex;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-1);\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n box-shadow: inset 0 0 0 1px var(--calcite-ui-border-input);\n padding: 0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l);\n}\n\n:host(:focus-within) .wrapper,\n.wrapper--active {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.wrapper--single {\n padding: 0 var(--calcite-combobox-item-spacing-unit-l);\n cursor: pointer;\n flex-wrap: nowrap;\n}\n\n.grid-input {\n display: flex;\n flex-grow: 1;\n flex-wrap: wrap;\n align-items: center;\n padding: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.input {\n flex-grow: 1;\n font-family: inherit;\n padding: 0;\n background-color: transparent;\n border-style: none;\n color: var(--calcite-ui-text-1);\n -webkit-appearance: none;\n appearance: none;\n font-size: inherit;\n height: var(--calcite-combobox-input-height);\n line-height: var(--calcite-combobox-input-height);\n min-width: 120px;\n margin-bottom: var(--calcite-combobox-item-spacing-unit-s);\n}\n\n.input:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.input--transparent {\n opacity: 0;\n}\n\n.input--single {\n margin-bottom: 0;\n margin-top: 0;\n padding: 0;\n}\n\n.wrapper--active .input-single {\n cursor: text;\n}\n\n.input--hidden {\n width: 0;\n min-width: 0;\n opacity: 0;\n pointer-events: none;\n}\n\n.input--icon {\n padding: 0 var(--calcite-combobox-item-spacing-unit-l);\n}\n\n.input-wrap {\n display: flex;\n flex-grow: 1;\n}\n\n.input-wrap--single {\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n.label {\n padding: 0;\n display: flex;\n font-weight: var(--calcite-font-weight-normal);\n flex: 1 1 auto;\n pointer-events: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n height: var(--calcite-combobox-input-height);\n line-height: var(--calcite-combobox-input-height);\n}\n\n.label--spaced {\n padding-top: 0;\n padding-bottom: 0;\n padding-left: var(--calcite-combobox-item-spacing-unit-l);\n padding-right: var(--calcite-combobox-item-spacing-unit-l);\n}\n\n.icon-end,\n.icon-start {\n cursor: pointer;\n display: flex;\n align-items: center;\n width: 1rem;\n}\n\n.icon-end {\n flex: none;\n}\n\n.popper-container {\n width: 100%;\n display: block;\n position: absolute;\n z-index: 900;\n transform: scale(0);\n visibility: hidden;\n pointer-events: none;\n}\n\n.popper-container .calcite-popper-anim {\n position: relative;\n z-index: 1;\n transition: var(--calcite-popper-transition);\n visibility: hidden;\n transition-property: transform, visibility, opacity;\n opacity: 0;\n box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);\n border-radius: 0.25rem;\n}\n\n.popper-container[data-popper-placement^=bottom] .calcite-popper-anim {\n transform: translateY(-5px);\n}\n\n.popper-container[data-popper-placement^=top] .calcite-popper-anim {\n transform: translateY(5px);\n}\n\n.popper-container[data-popper-placement^=left] .calcite-popper-anim {\n transform: translateX(5px);\n}\n\n.popper-container[data-popper-placement^=right] .calcite-popper-anim {\n transform: translateX(-5px);\n}\n\n.popper-container[data-popper-placement] .calcite-popper-anim--active {\n opacity: 1;\n visibility: visible;\n transform: translate(0);\n}\n\n.popper-container--active {\n pointer-events: initial;\n visibility: visible;\n}\n\n.screen-readers-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.list-container {\n overflow-y: auto;\n max-height: 100vh;\n background-color: var(--calcite-ui-foreground-1);\n width: var(--calcite-dropdown-width);\n}\n\n.list {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.list--hide {\n height: 0;\n overflow: hidden;\n}\n\n.chip {\n margin: calc(var(--calcite-combobox-item-spacing-unit-s) / 2) var(--calcite-combobox-item-spacing-unit-s) calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;\n max-width: 100%;\n}\n\n.chip--active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n.chip:last-child {\n margin-right: 0;\n}\n\n.chip--rtl {\n margin-right: unset;\n margin-left: var(--calcite-combobox-item-spacing-unit-l);\n}\n\n.chip--rtl:last-child {\n margin-left: 0;\n}\n\n.item {\n display: block;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, h, Prop, State, Listen, Event, Element, Method, Watch, Host } from \"@stencil/core\";\nimport { filter } from \"../../utils/filter\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { debounce } from \"lodash-es\";\nimport { getKey } from \"../../utils/key\";\nimport { createPopper, updatePopper, CSS as PopperCSS } from \"../../utils/popper\";\nimport { guid } from \"../../utils/guid\";\nimport { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup, ComboboxDefaultPlacement } from \"./resources\";\nimport { getItemAncestors, getItemChildren, hasActiveChildren } from \"./utils\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nimport { createObserver } from \"../../utils/observers\";\nconst isGroup = (el) => el.tagName === ComboboxItemGroup;\n/**\n * @slot - A slot for adding `calcite-combobox-item`s.\n */\nexport class CalciteCombobox {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** Opens or closes the combobox */\n this.active = false;\n /** Disable combobox input */\n this.disabled = false;\n /** Specify the maximum number of combobox items (including nested children) to display before showing the scroller */\n this.maxItems = 0;\n /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */\n this.overlayPositioning = \"absolute\";\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** specify the selection mode\n * - multi: allow any number of selected items (default)\n * - single: only one selection)\n * - ancestors: like multi, but show ancestors of selected items as selected, only deepest children shown in chips\n */\n this.selectionMode = \"multi\";\n /** Specify the scale of the combobox, defaults to m */\n this.scale = \"m\";\n /** The value(s) of the selectedItem(s) */\n this.value = null;\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n this.internalValueChangeFlag = false;\n this.items = [];\n this.groupItems = [];\n this.selectedItems = [];\n this.visibleItems = [];\n this.hideList = !this.active;\n this.activeItemIndex = -1;\n this.activeChipIndex = -1;\n this.activeDescendant = \"\";\n this.text = \"\";\n this.open = this.active;\n /** specifies the item wrapper height; it is updated when maxItems is > 0 **/\n this.maxScrollerHeight = 0;\n this.textInput = null;\n this.mutationObserver = createObserver(\"mutation\", () => this.updateItems());\n this.guid = guid();\n this.inputHeight = 0;\n this.ignoreSelectedEventsFlag = false;\n this.activeTransitionProp = \"opacity\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.getValue = () => {\n const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());\n return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : \"\";\n };\n this.onLabelClick = () => {\n this.setFocus();\n };\n this.keydownHandler = (event) => {\n const key = getKey(event.key, getElementDir(this.el));\n switch (key) {\n case \"Tab\":\n this.activeChipIndex = -1;\n this.activeItemIndex = -1;\n if (this.allowCustomValues && this.text) {\n this.addCustomChip(this.text, true);\n event.preventDefault();\n }\n else {\n this.active = false;\n }\n break;\n case \"ArrowLeft\":\n this.previousChip();\n break;\n case \"ArrowRight\":\n this.nextChip();\n break;\n case \"ArrowUp\":\n event.preventDefault();\n this.active = true;\n this.shiftActiveItemIndex(-1);\n break;\n case \"ArrowDown\":\n event.preventDefault();\n this.active = true;\n this.shiftActiveItemIndex(1);\n break;\n case \"Home\":\n this.active = true;\n this.updateActiveItemIndex(0);\n break;\n case \"End\":\n this.active = true;\n this.updateActiveItemIndex(this.visibleItems.length - 1);\n break;\n case \"Escape\":\n this.active = false;\n break;\n case \"Enter\":\n if (this.activeItemIndex > -1) {\n this.toggleSelection(this.visibleItems[this.activeItemIndex]);\n }\n else if (this.activeChipIndex > -1) {\n this.removeActiveChip();\n }\n else if (this.allowCustomValues && this.text) {\n this.addCustomChip(this.text, true);\n }\n break;\n case \"Delete\":\n case \"Backspace\":\n if (this.activeChipIndex > -1) {\n this.removeActiveChip();\n }\n else if (!this.text && this.isMulti()) {\n this.removeLastChip();\n }\n break;\n default:\n if (!this.active) {\n this.setFocus();\n }\n break;\n }\n };\n this.toggleCloseEnd = () => {\n this.hideList = true;\n this.el.removeEventListener(\"calciteComboboxClose\", this.toggleCloseEnd);\n };\n this.toggleOpenEnd = () => {\n this.hideList = false;\n this.el.removeEventListener(\"calciteComboboxOpen\", this.toggleOpenEnd);\n };\n this.transitionEnd = (event) => {\n if (event.propertyName === this.activeTransitionProp) {\n this.active ? this.calciteComboboxOpen.emit() : this.calciteComboboxClose.emit();\n }\n };\n this.setMaxScrollerHeight = () => {\n if (this.active) {\n this.maxScrollerHeight = this.getMaxScrollerHeight(this.getCombinedItems());\n }\n };\n this.calciteChipDismissHandler = (event, comboboxItem) => {\n this.active = false;\n const selection = this.items.find((item) => item === comboboxItem);\n if (selection) {\n this.toggleSelection(selection, false);\n }\n this.calciteComboboxChipDismiss.emit(event.detail);\n };\n this.setFocusClick = (event) => {\n if (event.composedPath().some((node) => node.tagName === \"CALCITE-CHIP\")) {\n return;\n }\n this.setFocus();\n };\n this.setInactiveIfNotContained = (event) => {\n const composedPath = event.composedPath();\n if (!this.active || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {\n return;\n }\n if (this.allowCustomValues && this.text) {\n this.addCustomChip(this.text);\n }\n if (this.selectionMode === \"single\") {\n if (this.textInput) {\n this.textInput.value = \"\";\n }\n this.text = \"\";\n this.filterItems(\"\");\n this.updateActiveItemIndex(-1);\n }\n this.active = false;\n };\n this.setMenuEl = (el) => {\n this.menuEl = el;\n };\n this.setListContainerEl = (el) => {\n this.listContainerEl = el;\n };\n this.setReferenceEl = (el) => {\n this.referenceEl = el;\n };\n this.inputHandler = (event) => {\n const value = event.target.value;\n this.text = value;\n this.filterItems(value);\n if (value) {\n this.activeChipIndex = -1;\n }\n };\n this.filterItems = (() => {\n const find = (item, filteredData) => item &&\n filteredData.some(({ label, value }) => {\n if (isGroup(item)) {\n return value === item.label || value === item.label;\n }\n return (value === item.textLabel ||\n value === item.value ||\n label === item.textLabel ||\n label === item.value);\n });\n return debounce((text) => {\n const filteredData = filter(this.data, text);\n const items = this.getCombinedItems();\n items.forEach((item) => {\n const hidden = !find(item, filteredData);\n item.hidden = hidden;\n const [parent, grandparent] = item.ancestors;\n if (find(parent, filteredData) || find(grandparent, filteredData)) {\n item.hidden = false;\n }\n if (!hidden) {\n item.ancestors.forEach((ancestor) => (ancestor.hidden = false));\n }\n });\n this.visibleItems = this.getVisibleItems();\n this.calciteComboboxFilterChange.emit({ visibleItems: [...this.visibleItems], text: text });\n }, 100);\n })();\n this.internalCalciteLookupChangeEvent = () => {\n this.calciteLookupChange.emit(this.selectedItems);\n };\n this.emitCalciteLookupChange = debounce(this.internalCalciteLookupChangeEvent, 0);\n this.internalComboboxChangeEvent = () => {\n const { selectedItems } = this;\n this.calciteComboboxChange.emit({ selectedItems });\n };\n this.emitComboboxChange = debounce(this.internalComboboxChangeEvent, 0);\n this.updateItems = () => {\n this.items = this.getItems();\n this.groupItems = this.getGroupItems();\n this.data = this.getData();\n this.selectedItems = this.getSelectedItems();\n this.visibleItems = this.getVisibleItems();\n this.needsIcon = this.getNeedsIcon();\n if (!this.allowCustomValues) {\n this.setMaxScrollerHeight();\n }\n };\n this.comboboxFocusHandler = () => {\n var _a;\n this.active = true;\n (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();\n };\n this.comboboxBlurHandler = (event) => {\n this.setInactiveIfNotContained(event);\n };\n }\n activeHandler(newValue, oldValue) {\n // when closing, wait transition time then hide to prevent overscroll\n if (oldValue && !newValue) {\n this.el.addEventListener(\"calciteComboboxClose\", this.toggleCloseEnd);\n this.open = false;\n }\n else if (!oldValue && newValue) {\n this.el.addEventListener(\"calciteComboboxOpen\", this.toggleOpenEnd);\n // give the combobox height, then reposition prior to opening\n requestAnimationFrame(() => {\n this.reposition();\n this.setMaxScrollerHeight();\n this.open = true;\n });\n }\n this.reposition();\n this.setMaxScrollerHeight();\n }\n maxItemsHandler() {\n this.setMaxScrollerHeight();\n }\n valueHandler(value) {\n if (!this.internalValueChangeFlag) {\n const items = this.getItems();\n if (Array.isArray(value)) {\n items.forEach((item) => (item.selected = value.includes(item.value)));\n }\n else if (value) {\n items.forEach((item) => (item.selected = value === item.value));\n }\n else {\n items.forEach((item) => (item.selected = false));\n }\n this.updateItems();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n documentClickHandler(event) {\n this.setInactiveIfNotContained(event);\n }\n calciteComboboxItemChangeHandler(event) {\n if (this.ignoreSelectedEventsFlag) {\n return;\n }\n const target = event.target;\n this.toggleSelection(target, target.selected);\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Updates the position of the component. */\n async reposition() {\n const { popper, menuEl } = this;\n const modifiers = this.getModifiers();\n popper\n ? await updatePopper({\n el: menuEl,\n modifiers,\n placement: ComboboxDefaultPlacement,\n popper\n })\n : this.createPopper();\n }\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n this.active = true;\n (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();\n this.activeChipIndex = -1;\n this.activeItemIndex = -1;\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n this.internalValueChangeFlag = true;\n this.value = this.getValue();\n this.internalValueChangeFlag = false;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.createPopper();\n connectLabel(this);\n connectForm(this);\n }\n componentWillLoad() {\n this.updateItems();\n }\n componentDidLoad() {\n afterConnectDefaultValueSet(this, this.getValue());\n }\n componentDidRender() {\n if (this.el.offsetHeight !== this.inputHeight) {\n this.reposition();\n this.inputHeight = this.el.offsetHeight;\n }\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n this.destroyPopper();\n disconnectLabel(this);\n disconnectForm(this);\n }\n selectedItemsHandler() {\n this.internalValueChangeFlag = true;\n this.value = this.getValue();\n this.internalValueChangeFlag = false;\n }\n /** when search text is cleared, reset active to */\n textHandler() {\n this.updateActiveItemIndex(-1);\n }\n getModifiers() {\n const flipModifier = {\n name: \"flip\",\n enabled: true\n };\n flipModifier.options = {\n fallbackPlacements: [\"top-start\", \"top\", \"top-end\", \"bottom-start\", \"bottom\", \"bottom-end\"]\n };\n return [flipModifier];\n }\n createPopper() {\n this.destroyPopper();\n const { menuEl, referenceEl, overlayPositioning } = this;\n const modifiers = this.getModifiers();\n this.popper = createPopper({\n el: menuEl,\n modifiers,\n overlayPositioning,\n placement: ComboboxDefaultPlacement,\n referenceEl\n });\n }\n destroyPopper() {\n const { popper } = this;\n if (popper) {\n popper.destroy();\n }\n this.popper = null;\n }\n getMaxScrollerHeight(items) {\n const { maxItems } = this;\n let itemsToProcess = 0;\n let maxScrollerHeight = 0;\n items.forEach((item) => {\n if (itemsToProcess < maxItems && maxItems > 0) {\n const height = this.calculateSingleItemHeight(item);\n if (height > 0) {\n maxScrollerHeight += height;\n itemsToProcess++;\n }\n }\n });\n return maxScrollerHeight;\n }\n calculateSingleItemHeight(item) {\n let height = item.offsetHeight;\n // if item has children items, don't count their height twice\n const children = Array.from(item.querySelectorAll(ComboboxChildSelector));\n children\n .map((child) => child === null || child === void 0 ? void 0 : child.offsetHeight)\n .forEach((offsetHeight) => {\n height -= offsetHeight;\n });\n return height;\n }\n getCombinedItems() {\n return [...this.groupItems, ...this.items];\n }\n toggleSelection(item, value = !item.selected) {\n if (!item) {\n return;\n }\n if (this.isMulti()) {\n item.selected = value;\n this.updateAncestors(item);\n this.selectedItems = this.getSelectedItems();\n this.emitCalciteLookupChange();\n this.emitComboboxChange();\n this.resetText();\n this.filterItems(\"\");\n }\n else {\n this.ignoreSelectedEventsFlag = true;\n this.items.forEach((el) => (el.selected = el === item ? value : false));\n this.ignoreSelectedEventsFlag = false;\n this.selectedItems = this.getSelectedItems();\n this.emitComboboxChange();\n if (this.textInput) {\n this.textInput.value = item.textLabel;\n }\n this.active = false;\n this.updateActiveItemIndex(-1);\n this.resetText();\n this.filterItems(\"\");\n }\n }\n updateAncestors(item) {\n if (this.selectionMode !== \"ancestors\") {\n return;\n }\n const ancestors = getItemAncestors(item);\n const children = getItemChildren(item);\n if (item.selected) {\n ancestors.forEach((el) => {\n el.selected = true;\n });\n }\n else {\n children.forEach((el) => (el.selected = false));\n [...ancestors].forEach((el) => {\n if (!hasActiveChildren(el)) {\n el.selected = false;\n }\n });\n }\n }\n getVisibleItems() {\n return this.items.filter((item) => !item.hidden);\n }\n getSelectedItems() {\n return !this.isMulti()\n ? [this.items.find((item) => item.selected)]\n : this.items\n .filter((item) => item.selected && (this.selectionMode !== \"ancestors\" || !hasActiveChildren(item)))\n /** Preserve order of entered tags */\n .sort((a, b) => {\n const aIdx = this.selectedItems.indexOf(a);\n const bIdx = this.selectedItems.indexOf(b);\n if (aIdx > -1 && bIdx > -1) {\n return aIdx - bIdx;\n }\n return bIdx - aIdx;\n });\n }\n getData() {\n return this.items.map((item) => ({\n constant: item.constant,\n value: item.value,\n label: item.textLabel,\n guid: item.guid\n }));\n }\n getNeedsIcon() {\n return this.selectionMode === \"single\" && this.items.some((item) => item.icon);\n }\n resetText() {\n if (this.textInput) {\n this.textInput.value = \"\";\n }\n this.text = \"\";\n }\n getItems() {\n const items = Array.from(this.el.querySelectorAll(ComboboxItem));\n return items.filter((item) => !item.disabled);\n }\n getGroupItems() {\n return Array.from(this.el.querySelectorAll(ComboboxItemGroup));\n }\n addCustomChip(value, focus) {\n const existingItem = this.items.find((el) => el.textLabel === value);\n if (existingItem) {\n this.toggleSelection(existingItem, true);\n }\n else {\n const item = document.createElement(ComboboxItem);\n item.value = value;\n item.textLabel = value;\n item.guid = guid();\n item.selected = true;\n this.el.appendChild(item);\n this.resetText();\n if (focus) {\n this.setFocus();\n }\n this.updateItems();\n this.filterItems(\"\");\n this.emitCalciteLookupChange();\n this.emitComboboxChange();\n }\n }\n removeActiveChip() {\n this.toggleSelection(this.selectedItems[this.activeChipIndex], false);\n this.setFocus();\n }\n removeLastChip() {\n this.toggleSelection(this.selectedItems[this.selectedItems.length - 1], false);\n this.setFocus();\n }\n previousChip() {\n if (this.text) {\n return;\n }\n const length = this.selectedItems.length - 1;\n const active = this.activeChipIndex;\n this.activeChipIndex = active === -1 ? length : Math.max(active - 1, 0);\n this.updateActiveItemIndex(-1);\n this.focusChip();\n }\n nextChip() {\n if (this.text || this.activeChipIndex === -1) {\n return;\n }\n const last = this.selectedItems.length - 1;\n const newIndex = this.activeChipIndex + 1;\n if (newIndex > last) {\n this.activeChipIndex = -1;\n this.setFocus();\n }\n else {\n this.activeChipIndex = newIndex;\n this.focusChip();\n }\n this.updateActiveItemIndex(-1);\n }\n focusChip() {\n var _a;\n const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;\n const chip = this.referenceEl.querySelector(`#chip-${guid}`);\n chip === null || chip === void 0 ? void 0 : chip.setFocus();\n }\n shiftActiveItemIndex(delta) {\n const length = this.visibleItems.length;\n const newIndex = (this.activeItemIndex + length + delta) % length;\n this.updateActiveItemIndex(newIndex);\n // ensure active item is in view if we have scrolling\n const activeItem = this.visibleItems[this.activeItemIndex];\n const height = this.calculateSingleItemHeight(activeItem);\n const { offsetHeight, scrollTop } = this.listContainerEl;\n if (offsetHeight + scrollTop < activeItem.offsetTop + height) {\n this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;\n }\n else if (activeItem.offsetTop < scrollTop) {\n this.listContainerEl.scrollTop = activeItem.offsetTop;\n }\n }\n updateActiveItemIndex(index) {\n var _a;\n this.activeItemIndex = index;\n let activeDescendant = null;\n this.visibleItems.forEach((el, i) => {\n if (i === index) {\n el.active = true;\n activeDescendant = el.guid;\n }\n else {\n el.active = false;\n }\n });\n this.activeDescendant = activeDescendant;\n if (this.activeItemIndex > -1) {\n this.activeChipIndex = -1;\n (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n isMulti() {\n return this.selectionMode !== \"single\";\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n renderChips() {\n const { activeChipIndex, scale, selectionMode, el } = this;\n const dir = getElementDir(el);\n return this.selectedItems.map((item, i) => {\n const chipClasses = {\n chip: true,\n \"chip--active\": activeChipIndex === i,\n \"chip--rtl\": dir === \"rtl\"\n };\n const ancestors = [...getItemAncestors(item)].reverse();\n const pathLabel = [...ancestors, item].map((el) => el.textLabel);\n const label = selectionMode !== \"ancestors\" ? item.textLabel : pathLabel.join(\" / \");\n return (h(\"calcite-chip\", { \"aria-label\": label, class: chipClasses, dismissLabel: \"remove tag\", dismissible: true, icon: item.icon, id: `chip-${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));\n });\n }\n renderInput() {\n const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;\n const single = selectionMode === \"single\";\n const selectedItem = selectedItems[0];\n const showLabel = !active && single && !!selectedItem;\n return (h(\"span\", { class: {\n \"input-wrap\": true,\n \"input-wrap--single\": single\n } },\n showLabel && (h(\"span\", { class: {\n label: true,\n \"label--spaced\": needsIcon\n }, key: \"label\", onFocus: this.comboboxFocusHandler, tabindex: \"0\" }, selectedItem.textLabel)),\n h(\"input\", { \"aria-activedescendant\": this.activeDescendant, \"aria-autocomplete\": \"list\", \"aria-controls\": guid, \"aria-label\": getLabelText(this), class: {\n input: true,\n \"input--single\": true,\n \"input--transparent\": this.activeChipIndex > -1,\n \"input--hidden\": showLabel,\n \"input--icon\": single && needsIcon\n }, disabled: disabled, id: `${guid}-input`, key: \"input\", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: \"text\" })));\n }\n renderListBoxOptions() {\n return this.visibleItems.map((item) => (h(\"li\", { \"aria-selected\": (!!item.selected).toString(), id: item.guid, role: \"option\", tabindex: \"-1\" }, item.textLabel)));\n }\n renderPopperContainer() {\n const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;\n const classes = {\n \"list-container\": true,\n [PopperCSS.animation]: true,\n [PopperCSS.animationActive]: active\n };\n const style = {\n maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : \"\"\n };\n return (h(\"div\", { \"aria-hidden\": \"true\", class: { \"popper-container\": true, \"popper-container--active\": open }, ref: setMenuEl },\n h(\"div\", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl, style: style },\n h(\"ul\", { class: { list: true, \"list--hide\": hideList } },\n h(\"slot\", null)))));\n }\n renderIconStart() {\n const { selectionMode, needsIcon, selectedItems } = this;\n const selectedItem = selectedItems[0];\n return (selectionMode === \"single\" &&\n needsIcon && (h(\"span\", { class: \"icon-start\" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) && (h(\"calcite-icon\", { class: \"selected-icon\", icon: selectedItem.icon, scale: \"s\" })))));\n }\n renderIconEnd() {\n return (h(\"span\", { class: \"icon-end\" },\n h(\"calcite-icon\", { icon: \"chevron-down\", scale: \"s\" })));\n }\n render() {\n const { guid, open, label } = this;\n const single = this.selectionMode === \"single\";\n const labelId = `${guid}-label`;\n return (h(Host, { onKeyDown: this.keydownHandler },\n h(\"div\", { \"aria-autocomplete\": \"list\", \"aria-expanded\": open.toString(), \"aria-haspopup\": \"listbox\", \"aria-labelledby\": labelId, \"aria-owns\": guid, class: {\n wrapper: true,\n \"wrapper--single\": single || !this.selectedItems.length,\n \"wrapper--active\": open\n }, onClick: this.setFocusClick, ref: this.setReferenceEl, role: \"combobox\" },\n h(\"div\", { class: \"grid-input\" },\n this.renderIconStart(),\n !single && this.renderChips(),\n h(\"label\", { class: \"screen-readers-only\", htmlFor: `${guid}-input`, id: labelId }, label),\n this.renderInput()),\n this.renderIconEnd()),\n h(\"ul\", { \"aria-labelledby\": labelId, \"aria-multiselectable\": \"true\", class: \"screen-readers-only\", id: guid, role: \"listbox\", tabIndex: -1 }, this.renderListBoxOptions()),\n this.renderPopperContainer(),\n h(HiddenFormInputSlot, { component: this })));\n }\n static get is() { return \"calcite-combobox\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-combobox.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-combobox.css\"]\n }; }\n static get properties() { return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Opens or closes the combobox\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disable combobox input\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Aria label for combobox (required)\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"placeholder\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Placeholder text for input\"\n },\n \"attribute\": \"placeholder\",\n \"reflect\": false\n },\n \"maxItems\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specify the maximum number of combobox items (including nested children) to display before showing the scroller\"\n },\n \"attribute\": \"max-items\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the switch input\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"allowCustomValues\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Allow entry of custom values which are not in the original set of items\"\n },\n \"attribute\": \"allow-custom-values\",\n \"reflect\": false\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"selectionMode\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ComboboxSelectionMode\",\n \"resolved\": \"\\\"ancestors\\\" | \\\"multi\\\" | \\\"single\\\"\",\n \"references\": {\n \"ComboboxSelectionMode\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the selection mode\\n- multi: allow any number of selected items (default)\\n- single: only one selection)\\n- ancestors: like multi, but show ancestors of selected items as selected, only deepest children shown in chips\"\n },\n \"attribute\": \"selection-mode\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"multi\\\"\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specify the scale of the combobox, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string | string[]\",\n \"resolved\": \"string | string[]\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value(s) of the selectedItem(s)\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n }\n }; }\n static get states() { return {\n \"items\": {},\n \"groupItems\": {},\n \"selectedItems\": {},\n \"visibleItems\": {},\n \"needsIcon\": {},\n \"hideList\": {},\n \"activeItemIndex\": {},\n \"activeChipIndex\": {},\n \"activeDescendant\": {},\n \"text\": {},\n \"open\": {},\n \"maxScrollerHeight\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteLookupChange\",\n \"name\": \"calciteLookupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use calciteComboboxChange instead\"\n }],\n \"text\": \"Called when the selected items set changes\"\n },\n \"complexType\": {\n \"original\": \"HTMLCalciteComboboxItemElement[]\",\n \"resolved\": \"HTMLCalciteComboboxItemElement[]\",\n \"references\": {\n \"HTMLCalciteComboboxItemElement\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteComboboxChange\",\n \"name\": \"calciteComboboxChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Called when the selected item(s) changes.\"\n },\n \"complexType\": {\n \"original\": \"{ selectedItems: HTMLCalciteComboboxItemElement[] }\",\n \"resolved\": \"{ selectedItems: HTMLCalciteComboboxItemElement[]; }\",\n \"references\": {\n \"HTMLCalciteComboboxItemElement\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteComboboxFilterChange\",\n \"name\": \"calciteComboboxFilterChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Called when the user has entered text to filter the options list\"\n },\n \"complexType\": {\n \"original\": \"{\\n visibleItems: HTMLCalciteComboboxItemElement[];\\n text: string;\\n }\",\n \"resolved\": \"{ visibleItems: HTMLCalciteComboboxItemElement[]; text: string; }\",\n \"references\": {\n \"HTMLCalciteComboboxItemElement\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteComboboxChipDismiss\",\n \"name\": \"calciteComboboxChipDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Called when a selected item in the combobox is dismissed via its chip *\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteComboboxOpen\",\n \"name\": \"calciteComboboxOpen\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fired when the combobox is opened\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteComboboxClose\",\n \"name\": \"calciteComboboxClose\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fired when the combobox is closed\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"reposition\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Updates the position of the component.\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"maxItems\",\n \"methodName\": \"maxItemsHandler\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"selectedItems\",\n \"methodName\": \"selectedItemsHandler\"\n }, {\n \"propName\": \"text\",\n \"methodName\": \"textHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"documentClickHandler\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteComboboxItemChange\",\n \"method\": \"calciteComboboxItemChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list/resources.js"],"names":["CSS","sticky","ICON_TYPES","SLOTS","menuActions"],"mappings":";;;;;;;;;AAIY,MAACA,EAAM,CACjBC,OAAQ,UAEA,IAACC,GACX,SAAWA,GACTA,EAAW,UAAY,SACvBA,EAAW,UAAY,SACvBA,EAAW,QAAU,QAHvB,CAIGA,IAAeA,EAAa,KAInB,MAACC,EAAQ,CACnBC,YAAa","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n sticky: \"sticky\"\n};\nexport var ICON_TYPES;\n(function (ICON_TYPES) {\n ICON_TYPES[\"circle\"] = \"circle\";\n ICON_TYPES[\"square\"] = \"square\";\n ICON_TYPES[\"grip\"] = \"grip\";\n})(ICON_TYPES || (ICON_TYPES = {}));\nexport const TEXT = {\n filterResults: \"Filter results\"\n};\nexport const SLOTS = {\n menuActions: \"menu-actions\"\n};\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,F as a,g as n}from"./p-2e1cd889.js";import{T as o,I as s,C as r,S as c}from"./p-44e661a2.js";import{I as l}from"./p-291cbb4f.js";import{b as h}from"./p-e762b2d1.js";import"./p-ec178ea9.js";const d='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;align-items:stretch;display:flex;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-1);box-shadow:0 1px 0 var(--calcite-ui-border-3);margin:0;margin-bottom:1px;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;transition:background-color 150ms ease-in-out;animation:calcite-fade-in 150ms ease-in-out}:host *{box-sizing:border-box}.label{background-color:transparent;display:flex;flex:1 1 auto;align-items:center;cursor:pointer;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover{background-color:var(--calcite-ui-foreground-2)}:host([non-interactive]:hover){background-color:var(--calcite-ui-foreground-1)}:host([non-interactive]) .label,:host([non-interactive]) .icon{pointer-events:none}.icon{align-items:center;display:flex;margin-top:0;margin-bottom:0;padding:0.25rem;cursor:pointer;color:var(--calcite-ui-brand);flex:0 0 auto;line-height:0}.icon:hover{background-color:var(--calcite-ui-foreground-2)}.icon-dot{align-items:center;display:flex;width:1.5rem;padding:0.5rem}.icon-dot:before{opacity:0;content:"•"}.icon calcite-icon{opacity:0}:host([selected]) .icon-dot:before,:host([selected]) .icon calcite-icon{transition:opacity 150ms ease-in-out;opacity:1}.text-container{display:flex;overflow:hidden;pointer-events:none;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;flex-direction:column;flex-wrap:nowrap}.title{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-normal)}.description{margin-top:0.125rem;color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.actions{align-items:stretch;display:flex;justify-content:flex-end;margin:0;flex:0 1 auto}.actions--start~.label{padding-left:0.25rem}.calcite--rtl .actions--start~.label{padding-left:unset;padding-right:0.25rem}';let m=class{constructor(i){t(this,i);this.calciteListItemChange=e(this,"calciteListItemChange",7);this.calciteListItemRemove=e(this,"calciteListItemRemove",7);this.calciteListItemPropsChange=e(this,"calciteListItemPropsChange",7);this.calciteListItemValueChange=e(this,"calciteListItemValueChange",7);this.disabled=false;this.disableDeselect=false;this.nonInteractive=false;this.icon=null;this.removable=false;this.selected=false;this.intlRemove=o.remove;this.pickListClickHandler=t=>{if(this.disabled||this.disableDeselect&&this.selected||this.nonInteractive){return}this.shiftPressed=t.shiftKey;this.selected=!this.selected};this.pickListKeyDownHandler=t=>{if(t.key===" "){t.preventDefault();if(this.disableDeselect&&this.selected||this.nonInteractive){return}this.selected=!this.selected}};this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}descriptionWatchHandler(){this.calciteListItemPropsChange.emit()}labelWatchHandler(){this.calciteListItemPropsChange.emit()}metadataWatchHandler(){this.calciteListItemPropsChange.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed});this.shiftPressed=false}valueWatchHandler(t,e){this.calciteListItemValueChange.emit({oldValue:e,newValue:t})}async toggleSelected(t){if(this.disabled){return}this.selected=typeof t==="boolean"?t:!this.selected}async setFocus(){var t;(t=this.focusEl)===null||t===void 0?void 0:t.focus()}renderIcon(){const{icon:t}=this;if(!t){return null}return i("span",{class:{[r.icon]:true,[r.iconDot]:t===l.circle},onClick:this.pickListClickHandler},t===l.square?i("calcite-icon",{icon:s.checked,scale:"s"}):null)}renderRemoveAction(){return this.removable?i("calcite-action",{class:r.remove,icon:s.remove,onCalciteActionClick:this.removeClickHandler,slot:c.actionsEnd,text:this.intlRemove}):null}renderActionsStart(){const{el:t}=this;const e=h(t,c.actionsStart);return e?i("div",{class:{[r.actions]:true,[r.actionsStart]:true}},i("slot",{name:c.actionsStart})):null}renderActionsEnd(){const{el:t,removable:e}=this;const a=h(t,c.actionsEnd);return a||e?i("div",{class:{[r.actions]:true,[r.actionsEnd]:true}},i("slot",{name:c.actionsEnd}),this.renderRemoveAction()):null}render(){const{description:t,label:e}=this;return i(a,null,this.renderIcon(),this.renderActionsStart(),i("label",{"aria-label":e,class:r.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:t=>this.focusEl=t,tabIndex:0},i("div",{"aria-checked":this.selected.toString(),class:r.textContainer,role:"menuitemcheckbox"},i("span",{class:r.title},e),t?i("span",{class:r.description},t):null)),this.renderActionsEnd())}get el(){return n(this)}static get watchers(){return{description:["descriptionWatchHandler"],label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}}};m.style=d;export{m as calcite_pick_list_item};
7
- //# sourceMappingURL=p-2a5c409a.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css?tag=calcite-pick-list-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js"],"names":["calcitePickListItemCss","CalcitePickListItem","[object Object]","hostRef","this","disabled","disableDeselect","nonInteractive","icon","removable","selected","intlRemove","TEXT","remove","pickListClickHandler","event","shiftPressed","shiftKey","pickListKeyDownHandler","key","preventDefault","removeClickHandler","calciteListItemRemove","emit","calciteListItemPropsChange","calciteListItemChange","item","el","value","newValue","oldValue","calciteListItemValueChange","coerce","_a","focusEl","focus","h","class","CSS","iconDot","ICON_TYPES","circle","onClick","square","ICONS","checked","scale","onCalciteActionClick","slot","SLOTS","actionsEnd","text","hasActionsStart","getSlotted","actionsStart","actions","name","hasActionsEnd","renderRemoveAction","description","label","Fragment","renderIcon","renderActionsStart","aria-label","onKeyDown","ref","tabIndex","aria-checked","toString","textContainer","role","title","renderActionsEnd"],"mappings":";;;;;yNAAA,MAAMA,EAAyB,i5FCYlBC,EAAmB,MAC9BC,YAAAC,qRAIEC,KAAKC,SAAW,MAIhBD,KAAKE,gBAAkB,MAIvBF,KAAKG,eAAiB,MAKtBH,KAAKI,KAAO,KAIZJ,KAAKK,UAAY,MAIjBL,KAAKM,SAAW,MAKhBN,KAAKO,WAAaC,EAAKC,OAMvBT,KAAKU,qBAAwBC,IAC3B,GAAIX,KAAKC,UAAaD,KAAKE,iBAAmBF,KAAKM,UAAaN,KAAKG,eAAgB,CACnF,OAEFH,KAAKY,aAAeD,EAAME,SAC1Bb,KAAKM,UAAYN,KAAKM,UAExBN,KAAKc,uBAA0BH,IAC7B,GAAIA,EAAMI,MAAQ,IAAK,CACrBJ,EAAMK,iBACN,GAAKhB,KAAKE,iBAAmBF,KAAKM,UAAaN,KAAKG,eAAgB,CAClE,OAEFH,KAAKM,UAAYN,KAAKM,WAG1BN,KAAKiB,mBAAqB,KACxBjB,KAAKkB,sBAAsBC,QAG/BrB,0BACEE,KAAKoB,2BAA2BD,OAElCrB,oBACEE,KAAKoB,2BAA2BD,OAElCrB,uBACEE,KAAKoB,2BAA2BD,OAElCrB,uBACEE,KAAKqB,sBAAsBF,KAAK,CAC9BG,KAAMtB,KAAKuB,GACXC,MAAOxB,KAAKwB,MACZlB,SAAUN,KAAKM,SACfM,aAAcZ,KAAKY,eAErBZ,KAAKY,aAAe,MAEtBd,kBAAkB2B,EAAUC,GAC1B1B,KAAK2B,2BAA2BR,KAAK,CAAEO,SAAAA,EAAUD,SAAAA,IAWnD3B,qBAAqB8B,GACnB,GAAI5B,KAAKC,SAAU,CACjB,OAEFD,KAAKM,gBAAkBsB,IAAW,UAAYA,GAAU5B,KAAKM,SAG/DR,iBACE,IAAI+B,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AOC,EAAIsB,MAAOlB,QAAStC,KAAKU,qBAAsBmD,UAAW7D,KAAKc,uBAAwBgD,IAAMhC,GAAa9B,KAAK8B,QAAUA,EAAUiC,SAAU,GACpL/B,EAAE,MAAO,CAAEgC,eAAgBhE,KAAKM,SAAS2D,WAAYhC,MAAOC,EAAIgC,cAAeC,KAAM,oBACnFnC,EAAE,OAAQ,CAAEC,MAAOC,EAAIkC,OAASZ,GAChCD,EAAcvB,EAAE,OAAQ,CAAEC,MAAOC,EAAIqB,aAAeA,GAAe,OACvEvD,KAAKqE","sourcesContent":["@charset \"UTF-8\";\n\n/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n background-color: var(--calcite-ui-foreground-1);\n box-sizing: border-box;\n align-items: stretch;\n display: flex;\n font-size: var(--calcite-font-size--1);\n color: var(--calcite-ui-text-1);\n box-shadow: 0 1px 0 var(--calcite-ui-border-3);\n margin: 0;\n margin-bottom: 1px;\n background-color: var(--calcite-ui-foreground-1);\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n transition: background-color 150ms ease-in-out;\n animation: calcite-fade-in 150ms ease-in-out;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n.label {\n background-color: transparent;\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n.label:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.label:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n:host([non-interactive]:hover) {\n background-color: var(--calcite-ui-foreground-1);\n}\n\n:host([non-interactive]) .label,\n:host([non-interactive]) .icon {\n pointer-events: none;\n}\n\n.icon {\n align-items: center;\n display: flex;\n margin-top: 0;\n margin-bottom: 0;\n padding: 0.25rem;\n cursor: pointer;\n color: var(--calcite-ui-brand);\n flex: 0 0 auto;\n line-height: 0;\n}\n\n.icon:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.icon-dot {\n align-items: center;\n display: flex;\n width: 1.5rem;\n padding: 0.5rem;\n}\n\n.icon-dot:before {\n opacity: 0;\n content: \"•\";\n}\n\n.icon calcite-icon {\n opacity: 0;\n}\n\n:host([selected]) .icon-dot:before,\n:host([selected]) .icon calcite-icon {\n transition: opacity 150ms ease-in-out;\n opacity: 1;\n}\n\n.text-container {\n display: flex;\n overflow: hidden;\n pointer-events: none;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n word-wrap: break-word;\n word-break: break-word;\n flex-direction: column;\n flex-wrap: nowrap;\n}\n\n.title {\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-normal);\n}\n\n.description {\n margin-top: 0.125rem;\n color: var(--calcite-ui-text-3);\n font-weight: var(--calcite-font-weight-normal);\n}\n\n.actions {\n align-items: stretch;\n display: flex;\n justify-content: flex-end;\n margin: 0;\n flex: 0 1 auto;\n}\n\n.actions--start ~ .label {\n padding-left: 0.25rem;\n}\n\n.calcite--rtl .actions--start ~ .label {\n padding-left: unset;\n padding-right: 0.25rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Fragment, h, Method, Prop, Watch } from \"@stencil/core\";\nimport { CSS, ICONS, SLOTS, TEXT } from \"./resources\";\nimport { ICON_TYPES } from \"../calcite-pick-list/resources\";\nimport { getSlotted } from \"../../utils/dom\";\n/**\n * @slot actions-end - a slot for adding actions or content to the end side of the item.\n * @slot actions-start - a slot for adding actions or content to the start side of the item.\n */\nexport class CalcitePickListItem {\n constructor() {\n /**\n * When true, the item cannot be clicked and is visually muted.\n */\n this.disabled = false;\n /**\n * When false, the item cannot be deselected by user interaction.\n */\n this.disableDeselect = false;\n /**\n * @internal When true, the item cannot be selected by user interaction.\n */\n this.nonInteractive = false;\n /**\n * Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\n * @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\n */\n this.icon = null;\n /**\n * Set this to true to display a remove action that removes the item from the list.\n */\n this.removable = false;\n /**\n * Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\n */\n this.selected = false;\n /**\n * Used as an accessible label (aria-label) for the \"remove item\" action. Only applicable if removable is true.\n * @default \"Remove\"\n */\n this.intlRemove = TEXT.remove;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.pickListClickHandler = (event) => {\n if (this.disabled || (this.disableDeselect && this.selected) || this.nonInteractive) {\n return;\n }\n this.shiftPressed = event.shiftKey;\n this.selected = !this.selected;\n };\n this.pickListKeyDownHandler = (event) => {\n if (event.key === \" \") {\n event.preventDefault();\n if ((this.disableDeselect && this.selected) || this.nonInteractive) {\n return;\n }\n this.selected = !this.selected;\n }\n };\n this.removeClickHandler = () => {\n this.calciteListItemRemove.emit();\n };\n }\n descriptionWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n labelWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n metadataWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n selectedWatchHandler() {\n this.calciteListItemChange.emit({\n item: this.el,\n value: this.value,\n selected: this.selected,\n shiftPressed: this.shiftPressed\n });\n this.shiftPressed = false;\n }\n valueWatchHandler(newValue, oldValue) {\n this.calciteListItemValueChange.emit({ oldValue, newValue });\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Used to toggle the selection state. By default this won't trigger an event.\n * The first argument allows the value to be coerced, rather than swapping values.\n */\n async toggleSelected(coerce) {\n if (this.disabled) {\n return;\n }\n this.selected = typeof coerce === \"boolean\" ? coerce : !this.selected;\n }\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderIcon() {\n const { icon } = this;\n if (!icon) {\n return null;\n }\n return (h(\"span\", { class: {\n [CSS.icon]: true,\n [CSS.iconDot]: icon === ICON_TYPES.circle\n }, onClick: this.pickListClickHandler }, icon === ICON_TYPES.square ? h(\"calcite-icon\", { icon: ICONS.checked, scale: \"s\" }) : null));\n }\n renderRemoveAction() {\n return this.removable ? (h(\"calcite-action\", { class: CSS.remove, icon: ICONS.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS.actionsEnd, text: this.intlRemove })) : null;\n }\n renderActionsStart() {\n const { el } = this;\n const hasActionsStart = getSlotted(el, SLOTS.actionsStart);\n return hasActionsStart ? (h(\"div\", { class: { [CSS.actions]: true, [CSS.actionsStart]: true } },\n h(\"slot\", { name: SLOTS.actionsStart }))) : null;\n }\n renderActionsEnd() {\n const { el, removable } = this;\n const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);\n return hasActionsEnd || removable ? (h(\"div\", { class: { [CSS.actions]: true, [CSS.actionsEnd]: true } },\n h(\"slot\", { name: SLOTS.actionsEnd }),\n this.renderRemoveAction())) : null;\n }\n render() {\n const { description, label } = this;\n return (h(Fragment, null,\n this.renderIcon(),\n this.renderActionsStart(),\n h(\"label\", { \"aria-label\": label, class: CSS.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 },\n h(\"div\", { \"aria-checked\": this.selected.toString(), class: CSS.textContainer, role: \"menuitemcheckbox\" },\n h(\"span\", { class: CSS.title }, label),\n description ? h(\"span\", { class: CSS.description }, description) : null)),\n this.renderActionsEnd()));\n }\n static get is() { return \"calcite-pick-list-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-pick-list-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pick-list-item.css\"]\n }; }\n static get properties() { return {\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An optional description for this item. This will appear below the label text.\"\n },\n \"attribute\": \"description\",\n \"reflect\": true\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, the item cannot be clicked and is visually muted.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableDeselect\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When false, the item cannot be deselected by user interaction.\"\n },\n \"attribute\": \"disable-deselect\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"nonInteractive\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"When true, the item cannot be selected by user interaction.\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"non-interactive\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ICON_TYPES | null\",\n \"resolved\": \"ICON_TYPES.circle | ICON_TYPES.grip | ICON_TYPES.square\",\n \"references\": {\n \"ICON_TYPES\": {\n \"location\": \"import\",\n \"path\": \"../calcite-pick-list/resources\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\"\n }],\n \"text\": \"Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main label for this item. This will appear next to the icon.\"\n },\n \"attribute\": \"label\",\n \"reflect\": true\n },\n \"metadata\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Record<string, unknown>\",\n \"resolved\": \"{ [x: string]: unknown; }\",\n \"references\": {\n \"Record\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to provide additional metadata to an item, primarily used when the parent list has a filter.\"\n }\n },\n \"removable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to display a remove action that removes the item from the list.\"\n },\n \"attribute\": \"removable\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlRemove\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Remove\\\"\"\n }],\n \"text\": \"Used as an accessible label (aria-label) for the \\\"remove item\\\" action. Only applicable if removable is true.\"\n },\n \"attribute\": \"intl-remove\",\n \"reflect\": true,\n \"defaultValue\": \"TEXT.remove\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The item's associated value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteListItemChange\",\n \"name\": \"calciteListItemChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the item is selected or unselected.\"\n },\n \"complexType\": {\n \"original\": \"{\\n item: HTMLCalcitePickListItemElement;\\n value: any;\\n selected: boolean;\\n shiftPressed: boolean;\\n }\",\n \"resolved\": \"{ item: HTMLCalcitePickListItemElement; value: any; selected: boolean; shiftPressed: boolean; }\",\n \"references\": {\n \"HTMLCalcitePickListItemElement\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteListItemRemove\",\n \"name\": \"calciteListItemRemove\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the remove button is pressed.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteListItemPropsChange\",\n \"name\": \"calciteListItemPropsChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted whenever the the item's label, description, value or metadata properties are modified.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteListItemValueChange\",\n \"name\": \"calciteListItemValueChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted whenever the the item's value property is modified.\"\n },\n \"complexType\": {\n \"original\": \"{\\n oldValue: any;\\n newValue: any;\\n }\",\n \"resolved\": \"{ oldValue: any; newValue: any; }\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"toggleSelected\": {\n \"complexType\": {\n \"signature\": \"(coerce?: boolean) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Used to toggle the selection state. By default this won't trigger an event.\\nThe first argument allows the value to be coerced, rather than swapping values.\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"description\",\n \"methodName\": \"descriptionWatchHandler\"\n }, {\n \"propName\": \"label\",\n \"methodName\": \"labelWatchHandler\"\n }, {\n \"propName\": \"metadata\",\n \"methodName\": \"metadataWatchHandler\"\n }, {\n \"propName\": \"selected\",\n \"methodName\": \"selectedWatchHandler\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueWatchHandler\"\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as e,F as a,g as n}from"./p-2e1cd889.js";import{f as r,a as s,C as o}from"./p-e762b2d1.js";import{d as c}from"./p-eb2efc0f.js";import{f as l}from"./p-e581f631.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const h={container:"container",searchIcon:"search-icon",clearButton:"clear-button"};const p={filterLabel:"Filter",clear:"Clear filter"};const m={search:"search",close:"x"};const d="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;width:100%}.container{display:flex;width:100%;padding:0.5rem}label{display:flex;align-items:center;overflow:hidden;position:relative;width:100%;margin-left:0.25rem;margin-right:0.25rem;margin-top:0;margin-bottom:0}input[type=text]{background-color:transparent;border-style:none;font-family:inherit;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size--2);line-height:1rem;margin-bottom:0.25rem;width:100%;padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.25rem;padding-left:1.5rem;transition:padding 150ms ease-in-out, box-shadow 150ms ease-in-out}input[type=text]::-ms-clear{display:none}calcite-input{width:100%}.search-icon{display:flex;left:0;position:absolute;color:var(--calcite-ui-text-2);transition:left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out}.calcite--rtl .search-icon{right:0}input[type=text]:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem}input[type=text]:focus~.search-icon{left:calc(1rem * -1);opacity:0}.calcite--rtl input[type=text]{padding-left:0.25rem;padding-right:1.5rem}.calcite--rtl input[type=text]:focus{padding-right:1.25rem}.calcite--rtl input[type=text]:focus~.search-icon{right:calc(1rem * -1)}.clear-button{color:var(--calcite-ui-text-2);background-color:transparent;border-width:0;cursor:pointer;display:flex;align-items:center}.clear-button:hover,.clear-button:focus{color:var(--calcite-ui-text-1)}";const u=250;let f=class{constructor(e){t(this,e);this.calciteFilterChange=i(this,"calciteFilterChange",7);this.disabled=false;this.filteredItems=[];this.filter=c((t=>{const i=new RegExp(t,"i");if(this.items.length===0){this.updateFiltered([]);return}const e=(t,i)=>{let a=false;l(t,(t=>{if(typeof t==="function"){return}if(Array.isArray(t)||typeof t==="object"&&t!==null){if(e(t,i)){a=true}}else if(i.test(t)){a=true}}));return a};const a=this.items.filter((t=>e(t,i)));this.updateFiltered(a)}),u);this.inputHandler=t=>{const i=t.target;this.value=i.value};this.keyDownHandler=({key:t})=>{if(t==="Escape"){this.clear()}};this.clear=()=>{this.value="";this.setFocus()}}watchDataHandler(t){this.items=t}watchItemsHandler(){this.filter(this.value)}valueHandler(t){this.filter(t)}connectedCallback(){if(this.data&&!this.items){this.items=this.data}}async setFocus(){r(this.textInput)}updateFiltered(t){this.filteredItems.length=0;this.filteredItems=this.filteredItems.concat(t);this.calciteFilterChange.emit(t)}render(){const t=s(this.el)==="rtl";const{disabled:i}=this;return e(a,null,i?e("calcite-scrim",null):null,e("div",{class:h.container},e("label",{class:t?o.rtl:null},e("calcite-input",{"aria-label":this.intlLabel||p.filterLabel,class:t?o.rtl:null,disabled:this.disabled,icon:m.search,onCalciteInputInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,ref:t=>{this.textInput=t},type:"text",value:this.value})),this.value?e("button",{"aria-label":this.intlClear||p.clear,class:h.clearButton,onClick:this.clear},e("calcite-icon",{icon:m.close})):null))}get el(){return n(this)}static get watchers(){return{data:["watchDataHandler"],items:["watchItemsHandler"],value:["valueHandler"]}}};f.style=d;export{f as calcite_filter};
11
- //# sourceMappingURL=p-2aca233c.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-filter/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-filter/calcite-filter.css?tag=calcite-filter&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-filter/calcite-filter.js"],"names":["CSS","container","searchIcon","clearButton","TEXT","filterLabel","clear","ICONS","search","close","calciteFilterCss","filterDebounceInMs","CalciteFilter","[object Object]","hostRef","this","disabled","filteredItems","filter","debounce","value","regex","RegExp","items","length","updateFiltered","find","input","RE","found","forIn","val","Array","isArray","test","result","item","inputHandler","event","target","keyDownHandler","key","setFocus","data","focusElement","textInput","filtered","concat","calciteFilterChange","emit","rtl","getElementDir","el","h","Fragment","class","CSS_UTILITY","aria-label","intlLabel","icon","onCalciteInputInput","onKeyDown","placeholder","ref","type","intlClear","onClick"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,UAAW,YACXC,WAAY,cACZC,YAAa,gBAER,MAAMC,EAAO,CAClBC,YAAa,SACbC,MAAO,gBAEF,MAAMC,EAAQ,CACnBC,OAAQ,SACRC,MAAO,KCfT,MAAMC,EAAmB,+4ECSzB,MAAMC,EAAqB,QACdC,EAAa,MACxBC,YAAAC,sEAIEC,KAAKC,SAAW,MAMhBD,KAAKE,cAAgB,GAMrBF,KAAKG,OAASC,GAAUC,IACtB,MAAMC,EAAQ,IAAIC,OAAOF,EAAO,KAChC,GAAIL,KAAKQ,MAAMC,SAAW,EAAG,CAC3BT,KAAKU,eAAe,IACpB,OAEF,MAAMC,EAAO,CAACC,EAAOC,KACnB,IAAIC,EAAQ,MACZC,EAAMH,GAAQI,IACZ,UAAWA,IAAQ,WAAY,CAC7B,OAEF,GAAIC,MAAMC,QAAQF,WAAgBA,IAAQ,UAAYA,IAAQ,KAAO,CACnE,GAAIL,EAAKK,EAAKH,GAAK,CACjBC,EAAQ,WAGP,GAAID,EAAGM,KAAKH,GAAM,CACrBF,EAAQ,SAGZ,OAAOA,GAET,MAAMM,EAASpB,KAAKQ,MAAML,QAAQkB,GACzBV,EAAKU,EAAMf,KAEpBN,KAAKU,eAAe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Aa+D,QAASnD,KAAKT,OAC5G+C,EAAE,eAAgB,CAAEM,KAAMpD,EAAME,SAAa","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n container: \"container\",\n searchIcon: \"search-icon\",\n clearButton: \"clear-button\"\n};\nexport const TEXT = {\n filterLabel: \"Filter\",\n clear: \"Clear filter\"\n};\nexport const ICONS = {\n search: \"search\",\n close: \"x\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n width: 100%;\n}\n\n.container {\n display: flex;\n width: 100%;\n padding: 0.5rem;\n}\n\nlabel {\n display: flex;\n align-items: center;\n overflow: hidden;\n position: relative;\n width: 100%;\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n margin-top: 0;\n margin-bottom: 0;\n}\n\ninput[type=text] {\n background-color: transparent;\n border-style: none;\n font-family: inherit;\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n margin-bottom: 0.25rem;\n width: 100%;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-right: 0.25rem;\n padding-left: 1.5rem;\n transition: padding 150ms ease-in-out, box-shadow 150ms ease-in-out;\n}\n\ninput[type=text]::-ms-clear {\n display: none;\n}\n\ncalcite-input {\n width: 100%;\n}\n\n.search-icon {\n display: flex;\n left: 0;\n position: absolute;\n color: var(--calcite-ui-text-2);\n transition: left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out;\n}\n\n.calcite--rtl .search-icon {\n right: 0;\n}\n\ninput[type=text]:focus {\n border-color: var(--calcite-ui-brand);\n outline: 2px solid transparent;\n outline-offset: 2px;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\ninput[type=text]:focus ~ .search-icon {\n left: calc(1rem * -1);\n opacity: 0;\n}\n\n.calcite--rtl input[type=text] {\n padding-left: 0.25rem;\n padding-right: 1.5rem;\n}\n\n.calcite--rtl input[type=text]:focus {\n padding-right: 1.25rem;\n}\n\n.calcite--rtl input[type=text]:focus ~ .search-icon {\n right: calc(1rem * -1);\n}\n\n.clear-button {\n color: var(--calcite-ui-text-2);\n background-color: transparent;\n border-width: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.clear-button:hover, .clear-button:focus {\n color: var(--calcite-ui-text-1);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Prop, h, Method, Fragment, Watch } from \"@stencil/core\";\nimport { debounce, forIn } from \"lodash-es\";\nimport { CSS, ICONS, TEXT } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { focusElement, getElementDir } from \"../../utils/dom\";\nconst filterDebounceInMs = 250;\nexport class CalciteFilter {\n constructor() {\n /**\n * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\n */\n this.disabled = false;\n /**\n * The resulting items after filtering.\n *\n * @readonly\n */\n this.filteredItems = [];\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.filter = debounce((value) => {\n const regex = new RegExp(value, \"i\");\n if (this.items.length === 0) {\n this.updateFiltered([]);\n return;\n }\n const find = (input, RE) => {\n let found = false;\n forIn(input, (val) => {\n if (typeof val === \"function\") {\n return;\n }\n if (Array.isArray(val) || (typeof val === \"object\" && val !== null)) {\n if (find(val, RE)) {\n found = true;\n }\n }\n else if (RE.test(val)) {\n found = true;\n }\n });\n return found;\n };\n const result = this.items.filter((item) => {\n return find(item, regex);\n });\n this.updateFiltered(result);\n }, filterDebounceInMs);\n this.inputHandler = (event) => {\n const target = event.target;\n this.value = target.value;\n };\n this.keyDownHandler = ({ key }) => {\n if (key === \"Escape\") {\n this.clear();\n }\n };\n this.clear = () => {\n this.value = \"\";\n this.setFocus();\n };\n }\n watchDataHandler(value) {\n this.items = value;\n }\n watchItemsHandler() {\n this.filter(this.value);\n }\n valueHandler(value) {\n this.filter(value);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n if (this.data && !this.items) {\n this.items = this.data;\n }\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.textInput);\n }\n updateFiltered(filtered) {\n this.filteredItems.length = 0;\n this.filteredItems = this.filteredItems.concat(filtered);\n this.calciteFilterChange.emit(filtered);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const rtl = getElementDir(this.el) === \"rtl\";\n const { disabled } = this;\n return (h(Fragment, null,\n disabled ? h(\"calcite-scrim\", null) : null,\n h(\"div\", { class: CSS.container },\n h(\"label\", { class: rtl ? CSS_UTILITY.rtl : null },\n h(\"calcite-input\", { \"aria-label\": this.intlLabel || TEXT.filterLabel, class: rtl ? CSS_UTILITY.rtl : null, disabled: this.disabled, icon: ICONS.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {\n this.textInput = el;\n }, type: \"text\", value: this.value })),\n this.value ? (h(\"button\", { \"aria-label\": this.intlClear || TEXT.clear, class: CSS.clearButton, onClick: this.clear },\n h(\"calcite-icon\", { icon: ICONS.close }))) : null)));\n }\n static get is() { return \"calcite-filter\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-filter.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-filter.css\"]\n }; }\n static get properties() { return {\n \"data\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"object[]\",\n \"resolved\": \"object[]\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `items` instead.\"\n }],\n \"text\": \"The input data. The filter uses this as the starting point, and returns items\\nthat contain the string entered in the input, using a partial match and recursive search.\"\n }\n },\n \"items\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"object[]\",\n \"resolved\": \"object[]\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The items to filter through. The filter uses this as the starting point, and returns items\\nthat contain the string entered in the input, using a partial match and recursive search.\\n\\nThis property is required.\"\n }\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"filteredItems\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"CalciteFilter[\\\"items\\\"]\",\n \"resolved\": \"object[]\",\n \"references\": {\n \"CalciteFilter\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"readonly\",\n \"text\": undefined\n }],\n \"text\": \"The resulting items after filtering.\"\n },\n \"defaultValue\": \"[]\"\n },\n \"intlClear\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"A text label that will appear on the clear button.\"\n },\n \"attribute\": \"intl-clear\",\n \"reflect\": false\n },\n \"intlLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"A text label that will appear next to the input field.\"\n },\n \"attribute\": \"intl-label\",\n \"reflect\": false\n },\n \"placeholder\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Placeholder text for the input element's placeholder attribute\"\n },\n \"attribute\": \"placeholder\",\n \"reflect\": false\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Filter value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteFilterChange\",\n \"name\": \"calciteFilterChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This event fires when the filter text changes.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"data\",\n \"methodName\": \"watchDataHandler\"\n }, {\n \"propName\": \"items\",\n \"methodName\": \"watchItemsHandler\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }]; }\n}\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as a,h as t}from"./p-2e1cd889.js";const i="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}::slotted(calcite-tip){border-style:none;margin:0}:host-context(calcite-tip-manager){margin-top:0.75rem;margin-bottom:0.75rem}:host-context(calcite-tip-manager) ::slotted(calcite-tip){padding:1rem}";let n=class{constructor(t){a(this,t)}render(){return t("slot",null)}};n.style=i;export{n as calcite_tip_group};
7
- //# sourceMappingURL=p-2b6ef800.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tip-group/calcite-tip-group.css?tag=calcite-tip-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tip-group/calcite-tip-group.js"],"names":["calciteTipGroupCss","CalciteTipGroup","[object Object]","h"],"mappings":";;;;;2CAAA,MAAMA,EAAqB,0oCCQdC,EAAe,+BAC1BC,SACE,OAAOC,EAAE,OAAQ","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n::slotted(calcite-tip) {\n border-style: none;\n margin: 0;\n}\n\n:host-context(calcite-tip-manager) {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n:host-context(calcite-tip-manager) ::slotted(calcite-tip) {\n padding: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Prop, h } from \"@stencil/core\";\n/**\n * @slot - A slot for adding `calcite-tip`s.\n */\nexport class CalciteTipGroup {\n render() {\n return h(\"slot\", null);\n }\n static get is() { return \"calcite-tip-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-tip-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tip-group.css\"]\n }; }\n static get properties() { return {\n \"groupTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title used for all nested tips.\"\n },\n \"attribute\": \"group-title\",\n \"reflect\": false\n }\n }; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,H as a,g as e}from"./p-2e1cd889.js";import{s as n,g as s,a as c,C as o}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */var r;(function(t){t["valid"]="check-circle";t["invalid"]="exclamation-mark-triangle";t["idle"]="information"})(r||(r={}));const l="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([active][scale=m]),:host([active][scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{display:flex;align-items:center;width:100%;box-sizing:border-box;color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium);visibility:hidden;height:0;pointer-events:none;opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}:host([active]){height:auto;visibility:visible;opacity:1;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}:host([active][scale=m]),:host([active][scale=l]){margin-top:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{display:inline-flex;flex-shrink:0;pointer-events:none;margin-right:0.5rem;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}.calcite-input-message-icon.calcite--rtl{margin-left:0.5rem;margin-right:0}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-ui-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-ui-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-ui-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-ui-brand)}:host([status][active]){color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}:host([status][active][scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([status][active][scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem;margin-top:0.25rem}:host([status][active][scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem;margin-top:0.25rem}";let m=class{constructor(i){t(this,i);this.active=false;this.scale="m";this.status="idle"}handleIconEl(){this.requestedIcon=n(r,this.icon,this.status)}connectedCallback(){this.status=s(this.el,"status",this.status);this.scale=s(this.el,"scale",this.scale);this.requestedIcon=n(r,this.icon,this.status)}render(){const t=!this.active;return i(a,{"calcite-hydrated-hidden":t},this.renderIcon(this.requestedIcon),i("slot",null))}renderIcon(t){if(t){const a=c(this.el);return i("calcite-icon",{class:{["calcite-input-message-icon"]:true,[o.rtl]:a==="rtl"},icon:t,scale:"s"})}}get el(){return e(this)}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}};m.style=l;export{m as calcite_input_message};
11
- //# sourceMappingURL=p-2bae730e.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-input-message/interfaces.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-input-message/calcite-input-message.css?tag=calcite-input-message&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-input-message/calcite-input-message.js"],"names":["StatusIconDefaults","calciteInputMessageCss","CalciteInputMessage","[object Object]","hostRef","this","active","scale","status","requestedIcon","setRequestedIcon","icon","getElementProp","el","hidden","h","Host","calcite-hydrated-hidden","renderIcon","iconName","dir","getElementDir","class","CSS_UTILITY","rtl"],"mappings":";;;;;;;;;GAIO,IAAIA,GACX,SAAWA,GACTA,EAAmB,SAAW,eAC9BA,EAAmB,WAAa,4BAChCA,EAAmB,QAAU,eAH/B,CAIGA,IAAuBA,EAAqB,KCT/C,MAAMC,EAAyB,y7ECWlBC,EAAmB,MAC9BC,YAAAC,aAOEC,KAAKC,OAAS,MAEdD,KAAKE,MAAQ,IAEbF,KAAKG,OAAS,OAEhBL,eACEE,KAAKI,cAAgBC,EAAiBV,EAAoBK,KAAKM,KAAMN,KAAKG,QAO5EL,oBACEE,KAAKG,OAASI,EAAeP,KAAKQ,GAAI,SAAUR,KAAKG,QACrDH,KAAKE,MAAQK,EAAeP,KAAKQ,GAAI,QAASR,KAAKE,OACnDF,KAAKI,cAAgBC,EAAiBV,EAAoBK,KAAKM,KAAMN,KAAKG,QAE5EL,SACE,MAAMW,GAAUT,KAAKC,OACrB,OAAQS,EAAEC,EAAM,CAAEC,0BAA2BH,GAC3CT,KAAKa,WAAWb,KAAKI,eACrBM,EAAE,OAAQ,OAOdZ,WAAWgB,GACT,GAAIA,EAAU,CACZ,MAAMC,EAAMC,EAAchB,KAAKQ,IAC/B,OAAQE,EAAE,eAAgB,CAAEO,MAAO,CAAEnB,CAAC,8BAA+B,KAAMA,CAACoB,EAAYC,KAAMJ,IAAQ,OAAST,KAAMQ,EAAUZ,MAAO","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport var StatusIconDefaults;\n(function (StatusIconDefaults) {\n StatusIconDefaults[\"valid\"] = \"check-circle\";\n StatusIconDefaults[\"invalid\"] = \"exclamation-mark-triangle\";\n StatusIconDefaults[\"idle\"] = \"information\";\n})(StatusIconDefaults || (StatusIconDefaults = {}));\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-input-message-spacing-value: the top margin above the input-message.\n*/\n\n:host([active][scale=m]),\n:host([active][scale=l]) {\n --calcite-input-message-spacing-value: 0.25rem;\n}\n\n:host {\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-medium);\n visibility: hidden;\n height: 0;\n pointer-events: none;\n opacity: 0;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n}\n\n:host([active]) {\n height: auto;\n visibility: visible;\n opacity: 1;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n}\n\n:host([active][scale=m]),\n:host([active][scale=l]) {\n margin-top: var(--calcite-input-message-spacing-value);\n}\n\n.calcite-input-message-icon {\n display: inline-flex;\n flex-shrink: 0;\n pointer-events: none;\n margin-right: 0.5rem;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n}\n\n.calcite-input-message-icon.calcite--rtl {\n margin-left: 0.5rem;\n margin-right: 0;\n}\n\n:host([status=invalid]) .calcite-input-message-icon {\n color: var(--calcite-ui-danger);\n}\n\n:host([status=warning]) .calcite-input-message-icon {\n color: var(--calcite-ui-warning);\n}\n\n:host([status=valid]) .calcite-input-message-icon {\n color: var(--calcite-ui-success);\n}\n\n:host([status=idle]) .calcite-input-message-icon {\n color: var(--calcite-ui-brand);\n}\n\n:host([status][active]) {\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-medium);\n}\n\n:host([status][active][scale=s]) {\n font-size: var(--calcite-font-size--3);\n line-height: 0.75rem;\n}\n\n:host([status][active][scale=m]) {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n margin-top: 0.25rem;\n}\n\n:host([status][active][scale=l]) {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n margin-top: 0.25rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Host, h, Prop, Watch } from \"@stencil/core\";\nimport { getElementDir, getElementProp, setRequestedIcon } from \"../../utils/dom\";\nimport { StatusIconDefaults } from \"./interfaces\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\n/**\n * @slot - A slot for adding text.\n */\nexport class CalciteInputMessage {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Indicates whether the message is displayed. */\n this.active = false;\n /** specify the scale of the input, defaults to m */\n this.scale = \"m\";\n /** specify the status of the input field, determines message and icons */\n this.status = \"idle\";\n }\n handleIconEl() {\n this.requestedIcon = setRequestedIcon(StatusIconDefaults, this.icon, this.status);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.status = getElementProp(this.el, \"status\", this.status);\n this.scale = getElementProp(this.el, \"scale\", this.scale);\n this.requestedIcon = setRequestedIcon(StatusIconDefaults, this.icon, this.status);\n }\n render() {\n const hidden = !this.active;\n return (h(Host, { \"calcite-hydrated-hidden\": hidden },\n this.renderIcon(this.requestedIcon),\n h(\"slot\", null)));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n renderIcon(iconName) {\n if (iconName) {\n const dir = getElementDir(this.el);\n return (h(\"calcite-icon\", { class: { [\"calcite-input-message-icon\"]: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, icon: iconName, scale: \"s\" }));\n }\n }\n static get is() { return \"calcite-input-message\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-input-message.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-input-message.css\"]\n }; }\n static get properties() { return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates whether the message is displayed.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean | string\",\n \"resolved\": \"boolean | string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"when used as a boolean set to true, show a default icon based on status. You can\\nalso pass a calcite-ui-icon name to this prop to display a custom icon\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the input, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"status\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Status\",\n \"resolved\": \"\\\"idle\\\" | \\\"invalid\\\" | \\\"valid\\\"\",\n \"references\": {\n \"Status\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the status of the input field, determines message and icons\"\n },\n \"attribute\": \"status\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"idle\\\"\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"default\\\"\",\n \"resolved\": \"\\\"default\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"\\\"floating\\\" type is no longer supported\"\n }],\n \"text\": \"specify the appearance of any slotted message - default (displayed under input), or floating (positioned absolutely under input)\"\n },\n \"attribute\": \"type\",\n \"reflect\": true\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"status\",\n \"methodName\": \"handleIconEl\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"handleIconEl\"\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,F as a,g as n}from"./p-2e1cd889.js";import{f as r,C as o,a as s}from"./p-e762b2d1.js";import{c,d as l}from"./p-cb5cb9a8.js";import{c as h,d,a as p,H as m}from"./p-0b8525e2.js";import{c as u}from"./p-a10dc180.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const f={icon:"icon",iconContainer:"icon-container",select:"select"};const g="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;align-items:stretch;position:relative;width:var(--select-width)}:host([scale=s]){height:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing:0 2rem 0 0.5rem;--calcite-select-spacing-rtl:0 0.5rem 0 2rem}:host([scale=s]) .icon-container{padding-left:0.5rem;padding-right:0.5rem}:host([scale=m]){height:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing:0 2.5rem 0 0.75rem;--calcite-select-spacing-rtl:0 0.75rem 0 2.5rem}:host([scale=m]) .icon-container{padding-left:0.75rem;padding-right:0.75rem}:host([scale=l]){height:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing:0 3rem 0 1rem;--calcite-select-spacing-rtl:0 1rem 0 3rem}:host([scale=l]) .icon-container{padding-left:1rem;padding-right:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}.select{-webkit-appearance:none;appearance:none;border-width:1px;border-style:solid;border-right-width:0;background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-border-input);border-radius:0;color:var(--calcite-ui-text-2);cursor:pointer;font-family:inherit;margin:0;width:100%;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-select-font-size);padding:var(--calcite-select-spacing)}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}.select.calcite--rtl{border-width:1px;border-color:var(--calcite-ui-border-input);padding:var(--calcite-select-spacing-rtl)}select:disabled{border-color:var(--calcite-ui-border-input);--bg-opacity:1}:host([disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.icon-container{align-items:center;background-color:transparent;border-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;color:var(--calcite-ui-text-2);display:flex;pointer-events:none;position:absolute;right:0;top:0;bottom:0}.icon-container.calcite--rtl{border-left-width:1px;border-right-width:0;left:0;right:unset}.select:focus~.icon-container{border-color:transparent}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";function b(t){return t.tagName==="CALCITE-OPTION"}function v(t){return t.tagName==="CALCITE-OPTION-GROUP"}let w=class{constructor(i){t(this,i);this.calciteSelectChange=e(this,"calciteSelectChange",7);this.disabled=false;this.required=false;this.scale="m";this.value=null;this.width="auto";this.componentToNativeEl=new Map;this.mutationObserver=u("mutation",(()=>this.populateInternalSelect()));this.handleInternalSelectChange=()=>{const t=this.selectEl.selectedOptions[0];this.selectFromNativeOption(t);requestAnimationFrame((()=>this.emitChangeEvent()))};this.populateInternalSelect=()=>{const t=Array.from(this.el.children).filter((t=>t.tagName==="CALCITE-OPTION"||t.tagName==="CALCITE-OPTION-GROUP"));this.clearInternalSelect();t.forEach((t=>{var e;return(e=this.selectEl)===null||e===void 0?void 0:e.append(this.toNativeElement(t))}))};this.storeSelectRef=t=>{this.selectEl=t;this.populateInternalSelect();const e=this.selectEl.selectedOptions[0];this.selectFromNativeOption(e)};this.emitChangeEvent=()=>{this.calciteSelectChange.emit()}}valueHandler(t){const e=this.el.querySelectorAll("calcite-option");e.forEach((e=>e.selected=e.value===t))}selectedOptionHandler(t){this.value=t===null||t===void 0?void 0:t.value}connectedCallback(){var t;const{el:e}=this;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(e,{subtree:true,childList:true});c(this);h(this)}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();l(this);d(this)}componentDidLoad(){var t,e;p(this,(e=(t=this.selectedOption)===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:"")}async setFocus(){r(this.selectEl)}handleOptionOrGroupChange(t){t.stopPropagation();const e=t.target;const i=this.componentToNativeEl.get(e);if(!i){return}this.updateNativeElement(e,i);if(b(e)&&e.selected){this.deselectAllExcept(e)}}onLabelClick(){this.setFocus()}updateNativeElement(t,e){e.disabled=t.disabled;e.label=t.label;if(b(t)){const i=e;i.selected=t.selected;i.value=t.value;i.innerText=t.label}}clearInternalSelect(){this.componentToNativeEl.forEach((t=>t.remove()));this.componentToNativeEl.clear()}selectFromNativeOption(t){if(!t){return}let e;this.componentToNativeEl.forEach(((i,a)=>{if(b(a)&&i===t){a.selected=true;e=a;this.deselectAllExcept(a)}}));if(e){requestAnimationFrame((()=>this.selectedOption=e))}}toNativeElement(t){if(b(t)){const e=document.createElement("option");this.updateNativeElement(t,e);this.componentToNativeEl.set(t,e);return e}if(v(t)){const e=document.createElement("optgroup");this.updateNativeElement(t,e);Array.from(t.children).forEach((i=>{const a=this.toNativeElement(i);e.append(a);this.componentToNativeEl.set(t,a)}));this.componentToNativeEl.set(t,e);return e}throw new Error("unsupported element child provided")}deselectAllExcept(t){this.el.querySelectorAll("calcite-option").forEach((e=>{if(e===t){return}e.selected=false}))}renderChevron(t){return i("div",{class:{[f.iconContainer]:true,[o.rtl]:t==="rtl"}},i("calcite-icon",{class:f.icon,icon:"chevron-down",scale:"s"}))}render(){const t=s(this.el);return i(a,null,i("select",{"aria-label":this.label,class:{[f.select]:true,[o.rtl]:t==="rtl"},disabled:this.disabled,onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},i("slot",null)),this.renderChevron(t),i(m,{component:this}))}get el(){return n(this)}static get watchers(){return{value:["valueHandler"],selectedOption:["selectedOptionHandler"]}}};w.style=g;export{w as calcite_select};
11
- //# sourceMappingURL=p-2d59c6d7.entry.js.map