@esri/solutions-components 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (531) hide show
  1. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
  2. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
  3. package/dist/cjs/solution-configuration.cjs.entry.js +1095 -4
  4. package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
  5. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
  6. package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
  7. package/dist/cjs/{solution-store-f0547fe7.js → solution-store-893499a5.js} +8 -1
  8. package/dist/cjs/solution-store-893499a5.js.map +1 -0
  9. package/dist/collection/components/solution-configuration/solution-configuration.js +14 -11
  10. package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
  11. package/dist/collection/components/solution-item/solution-item.js +2 -0
  12. package/dist/collection/components/solution-item/solution-item.js.map +1 -1
  13. package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
  14. package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
  15. package/dist/collection/utils/solution-store.js +2 -0
  16. package/dist/collection/utils/solution-store.js.map +1 -1
  17. package/dist/collection/utils/solution-store.ts +2 -0
  18. package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
  19. package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
  20. package/dist/esm/solution-configuration.entry.js +1095 -4
  21. package/dist/esm/solution-configuration.entry.js.map +1 -1
  22. package/dist/esm/solution-contents_3.entry.js +3 -1
  23. package/dist/esm/solution-contents_3.entry.js.map +1 -1
  24. package/dist/esm/{solution-store-c1f6173a.js → solution-store-0c58c852.js} +4 -2
  25. package/dist/esm/solution-store-0c58c852.js.map +1 -0
  26. package/dist/solutions-components/{p-065830b8.js → p-659edb14.js} +4 -2
  27. package/dist/solutions-components/p-659edb14.js.map +1 -0
  28. package/dist/solutions-components/{p-ee9be0ef.entry.js → p-77c75f3a.entry.js} +4 -2
  29. package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
  30. package/dist/solutions-components/p-90629c1d.entry.js +1986 -0
  31. package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
  32. package/dist/solutions-components/{p-0e7a0839.entry.js → p-984cb687.entry.js} +17 -7
  33. package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
  34. package/dist/solutions-components/solutions-components.esm.js +1 -1
  35. package/dist/solutions-components/utils/solution-store.ts +2 -0
  36. package/dist/solutions-components_commit.txt +9 -7
  37. package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
  38. package/package.json +1 -1
  39. package/dist/cjs/solution-store-f0547fe7.js.map +0 -1
  40. package/dist/components/ExpandToggle.js +0 -112
  41. package/dist/components/ExpandToggle.js.map +0 -1
  42. package/dist/components/Heading.js +0 -24
  43. package/dist/components/Heading.js.map +0 -1
  44. package/dist/components/_commonjsHelpers.js +0 -24
  45. package/dist/components/_commonjsHelpers.js.map +0 -1
  46. package/dist/components/action-bar.js +0 -278
  47. package/dist/components/action-bar.js.map +0 -1
  48. package/dist/components/action-group.js +0 -151
  49. package/dist/components/action-group.js.map +0 -1
  50. package/dist/components/action-menu.js +0 -358
  51. package/dist/components/action-menu.js.map +0 -1
  52. package/dist/components/action.js +0 -216
  53. package/dist/components/action.js.map +0 -1
  54. package/dist/components/array.js +0 -17
  55. package/dist/components/array.js.map +0 -1
  56. package/dist/components/buffer-tools.d.ts +0 -11
  57. package/dist/components/buffer-tools.js +0 -13
  58. package/dist/components/buffer-tools.js.map +0 -1
  59. package/dist/components/buffer-tools2.js +0 -256
  60. package/dist/components/buffer-tools2.js.map +0 -1
  61. package/dist/components/button.js +0 -265
  62. package/dist/components/button.js.map +0 -1
  63. package/dist/components/calcite-accordion-item.js +0 -246
  64. package/dist/components/calcite-accordion-item.js.map +0 -1
  65. package/dist/components/calcite-accordion.js +0 -182
  66. package/dist/components/calcite-accordion.js.map +0 -1
  67. package/dist/components/calcite-action-bar.js +0 -13
  68. package/dist/components/calcite-action-bar.js.map +0 -1
  69. package/dist/components/calcite-action-group.js +0 -13
  70. package/dist/components/calcite-action-group.js.map +0 -1
  71. package/dist/components/calcite-action-menu.js +0 -13
  72. package/dist/components/calcite-action-menu.js.map +0 -1
  73. package/dist/components/calcite-action-pad.js +0 -199
  74. package/dist/components/calcite-action-pad.js.map +0 -1
  75. package/dist/components/calcite-action.js +0 -13
  76. package/dist/components/calcite-action.js.map +0 -1
  77. package/dist/components/calcite-alert.js +0 -299
  78. package/dist/components/calcite-alert.js.map +0 -1
  79. package/dist/components/calcite-avatar.js +0 -184
  80. package/dist/components/calcite-avatar.js.map +0 -1
  81. package/dist/components/calcite-block-section.js +0 -157
  82. package/dist/components/calcite-block-section.js.map +0 -1
  83. package/dist/components/calcite-block.js +0 -277
  84. package/dist/components/calcite-block.js.map +0 -1
  85. package/dist/components/calcite-button.js +0 -13
  86. package/dist/components/calcite-button.js.map +0 -1
  87. package/dist/components/calcite-card.js +0 -189
  88. package/dist/components/calcite-card.js.map +0 -1
  89. package/dist/components/calcite-checkbox.js +0 -13
  90. package/dist/components/calcite-checkbox.js.map +0 -1
  91. package/dist/components/calcite-chip.js +0 -13
  92. package/dist/components/calcite-chip.js.map +0 -1
  93. package/dist/components/calcite-color-picker-hex-input.js +0 -13
  94. package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
  95. package/dist/components/calcite-color-picker-swatch.js +0 -13
  96. package/dist/components/calcite-color-picker-swatch.js.map +0 -1
  97. package/dist/components/calcite-color-picker.js +0 -1038
  98. package/dist/components/calcite-color-picker.js.map +0 -1
  99. package/dist/components/calcite-combobox-item-group.js +0 -77
  100. package/dist/components/calcite-combobox-item-group.js.map +0 -1
  101. package/dist/components/calcite-combobox-item.js +0 -13
  102. package/dist/components/calcite-combobox-item.js.map +0 -1
  103. package/dist/components/calcite-combobox.js +0 -13
  104. package/dist/components/calcite-combobox.js.map +0 -1
  105. package/dist/components/calcite-date-picker-day.js +0 -13
  106. package/dist/components/calcite-date-picker-day.js.map +0 -1
  107. package/dist/components/calcite-date-picker-month-header.js +0 -13
  108. package/dist/components/calcite-date-picker-month-header.js.map +0 -1
  109. package/dist/components/calcite-date-picker-month.js +0 -13
  110. package/dist/components/calcite-date-picker-month.js.map +0 -1
  111. package/dist/components/calcite-date-picker.js +0 -13
  112. package/dist/components/calcite-date-picker.js.map +0 -1
  113. package/dist/components/calcite-dropdown-group.js +0 -101
  114. package/dist/components/calcite-dropdown-group.js.map +0 -1
  115. package/dist/components/calcite-dropdown-item.js +0 -237
  116. package/dist/components/calcite-dropdown-item.js.map +0 -1
  117. package/dist/components/calcite-dropdown.js +0 -13
  118. package/dist/components/calcite-dropdown.js.map +0 -1
  119. package/dist/components/calcite-fab.js +0 -146
  120. package/dist/components/calcite-fab.js.map +0 -1
  121. package/dist/components/calcite-filter.js +0 -197
  122. package/dist/components/calcite-filter.js.map +0 -1
  123. package/dist/components/calcite-flow-item.js +0 -245
  124. package/dist/components/calcite-flow-item.js.map +0 -1
  125. package/dist/components/calcite-flow.js +0 -149
  126. package/dist/components/calcite-flow.js.map +0 -1
  127. package/dist/components/calcite-graph.js +0 -13
  128. package/dist/components/calcite-graph.js.map +0 -1
  129. package/dist/components/calcite-handle.js +0 -13
  130. package/dist/components/calcite-handle.js.map +0 -1
  131. package/dist/components/calcite-icon.js +0 -13
  132. package/dist/components/calcite-icon.js.map +0 -1
  133. package/dist/components/calcite-inline-editable.js +0 -296
  134. package/dist/components/calcite-inline-editable.js.map +0 -1
  135. package/dist/components/calcite-input-date-picker.js +0 -715
  136. package/dist/components/calcite-input-date-picker.js.map +0 -1
  137. package/dist/components/calcite-input-message.js +0 -13
  138. package/dist/components/calcite-input-message.js.map +0 -1
  139. package/dist/components/calcite-input-number.js +0 -639
  140. package/dist/components/calcite-input-number.js.map +0 -1
  141. package/dist/components/calcite-input-text.js +0 -402
  142. package/dist/components/calcite-input-text.js.map +0 -1
  143. package/dist/components/calcite-input-time-picker.js +0 -436
  144. package/dist/components/calcite-input-time-picker.js.map +0 -1
  145. package/dist/components/calcite-input.js +0 -13
  146. package/dist/components/calcite-input.js.map +0 -1
  147. package/dist/components/calcite-label.js +0 -13
  148. package/dist/components/calcite-label.js.map +0 -1
  149. package/dist/components/calcite-link.js +0 -13
  150. package/dist/components/calcite-link.js.map +0 -1
  151. package/dist/components/calcite-list-item-group.js +0 -67
  152. package/dist/components/calcite-list-item-group.js.map +0 -1
  153. package/dist/components/calcite-list-item.js +0 -13
  154. package/dist/components/calcite-list-item.js.map +0 -1
  155. package/dist/components/calcite-list.js +0 -13
  156. package/dist/components/calcite-list.js.map +0 -1
  157. package/dist/components/calcite-loader.js +0 -13
  158. package/dist/components/calcite-loader.js.map +0 -1
  159. package/dist/components/calcite-modal.js +0 -500
  160. package/dist/components/calcite-modal.js.map +0 -1
  161. package/dist/components/calcite-notice.js +0 -13
  162. package/dist/components/calcite-notice.js.map +0 -1
  163. package/dist/components/calcite-option-group.js +0 -66
  164. package/dist/components/calcite-option-group.js.map +0 -1
  165. package/dist/components/calcite-option.js +0 -13
  166. package/dist/components/calcite-option.js.map +0 -1
  167. package/dist/components/calcite-pagination.js +0 -260
  168. package/dist/components/calcite-pagination.js.map +0 -1
  169. package/dist/components/calcite-panel.js +0 -13
  170. package/dist/components/calcite-panel.js.map +0 -1
  171. package/dist/components/calcite-pick-list-group.js +0 -76
  172. package/dist/components/calcite-pick-list-group.js.map +0 -1
  173. package/dist/components/calcite-pick-list-item.js +0 -13
  174. package/dist/components/calcite-pick-list-item.js.map +0 -1
  175. package/dist/components/calcite-pick-list.js +0 -175
  176. package/dist/components/calcite-pick-list.js.map +0 -1
  177. package/dist/components/calcite-popover-manager.js +0 -96
  178. package/dist/components/calcite-popover-manager.js.map +0 -1
  179. package/dist/components/calcite-popover.js +0 -13
  180. package/dist/components/calcite-popover.js.map +0 -1
  181. package/dist/components/calcite-progress.js +0 -13
  182. package/dist/components/calcite-progress.js.map +0 -1
  183. package/dist/components/calcite-radio-button-group.js +0 -134
  184. package/dist/components/calcite-radio-button-group.js.map +0 -1
  185. package/dist/components/calcite-radio-button.js +0 -312
  186. package/dist/components/calcite-radio-button.js.map +0 -1
  187. package/dist/components/calcite-radio-group-item.js +0 -13
  188. package/dist/components/calcite-radio-group-item.js.map +0 -1
  189. package/dist/components/calcite-radio-group.js +0 -13
  190. package/dist/components/calcite-radio-group.js.map +0 -1
  191. package/dist/components/calcite-rating.js +0 -203
  192. package/dist/components/calcite-rating.js.map +0 -1
  193. package/dist/components/calcite-scrim.js +0 -13
  194. package/dist/components/calcite-scrim.js.map +0 -1
  195. package/dist/components/calcite-select.js +0 -13
  196. package/dist/components/calcite-select.js.map +0 -1
  197. package/dist/components/calcite-shell-center-row.js +0 -102
  198. package/dist/components/calcite-shell-center-row.js.map +0 -1
  199. package/dist/components/calcite-shell-panel.js +0 -13
  200. package/dist/components/calcite-shell-panel.js.map +0 -1
  201. package/dist/components/calcite-shell.js +0 -13
  202. package/dist/components/calcite-shell.js.map +0 -1
  203. package/dist/components/calcite-slider.js +0 -13
  204. package/dist/components/calcite-slider.js.map +0 -1
  205. package/dist/components/calcite-sortable-list.js +0 -204
  206. package/dist/components/calcite-sortable-list.js.map +0 -1
  207. package/dist/components/calcite-split-button.js +0 -170
  208. package/dist/components/calcite-split-button.js.map +0 -1
  209. package/dist/components/calcite-stepper-item.js +0 -273
  210. package/dist/components/calcite-stepper-item.js.map +0 -1
  211. package/dist/components/calcite-stepper.js +0 -258
  212. package/dist/components/calcite-stepper.js.map +0 -1
  213. package/dist/components/calcite-switch.js +0 -13
  214. package/dist/components/calcite-switch.js.map +0 -1
  215. package/dist/components/calcite-tab-nav.js +0 -13
  216. package/dist/components/calcite-tab-nav.js.map +0 -1
  217. package/dist/components/calcite-tab-title.js +0 -13
  218. package/dist/components/calcite-tab-title.js.map +0 -1
  219. package/dist/components/calcite-tab.js +0 -13
  220. package/dist/components/calcite-tab.js.map +0 -1
  221. package/dist/components/calcite-tabs.js +0 -13
  222. package/dist/components/calcite-tabs.js.map +0 -1
  223. package/dist/components/calcite-tile-select-group.js +0 -67
  224. package/dist/components/calcite-tile-select-group.js.map +0 -1
  225. package/dist/components/calcite-tile-select.js +0 -268
  226. package/dist/components/calcite-tile-select.js.map +0 -1
  227. package/dist/components/calcite-tile.js +0 -13
  228. package/dist/components/calcite-tile.js.map +0 -1
  229. package/dist/components/calcite-time-picker.js +0 -13
  230. package/dist/components/calcite-time-picker.js.map +0 -1
  231. package/dist/components/calcite-tip-group.js +0 -43
  232. package/dist/components/calcite-tip-group.js.map +0 -1
  233. package/dist/components/calcite-tip-manager.js +0 -225
  234. package/dist/components/calcite-tip-manager.js.map +0 -1
  235. package/dist/components/calcite-tip.js +0 -164
  236. package/dist/components/calcite-tip.js.map +0 -1
  237. package/dist/components/calcite-tooltip-manager.js +0 -59
  238. package/dist/components/calcite-tooltip-manager.js.map +0 -1
  239. package/dist/components/calcite-tooltip.js +0 -13
  240. package/dist/components/calcite-tooltip.js.map +0 -1
  241. package/dist/components/calcite-tree-item.js +0 -13
  242. package/dist/components/calcite-tree-item.js.map +0 -1
  243. package/dist/components/calcite-tree.js +0 -13
  244. package/dist/components/calcite-tree.js.map +0 -1
  245. package/dist/components/calcite-value-list-item.js +0 -13
  246. package/dist/components/calcite-value-list-item.js.map +0 -1
  247. package/dist/components/calcite-value-list.js +0 -13
  248. package/dist/components/calcite-value-list.js.map +0 -1
  249. package/dist/components/check-list.d.ts +0 -11
  250. package/dist/components/check-list.js +0 -13
  251. package/dist/components/check-list.js.map +0 -1
  252. package/dist/components/check-list2.js +0 -128
  253. package/dist/components/check-list2.js.map +0 -1
  254. package/dist/components/checkbox.js +0 -167
  255. package/dist/components/checkbox.js.map +0 -1
  256. package/dist/components/chip.js +0 -172
  257. package/dist/components/chip.js.map +0 -1
  258. package/dist/components/color-picker-hex-input.js +0 -365
  259. package/dist/components/color-picker-hex-input.js.map +0 -1
  260. package/dist/components/color-picker-swatch.js +0 -2036
  261. package/dist/components/color-picker-swatch.js.map +0 -1
  262. package/dist/components/combobox-item.js +0 -184
  263. package/dist/components/combobox-item.js.map +0 -1
  264. package/dist/components/combobox.js +0 -914
  265. package/dist/components/combobox.js.map +0 -1
  266. package/dist/components/conditionalSlot.js +0 -52
  267. package/dist/components/conditionalSlot.js.map +0 -1
  268. package/dist/components/config-buffer-tools.d.ts +0 -11
  269. package/dist/components/config-buffer-tools.js +0 -185
  270. package/dist/components/config-buffer-tools.js.map +0 -1
  271. package/dist/components/config-draw-tools.d.ts +0 -11
  272. package/dist/components/config-draw-tools.js +0 -124
  273. package/dist/components/config-draw-tools.js.map +0 -1
  274. package/dist/components/config-layer-picker.d.ts +0 -11
  275. package/dist/components/config-layer-picker.js +0 -148
  276. package/dist/components/config-layer-picker.js.map +0 -1
  277. package/dist/components/config-pdf-download.d.ts +0 -11
  278. package/dist/components/config-pdf-download.js +0 -157
  279. package/dist/components/config-pdf-download.js.map +0 -1
  280. package/dist/components/date-picker-day.js +0 -113
  281. package/dist/components/date-picker-day.js.map +0 -1
  282. package/dist/components/date-picker-month-header.js +0 -226
  283. package/dist/components/date-picker-month-header.js.map +0 -1
  284. package/dist/components/date-picker-month.js +0 -346
  285. package/dist/components/date-picker-month.js.map +0 -1
  286. package/dist/components/date-picker.js +0 -577
  287. package/dist/components/date-picker.js.map +0 -1
  288. package/dist/components/date.js +0 -182
  289. package/dist/components/date.js.map +0 -1
  290. package/dist/components/debounce.js +0 -489
  291. package/dist/components/debounce.js.map +0 -1
  292. package/dist/components/dom.js +0 -233
  293. package/dist/components/dom.js.map +0 -1
  294. package/dist/components/dropdown.js +0 -507
  295. package/dist/components/dropdown.js.map +0 -1
  296. package/dist/components/filter.js +0 -765
  297. package/dist/components/filter.js.map +0 -1
  298. package/dist/components/floating-ui.js +0 -1787
  299. package/dist/components/floating-ui.js.map +0 -1
  300. package/dist/components/form.js +0 -230
  301. package/dist/components/form.js.map +0 -1
  302. package/dist/components/graph.js +0 -256
  303. package/dist/components/graph.js.map +0 -1
  304. package/dist/components/guid.js +0 -26
  305. package/dist/components/guid.js.map +0 -1
  306. package/dist/components/handle.js +0 -121
  307. package/dist/components/handle.js.map +0 -1
  308. package/dist/components/icon.js +0 -204
  309. package/dist/components/icon.js.map +0 -1
  310. package/dist/components/index.d.ts +0 -48
  311. package/dist/components/index.js +0 -190
  312. package/dist/components/index.js.map +0 -1
  313. package/dist/components/index2.js +0 -201
  314. package/dist/components/index2.js.map +0 -1
  315. package/dist/components/input-message.js +0 -103
  316. package/dist/components/input-message.js.map +0 -1
  317. package/dist/components/input.js +0 -742
  318. package/dist/components/input.js.map +0 -1
  319. package/dist/components/interactive.js +0 -53
  320. package/dist/components/interactive.js.map +0 -1
  321. package/dist/components/interfaces.js +0 -21
  322. package/dist/components/interfaces.js.map +0 -1
  323. package/dist/components/interfaces2.js +0 -23
  324. package/dist/components/interfaces2.js.map +0 -1
  325. package/dist/components/interfaces3.js +0 -72
  326. package/dist/components/interfaces3.js.map +0 -1
  327. package/dist/components/json-editor.d.ts +0 -11
  328. package/dist/components/json-editor.js +0 -13
  329. package/dist/components/json-editor.js.map +0 -1
  330. package/dist/components/json-editor2.js +0 -443
  331. package/dist/components/json-editor2.js.map +0 -1
  332. package/dist/components/key.js +0 -18
  333. package/dist/components/key.js.map +0 -1
  334. package/dist/components/label.js +0 -108
  335. package/dist/components/label.js.map +0 -1
  336. package/dist/components/label2.js +0 -133
  337. package/dist/components/label2.js.map +0 -1
  338. package/dist/components/labelFormats.js +0 -212
  339. package/dist/components/labelFormats.js.map +0 -1
  340. package/dist/components/link.js +0 -125
  341. package/dist/components/link.js.map +0 -1
  342. package/dist/components/list-item.js +0 -151
  343. package/dist/components/list-item.js.map +0 -1
  344. package/dist/components/list.js +0 -85
  345. package/dist/components/list.js.map +0 -1
  346. package/dist/components/loadModules.js +0 -30
  347. package/dist/components/loadModules.js.map +0 -1
  348. package/dist/components/loader.js +0 -118
  349. package/dist/components/loader.js.map +0 -1
  350. package/dist/components/locale.js +0 -414
  351. package/dist/components/locale.js.map +0 -1
  352. package/dist/components/locale2.js +0 -415
  353. package/dist/components/locale2.js.map +0 -1
  354. package/dist/components/map-draw-tools.d.ts +0 -11
  355. package/dist/components/map-draw-tools.js +0 -13
  356. package/dist/components/map-draw-tools.js.map +0 -1
  357. package/dist/components/map-draw-tools2.js +0 -230
  358. package/dist/components/map-draw-tools2.js.map +0 -1
  359. package/dist/components/map-layer-picker.d.ts +0 -11
  360. package/dist/components/map-layer-picker.js +0 -13
  361. package/dist/components/map-layer-picker.js.map +0 -1
  362. package/dist/components/map-layer-picker2.js +0 -190
  363. package/dist/components/map-layer-picker2.js.map +0 -1
  364. package/dist/components/map-search.d.ts +0 -11
  365. package/dist/components/map-search.js +0 -157
  366. package/dist/components/map-search.js.map +0 -1
  367. package/dist/components/map-select-tools.d.ts +0 -11
  368. package/dist/components/map-select-tools.js +0 -13
  369. package/dist/components/map-select-tools.js.map +0 -1
  370. package/dist/components/map-select-tools2.js +0 -555
  371. package/dist/components/map-select-tools2.js.map +0 -1
  372. package/dist/components/mapViewUtils.js +0 -131
  373. package/dist/components/mapViewUtils.js.map +0 -1
  374. package/dist/components/math.js +0 -26
  375. package/dist/components/math.js.map +0 -1
  376. package/dist/components/nonChromiumPlatformUtils.js +0 -505
  377. package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
  378. package/dist/components/notice.js +0 -194
  379. package/dist/components/notice.js.map +0 -1
  380. package/dist/components/observers.js +0 -58
  381. package/dist/components/observers.js.map +0 -1
  382. package/dist/components/openCloseComponent.js +0 -58
  383. package/dist/components/openCloseComponent.js.map +0 -1
  384. package/dist/components/option.js +0 -111
  385. package/dist/components/option.js.map +0 -1
  386. package/dist/components/panel.js +0 -461
  387. package/dist/components/panel.js.map +0 -1
  388. package/dist/components/pdf-download.d.ts +0 -11
  389. package/dist/components/pdf-download.js +0 -13
  390. package/dist/components/pdf-download.js.map +0 -1
  391. package/dist/components/pdf-download2.js +0 -243
  392. package/dist/components/pdf-download2.js.map +0 -1
  393. package/dist/components/pick-list-item.js +0 -257
  394. package/dist/components/pick-list-item.js.map +0 -1
  395. package/dist/components/popover.js +0 -502
  396. package/dist/components/popover.js.map +0 -1
  397. package/dist/components/progress.js +0 -62
  398. package/dist/components/progress.js.map +0 -1
  399. package/dist/components/public-notification.d.ts +0 -11
  400. package/dist/components/public-notification.js +0 -784
  401. package/dist/components/public-notification.js.map +0 -1
  402. package/dist/components/publicNotificationStore.js +0 -40
  403. package/dist/components/publicNotificationStore.js.map +0 -1
  404. package/dist/components/queryUtils.js +0 -163
  405. package/dist/components/queryUtils.js.map +0 -1
  406. package/dist/components/radio-group-item.js +0 -103
  407. package/dist/components/radio-group-item.js.map +0 -1
  408. package/dist/components/radio-group.js +0 -237
  409. package/dist/components/radio-group.js.map +0 -1
  410. package/dist/components/refine-selection-tools.d.ts +0 -11
  411. package/dist/components/refine-selection-tools.js +0 -13
  412. package/dist/components/refine-selection-tools.js.map +0 -1
  413. package/dist/components/refine-selection-tools2.js +0 -500
  414. package/dist/components/refine-selection-tools2.js.map +0 -1
  415. package/dist/components/refine-selection.d.ts +0 -11
  416. package/dist/components/refine-selection.js +0 -13
  417. package/dist/components/refine-selection.js.map +0 -1
  418. package/dist/components/refine-selection2.js +0 -369
  419. package/dist/components/refine-selection2.js.map +0 -1
  420. package/dist/components/resources.js +0 -26
  421. package/dist/components/resources.js.map +0 -1
  422. package/dist/components/resources2.js +0 -23
  423. package/dist/components/resources2.js.map +0 -1
  424. package/dist/components/resources3.js +0 -40
  425. package/dist/components/resources3.js.map +0 -1
  426. package/dist/components/scrim.js +0 -85
  427. package/dist/components/scrim.js.map +0 -1
  428. package/dist/components/select.js +0 -261
  429. package/dist/components/select.js.map +0 -1
  430. package/dist/components/shared-list-render.js +0 -321
  431. package/dist/components/shared-list-render.js.map +0 -1
  432. package/dist/components/shell-panel.js +0 -283
  433. package/dist/components/shell-panel.js.map +0 -1
  434. package/dist/components/shell.js +0 -123
  435. package/dist/components/shell.js.map +0 -1
  436. package/dist/components/slider.js +0 -898
  437. package/dist/components/slider.js.map +0 -1
  438. package/dist/components/solution-configuration.d.ts +0 -11
  439. package/dist/components/solution-configuration.js +0 -1141
  440. package/dist/components/solution-configuration.js.map +0 -1
  441. package/dist/components/solution-contents.d.ts +0 -11
  442. package/dist/components/solution-contents.js +0 -13
  443. package/dist/components/solution-contents.js.map +0 -1
  444. package/dist/components/solution-contents2.js +0 -130
  445. package/dist/components/solution-contents2.js.map +0 -1
  446. package/dist/components/solution-item-details.d.ts +0 -11
  447. package/dist/components/solution-item-details.js +0 -13
  448. package/dist/components/solution-item-details.js.map +0 -1
  449. package/dist/components/solution-item-details2.js +0 -236
  450. package/dist/components/solution-item-details2.js.map +0 -1
  451. package/dist/components/solution-item-icon.d.ts +0 -11
  452. package/dist/components/solution-item-icon.js +0 -13
  453. package/dist/components/solution-item-icon.js.map +0 -1
  454. package/dist/components/solution-item-icon2.js +0 -344
  455. package/dist/components/solution-item-icon2.js.map +0 -1
  456. package/dist/components/solution-item-sharing.d.ts +0 -11
  457. package/dist/components/solution-item-sharing.js +0 -13
  458. package/dist/components/solution-item-sharing.js.map +0 -1
  459. package/dist/components/solution-item-sharing2.js +0 -169
  460. package/dist/components/solution-item-sharing2.js.map +0 -1
  461. package/dist/components/solution-item.d.ts +0 -11
  462. package/dist/components/solution-item.js +0 -13
  463. package/dist/components/solution-item.js.map +0 -1
  464. package/dist/components/solution-item2.js +0 -317
  465. package/dist/components/solution-item2.js.map +0 -1
  466. package/dist/components/solution-organization-variables.d.ts +0 -11
  467. package/dist/components/solution-organization-variables.js +0 -13
  468. package/dist/components/solution-organization-variables.js.map +0 -1
  469. package/dist/components/solution-organization-variables2.js +0 -134
  470. package/dist/components/solution-organization-variables2.js.map +0 -1
  471. package/dist/components/solution-resource-item.d.ts +0 -11
  472. package/dist/components/solution-resource-item.js +0 -13
  473. package/dist/components/solution-resource-item.js.map +0 -1
  474. package/dist/components/solution-resource-item2.js +0 -358
  475. package/dist/components/solution-resource-item2.js.map +0 -1
  476. package/dist/components/solution-spatial-ref.d.ts +0 -11
  477. package/dist/components/solution-spatial-ref.js +0 -13
  478. package/dist/components/solution-spatial-ref.js.map +0 -1
  479. package/dist/components/solution-spatial-ref2.js +0 -21448
  480. package/dist/components/solution-spatial-ref2.js.map +0 -1
  481. package/dist/components/solution-store.js +0 -4094
  482. package/dist/components/solution-store.js.map +0 -1
  483. package/dist/components/solution-template-data.d.ts +0 -11
  484. package/dist/components/solution-template-data.js +0 -13
  485. package/dist/components/solution-template-data.js.map +0 -1
  486. package/dist/components/solution-template-data2.js +0 -235
  487. package/dist/components/solution-template-data2.js.map +0 -1
  488. package/dist/components/solution-variables.d.ts +0 -11
  489. package/dist/components/solution-variables.js +0 -13
  490. package/dist/components/solution-variables.js.map +0 -1
  491. package/dist/components/solution-variables2.js +0 -152
  492. package/dist/components/solution-variables2.js.map +0 -1
  493. package/dist/components/sortable.esm.js +0 -3028
  494. package/dist/components/sortable.esm.js.map +0 -1
  495. package/dist/components/store-manager.d.ts +0 -11
  496. package/dist/components/store-manager.js +0 -85
  497. package/dist/components/store-manager.js.map +0 -1
  498. package/dist/components/switch.js +0 -141
  499. package/dist/components/switch.js.map +0 -1
  500. package/dist/components/tab-nav.js +0 -243
  501. package/dist/components/tab-nav.js.map +0 -1
  502. package/dist/components/tab-title.js +0 -278
  503. package/dist/components/tab-title.js.map +0 -1
  504. package/dist/components/tab.js +0 -156
  505. package/dist/components/tab.js.map +0 -1
  506. package/dist/components/tabs.js +0 -190
  507. package/dist/components/tabs.js.map +0 -1
  508. package/dist/components/tile.js +0 -131
  509. package/dist/components/tile.js.map +0 -1
  510. package/dist/components/time-picker.js +0 -945
  511. package/dist/components/time-picker.js.map +0 -1
  512. package/dist/components/tooltip.js +0 -401
  513. package/dist/components/tooltip.js.map +0 -1
  514. package/dist/components/tree-item.js +0 -296
  515. package/dist/components/tree-item.js.map +0 -1
  516. package/dist/components/tree.js +0 -329
  517. package/dist/components/tree.js.map +0 -1
  518. package/dist/components/utils.js +0 -121
  519. package/dist/components/utils.js.map +0 -1
  520. package/dist/components/utils2.js +0 -53
  521. package/dist/components/utils2.js.map +0 -1
  522. package/dist/components/value-list-item.js +0 -206
  523. package/dist/components/value-list-item.js.map +0 -1
  524. package/dist/components/value-list.js +0 -335
  525. package/dist/components/value-list.js.map +0 -1
  526. package/dist/esm/solution-store-c1f6173a.js.map +0 -1
  527. package/dist/solutions-components/p-065830b8.js.map +0 -1
  528. package/dist/solutions-components/p-0e7a0839.entry.js.map +0 -1
  529. package/dist/solutions-components/p-401541a5.entry.js +0 -895
  530. package/dist/solutions-components/p-401541a5.entry.js.map +0 -1
  531. package/dist/solutions-components/p-ee9be0ef.entry.js.map +0 -1
@@ -1,329 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { f as focusElement, n as nodeListToArray, o as getRootNode } from './dom.js';
8
- import { T as TreeSelectionMode } from './interfaces2.js';
9
-
10
- /*!
11
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
12
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
13
- * v1.0.0-beta.97
14
- */
15
- function isTreeItem(element) {
16
- return element === null || element === void 0 ? void 0 : element.matches("calcite-tree-item");
17
- }
18
- function getEnabledSiblingItem(el, direction) {
19
- const directionProp = direction === "down" ? "nextElementSibling" : "previousElementSibling";
20
- let currentEl = el;
21
- let enabledEl = null;
22
- while (isTreeItem(currentEl)) {
23
- if (!currentEl.disabled) {
24
- enabledEl = currentEl;
25
- break;
26
- }
27
- currentEl = currentEl[directionProp];
28
- }
29
- return enabledEl;
30
- }
31
-
32
- const treeCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}";
33
-
34
- const Tree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
35
- constructor() {
36
- super();
37
- this.__registerHost();
38
- this.__attachShadow();
39
- this.calciteTreeSelect = createEvent(this, "calciteTreeSelect", 6);
40
- //--------------------------------------------------------------------------
41
- //
42
- // Properties
43
- //
44
- //--------------------------------------------------------------------------
45
- /** Displays indentation guide lines. */
46
- this.lines = false;
47
- /**
48
- * Display input
49
- *
50
- * @deprecated Use `selectionMode="ancestors"` for checkbox input.
51
- */
52
- this.inputEnabled = false;
53
- /** Specifies the size of the component. */
54
- this.scale = "m";
55
- /**
56
- * Customize how the component's selection works.
57
- *
58
- * @default "single"
59
- * @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)
60
- */
61
- this.selectionMode = TreeSelectionMode.Single;
62
- }
63
- //--------------------------------------------------------------------------
64
- //
65
- // Lifecycle
66
- //
67
- //--------------------------------------------------------------------------
68
- componentWillRender() {
69
- var _a;
70
- const parent = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree");
71
- this.lines = parent ? parent.lines : this.lines;
72
- this.scale = parent ? parent.scale : this.scale;
73
- this.selectionMode = parent ? parent.selectionMode : this.selectionMode;
74
- this.child = !!parent;
75
- }
76
- render() {
77
- return (h(Host, { "aria-multiselectable": this.child
78
- ? undefined
79
- : (this.selectionMode === TreeSelectionMode.Multi ||
80
- this.selectionMode === TreeSelectionMode.MultiChildren).toString(), role: !this.child ? "tree" : undefined, tabIndex: this.getRootTabIndex() }, h("slot", null)));
81
- }
82
- //--------------------------------------------------------------------------
83
- //
84
- // Event Listeners
85
- //
86
- //--------------------------------------------------------------------------
87
- onFocus() {
88
- if (!this.child) {
89
- const focusTarget = this.el.querySelector("calcite-tree-item[selected]:not([disabled])") || this.el.querySelector("calcite-tree-item:not([disabled])");
90
- focusElement(focusTarget);
91
- }
92
- }
93
- onFocusIn(event) {
94
- const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
95
- if (focusedFromRootOrOutsideTree) {
96
- // gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
97
- this.el.removeAttribute("tabindex");
98
- }
99
- }
100
- onFocusOut(event) {
101
- const willFocusOutsideTree = !this.el.contains(event.relatedTarget);
102
- if (willFocusOutsideTree) {
103
- this.el.tabIndex = this.getRootTabIndex();
104
- }
105
- }
106
- onClick(event) {
107
- const target = event.target;
108
- const childItems = nodeListToArray(target.querySelectorAll("calcite-tree-item"));
109
- if (this.child) {
110
- return;
111
- }
112
- if (!this.child) {
113
- event.preventDefault();
114
- event.stopPropagation();
115
- }
116
- if (this.selectionMode === TreeSelectionMode.Ancestors && !this.child) {
117
- this.updateAncestorTree(event);
118
- return;
119
- }
120
- const isNoneSelectionMode = this.selectionMode === TreeSelectionMode.None;
121
- const shouldSelect = this.selectionMode !== null &&
122
- (!target.hasChildren ||
123
- (target.hasChildren &&
124
- (this.selectionMode === TreeSelectionMode.Children ||
125
- this.selectionMode === TreeSelectionMode.MultiChildren)));
126
- const shouldModifyToCurrentSelection = !isNoneSelectionMode &&
127
- event.detail.modifyCurrentSelection &&
128
- (this.selectionMode === TreeSelectionMode.Multi ||
129
- this.selectionMode === TreeSelectionMode.MultiChildren);
130
- const shouldSelectChildren = this.selectionMode === TreeSelectionMode.MultiChildren ||
131
- this.selectionMode === TreeSelectionMode.Children;
132
- const shouldClearCurrentSelection = !shouldModifyToCurrentSelection &&
133
- (((this.selectionMode === TreeSelectionMode.Single ||
134
- this.selectionMode === TreeSelectionMode.Multi) &&
135
- childItems.length <= 0) ||
136
- this.selectionMode === TreeSelectionMode.Children ||
137
- this.selectionMode === TreeSelectionMode.MultiChildren);
138
- const shouldExpandTarget = this.selectionMode === TreeSelectionMode.Children ||
139
- this.selectionMode === TreeSelectionMode.MultiChildren;
140
- if (!this.child) {
141
- const targetItems = [];
142
- if (shouldSelect) {
143
- targetItems.push(target);
144
- }
145
- if (shouldSelectChildren) {
146
- childItems.forEach((treeItem) => {
147
- targetItems.push(treeItem);
148
- });
149
- }
150
- if (shouldClearCurrentSelection) {
151
- const selectedItems = nodeListToArray(this.el.querySelectorAll("calcite-tree-item[selected]"));
152
- selectedItems.forEach((treeItem) => {
153
- if (!targetItems.includes(treeItem)) {
154
- treeItem.selected = false;
155
- }
156
- });
157
- }
158
- if (shouldExpandTarget && !event.detail.forceToggle) {
159
- target.expanded = true;
160
- }
161
- if (shouldModifyToCurrentSelection) {
162
- window.getSelection().removeAllRanges();
163
- }
164
- if ((shouldModifyToCurrentSelection && target.selected) ||
165
- (shouldSelectChildren && event.detail.forceToggle)) {
166
- targetItems.forEach((treeItem) => {
167
- if (!treeItem.disabled) {
168
- treeItem.selected = false;
169
- }
170
- });
171
- }
172
- else if (!isNoneSelectionMode) {
173
- targetItems.forEach((treeItem) => {
174
- if (!treeItem.disabled) {
175
- treeItem.selected = true;
176
- }
177
- });
178
- }
179
- }
180
- const selected = isNoneSelectionMode
181
- ? [target]
182
- : nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected);
183
- this.calciteTreeSelect.emit({ selected });
184
- event.stopPropagation();
185
- }
186
- keyDownHandler(event) {
187
- var _a;
188
- const root = this.el.closest("calcite-tree:not([child])");
189
- const target = event.target;
190
- if (!(root === this.el && target.tagName === "CALCITE-TREE-ITEM" && this.el.contains(target))) {
191
- return;
192
- }
193
- if (event.key === "ArrowDown") {
194
- const next = getEnabledSiblingItem(target.nextElementSibling, "down");
195
- if (next) {
196
- next.focus();
197
- event.preventDefault();
198
- }
199
- return;
200
- }
201
- if (event.key === "ArrowUp") {
202
- const previous = getEnabledSiblingItem(target.previousElementSibling, "up");
203
- if (previous) {
204
- previous.focus();
205
- event.preventDefault();
206
- }
207
- }
208
- if (event.key === "ArrowLeft" && !target.disabled) {
209
- // When focus is on an open node, closes the node.
210
- if (target.hasChildren && target.expanded) {
211
- target.expanded = false;
212
- event.preventDefault();
213
- return;
214
- }
215
- // When focus is on a child node that is also either an end node or a closed node, moves focus to its parent node.
216
- const parentItem = target.parentElement.closest("calcite-tree-item");
217
- if (parentItem && (!target.hasChildren || target.expanded === false)) {
218
- parentItem.focus();
219
- event.preventDefault();
220
- return;
221
- }
222
- // When focus is on a root node that is also either an end node or a closed node, does nothing.
223
- return;
224
- }
225
- if (event.key === "ArrowRight" && !target.disabled) {
226
- if (target.hasChildren) {
227
- if (target.expanded && getRootNode(this.el).activeElement === target) {
228
- // When focus is on an open node, moves focus to the first child node.
229
- (_a = getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")) === null || _a === void 0 ? void 0 : _a.focus();
230
- event.preventDefault();
231
- }
232
- else {
233
- // When focus is on a closed node, opens the node; focus does not move.
234
- target.expanded = true;
235
- event.preventDefault();
236
- }
237
- }
238
- return;
239
- }
240
- }
241
- updateAncestorTree(event) {
242
- const item = event.target;
243
- if (item.disabled) {
244
- return;
245
- }
246
- const ancestors = [];
247
- let parent = item.parentElement.closest("calcite-tree-item");
248
- while (parent) {
249
- ancestors.push(parent);
250
- parent = parent.parentElement.closest("calcite-tree-item");
251
- }
252
- const childItems = Array.from(item.querySelectorAll("calcite-tree-item:not([disabled])"));
253
- const childItemsWithNoChildren = childItems.filter((child) => !child.hasChildren);
254
- const childItemsWithChildren = childItems.filter((child) => child.hasChildren);
255
- const futureSelected = item.hasChildren
256
- ? !(item.selected || item.indeterminate)
257
- : !item.selected;
258
- childItemsWithNoChildren.forEach((el) => {
259
- el.selected = futureSelected;
260
- el.indeterminate = false;
261
- });
262
- function updateItemState(childItems, item) {
263
- const selected = childItems.filter((child) => child.selected);
264
- const unselected = childItems.filter((child) => !child.selected);
265
- item.selected = selected.length === childItems.length;
266
- item.indeterminate = selected.length > 0 && unselected.length > 0;
267
- }
268
- childItemsWithChildren.forEach((el) => {
269
- const directChildItems = Array.from(el.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));
270
- updateItemState(directChildItems, el);
271
- });
272
- if (item.hasChildren) {
273
- updateItemState(childItems, item);
274
- }
275
- else {
276
- item.selected = futureSelected;
277
- item.indeterminate = false;
278
- }
279
- ancestors.forEach((ancestor) => {
280
- const descendants = nodeListToArray(ancestor.querySelectorAll("calcite-tree-item"));
281
- const activeDescendants = descendants.filter((el) => el.selected);
282
- if (activeDescendants.length === 0) {
283
- ancestor.selected = false;
284
- ancestor.indeterminate = false;
285
- return;
286
- }
287
- const indeterminate = activeDescendants.length < descendants.length;
288
- ancestor.indeterminate = indeterminate;
289
- ancestor.selected = !indeterminate;
290
- });
291
- this.calciteTreeSelect.emit({
292
- selected: nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected)
293
- });
294
- }
295
- // --------------------------------------------------------------------------
296
- //
297
- // Private Methods
298
- //
299
- //--------------------------------------------------------------------------
300
- getRootTabIndex() {
301
- return !this.child ? 0 : -1;
302
- }
303
- get el() { return this; }
304
- static get style() { return treeCss; }
305
- }, [1, "calcite-tree", {
306
- "lines": [1540],
307
- "inputEnabled": [4, "input-enabled"],
308
- "child": [1540],
309
- "scale": [1537],
310
- "selectionMode": [1537, "selection-mode"]
311
- }, [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "calciteInternalTreeItemSelect", "onClick"], [0, "keydown", "keyDownHandler"]]]);
312
- function defineCustomElement() {
313
- if (typeof customElements === "undefined") {
314
- return;
315
- }
316
- const components = ["calcite-tree"];
317
- components.forEach(tagName => { switch (tagName) {
318
- case "calcite-tree":
319
- if (!customElements.get(tagName)) {
320
- customElements.define(tagName, Tree);
321
- }
322
- break;
323
- } });
324
- }
325
- defineCustomElement();
326
-
327
- export { Tree as T, defineCustomElement as d };
328
-
329
- //# sourceMappingURL=tree.js.map
@@ -1 +0,0 @@
1
- {"file":"tree.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,OAAO,EAAE;AAC7B,EAAE,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChG,CAAC;AACM,SAAS,qBAAqB,CAAC,EAAE,EAAE,SAAS,EAAE;AACrD,EAAE,MAAM,aAAa,GAAG,SAAS,KAAK,MAAM,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAC/F,EAAE,IAAI,SAAS,GAAG,EAAE,CAAC;AACrB,EAAE,IAAI,SAAS,GAAG,IAAI,CAAC;AACvB,EAAE,OAAO,UAAU,CAAC,SAAS,CAAC,EAAE;AAChC,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;AAC7B,MAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,MAAM,MAAM;AACZ,KAAK;AACL,IAAI,SAAS,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,OAAO,SAAS,CAA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],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/tree/utils.js","./node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css?tag=calcite-tree&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/tree/tree.js"],"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 * v1.0.0-beta.97\n */\nfunction isTreeItem(element) {\n return element === null || element === void 0 ? void 0 : element.matches(\"calcite-tree-item\");\n}\nexport function getEnabledSiblingItem(el, direction) {\n const directionProp = direction === \"down\" ? \"nextElementSibling\" : \"previousElementSibling\";\n let currentEl = el;\n let enabledEl = null;\n while (isTreeItem(currentEl)) {\n if (!currentEl.disabled) {\n enabledEl = currentEl;\n break;\n }\n currentEl = currentEl[directionProp];\n }\n return enabledEl;\n}\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\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@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n}\n\n:host(:focus) {\n outline: 2px solid transparent;\n outline-offset: 2px;\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 * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { focusElement, getRootNode, nodeListToArray } from \"../../utils/dom\";\nimport { TreeSelectionMode } from \"./interfaces\";\nimport { getEnabledSiblingItem } from \"./utils\";\n/**\n * @slot - A slot for `calcite-tree-item` elements.\n */\nexport class Tree {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Displays indentation guide lines. */\n this.lines = false;\n /**\n * Display input\n *\n * @deprecated Use `selectionMode=\"ancestors\"` for checkbox input.\n */\n this.inputEnabled = false;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /**\n * Customize how the component's selection works.\n *\n * @default \"single\"\n * @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)\n */\n this.selectionMode = TreeSelectionMode.Single;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillRender() {\n var _a;\n const parent = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest(\"calcite-tree\");\n this.lines = parent ? parent.lines : this.lines;\n this.scale = parent ? parent.scale : this.scale;\n this.selectionMode = parent ? parent.selectionMode : this.selectionMode;\n this.child = !!parent;\n }\n render() {\n return (h(Host, { \"aria-multiselectable\": this.child\n ? undefined\n : (this.selectionMode === TreeSelectionMode.Multi ||\n this.selectionMode === TreeSelectionMode.MultiChildren).toString(), role: !this.child ? \"tree\" : undefined, tabIndex: this.getRootTabIndex() }, h(\"slot\", null)));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n onFocus() {\n if (!this.child) {\n const focusTarget = this.el.querySelector(\"calcite-tree-item[selected]:not([disabled])\") || this.el.querySelector(\"calcite-tree-item:not([disabled])\");\n focusElement(focusTarget);\n }\n }\n onFocusIn(event) {\n const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);\n if (focusedFromRootOrOutsideTree) {\n // gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)\n this.el.removeAttribute(\"tabindex\");\n }\n }\n onFocusOut(event) {\n const willFocusOutsideTree = !this.el.contains(event.relatedTarget);\n if (willFocusOutsideTree) {\n this.el.tabIndex = this.getRootTabIndex();\n }\n }\n onClick(event) {\n const target = event.target;\n const childItems = nodeListToArray(target.querySelectorAll(\"calcite-tree-item\"));\n if (this.child) {\n return;\n }\n if (!this.child) {\n event.preventDefault();\n event.stopPropagation();\n }\n if (this.selectionMode === TreeSelectionMode.Ancestors && !this.child) {\n this.updateAncestorTree(event);\n return;\n }\n const isNoneSelectionMode = this.selectionMode === TreeSelectionMode.None;\n const shouldSelect = this.selectionMode !== null &&\n (!target.hasChildren ||\n (target.hasChildren &&\n (this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren)));\n const shouldModifyToCurrentSelection = !isNoneSelectionMode &&\n event.detail.modifyCurrentSelection &&\n (this.selectionMode === TreeSelectionMode.Multi ||\n this.selectionMode === TreeSelectionMode.MultiChildren);\n const shouldSelectChildren = this.selectionMode === TreeSelectionMode.MultiChildren ||\n this.selectionMode === TreeSelectionMode.Children;\n const shouldClearCurrentSelection = !shouldModifyToCurrentSelection &&\n (((this.selectionMode === TreeSelectionMode.Single ||\n this.selectionMode === TreeSelectionMode.Multi) &&\n childItems.length <= 0) ||\n this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren);\n const shouldExpandTarget = this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren;\n if (!this.child) {\n const targetItems = [];\n if (shouldSelect) {\n targetItems.push(target);\n }\n if (shouldSelectChildren) {\n childItems.forEach((treeItem) => {\n targetItems.push(treeItem);\n });\n }\n if (shouldClearCurrentSelection) {\n const selectedItems = nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item[selected]\"));\n selectedItems.forEach((treeItem) => {\n if (!targetItems.includes(treeItem)) {\n treeItem.selected = false;\n }\n });\n }\n if (shouldExpandTarget && !event.detail.forceToggle) {\n target.expanded = true;\n }\n if (shouldModifyToCurrentSelection) {\n window.getSelection().removeAllRanges();\n }\n if ((shouldModifyToCurrentSelection && target.selected) ||\n (shouldSelectChildren && event.detail.forceToggle)) {\n targetItems.forEach((treeItem) => {\n if (!treeItem.disabled) {\n treeItem.selected = false;\n }\n });\n }\n else if (!isNoneSelectionMode) {\n targetItems.forEach((treeItem) => {\n if (!treeItem.disabled) {\n treeItem.selected = true;\n }\n });\n }\n }\n const selected = isNoneSelectionMode\n ? [target]\n : nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item\")).filter((i) => i.selected);\n this.calciteTreeSelect.emit({ selected });\n event.stopPropagation();\n }\n keyDownHandler(event) {\n var _a;\n const root = this.el.closest(\"calcite-tree:not([child])\");\n const target = event.target;\n if (!(root === this.el && target.tagName === \"CALCITE-TREE-ITEM\" && this.el.contains(target))) {\n return;\n }\n if (event.key === \"ArrowDown\") {\n const next = getEnabledSiblingItem(target.nextElementSibling, \"down\");\n if (next) {\n next.focus();\n event.preventDefault();\n }\n return;\n }\n if (event.key === \"ArrowUp\") {\n const previous = getEnabledSiblingItem(target.previousElementSibling, \"up\");\n if (previous) {\n previous.focus();\n event.preventDefault();\n }\n }\n if (event.key === \"ArrowLeft\" && !target.disabled) {\n // When focus is on an open node, closes the node.\n if (target.hasChildren && target.expanded) {\n target.expanded = false;\n event.preventDefault();\n return;\n }\n // When focus is on a child node that is also either an end node or a closed node, moves focus to its parent node.\n const parentItem = target.parentElement.closest(\"calcite-tree-item\");\n if (parentItem && (!target.hasChildren || target.expanded === false)) {\n parentItem.focus();\n event.preventDefault();\n return;\n }\n // When focus is on a root node that is also either an end node or a closed node, does nothing.\n return;\n }\n if (event.key === \"ArrowRight\" && !target.disabled) {\n if (target.hasChildren) {\n if (target.expanded && getRootNode(this.el).activeElement === target) {\n // When focus is on an open node, moves focus to the first child node.\n (_a = getEnabledSiblingItem(target.querySelector(\"calcite-tree-item\"), \"down\")) === null || _a === void 0 ? void 0 : _a.focus();\n event.preventDefault();\n }\n else {\n // When focus is on a closed node, opens the node; focus does not move.\n target.expanded = true;\n event.preventDefault();\n }\n }\n return;\n }\n }\n updateAncestorTree(event) {\n const item = event.target;\n if (item.disabled) {\n return;\n }\n const ancestors = [];\n let parent = item.parentElement.closest(\"calcite-tree-item\");\n while (parent) {\n ancestors.push(parent);\n parent = parent.parentElement.closest(\"calcite-tree-item\");\n }\n const childItems = Array.from(item.querySelectorAll(\"calcite-tree-item:not([disabled])\"));\n const childItemsWithNoChildren = childItems.filter((child) => !child.hasChildren);\n const childItemsWithChildren = childItems.filter((child) => child.hasChildren);\n const futureSelected = item.hasChildren\n ? !(item.selected || item.indeterminate)\n : !item.selected;\n childItemsWithNoChildren.forEach((el) => {\n el.selected = futureSelected;\n el.indeterminate = false;\n });\n function updateItemState(childItems, item) {\n const selected = childItems.filter((child) => child.selected);\n const unselected = childItems.filter((child) => !child.selected);\n item.selected = selected.length === childItems.length;\n item.indeterminate = selected.length > 0 && unselected.length > 0;\n }\n childItemsWithChildren.forEach((el) => {\n const directChildItems = Array.from(el.querySelectorAll(\":scope > calcite-tree > calcite-tree-item\"));\n updateItemState(directChildItems, el);\n });\n if (item.hasChildren) {\n updateItemState(childItems, item);\n }\n else {\n item.selected = futureSelected;\n item.indeterminate = false;\n }\n ancestors.forEach((ancestor) => {\n const descendants = nodeListToArray(ancestor.querySelectorAll(\"calcite-tree-item\"));\n const activeDescendants = descendants.filter((el) => el.selected);\n if (activeDescendants.length === 0) {\n ancestor.selected = false;\n ancestor.indeterminate = false;\n return;\n }\n const indeterminate = activeDescendants.length < descendants.length;\n ancestor.indeterminate = indeterminate;\n ancestor.selected = !indeterminate;\n });\n this.calciteTreeSelect.emit({\n selected: nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item\")).filter((i) => i.selected)\n });\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n getRootTabIndex() {\n return !this.child ? 0 : -1;\n }\n static get is() { return \"calcite-tree\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"tree.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"tree.css\"]\n };\n }\n static get properties() {\n return {\n \"lines\": {\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\": \"Displays indentation guide lines.\"\n },\n \"attribute\": \"lines\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"inputEnabled\": {\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\": \"deprecated\",\n \"text\": \"Use `selectionMode=\\\"ancestors\\\"` for checkbox input.\"\n }],\n \"text\": \"Display input\"\n },\n \"attribute\": \"input-enabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"child\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"attribute\": \"child\",\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\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"selectionMode\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"TreeSelectionMode\",\n \"resolved\": \"TreeSelectionMode.Ancestors | TreeSelectionMode.Children | TreeSelectionMode.Multi | TreeSelectionMode.MultiChildren | TreeSelectionMode.None | TreeSelectionMode.Single\",\n \"references\": {\n \"TreeSelectionMode\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"single\\\"\"\n }, {\n \"name\": \"see\",\n \"text\": \"[TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)\"\n }],\n \"text\": \"Customize how the component's selection works.\"\n },\n \"attribute\": \"selection-mode\",\n \"reflect\": true,\n \"defaultValue\": \"TreeSelectionMode.Single\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteTreeSelect\",\n \"name\": \"calciteTreeSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \"[TreeSelectDetail](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L1)\"\n }],\n \"text\": \"Fires when the user selects/deselects `calcite-tree-items`. An object including an array of selected items will be passed in the event's `detail` property.\"\n },\n \"complexType\": {\n \"original\": \"TreeSelectDetail\",\n \"resolved\": \"TreeSelectDetail\",\n \"references\": {\n \"TreeSelectDetail\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"focus\",\n \"method\": \"onFocus\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"focusin\",\n \"method\": \"onFocusIn\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"focusout\",\n \"method\": \"onFocusOut\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalTreeItemSelect\",\n \"method\": \"onClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"keyDownHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
@@ -1,121 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- /*!
7
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
8
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
9
- * v1.0.0-beta.97
10
- */
11
- function rgbToHex(color) {
12
- const { r, g, b } = color;
13
- return `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b
14
- .toString(16)
15
- .padStart(2, "0")}`.toLowerCase();
16
- }
17
- const hexChar = /^[0-9A-F]$/i;
18
- const shortHandHex = /^#[0-9A-F]{3}$/i;
19
- const longhandHex = /^#[0-9A-F]{6}$/i;
20
- function isValidHex(hex) {
21
- return isShorthandHex(hex) || isLonghandHex(hex);
22
- }
23
- function isShorthandHex(hex) {
24
- return hex && hex.length === 4 && shortHandHex.test(hex);
25
- }
26
- function isLonghandHex(hex) {
27
- return hex && hex.length === 7 && longhandHex.test(hex);
28
- }
29
- function normalizeHex(hex) {
30
- hex = hex.toLowerCase();
31
- if (!hex.startsWith("#")) {
32
- hex = `#${hex}`;
33
- }
34
- if (isShorthandHex(hex)) {
35
- return rgbToHex(hexToRGB(hex));
36
- }
37
- return hex;
38
- }
39
- function hexToRGB(hex) {
40
- if (!isValidHex(hex)) {
41
- return null;
42
- }
43
- hex = hex.replace("#", "");
44
- if (hex.length === 3) {
45
- const [first, second, third] = hex.split("");
46
- const r = parseInt(`${first}${first}`, 16);
47
- const g = parseInt(`${second}${second}`, 16);
48
- const b = parseInt(`${third}${third}`, 16);
49
- return { r, g, b };
50
- }
51
- const r = parseInt(hex.slice(0, 2), 16);
52
- const g = parseInt(hex.slice(2, 4), 16);
53
- const b = parseInt(hex.slice(4, 6), 16);
54
- return { r, g, b };
55
- }
56
- // these utils allow users to pass enum values as strings without having to access the enum
57
- // based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,
58
- const enumify = (x) => x;
59
- const CSSColorMode = enumify({
60
- HEX: "hex",
61
- HEXA: "hexa",
62
- RGB_CSS: "rgb-css",
63
- RGBA_CSS: "rgba-css",
64
- HSL_CSS: "hsl-css",
65
- HSLA_CSS: "hsla-css"
66
- });
67
- const ObjectColorMode = enumify({
68
- RGB: "rgb",
69
- RGBA: "rgba",
70
- HSL: "hsl",
71
- HSLA: "hsla",
72
- HSV: "hsv",
73
- HSVA: "hsva"
74
- });
75
- function parseMode(colorValue) {
76
- if (typeof colorValue === "string") {
77
- if (colorValue.startsWith("#")) {
78
- const { length } = colorValue;
79
- if (length === 4 || length === 7) {
80
- return CSSColorMode.HEX;
81
- }
82
- if (length === 5 || length === 9) {
83
- return CSSColorMode.HEXA;
84
- }
85
- }
86
- if (colorValue.startsWith("rgba(")) {
87
- return CSSColorMode.RGBA_CSS;
88
- }
89
- if (colorValue.startsWith("rgb(")) {
90
- return CSSColorMode.RGB_CSS;
91
- }
92
- if (colorValue.startsWith("hsl(")) {
93
- return CSSColorMode.HSL_CSS;
94
- }
95
- if (colorValue.startsWith("hsla(")) {
96
- return CSSColorMode.HSLA_CSS;
97
- }
98
- }
99
- if (typeof colorValue === "object") {
100
- if (hasChannels(colorValue, "r", "g", "b")) {
101
- return hasChannels(colorValue, "a") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;
102
- }
103
- if (hasChannels(colorValue, "h", "s", "l")) {
104
- return hasChannels(colorValue, "a") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;
105
- }
106
- if (hasChannels(colorValue, "h", "s", "v")) {
107
- return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
108
- }
109
- }
110
- return null;
111
- }
112
- function hasChannels(colorObject, ...channels) {
113
- return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
114
- }
115
- function colorEqual(value1, value2) {
116
- return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());
117
- }
118
-
119
- export { CSSColorMode as C, isLonghandHex as a, hexChar as b, colorEqual as c, hexToRGB as h, isValidHex as i, normalizeHex as n, parseMode as p, rgbToHex as r };
120
-
121
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"file":"utils.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;AAC5B,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ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E,OAAO,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;AACvJ;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/color-picker/utils.js"],"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 * v1.0.0-beta.97\n */\nexport function rgbToHex(color) {\n const { r, g, b } = color;\n return `#${r.toString(16).padStart(2, \"0\")}${g.toString(16).padStart(2, \"0\")}${b\n .toString(16)\n .padStart(2, \"0\")}`.toLowerCase();\n}\nexport const hexChar = /^[0-9A-F]$/i;\nconst shortHandHex = /^#[0-9A-F]{3}$/i;\nconst longhandHex = /^#[0-9A-F]{6}$/i;\nexport function isValidHex(hex) {\n return isShorthandHex(hex) || isLonghandHex(hex);\n}\nexport function isShorthandHex(hex) {\n return hex && hex.length === 4 && shortHandHex.test(hex);\n}\nexport function isLonghandHex(hex) {\n return hex && hex.length === 7 && longhandHex.test(hex);\n}\nexport function normalizeHex(hex) {\n hex = hex.toLowerCase();\n if (!hex.startsWith(\"#\")) {\n hex = `#${hex}`;\n }\n if (isShorthandHex(hex)) {\n return rgbToHex(hexToRGB(hex));\n }\n return hex;\n}\nexport function hexToRGB(hex) {\n if (!isValidHex(hex)) {\n return null;\n }\n hex = hex.replace(\"#\", \"\");\n if (hex.length === 3) {\n const [first, second, third] = hex.split(\"\");\n const r = parseInt(`${first}${first}`, 16);\n const g = parseInt(`${second}${second}`, 16);\n const b = parseInt(`${third}${third}`, 16);\n return { r, g, b };\n }\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return { r, g, b };\n}\n// these utils allow users to pass enum values as strings without having to access the enum\n// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,\nconst enumify = (x) => x;\nexport const CSSColorMode = enumify({\n HEX: \"hex\",\n HEXA: \"hexa\",\n RGB_CSS: \"rgb-css\",\n RGBA_CSS: \"rgba-css\",\n HSL_CSS: \"hsl-css\",\n HSLA_CSS: \"hsla-css\"\n});\nexport const ObjectColorMode = enumify({\n RGB: \"rgb\",\n RGBA: \"rgba\",\n HSL: \"hsl\",\n HSLA: \"hsla\",\n HSV: \"hsv\",\n HSVA: \"hsva\"\n});\nexport function parseMode(colorValue) {\n if (typeof colorValue === \"string\") {\n if (colorValue.startsWith(\"#\")) {\n const { length } = colorValue;\n if (length === 4 || length === 7) {\n return CSSColorMode.HEX;\n }\n if (length === 5 || length === 9) {\n return CSSColorMode.HEXA;\n }\n }\n if (colorValue.startsWith(\"rgba(\")) {\n return CSSColorMode.RGBA_CSS;\n }\n if (colorValue.startsWith(\"rgb(\")) {\n return CSSColorMode.RGB_CSS;\n }\n if (colorValue.startsWith(\"hsl(\")) {\n return CSSColorMode.HSL_CSS;\n }\n if (colorValue.startsWith(\"hsla(\")) {\n return CSSColorMode.HSLA_CSS;\n }\n }\n if (typeof colorValue === \"object\") {\n if (hasChannels(colorValue, \"r\", \"g\", \"b\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"l\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"v\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;\n }\n }\n return null;\n}\nfunction hasChannels(colorObject, ...channels) {\n return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);\n}\nexport function colorEqual(value1, value2) {\n return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());\n}\n"],"version":3}
@@ -1,53 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { n as nodeListToArray } from './dom.js';
7
- import { Build } from '@stencil/core/internal/client';
8
-
9
- /*!
10
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
11
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
12
- * v1.0.0-beta.97
13
- */
14
- const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
15
- const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
16
- const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
17
- const TEXT = {
18
- removeTag: "Remove tag"
19
- };
20
-
21
- /*!
22
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
23
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
24
- * v1.0.0-beta.97
25
- */
26
- function getAncestors(element) {
27
- var _a, _b;
28
- const parent = (_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.closest(ComboboxChildSelector);
29
- const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);
30
- return [parent, grandparent].filter((el) => el);
31
- }
32
- function getItemAncestors(item) {
33
- var _a;
34
- return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM")) || []);
35
- }
36
- function getItemChildren(item) {
37
- return nodeListToArray(item.querySelectorAll("calcite-combobox-item"));
38
- }
39
- function hasActiveChildren(node) {
40
- const items = nodeListToArray(node.querySelectorAll("calcite-combobox-item"));
41
- return items.filter((item) => item.selected).length > 0;
42
- }
43
- function getDepth(element) {
44
- if (!Build.isBrowser) {
45
- return 0;
46
- }
47
- const result = document.evaluate("ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group", element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
48
- return result.snapshotLength;
49
- }
50
-
51
- export { ComboboxItemGroup as C, TEXT as T, getDepth as a, ComboboxChildSelector as b, getItemAncestors as c, getItemChildren as d, ComboboxItem as e, getAncestors as g, hasActiveChildren as h };
52
-
53
- //# sourceMappingURL=utils2.js.map
@@ -1 +0,0 @@
1
- {"file":"utils2.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,YAAY,GAAG,wBAAwB;AACxC,MAAC,iBAAiB,GAAG,8BAA8B;AACnD,MAAC,qBAAqB,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE;AACjE,MAAC,IAAI,GAAG;AACpB,EAAE,SAAS,EAAE,YAAY;AACzB;;ACVA;AACA;AACA;AACA;AACA;AAIO,SAAS,YAAY,CAAC,OAAO,EAAE;AACtC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACb,EAAE,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC,aAAa,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACrH,EAAE,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,aAAa,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACzK,EAAE,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAClD,CAAC;AACM,SAAS,gBAAgB,CAAC,IAAI,EAAE;AACvC,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,QAAQ,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,QAAQ,KAAK,uBAAuB,CAAC,KAAK,EAAE,EAAE;AACzI,CAAC;AACM,SAAS,eAAe,CAAC,IAAI,EAAE;AACtC,EAAE,OAAO,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC,CAAC;AACzE,CAAC;AACM,SAAS,iBAAiB,CAAC,IAAI,EAAE;AACxC,EAAE,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAChF,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1D,CAAC;AACM,SAAS,QAAQ,CAAC,OAAO,EAAE;AAClC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AACxB,IAAI,OAAO,CAAC,CAAC;AACb,GAAG;AACH,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,yEAAyE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;AAC7K,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/combobox/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/combobox/utils.js"],"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 * v1.0.0-beta.97\n */\nexport const ComboboxItem = \"CALCITE-COMBOBOX-ITEM\";\nexport const ComboboxItemGroup = \"CALCITE-COMBOBOX-ITEM-GROUP\";\nexport const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;\nexport const TEXT = {\n removeTag: \"Remove tag\"\n};\nexport const CSS = {\n labelActive: \"label--active\",\n labelSelected: \"label--selected\",\n listContainer: \"list-container\"\n};\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 * v1.0.0-beta.97\n */\nimport { nodeListToArray } from \"../../utils/dom\";\nimport { ComboboxChildSelector } from \"./resources\";\nimport { Build } from \"@stencil/core\";\nexport function getAncestors(element) {\n var _a, _b;\n const parent = (_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.closest(ComboboxChildSelector);\n const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);\n return [parent, grandparent].filter((el) => el);\n}\nexport function getItemAncestors(item) {\n var _a;\n return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === \"CALCITE-COMBOBOX-ITEM\")) || []);\n}\nexport function getItemChildren(item) {\n return nodeListToArray(item.querySelectorAll(\"calcite-combobox-item\"));\n}\nexport function hasActiveChildren(node) {\n const items = nodeListToArray(node.querySelectorAll(\"calcite-combobox-item\"));\n return items.filter((item) => item.selected).length > 0;\n}\nexport function getDepth(element) {\n if (!Build.isBrowser) {\n return 0;\n }\n const result = document.evaluate(\"ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group\", element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n return result.snapshotLength;\n}\n"],"version":3}