@esri/solutions-components 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) 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 +10 -3
  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-e2fc11ac.js → solution-store-893499a5.js} +3 -1
  8. package/dist/cjs/solution-store-893499a5.js.map +1 -0
  9. package/dist/collection/components/solution-configuration/solution-configuration.js +9 -2
  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 +10 -3
  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-b3c65467.js → solution-store-0c58c852.js} +3 -1
  25. package/dist/esm/solution-store-0c58c852.js.map +1 -0
  26. package/dist/solutions-components/{p-b25f6ebe.js → p-659edb14.js} +3 -1
  27. package/dist/solutions-components/p-659edb14.js.map +1 -0
  28. package/dist/solutions-components/{p-638738f2.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-7e8985f2.entry.js → p-90629c1d.entry.js} +11 -4
  31. package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
  32. package/dist/solutions-components/{p-542189bc.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 -6
  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-e2fc11ac.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 -2225
  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-b3c65467.js.map +0 -1
  527. package/dist/solutions-components/p-542189bc.entry.js.map +0 -1
  528. package/dist/solutions-components/p-638738f2.entry.js.map +0 -1
  529. package/dist/solutions-components/p-7e8985f2.entry.js.map +0 -1
  530. package/dist/solutions-components/p-b25f6ebe.js.map +0 -1
@@ -1,131 +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 { d as queryExtent } from './queryUtils.js';
7
-
8
- /** @license
9
- * Copyright 2022 Esri
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- /**
24
- * Gets the layer names from the current map
25
- *
26
- * @param mapView the map view to fetch the layer names from
27
- *
28
- * @returns Promise resolving with an array of layer names
29
- *
30
- */
31
- async function getMapLayerNames(mapView) {
32
- let layerNames = [];
33
- await mapView.when(() => {
34
- layerNames = mapView.map.layers.toArray().map((l) => {
35
- return l.title;
36
- });
37
- });
38
- return layerNames;
39
- }
40
- /**
41
- * Get a layer view by title
42
- *
43
- * @param mapView the map view to fetch the layer from
44
- * @param title the title if the layer to fetch
45
- *
46
- * @returns Promise resolving with the fetched layer view
47
- *
48
- */
49
- async function getMapLayerView(mapView, title) {
50
- const layer = await getMapLayer(mapView, title);
51
- return layer ? await mapView.whenLayerView(layer) : undefined;
52
- }
53
- /**
54
- * Get a layer by title
55
- *
56
- * @param mapView the map view to fetch the layer from
57
- * @param title the title if the layer to fetch
58
- *
59
- * @returns Promise resolving with the fetched layer
60
- *
61
- */
62
- async function getMapLayer(mapView, title) {
63
- let layers = [];
64
- await mapView.when(() => {
65
- layers = mapView.map.layers.toArray().filter((l) => {
66
- return l.title === title;
67
- });
68
- });
69
- return layers.length > 0 ? layers[0] : undefined;
70
- }
71
- /**
72
- * Highlight features by OID
73
- *
74
- * @param ids the OIDs from the layer to highlight
75
- * @param layerView the layer view to highlight
76
- * @param mapView the map view used if updateExtent is true
77
- * @param updateExtent optional (default false) boolean to indicate if we should zoom to the extent
78
- *
79
- * @returns Promise resolving with the highlight handle
80
- *
81
- */
82
- async function highlightFeatures(ids, layerView, mapView, updateExtent = false) {
83
- if (updateExtent) {
84
- await goToSelection(ids, layerView, mapView, false);
85
- }
86
- return layerView.highlight(ids);
87
- }
88
- /**
89
- * Flash features by OID
90
- *
91
- * @param ids the OIDs from the layer to highlight
92
- * @param layerView the layer view to highlight
93
- *
94
- * @returns Promise resolving when the operation is complete
95
- *
96
- */
97
- async function flashSelection(ids, layerView) {
98
- const featureFilter = {
99
- objectIds: ids
100
- };
101
- layerView.featureEffect = {
102
- filter: featureFilter,
103
- includedEffect: "invert(100%)",
104
- excludedEffect: "blur(5px)"
105
- };
106
- setTimeout(() => {
107
- layerView.featureEffect = undefined;
108
- }, 1300);
109
- }
110
- /**
111
- * Zoom to features based on OID
112
- *
113
- * @param ids the OIDs from the layer to go to
114
- * @param layerView the layer view that contains the OIDs
115
- * @param mapView the map view to show the extent change
116
- * @param flashFeatures optional (default true) boolean to indicate if we should flash the features
117
- *
118
- * @returns Promise resolving when the operation is complete
119
- *
120
- */
121
- async function goToSelection(ids, layerView, mapView, flashFeatures = true) {
122
- const result = await queryExtent(ids, layerView.layer);
123
- await mapView.goTo(result.extent);
124
- if (flashFeatures) {
125
- await flashSelection(ids, layerView);
126
- }
127
- }
128
-
129
- export { goToSelection as a, getMapLayerView as b, getMapLayerNames as g, highlightFeatures as h };
130
-
131
- //# sourceMappingURL=mapViewUtils.js.map
@@ -1 +0,0 @@
1
- {"file":"mapViewUtils.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;AAkBA;;;;;;;;AAQO,eAAe,gBAAgB,CACpC,OAAuB;EAEvB,IAAI,UAAU,GAAG,EAAE,CAAC;EACpB,MAAM,OAAO,CAAC,IAAI,CAAC;IACjB,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;MAC9C,OAAO,CAAC,CAAC,KAAK,CAAC;KAChB,CAAC,CAAC;GACJ,CAAC,CAAC;EACH,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;;;;AASO,eAAe,eAAe,CACnC,OAAuB,EACvB,KAAa;EAEb,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;EAChD,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;AAChE,CAAC;AAED;;;;;;;;;AASO,eAAe,WAAW,CAC/B,OAAuB,EACvB,KAAa;EAEb,IAAI,MAAM,GAAG,EAAE,CAAC;EAChB,MAAM,OAAO,CAAC,IAAI,CAAC;IACjB,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;MAC7C,OAAO,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC;KAC1B,CAAC,CAAC;GACJ,CAAC,CAAC;EACH,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;AACnD,CAAC;AAED;;;;;;;;;;;AAWO,eAAe,iBAAiB,CACrC,GAAa,EACb,SAAkC,EAClC,OAAuB,EACvB,YAAY,GAAG,KAAK;EAEpB,IAAI,YAAY,EAAE;IAChB,MAAM,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;GACrD;EACD,OAAO,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;AASO,eAAe,cAAc,CAClC,GAAa,EACb,SAAkC;EAElC,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,GAAG;GACS,CAAC;EAC1B,SAAS,CAAC,aAAa,GAAG;IACxB,MAAM,EAAE,aAAa;IACrB,cAAc,EAAE,cAAc;IAC9B,cAAc,EAAE,WAAW;GACJ,CAAC;EAE1B,UAAU,CAAC;IACT,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC;GACrC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC;AAED;;;;;;;;;;;AAWO,eAAe,aAAa,CACjC,GAAa,EACb,SAAkC,EAClC,OAAuB,EACvB,aAAa,GAAG,IAAI;EAEpB,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;EACvD,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;EAClC,IAAI,aAAa,EAAE;IACjB,MAAM,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;GACtC;AACH;;;;","names":[],"sources":["./src/utils/mapViewUtils.ts"],"sourcesContent":["/** @license\r\n * Copyright 2022 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { queryExtent } from \"./queryUtils\";\r\n\r\n/**\r\n * Gets the layer names from the current map\r\n * \r\n * @param mapView the map view to fetch the layer names from\r\n *\r\n * @returns Promise resolving with an array of layer names\r\n *\r\n */\r\nexport async function getMapLayerNames(\r\n mapView: __esri.MapView\r\n): Promise<string[]> {\r\n let layerNames = [];\r\n await mapView.when(() => {\r\n layerNames = mapView.map.layers.toArray().map((l) => {\r\n return l.title;\r\n });\r\n });\r\n return layerNames;\r\n}\r\n\r\n/**\r\n * Get a layer view by title\r\n * \r\n * @param mapView the map view to fetch the layer from\r\n * @param title the title if the layer to fetch\r\n *\r\n * @returns Promise resolving with the fetched layer view\r\n *\r\n */\r\nexport async function getMapLayerView(\r\n mapView: __esri.MapView,\r\n title: string\r\n): Promise<__esri.FeatureLayerView> {\r\n const layer = await getMapLayer(mapView, title);\r\n return layer ? await mapView.whenLayerView(layer) : undefined;\r\n}\r\n\r\n/**\r\n * Get a layer by title\r\n * \r\n * @param mapView the map view to fetch the layer from\r\n * @param title the title if the layer to fetch\r\n *\r\n * @returns Promise resolving with the fetched layer\r\n *\r\n */\r\nexport async function getMapLayer(\r\n mapView: __esri.MapView,\r\n title: string\r\n): Promise<__esri.FeatureLayer> {\r\n let layers = [];\r\n await mapView.when(() => {\r\n layers = mapView.map.layers.toArray().filter((l) => {\r\n return l.title === title;\r\n });\r\n });\r\n return layers.length > 0 ? layers[0] : undefined;\r\n}\r\n\r\n/**\r\n * Highlight features by OID\r\n * \r\n * @param ids the OIDs from the layer to highlight\r\n * @param layerView the layer view to highlight\r\n * @param mapView the map view used if updateExtent is true\r\n * @param updateExtent optional (default false) boolean to indicate if we should zoom to the extent\r\n *\r\n * @returns Promise resolving with the highlight handle\r\n *\r\n */\r\nexport async function highlightFeatures(\r\n ids: number[],\r\n layerView: __esri.FeatureLayerView,\r\n mapView: __esri.MapView,\r\n updateExtent = false\r\n): Promise<__esri.Handle> {\r\n if (updateExtent) {\r\n await goToSelection(ids, layerView, mapView, false);\r\n }\r\n return layerView.highlight(ids);\r\n}\r\n\r\n/**\r\n * Flash features by OID\r\n * \r\n * @param ids the OIDs from the layer to highlight\r\n * @param layerView the layer view to highlight\r\n *\r\n * @returns Promise resolving when the operation is complete\r\n *\r\n */\r\nexport async function flashSelection(\r\n ids: number[],\r\n layerView: __esri.FeatureLayerView\r\n): Promise<void> {\r\n const featureFilter = {\r\n objectIds: ids\r\n } as __esri.FeatureFilter;\r\n layerView.featureEffect = {\r\n filter: featureFilter,\r\n includedEffect: \"invert(100%)\",\r\n excludedEffect: \"blur(5px)\"\r\n } as __esri.FeatureEffect;\r\n\r\n setTimeout(() => {\r\n layerView.featureEffect = undefined;\r\n }, 1300);\r\n}\r\n\r\n/**\r\n * Zoom to features based on OID\r\n * \r\n * @param ids the OIDs from the layer to go to\r\n * @param layerView the layer view that contains the OIDs\r\n * @param mapView the map view to show the extent change\r\n * @param flashFeatures optional (default true) boolean to indicate if we should flash the features\r\n * \r\n * @returns Promise resolving when the operation is complete\r\n *\r\n */\r\nexport async function goToSelection(\r\n ids: number[],\r\n layerView: __esri.FeatureLayerView,\r\n mapView: __esri.MapView,\r\n flashFeatures = true\r\n): Promise<void> {\r\n const result = await queryExtent(ids, layerView.layer);\r\n await mapView.goTo(result.extent);\r\n if (flashFeatures) {\r\n await flashSelection(ids, layerView);\r\n }\r\n}\r\n"],"version":3}
@@ -1,26 +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
- const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
12
- const decimalPlaces = (value) => {
13
- const match = ("" + value).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
14
- if (!match) {
15
- return 0;
16
- }
17
- return Math.max(0,
18
- // Number of digits right of decimal point.
19
- (match[1] ? match[1].length : 0) -
20
- // Adjust for scientific notation.
21
- (match[2] ? +match[2] : 0));
22
- };
23
-
24
- export { clamp as c, decimalPlaces as d };
25
-
26
- //# sourceMappingURL=math.js.map
@@ -1 +0,0 @@
1
- {"file":"math.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,KAAK,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;AAClE,MAAC,aAAa,GAAG,CAAC,KAAK,KAAK;AACxC,EAAE,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACvE,EAAE,IAAI,CAAC,KAAK,EAAE;AACd,IAAI,OAAO,CAAC,CAAC;AACb,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB;AACA,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;AACjC;AACA,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAChC;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/math.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 clamp = (value, min, max) => Math.max(min, Math.min(value, max));\nexport const decimalPlaces = (value) => {\n const match = (\"\" + value).match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);\n if (!match) {\n return 0;\n }\n return Math.max(0, \n // Number of digits right of decimal point.\n (match[1] ? match[1].length : 0) -\n // Adjust for scientific notation.\n (match[2] ? +match[2] : 0));\n};\n"],"version":3}
@@ -1,505 +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 { e as rectToClientRect } from './floating-ui.js';
7
-
8
- /*!
9
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
10
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
11
- * v1.0.0-beta.97
12
- */
13
- /**
14
- * This module provides utils to fix positioning across shadow DOM in non-Chromium browsers
15
- *
16
- * It is based on floating-ui's distributable
17
- */
18
- /**
19
- * 👇 the following are needed to fix shadow DOM positioning 👇️
20
- *
21
- * @param element
22
- */
23
- function getTrueOffsetParent(element) {
24
- if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
25
- return null;
26
- }
27
- return composedOffsetParent(element);
28
- }
29
- /**
30
- * Polyfills the old offsetParent behavior from before the spec was changed:
31
- * https://github.com/w3c/csswg-drafts/issues/159
32
- *
33
- * @param element
34
- */
35
- function composedOffsetParent(element) {
36
- let { offsetParent } = element;
37
- let ancestor = element;
38
- let foundInsideSlot = false;
39
- while (ancestor && ancestor !== offsetParent) {
40
- const { assignedSlot } = ancestor;
41
- if (assignedSlot) {
42
- let newOffsetParent = assignedSlot.offsetParent;
43
- if (getComputedStyle(assignedSlot).display === "contents") {
44
- const hadStyleAttribute = assignedSlot.hasAttribute("style");
45
- const oldDisplay = assignedSlot.style.display;
46
- assignedSlot.style.display = getComputedStyle(ancestor).display;
47
- newOffsetParent = assignedSlot.offsetParent;
48
- assignedSlot.style.display = oldDisplay;
49
- if (!hadStyleAttribute) {
50
- assignedSlot.removeAttribute("style");
51
- }
52
- }
53
- ancestor = assignedSlot;
54
- if (offsetParent !== newOffsetParent) {
55
- offsetParent = newOffsetParent;
56
- foundInsideSlot = true;
57
- }
58
- }
59
- else if (isShadowRoot(ancestor) && ancestor.host && foundInsideSlot) {
60
- break;
61
- }
62
- ancestor = (isShadowRoot(ancestor) && ancestor.host) || ancestor.parentNode;
63
- }
64
- return offsetParent;
65
- }
66
- function getElementRects(_ref) {
67
- const { reference, floating, strategy } = _ref;
68
- return {
69
- reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
70
- floating: { ...getDimensions(floating), x: 0, y: 0 }
71
- };
72
- }
73
- /**
74
- * ☝️ the following are needed to fix shadow DOM positioning ☝️
75
- */
76
- /**
77
- * 👇 the following are taken directly from floating-ui's ESM distributable to support the exports above 👇️
78
- *
79
- * **Notes**:
80
- * unused functions are removed
81
- * ESLint is disabled
82
- * TS-warnings are suppressed
83
- */
84
- /* eslint-disable */
85
- function isWindow(value) {
86
- return value && value.document && value.location && value.alert && value.setInterval;
87
- }
88
- function getWindow(node) {
89
- if (node == null) {
90
- return window;
91
- }
92
- if (!isWindow(node)) {
93
- const ownerDocument = node.ownerDocument;
94
- return ownerDocument ? ownerDocument.defaultView || window : window;
95
- }
96
- return node;
97
- }
98
- function getComputedStyle(element) {
99
- return getWindow(element).getComputedStyle(element);
100
- }
101
- function getNodeName(node) {
102
- return isWindow(node) ? "" : node ? (node.nodeName || "").toLowerCase() : "";
103
- }
104
- function getUAString() {
105
- // @ts-ignore
106
- const uaData = navigator.userAgentData;
107
- if (uaData != null && uaData.brands) {
108
- return uaData.brands.map((item) => item.brand + "/" + item.version).join(" ");
109
- }
110
- return navigator.userAgent;
111
- }
112
- function isHTMLElement(value) {
113
- return value instanceof getWindow(value).HTMLElement;
114
- }
115
- function isElement(value) {
116
- return value instanceof getWindow(value).Element;
117
- }
118
- function isNode(value) {
119
- return value instanceof getWindow(value).Node;
120
- }
121
- function isShadowRoot(node) {
122
- // Browsers without `ShadowRoot` support
123
- if (typeof ShadowRoot === "undefined") {
124
- return false;
125
- }
126
- const OwnElement = getWindow(node).ShadowRoot;
127
- return node instanceof OwnElement || node instanceof ShadowRoot;
128
- }
129
- function isOverflowElement(element) {
130
- // Firefox wants us to check `-x` and `-y` variations as well
131
- const { overflow, overflowX, overflowY, display } = getComputedStyle(element);
132
- return (/auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display));
133
- }
134
- function isTableElement(element) {
135
- return ["table", "td", "th"].includes(getNodeName(element));
136
- }
137
- function isContainingBlock(element) {
138
- // TODO: Try and use feature detection here instead
139
- const isFirefox = /firefox/i.test(getUAString());
140
- const css = getComputedStyle(element); // This is non-exhaustive but covers the most common CSS properties that
141
- // create a containing block.
142
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
143
- return (css.transform !== "none" ||
144
- css.perspective !== "none" ||
145
- (isFirefox && css.willChange === "filter") ||
146
- (isFirefox && (css.filter ? css.filter !== "none" : false)) ||
147
- ["transform", "perspective"].some((value) => css.willChange.includes(value)) ||
148
- ["paint", "layout", "strict", "content"].some(
149
- // TS 4.1 compat
150
- (value) => {
151
- const contain = css.contain;
152
- return contain != null ? contain.includes(value) : false;
153
- }));
154
- }
155
- function isLayoutViewport() {
156
- // Not Safari
157
- return !/^((?!chrome|android).)*safari/i.test(getUAString()); // Feature detection for this fails in various ways
158
- // • Always-visible scrollbar or not
159
- // • Width of <html>, etc.
160
- // const vV = win.visualViewport;
161
- // return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
162
- }
163
- function isLastTraversableNode(node) {
164
- return ["html", "body", "#document"].includes(getNodeName(node));
165
- }
166
- const min = Math.min;
167
- const max = Math.max;
168
- const round = Math.round;
169
- function getBoundingClientRect(element, includeScale, isFixedStrategy) {
170
- var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
171
- if (includeScale === void 0) {
172
- includeScale = false;
173
- }
174
- if (isFixedStrategy === void 0) {
175
- isFixedStrategy = false;
176
- }
177
- const clientRect = element.getBoundingClientRect();
178
- let scaleX = 1;
179
- let scaleY = 1;
180
- if (includeScale && isHTMLElement(element)) {
181
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
182
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
183
- }
184
- const win = isElement(element) ? getWindow(element) : window;
185
- const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
186
- const x = (clientRect.left +
187
- (addVisualOffsets
188
- ? (_win$visualViewport$o =
189
- (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null
190
- ? _win$visualViewport$o
191
- : 0
192
- : 0)) /
193
- scaleX;
194
- const y = (clientRect.top +
195
- (addVisualOffsets
196
- ? (_win$visualViewport$o2 =
197
- (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null
198
- ? _win$visualViewport$o2
199
- : 0
200
- : 0)) /
201
- scaleY;
202
- const width = clientRect.width / scaleX;
203
- const height = clientRect.height / scaleY;
204
- return {
205
- width,
206
- height,
207
- top: y,
208
- right: x + width,
209
- bottom: y + height,
210
- left: x,
211
- x,
212
- y
213
- };
214
- }
215
- function getDocumentElement(node) {
216
- return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
217
- }
218
- function getNodeScroll(element) {
219
- if (isElement(element)) {
220
- return {
221
- scrollLeft: element.scrollLeft,
222
- scrollTop: element.scrollTop
223
- };
224
- }
225
- return {
226
- scrollLeft: element.pageXOffset,
227
- scrollTop: element.pageYOffset
228
- };
229
- }
230
- function getWindowScrollBarX(element) {
231
- // If <html> has a CSS width greater than the viewport, then this will be
232
- // incorrect for RTL.
233
- // @ts-ignore
234
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
235
- }
236
- function isScaled(element) {
237
- // @ts-ignore
238
- const rect = getBoundingClientRect(element);
239
- return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
240
- }
241
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
242
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
243
- const documentElement = getDocumentElement(offsetParent);
244
- const rect = getBoundingClientRect(element, // @ts-ignore - checked above (TS 4.1 compat)
245
- isOffsetParentAnElement && isScaled(offsetParent), strategy === "fixed");
246
- let scroll = {
247
- scrollLeft: 0,
248
- scrollTop: 0
249
- };
250
- const offsets = {
251
- x: 0,
252
- y: 0
253
- };
254
- if (isOffsetParentAnElement || (!isOffsetParentAnElement && strategy !== "fixed")) {
255
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
256
- scroll = getNodeScroll(offsetParent);
257
- }
258
- if (isHTMLElement(offsetParent)) {
259
- // @ts-ignore
260
- const offsetRect = getBoundingClientRect(offsetParent, true);
261
- offsets.x = offsetRect.x + offsetParent.clientLeft;
262
- offsets.y = offsetRect.y + offsetParent.clientTop;
263
- }
264
- else if (documentElement) {
265
- offsets.x = getWindowScrollBarX(documentElement);
266
- }
267
- }
268
- return {
269
- x: rect.left + scroll.scrollLeft - offsets.x,
270
- y: rect.top + scroll.scrollTop - offsets.y,
271
- width: rect.width,
272
- height: rect.height
273
- };
274
- }
275
- function getParentNode(node) {
276
- if (getNodeName(node) === "html") {
277
- return node;
278
- }
279
- return (
280
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
281
- // @ts-ignore
282
- node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
283
- node.parentNode || // DOM Element detected
284
- (isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
285
- getDocumentElement(node) // fallback
286
- );
287
- }
288
- function getContainingBlock(element) {
289
- let currentNode = getParentNode(element);
290
- if (isShadowRoot(currentNode)) {
291
- currentNode = currentNode.host;
292
- }
293
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
294
- if (isContainingBlock(currentNode)) {
295
- return currentNode;
296
- }
297
- else {
298
- const parent = currentNode.parentNode;
299
- currentNode = isShadowRoot(parent) ? parent.host : parent;
300
- }
301
- }
302
- return null;
303
- } // Gets the closest ancestor positioned element. Handles some edge cases,
304
- // such as table ancestors and cross browser bugs.
305
- function getOffsetParent(element) {
306
- const window = getWindow(element);
307
- let offsetParent = getTrueOffsetParent(element);
308
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
309
- offsetParent = getTrueOffsetParent(offsetParent);
310
- }
311
- if (offsetParent &&
312
- (getNodeName(offsetParent) === "html" ||
313
- (getNodeName(offsetParent) === "body" &&
314
- getComputedStyle(offsetParent).position === "static" &&
315
- !isContainingBlock(offsetParent)))) {
316
- return window;
317
- }
318
- return offsetParent || getContainingBlock(element) || window;
319
- }
320
- function getDimensions(element) {
321
- if (isHTMLElement(element)) {
322
- return {
323
- width: element.offsetWidth,
324
- height: element.offsetHeight
325
- };
326
- }
327
- // @ts-ignore
328
- const rect = getBoundingClientRect(element);
329
- return {
330
- width: rect.width,
331
- height: rect.height
332
- };
333
- }
334
- function getViewportRect(element, strategy) {
335
- const win = getWindow(element);
336
- const html = getDocumentElement(element);
337
- const visualViewport = win.visualViewport;
338
- let width = html.clientWidth;
339
- let height = html.clientHeight;
340
- let x = 0;
341
- let y = 0;
342
- if (visualViewport) {
343
- width = visualViewport.width;
344
- height = visualViewport.height;
345
- const layoutViewport = isLayoutViewport();
346
- if (layoutViewport || (!layoutViewport && strategy === "fixed")) {
347
- x = visualViewport.offsetLeft;
348
- y = visualViewport.offsetTop;
349
- }
350
- }
351
- return {
352
- width,
353
- height,
354
- x,
355
- y
356
- };
357
- }
358
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
359
- function getDocumentRect(element) {
360
- var _element$ownerDocumen;
361
- const html = getDocumentElement(element);
362
- const scroll = getNodeScroll(element);
363
- const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
364
- const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
365
- const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
366
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
367
- const y = -scroll.scrollTop;
368
- if (getComputedStyle(body || html).direction === "rtl") {
369
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
370
- }
371
- return {
372
- width,
373
- height,
374
- x,
375
- y
376
- };
377
- }
378
- function getNearestOverflowAncestor(node) {
379
- const parentNode = getParentNode(node);
380
- if (isLastTraversableNode(parentNode)) {
381
- // @ts-ignore assume body is always available
382
- return node.ownerDocument.body;
383
- }
384
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
385
- return parentNode;
386
- }
387
- return getNearestOverflowAncestor(parentNode);
388
- }
389
- function getOverflowAncestors(node, list) {
390
- var _node$ownerDocument;
391
- if (list === void 0) {
392
- list = [];
393
- }
394
- const scrollableAncestor = getNearestOverflowAncestor(node);
395
- const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
396
- const win = getWindow(scrollableAncestor);
397
- const target = isBody
398
- ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [])
399
- : scrollableAncestor;
400
- const updatedList = list.concat(target);
401
- return isBody
402
- ? updatedList // @ts-ignore: isBody tells us target will be an HTMLElement here
403
- : updatedList.concat(getOverflowAncestors(target));
404
- }
405
- function contains(parent, child) {
406
- const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
407
- if (parent.contains(child)) {
408
- return true;
409
- } // then fallback to custom implementation with Shadow DOM support
410
- else if (rootNode && isShadowRoot(rootNode)) {
411
- let next = child;
412
- do {
413
- // use `===` replace node.isSameNode()
414
- if (next && parent === next) {
415
- return true;
416
- } // @ts-ignore: need a better way to handle this...
417
- next = next.parentNode || next.host;
418
- } while (next);
419
- }
420
- return false;
421
- }
422
- function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
423
- let currentNode = element;
424
- while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
425
- if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
426
- break;
427
- }
428
- const parentNode = getParentNode(currentNode);
429
- currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
430
- }
431
- return currentNode;
432
- }
433
- function getInnerBoundingClientRect(element, strategy) {
434
- const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
435
- const top = clientRect.top + element.clientTop;
436
- const left = clientRect.left + element.clientLeft;
437
- return {
438
- top,
439
- left,
440
- x: left,
441
- y: top,
442
- right: left + element.clientWidth,
443
- bottom: top + element.clientHeight,
444
- width: element.clientWidth,
445
- height: element.clientHeight
446
- };
447
- }
448
- function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
449
- if (clippingParent === "viewport") {
450
- return rectToClientRect(getViewportRect(element, strategy));
451
- }
452
- if (isElement(clippingParent)) {
453
- return getInnerBoundingClientRect(clippingParent, strategy);
454
- }
455
- return rectToClientRect(getDocumentRect(getDocumentElement(element)));
456
- } // A "clipping ancestor" is an overflowable container with the characteristic of
457
- // clipping (or hiding) overflowing elements with a position different from
458
- // `initial`
459
- function getClippingAncestors(element) {
460
- // @ts-ignore
461
- const clippingAncestors = getOverflowAncestors(element);
462
- const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
463
- let clipperElement = null;
464
- if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
465
- const offsetParent = getOffsetParent(nearestEscapableParent);
466
- if (isOverflowElement(nearestEscapableParent)) {
467
- clipperElement = nearestEscapableParent;
468
- }
469
- else if (isHTMLElement(offsetParent)) {
470
- clipperElement = offsetParent;
471
- }
472
- }
473
- if (!isElement(clipperElement)) {
474
- return [];
475
- } // @ts-ignore isElement check ensures we return Array<Element>
476
- return clippingAncestors.filter((clippingAncestors) => clipperElement &&
477
- isElement(clippingAncestors) &&
478
- contains(clippingAncestors, clipperElement) &&
479
- getNodeName(clippingAncestors) !== "body");
480
- } // Gets the maximum area that the element is visible in due to any number of
481
- // clipping ancestors
482
- function getClippingRect(_ref) {
483
- let { element, boundary, rootBoundary, strategy } = _ref;
484
- const mainClippingAncestors = boundary === "clippingAncestors" ? getClippingAncestors(element) : [].concat(boundary);
485
- const clippingAncestors = [...mainClippingAncestors, rootBoundary];
486
- const firstClippingAncestor = clippingAncestors[0];
487
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
488
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
489
- accRect.top = max(rect.top, accRect.top);
490
- accRect.right = min(rect.right, accRect.right);
491
- accRect.bottom = min(rect.bottom, accRect.bottom);
492
- accRect.left = max(rect.left, accRect.left);
493
- return accRect;
494
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
495
- return {
496
- width: clippingRect.right - clippingRect.left,
497
- height: clippingRect.bottom - clippingRect.top,
498
- x: clippingRect.left,
499
- y: clippingRect.top
500
- };
501
- }
502
-
503
- export { getClippingRect, getElementRects, getOffsetParent };
504
-
505
- //# sourceMappingURL=nonChromiumPlatformUtils.js.map