@esri/solutions-components 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (978) hide show
  1. package/dist/cjs/ExpandToggle-73df0d51.js +0 -2
  2. package/dist/cjs/Heading-6b7b374c.js +0 -2
  3. package/dist/cjs/_commonjsHelpers-6aafa5de.js +0 -2
  4. package/dist/cjs/app-globals-2f48e57e.js +0 -2
  5. package/dist/cjs/array-ace6d4b5.js +0 -2
  6. package/dist/cjs/buffer-tools_6.cjs.entry.js +0 -2
  7. package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
  8. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
  9. package/dist/cjs/calcite-action-bar_6.cjs.entry.js +0 -2
  10. package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
  11. package/dist/cjs/calcite-action-menu_2.cjs.entry.js +0 -2
  12. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
  13. package/dist/cjs/calcite-action_2.cjs.entry.js +0 -2
  14. package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
  15. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
  16. package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
  17. package/dist/cjs/calcite-block.cjs.entry.js +0 -2
  18. package/dist/cjs/calcite-button.cjs.entry.js +0 -2
  19. package/dist/cjs/calcite-card.cjs.entry.js +0 -2
  20. package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -2
  21. package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
  22. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -2
  23. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -2
  24. package/dist/cjs/calcite-color-picker.cjs.entry.js +0 -2
  25. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
  26. package/dist/cjs/calcite-combobox_3.cjs.entry.js +0 -2
  27. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
  28. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
  29. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
  30. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
  31. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
  32. package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
  33. package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
  34. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -2
  35. package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
  36. package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
  37. package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
  38. package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
  39. package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
  40. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
  41. package/dist/cjs/calcite-input-number.cjs.entry.js +0 -2
  42. package/dist/cjs/calcite-input-text.cjs.entry.js +0 -2
  43. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
  44. package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
  45. package/dist/cjs/calcite-label.cjs.entry.js +0 -2
  46. package/dist/cjs/calcite-link.cjs.entry.js +0 -2
  47. package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
  48. package/dist/cjs/calcite-list_2.cjs.entry.js +0 -2
  49. package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
  50. package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
  51. package/dist/cjs/calcite-option_2.cjs.entry.js +0 -2
  52. package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
  53. package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -2
  54. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
  55. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
  56. package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
  57. package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
  58. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
  59. package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
  60. package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
  61. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
  62. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
  63. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -13
  64. package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
  65. package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
  66. package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
  67. package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
  68. package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
  69. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
  70. package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
  71. package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
  72. package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
  73. package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
  74. package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
  75. package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
  76. package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +0 -2
  77. package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
  78. package/dist/cjs/calcite-tree_3.cjs.entry.js +0 -2
  79. package/dist/cjs/check-list.cjs.entry.js +0 -2
  80. package/dist/cjs/conditionalSlot-2defe83d.js +0 -2
  81. package/dist/cjs/config-buffer-tools.cjs.entry.js +0 -2
  82. package/dist/cjs/config-draw-tools.cjs.entry.js +0 -2
  83. package/dist/cjs/config-layer-picker.cjs.entry.js +0 -2
  84. package/dist/cjs/config-pdf-download.cjs.entry.js +0 -2
  85. package/dist/cjs/date-e21b2052.js +0 -2
  86. package/dist/cjs/debounce-69c3bada.js +0 -2
  87. package/dist/cjs/dom-4a580af6.js +0 -2
  88. package/dist/cjs/filter-325f654f.js +0 -2
  89. package/dist/cjs/floating-ui-ca1bcead.js +0 -2
  90. package/dist/cjs/form-45849654.js +0 -2
  91. package/dist/cjs/guid-84ac4d91.js +0 -2
  92. package/dist/cjs/index-7af21b6f.js +0 -2
  93. package/dist/cjs/index-a86078a0.js +0 -2
  94. package/dist/cjs/index-d7f9770d.js +0 -2
  95. package/dist/cjs/index.cjs.js +0 -2
  96. package/dist/cjs/interactive-0a68ab99.js +0 -2
  97. package/dist/cjs/interfaces-ab603e16.js +0 -2
  98. package/dist/cjs/interfaces-e76f31e9.js +0 -2
  99. package/dist/cjs/key-55aca5c0.js +0 -2
  100. package/dist/cjs/label-24fcd8a5.js +0 -2
  101. package/dist/cjs/labelFormats-3236d2e0.js +0 -2
  102. package/dist/cjs/loadModules-38269f99.js +0 -2
  103. package/dist/cjs/loader.cjs.js +0 -2
  104. package/dist/cjs/locale-73cab8e8.js +0 -2
  105. package/dist/cjs/locale-746a095d.js +0 -2
  106. package/dist/cjs/map-search.cjs.entry.js +0 -2
  107. package/dist/cjs/mapViewUtils-67cfc412.js +0 -2
  108. package/dist/cjs/math-460fffaf.js +0 -2
  109. package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +0 -2
  110. package/dist/cjs/observers-5311faf8.js +0 -2
  111. package/dist/cjs/openCloseComponent-bf986132.js +0 -2
  112. package/dist/cjs/public-notification.cjs.entry.js +0 -2
  113. package/dist/cjs/publicNotificationStore-6a3d40b3.js +0 -2
  114. package/dist/cjs/publicNotificationUtils-9d585d8d.js +0 -2
  115. package/dist/cjs/resources-1f785471.js +0 -2
  116. package/dist/cjs/resources-2260d186.js +0 -2
  117. package/dist/cjs/resources-2a9862c7.js +0 -2
  118. package/dist/cjs/resources-308edbd8.js +0 -2
  119. package/dist/cjs/resources-6152b073.js +0 -2
  120. package/dist/cjs/resources-808cfca8.js +0 -2
  121. package/dist/cjs/resources-9c55e05c.js +0 -2
  122. package/dist/cjs/resources-aa19bf8c.js +0 -2
  123. package/dist/cjs/resources-b56bce71.js +0 -2
  124. package/dist/cjs/resources-cc7f63b0.js +0 -2
  125. package/dist/cjs/shared-list-render-4c7d84bf.js +0 -2
  126. package/dist/cjs/solution-configuration.cjs.entry.js +1 -9
  127. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -5
  128. package/dist/cjs/{solution-store-893499a5.js → solution-store-e2fc11ac.js} +0 -4
  129. package/dist/cjs/solutions-components.cjs.js +0 -2
  130. package/dist/cjs/sortable.esm-bf47019d.js +0 -2
  131. package/dist/cjs/store-manager.cjs.entry.js +0 -2
  132. package/dist/cjs/time-3f5577cb.js +0 -2
  133. package/dist/cjs/utils-120bbbeb.js +0 -2
  134. package/dist/cjs/utils-b4236001.js +0 -2
  135. package/dist/collection/components/buffer-tools/buffer-tools.js +0 -1
  136. package/dist/collection/components/check-list/check-list.js +0 -1
  137. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +0 -1
  138. package/dist/collection/components/config-draw-tools/config-draw-tools.js +0 -1
  139. package/dist/collection/components/config-layer-picker/config-layer-picker.js +0 -1
  140. package/dist/collection/components/config-pdf-download/config-pdf-download.js +0 -1
  141. package/dist/collection/components/json-editor/json-editor.js +0 -1
  142. package/dist/collection/components/map-draw-tools/map-draw-tools.js +0 -1
  143. package/dist/collection/components/map-layer-picker/map-layer-picker.js +0 -1
  144. package/dist/collection/components/map-search/map-search.js +0 -1
  145. package/dist/collection/components/map-select-tools/map-select-tools.js +0 -1
  146. package/dist/collection/components/pdf-download/pdf-download.js +0 -1
  147. package/dist/collection/components/public-notification/public-notification.js +0 -1
  148. package/dist/collection/components/refine-selection/refine-selection.js +0 -1
  149. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +0 -1
  150. package/dist/collection/components/solution-configuration/solution-configuration.js +0 -7
  151. package/dist/collection/components/solution-contents/solution-contents.js +0 -1
  152. package/dist/collection/components/solution-item/solution-item.js +0 -3
  153. package/dist/collection/components/solution-item-details/solution-item-details.js +0 -14
  154. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
  155. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +0 -1
  156. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +0 -1
  157. package/dist/collection/components/solution-resource-item/solution-resource-item.js +0 -1
  158. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +0 -1
  159. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -1
  160. package/dist/collection/components/solution-template-data/solution-template-data.js +0 -1
  161. package/dist/collection/components/solution-variables/solution-variables.js +0 -1
  162. package/dist/collection/components/store-manager/store-manager.js +0 -1
  163. package/dist/collection/index.js +0 -1
  164. package/dist/collection/utils/common.js +0 -1
  165. package/dist/collection/utils/csvUtils.js +0 -1
  166. package/dist/collection/utils/interfaces.js +0 -1
  167. package/dist/collection/utils/languageUtil.js +0 -1
  168. package/dist/collection/utils/loadModules.js +0 -1
  169. package/dist/collection/utils/locale.js +0 -1
  170. package/dist/collection/utils/mapViewUtils.js +0 -1
  171. package/dist/collection/utils/publicNotificationStore.js +0 -1
  172. package/dist/collection/utils/publicNotificationUtils.js +0 -1
  173. package/dist/collection/utils/queryUtils.js +0 -1
  174. package/dist/collection/utils/solution-store.js +0 -3
  175. package/dist/collection/utils/solution-store.ts +0 -2
  176. package/dist/collection/utils/templates.js +0 -1
  177. package/dist/collection/utils/test/testUtils.js +0 -1
  178. package/dist/collection/utils/types.js +0 -1
  179. package/dist/esm/ExpandToggle-b7d1fb3c.js +0 -2
  180. package/dist/esm/Heading-1efb4837.js +0 -2
  181. package/dist/esm/_commonjsHelpers-8fd39c50.js +0 -2
  182. package/dist/esm/app-globals-09b9efee.js +0 -2
  183. package/dist/esm/array-2ab3b18f.js +0 -2
  184. package/dist/esm/buffer-tools_6.entry.js +0 -2
  185. package/dist/esm/calcite-accordion-item.entry.js +0 -2
  186. package/dist/esm/calcite-accordion.entry.js +0 -2
  187. package/dist/esm/calcite-action-bar_6.entry.js +0 -2
  188. package/dist/esm/calcite-action-group.entry.js +0 -2
  189. package/dist/esm/calcite-action-menu_2.entry.js +0 -2
  190. package/dist/esm/calcite-action-pad.entry.js +0 -2
  191. package/dist/esm/calcite-action_2.entry.js +0 -2
  192. package/dist/esm/calcite-alert.entry.js +0 -2
  193. package/dist/esm/calcite-avatar.entry.js +0 -2
  194. package/dist/esm/calcite-block-section.entry.js +0 -2
  195. package/dist/esm/calcite-block.entry.js +0 -2
  196. package/dist/esm/calcite-button.entry.js +0 -2
  197. package/dist/esm/calcite-card.entry.js +0 -2
  198. package/dist/esm/calcite-checkbox.entry.js +0 -2
  199. package/dist/esm/calcite-chip.entry.js +0 -2
  200. package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -2
  201. package/dist/esm/calcite-color-picker-swatch.entry.js +0 -2
  202. package/dist/esm/calcite-color-picker.entry.js +0 -2
  203. package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
  204. package/dist/esm/calcite-combobox_3.entry.js +0 -2
  205. package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
  206. package/dist/esm/calcite-date-picker.entry.js +0 -2
  207. package/dist/esm/calcite-dropdown-group.entry.js +0 -2
  208. package/dist/esm/calcite-dropdown-item.entry.js +0 -2
  209. package/dist/esm/calcite-dropdown.entry.js +0 -2
  210. package/dist/esm/calcite-fab.entry.js +0 -2
  211. package/dist/esm/calcite-filter.entry.js +0 -2
  212. package/dist/esm/calcite-flow-item.entry.js +0 -2
  213. package/dist/esm/calcite-flow.entry.js +0 -2
  214. package/dist/esm/calcite-graph.entry.js +0 -2
  215. package/dist/esm/calcite-handle.entry.js +0 -2
  216. package/dist/esm/calcite-icon.entry.js +0 -2
  217. package/dist/esm/calcite-inline-editable.entry.js +0 -2
  218. package/dist/esm/calcite-input-date-picker.entry.js +0 -2
  219. package/dist/esm/calcite-input-number.entry.js +0 -2
  220. package/dist/esm/calcite-input-text.entry.js +0 -2
  221. package/dist/esm/calcite-input-time-picker.entry.js +0 -2
  222. package/dist/esm/calcite-input_2.entry.js +0 -2
  223. package/dist/esm/calcite-label.entry.js +0 -2
  224. package/dist/esm/calcite-link.entry.js +0 -2
  225. package/dist/esm/calcite-list-item-group.entry.js +0 -2
  226. package/dist/esm/calcite-list_2.entry.js +0 -2
  227. package/dist/esm/calcite-modal.entry.js +0 -2
  228. package/dist/esm/calcite-option-group.entry.js +0 -2
  229. package/dist/esm/calcite-option_2.entry.js +0 -2
  230. package/dist/esm/calcite-pagination.entry.js +0 -2
  231. package/dist/esm/calcite-panel_2.entry.js +0 -2
  232. package/dist/esm/calcite-pick-list-group.entry.js +0 -2
  233. package/dist/esm/calcite-pick-list-item.entry.js +0 -2
  234. package/dist/esm/calcite-pick-list.entry.js +0 -2
  235. package/dist/esm/calcite-popover-manager.entry.js +0 -2
  236. package/dist/esm/calcite-radio-button-group.entry.js +0 -2
  237. package/dist/esm/calcite-radio-button.entry.js +0 -2
  238. package/dist/esm/calcite-rating.entry.js +0 -2
  239. package/dist/esm/calcite-scrim.entry.js +0 -2
  240. package/dist/esm/calcite-shell-center-row.entry.js +0 -2
  241. package/dist/esm/calcite-shell-panel_14.entry.js +1 -13
  242. package/dist/esm/calcite-sortable-list.entry.js +0 -2
  243. package/dist/esm/calcite-split-button.entry.js +0 -2
  244. package/dist/esm/calcite-stepper-item.entry.js +0 -2
  245. package/dist/esm/calcite-stepper.entry.js +0 -2
  246. package/dist/esm/calcite-switch.entry.js +0 -2
  247. package/dist/esm/calcite-tile-select-group.entry.js +0 -2
  248. package/dist/esm/calcite-tile-select.entry.js +0 -2
  249. package/dist/esm/calcite-tile.entry.js +0 -2
  250. package/dist/esm/calcite-time-picker.entry.js +0 -2
  251. package/dist/esm/calcite-tip-group.entry.js +0 -2
  252. package/dist/esm/calcite-tip-manager.entry.js +0 -2
  253. package/dist/esm/calcite-tip.entry.js +0 -2
  254. package/dist/esm/calcite-tooltip-manager.entry.js +0 -2
  255. package/dist/esm/calcite-tooltip.entry.js +0 -2
  256. package/dist/esm/calcite-tree_3.entry.js +0 -2
  257. package/dist/esm/check-list.entry.js +0 -2
  258. package/dist/esm/conditionalSlot-bb4cab11.js +0 -2
  259. package/dist/esm/config-buffer-tools.entry.js +0 -2
  260. package/dist/esm/config-draw-tools.entry.js +0 -2
  261. package/dist/esm/config-layer-picker.entry.js +0 -2
  262. package/dist/esm/config-pdf-download.entry.js +0 -2
  263. package/dist/esm/date-45de0016.js +0 -2
  264. package/dist/esm/debounce-4c884e5c.js +0 -2
  265. package/dist/esm/dom-e593bf85.js +0 -2
  266. package/dist/esm/filter-82935f2d.js +0 -2
  267. package/dist/esm/floating-ui-69a55a27.js +0 -2
  268. package/dist/esm/form-dbfde8ce.js +0 -2
  269. package/dist/esm/guid-15fce7c0.js +0 -2
  270. package/dist/esm/index-15022d11.js +0 -2
  271. package/dist/esm/index-9c882a6e.js +0 -2
  272. package/dist/esm/index-d33ebc35.js +0 -2
  273. package/dist/esm/index.js +0 -2
  274. package/dist/esm/interactive-822ffed6.js +0 -2
  275. package/dist/esm/interfaces-4ae145eb.js +0 -2
  276. package/dist/esm/interfaces-e2a2064d.js +0 -2
  277. package/dist/esm/key-acb660e7.js +0 -2
  278. package/dist/esm/label-d411de44.js +0 -2
  279. package/dist/esm/labelFormats-b37958c3.js +0 -2
  280. package/dist/esm/loadModules-d3b50f95.js +0 -2
  281. package/dist/esm/loader.js +0 -2
  282. package/dist/esm/locale-0b490b02.js +0 -2
  283. package/dist/esm/locale-0e10d7e5.js +0 -2
  284. package/dist/esm/map-search.entry.js +0 -2
  285. package/dist/esm/mapViewUtils-09f1e7bd.js +0 -2
  286. package/dist/esm/math-552c5420.js +0 -2
  287. package/dist/esm/nonChromiumPlatformUtils-ee349005.js +0 -2
  288. package/dist/esm/observers-31601001.js +0 -2
  289. package/dist/esm/openCloseComponent-5caff873.js +0 -2
  290. package/dist/esm/public-notification.entry.js +0 -2
  291. package/dist/esm/publicNotificationStore-060c59c8.js +0 -2
  292. package/dist/esm/publicNotificationUtils-5cb5a607.js +0 -2
  293. package/dist/esm/resources-2235e4ff.js +0 -2
  294. package/dist/esm/resources-3d641588.js +0 -2
  295. package/dist/esm/resources-436ae282.js +0 -2
  296. package/dist/esm/resources-4d02cb48.js +0 -2
  297. package/dist/esm/resources-78132e50.js +0 -2
  298. package/dist/esm/resources-7d4a587f.js +0 -2
  299. package/dist/esm/resources-971845d1.js +0 -2
  300. package/dist/esm/resources-9eb63965.js +0 -2
  301. package/dist/esm/resources-d60362c3.js +0 -2
  302. package/dist/esm/resources-e3a5cf27.js +0 -2
  303. package/dist/esm/shared-list-render-4e9d47a3.js +0 -2
  304. package/dist/esm/solution-configuration.entry.js +1 -9
  305. package/dist/esm/solution-contents_3.entry.js +1 -5
  306. package/dist/esm/{solution-store-0c58c852.js → solution-store-b3c65467.js} +0 -4
  307. package/dist/esm/solutions-components.js +0 -2
  308. package/dist/esm/sortable.esm-3b2eaa5c.js +0 -2
  309. package/dist/esm/store-manager.entry.js +0 -2
  310. package/dist/esm/time-f014778c.js +0 -2
  311. package/dist/esm/utils-3f4ee4c3.js +0 -2
  312. package/dist/esm/utils-583554bc.js +0 -2
  313. package/dist/solutions-components/index.esm.js +0 -2
  314. package/dist/solutions-components/p-006c6ae1.entry.js +11 -0
  315. package/dist/solutions-components/p-04a37fc0.entry.js +6 -0
  316. package/dist/solutions-components/p-062dbde8.entry.js +6 -0
  317. package/dist/solutions-components/p-0b941521.entry.js +11 -0
  318. package/dist/solutions-components/p-0c80eb51.entry.js +11 -0
  319. package/dist/solutions-components/p-10501e21.entry.js +23 -0
  320. package/dist/solutions-components/p-109e4684.entry.js +6 -0
  321. package/dist/solutions-components/p-12dfd43e.entry.js +11 -0
  322. package/dist/solutions-components/p-13b37f05.js +3 -308
  323. package/dist/solutions-components/p-1c3bcd99.entry.js +12 -0
  324. package/dist/solutions-components/p-1c589630.entry.js +6 -0
  325. package/dist/solutions-components/p-1e15b1a3.js +2 -183
  326. package/dist/solutions-components/p-1fb471cf.entry.js +11 -0
  327. package/dist/solutions-components/p-20bdf42f.js +14 -407
  328. package/dist/solutions-components/p-23275dbd.entry.js +6 -0
  329. package/dist/solutions-components/p-236d76e7.entry.js +11 -0
  330. package/dist/solutions-components/p-23904a3d.js +3 -401
  331. package/dist/solutions-components/p-29246858.entry.js +11 -0
  332. package/dist/solutions-components/p-2ac06389.js +16 -25
  333. package/dist/solutions-components/p-2af67c67.entry.js +6 -0
  334. package/dist/solutions-components/p-2bee764f.entry.js +11 -0
  335. package/dist/solutions-components/p-2e9ed892.js +1 -48
  336. package/dist/solutions-components/p-2f6b4f04.entry.js +6 -0
  337. package/dist/solutions-components/p-305ae3fe.entry.js +11 -0
  338. package/dist/solutions-components/p-32a67cb2.js +2 -207
  339. package/dist/solutions-components/p-343e325d.entry.js +11 -0
  340. package/dist/solutions-components/p-3485601e.entry.js +6 -0
  341. package/dist/solutions-components/p-374a5031.js +2 -107
  342. package/dist/solutions-components/p-395e9b6c.entry.js +6 -0
  343. package/dist/solutions-components/p-39c5f2d2.entry.js +6 -0
  344. package/dist/solutions-components/p-3b010ce1.js +1 -19
  345. package/dist/solutions-components/p-3c4f2257.entry.js +11 -0
  346. package/dist/solutions-components/p-3c8ec7a3.entry.js +12 -0
  347. package/dist/solutions-components/p-3f6b0af4.js +2 -221
  348. package/dist/solutions-components/p-4130fbcd.entry.js +11 -0
  349. package/dist/solutions-components/p-421cbb15.entry.js +6 -0
  350. package/dist/solutions-components/p-43fa414d.entry.js +11 -0
  351. package/dist/solutions-components/p-4760f22a.entry.js +6 -0
  352. package/dist/solutions-components/p-4e32bf8c.js +1 -484
  353. package/dist/solutions-components/p-4fb6d2cf.entry.js +11 -0
  354. package/dist/solutions-components/p-54384555.entry.js +11 -0
  355. package/dist/solutions-components/p-5493f036.entry.js +6 -0
  356. package/dist/solutions-components/p-551fd063.entry.js +11 -0
  357. package/dist/solutions-components/p-56350bff.js +2 -173
  358. package/dist/solutions-components/p-58c69df2.js +2 -2024
  359. package/dist/solutions-components/p-5a61ef0d.entry.js +6 -0
  360. package/dist/solutions-components/p-5b0d7c7d.js +16 -35
  361. package/dist/solutions-components/p-5cf33602.js +2 -43
  362. package/dist/solutions-components/p-600e23c6.js +2 -1770
  363. package/dist/solutions-components/p-63f6e8f1.js +1 -16
  364. package/dist/solutions-components/p-6a3ce8f6.entry.js +6 -0
  365. package/dist/solutions-components/p-6b9dc092.js +16 -67
  366. package/dist/solutions-components/p-6be581f5.entry.js +6 -0
  367. package/dist/solutions-components/p-6cf432f9.entry.js +11 -0
  368. package/dist/solutions-components/p-6e0da576.js +1 -15
  369. package/dist/solutions-components/p-6fe17794.js +1 -11
  370. package/dist/solutions-components/p-70368b2b.entry.js +6 -0
  371. package/dist/solutions-components/p-708a63a8.js +1 -14
  372. package/dist/solutions-components/p-708ffad0.entry.js +11 -0
  373. package/dist/solutions-components/p-729708a3.js +1 -16
  374. package/dist/solutions-components/p-7321ba65.entry.js +11 -0
  375. package/dist/solutions-components/p-73e23995.js +1 -8
  376. package/dist/solutions-components/p-75b35018.entry.js +11 -0
  377. package/dist/solutions-components/p-764c0a90.entry.js +11 -0
  378. package/dist/solutions-components/p-77031b01.entry.js +11 -0
  379. package/dist/solutions-components/p-77182c3a.js +1 -3017
  380. package/dist/solutions-components/p-778a1b4a.entry.js +11 -0
  381. package/dist/solutions-components/p-7cdc6089.entry.js +6 -0
  382. package/dist/solutions-components/p-7daea1df.js +1 -43
  383. package/dist/solutions-components/p-81467529.entry.js +6 -0
  384. package/dist/solutions-components/p-834380d6.entry.js +11 -0
  385. package/dist/solutions-components/p-86908777.js +3 -62
  386. package/dist/solutions-components/p-89cc843b.entry.js +11 -0
  387. package/dist/solutions-components/p-8e3a2736.entry.js +11 -0
  388. package/dist/solutions-components/p-8e8b182f.entry.js +12 -0
  389. package/dist/solutions-components/p-8f052987.entry.js +11 -0
  390. package/dist/solutions-components/p-93790a9e.entry.js +37 -0
  391. package/dist/solutions-components/p-93d3119d.js +1 -1950
  392. package/dist/solutions-components/p-991ee695.js +1 -111
  393. package/dist/solutions-components/p-9a9955db.js +1 -43
  394. package/dist/solutions-components/p-9bbee464.entry.js +6 -0
  395. package/dist/solutions-components/p-9bdd4abe.entry.js +17 -0
  396. package/dist/solutions-components/p-a4a7d49d.entry.js +17 -0
  397. package/dist/solutions-components/p-a7036d68.entry.js +11 -0
  398. package/dist/solutions-components/p-a80b3880.js +1 -16
  399. package/dist/solutions-components/p-ac91cd40.entry.js +11 -0
  400. package/dist/solutions-components/p-acd0a09f.entry.js +11 -0
  401. package/dist/solutions-components/p-acd3b2bf.entry.js +11 -0
  402. package/dist/solutions-components/p-ae1fd76b.js +1 -13
  403. package/dist/solutions-components/p-aea937fb.entry.js +12 -0
  404. package/dist/solutions-components/p-b1b36556.entry.js +11 -0
  405. package/dist/solutions-components/p-b25f6ebe.js +257 -0
  406. package/dist/solutions-components/p-b2ae8634.entry.js +6 -0
  407. package/dist/solutions-components/p-b359dc78.js +1 -43
  408. package/dist/solutions-components/p-b978636e.js +1 -16
  409. package/dist/solutions-components/p-ba104266.entry.js +11 -0
  410. package/dist/solutions-components/p-bfcab358.entry.js +11 -0
  411. package/dist/solutions-components/p-c848d1bd.entry.js +29 -0
  412. package/dist/solutions-components/p-c9766584.entry.js +6 -0
  413. package/dist/solutions-components/p-cbd9fecf.js +2 -500
  414. package/dist/solutions-components/p-d2cc1b94.entry.js +12 -0
  415. package/dist/solutions-components/p-d48a24e6.js +2 -756
  416. package/dist/solutions-components/p-d51a72d2.entry.js +11 -0
  417. package/dist/solutions-components/p-d88fe54b.entry.js +18 -0
  418. package/dist/solutions-components/p-daee23cc.entry.js +11 -0
  419. package/dist/solutions-components/p-db7d14d5.entry.js +12 -0
  420. package/dist/solutions-components/p-dbad98e8.js +2 -124
  421. package/dist/solutions-components/p-dc724c1d.entry.js +11 -0
  422. package/dist/solutions-components/p-dc7bc20f.entry.js +11 -0
  423. package/dist/solutions-components/p-de242ea9.entry.js +6 -0
  424. package/dist/solutions-components/p-de5416e8.js +1 -30
  425. package/dist/solutions-components/p-e4ebb82a.entry.js +11 -0
  426. package/dist/solutions-components/p-e611d8c8.js +1 -30
  427. package/dist/solutions-components/p-e64c5c11.entry.js +6 -0
  428. package/dist/solutions-components/p-e6a695a5.js +2 -103
  429. package/dist/solutions-components/p-e947d3b0.js +1 -7
  430. package/dist/solutions-components/p-e99b1247.js +1 -207
  431. package/dist/solutions-components/p-e9e47eab.entry.js +6 -0
  432. package/dist/solutions-components/p-eb3be6d4.entry.js +6 -0
  433. package/dist/solutions-components/p-eb976965.js +3 -35
  434. package/dist/solutions-components/p-ed27c151.entry.js +6 -0
  435. package/dist/solutions-components/p-eeb0321d.js +2 -15
  436. package/dist/solutions-components/p-ef170bb1.entry.js +6 -0
  437. package/dist/solutions-components/p-f044863f.entry.js +16 -0
  438. package/dist/solutions-components/p-f0bae2f0.entry.js +37 -0
  439. package/dist/solutions-components/p-f48821a2.js +7 -60
  440. package/dist/solutions-components/p-f5a3b34f.entry.js +23 -0
  441. package/dist/solutions-components/p-f759a6e7.js +1 -196
  442. package/dist/solutions-components/p-fa2575c2.entry.js +6 -0
  443. package/dist/solutions-components/p-fc884dd6.js +16 -30
  444. package/dist/solutions-components/p-fe0fdd8b.js +31 -279
  445. package/dist/solutions-components/solutions-components.css +1 -10531
  446. package/dist/solutions-components/solutions-components.esm.js +1 -22
  447. package/dist/solutions-components/utils/solution-store.ts +0 -2
  448. package/dist/solutions-components_commit.txt +7 -9
  449. package/dist/types/components/solution-item-details/solution-item-details.d.ts +0 -1
  450. package/package.json +1 -1
  451. package/dist/cjs/ExpandToggle-73df0d51.js.map +0 -1
  452. package/dist/cjs/Heading-6b7b374c.js.map +0 -1
  453. package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +0 -1
  454. package/dist/cjs/app-globals-2f48e57e.js.map +0 -1
  455. package/dist/cjs/array-ace6d4b5.js.map +0 -1
  456. package/dist/cjs/buffer-tools_6.cjs.entry.js.map +0 -1
  457. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
  458. package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
  459. package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +0 -1
  460. package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
  461. package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +0 -1
  462. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
  463. package/dist/cjs/calcite-action_2.cjs.entry.js.map +0 -1
  464. package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
  465. package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
  466. package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
  467. package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
  468. package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
  469. package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
  470. package/dist/cjs/calcite-checkbox.cjs.entry.js.map +0 -1
  471. package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
  472. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
  473. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
  474. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
  475. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
  476. package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +0 -1
  477. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
  478. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
  479. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
  480. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
  481. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
  482. package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
  483. package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
  484. package/dist/cjs/calcite-flow-item.cjs.entry.js.map +0 -1
  485. package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
  486. package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
  487. package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
  488. package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
  489. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
  490. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
  491. package/dist/cjs/calcite-input-number.cjs.entry.js.map +0 -1
  492. package/dist/cjs/calcite-input-text.cjs.entry.js.map +0 -1
  493. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
  494. package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
  495. package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
  496. package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
  497. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
  498. package/dist/cjs/calcite-list_2.cjs.entry.js.map +0 -1
  499. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  500. package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
  501. package/dist/cjs/calcite-option_2.cjs.entry.js.map +0 -1
  502. package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
  503. package/dist/cjs/calcite-panel_2.cjs.entry.js.map +0 -1
  504. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
  505. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
  506. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
  507. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
  508. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
  509. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
  510. package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
  511. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  512. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
  513. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +0 -1
  514. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
  515. package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
  516. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
  517. package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
  518. package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
  519. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
  520. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
  521. package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
  522. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
  523. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
  524. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
  525. package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
  526. package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +0 -1
  527. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
  528. package/dist/cjs/calcite-tree_3.cjs.entry.js.map +0 -1
  529. package/dist/cjs/check-list.cjs.entry.js.map +0 -1
  530. package/dist/cjs/conditionalSlot-2defe83d.js.map +0 -1
  531. package/dist/cjs/config-buffer-tools.cjs.entry.js.map +0 -1
  532. package/dist/cjs/config-draw-tools.cjs.entry.js.map +0 -1
  533. package/dist/cjs/config-layer-picker.cjs.entry.js.map +0 -1
  534. package/dist/cjs/config-pdf-download.cjs.entry.js.map +0 -1
  535. package/dist/cjs/date-e21b2052.js.map +0 -1
  536. package/dist/cjs/debounce-69c3bada.js.map +0 -1
  537. package/dist/cjs/dom-4a580af6.js.map +0 -1
  538. package/dist/cjs/filter-325f654f.js.map +0 -1
  539. package/dist/cjs/floating-ui-ca1bcead.js.map +0 -1
  540. package/dist/cjs/form-45849654.js.map +0 -1
  541. package/dist/cjs/guid-84ac4d91.js.map +0 -1
  542. package/dist/cjs/index-7af21b6f.js.map +0 -1
  543. package/dist/cjs/index-a86078a0.js.map +0 -1
  544. package/dist/cjs/index-d7f9770d.js.map +0 -1
  545. package/dist/cjs/index.cjs.js.map +0 -1
  546. package/dist/cjs/interactive-0a68ab99.js.map +0 -1
  547. package/dist/cjs/interfaces-ab603e16.js.map +0 -1
  548. package/dist/cjs/interfaces-e76f31e9.js.map +0 -1
  549. package/dist/cjs/key-55aca5c0.js.map +0 -1
  550. package/dist/cjs/label-24fcd8a5.js.map +0 -1
  551. package/dist/cjs/labelFormats-3236d2e0.js.map +0 -1
  552. package/dist/cjs/loadModules-38269f99.js.map +0 -1
  553. package/dist/cjs/loader.cjs.js.map +0 -1
  554. package/dist/cjs/locale-73cab8e8.js.map +0 -1
  555. package/dist/cjs/locale-746a095d.js.map +0 -1
  556. package/dist/cjs/map-search.cjs.entry.js.map +0 -1
  557. package/dist/cjs/mapViewUtils-67cfc412.js.map +0 -1
  558. package/dist/cjs/math-460fffaf.js.map +0 -1
  559. package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +0 -1
  560. package/dist/cjs/observers-5311faf8.js.map +0 -1
  561. package/dist/cjs/openCloseComponent-bf986132.js.map +0 -1
  562. package/dist/cjs/public-notification.cjs.entry.js.map +0 -1
  563. package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +0 -1
  564. package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +0 -1
  565. package/dist/cjs/resources-1f785471.js.map +0 -1
  566. package/dist/cjs/resources-2260d186.js.map +0 -1
  567. package/dist/cjs/resources-2a9862c7.js.map +0 -1
  568. package/dist/cjs/resources-308edbd8.js.map +0 -1
  569. package/dist/cjs/resources-6152b073.js.map +0 -1
  570. package/dist/cjs/resources-808cfca8.js.map +0 -1
  571. package/dist/cjs/resources-9c55e05c.js.map +0 -1
  572. package/dist/cjs/resources-aa19bf8c.js.map +0 -1
  573. package/dist/cjs/resources-b56bce71.js.map +0 -1
  574. package/dist/cjs/resources-cc7f63b0.js.map +0 -1
  575. package/dist/cjs/shared-list-render-4c7d84bf.js.map +0 -1
  576. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  577. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  578. package/dist/cjs/solution-store-893499a5.js.map +0 -1
  579. package/dist/cjs/solutions-components.cjs.js.map +0 -1
  580. package/dist/cjs/sortable.esm-bf47019d.js.map +0 -1
  581. package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
  582. package/dist/cjs/time-3f5577cb.js.map +0 -1
  583. package/dist/cjs/utils-120bbbeb.js.map +0 -1
  584. package/dist/cjs/utils-b4236001.js.map +0 -1
  585. package/dist/collection/components/buffer-tools/buffer-tools.js.map +0 -1
  586. package/dist/collection/components/check-list/check-list.js.map +0 -1
  587. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +0 -1
  588. package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +0 -1
  589. package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +0 -1
  590. package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +0 -1
  591. package/dist/collection/components/json-editor/json-editor.js.map +0 -1
  592. package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +0 -1
  593. package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +0 -1
  594. package/dist/collection/components/map-search/map-search.js.map +0 -1
  595. package/dist/collection/components/map-select-tools/map-select-tools.js.map +0 -1
  596. package/dist/collection/components/pdf-download/pdf-download.js.map +0 -1
  597. package/dist/collection/components/public-notification/public-notification.js.map +0 -1
  598. package/dist/collection/components/refine-selection/refine-selection.js.map +0 -1
  599. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +0 -1
  600. package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
  601. package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
  602. package/dist/collection/components/solution-item/solution-item.js.map +0 -1
  603. package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
  604. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
  605. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
  606. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
  607. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
  608. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
  609. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
  610. package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
  611. package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
  612. package/dist/collection/components/store-manager/store-manager.js.map +0 -1
  613. package/dist/collection/index.js.map +0 -1
  614. package/dist/collection/utils/common.js.map +0 -1
  615. package/dist/collection/utils/csvUtils.js.map +0 -1
  616. package/dist/collection/utils/interfaces.js.map +0 -1
  617. package/dist/collection/utils/languageUtil.js.map +0 -1
  618. package/dist/collection/utils/loadModules.js.map +0 -1
  619. package/dist/collection/utils/locale.js.map +0 -1
  620. package/dist/collection/utils/mapViewUtils.js.map +0 -1
  621. package/dist/collection/utils/publicNotificationStore.js.map +0 -1
  622. package/dist/collection/utils/publicNotificationUtils.js.map +0 -1
  623. package/dist/collection/utils/queryUtils.js.map +0 -1
  624. package/dist/collection/utils/solution-store.js.map +0 -1
  625. package/dist/collection/utils/templates.js.map +0 -1
  626. package/dist/collection/utils/test/testUtils.js.map +0 -1
  627. package/dist/collection/utils/types.js.map +0 -1
  628. package/dist/esm/ExpandToggle-b7d1fb3c.js.map +0 -1
  629. package/dist/esm/Heading-1efb4837.js.map +0 -1
  630. package/dist/esm/_commonjsHelpers-8fd39c50.js.map +0 -1
  631. package/dist/esm/app-globals-09b9efee.js.map +0 -1
  632. package/dist/esm/array-2ab3b18f.js.map +0 -1
  633. package/dist/esm/buffer-tools_6.entry.js.map +0 -1
  634. package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
  635. package/dist/esm/calcite-accordion.entry.js.map +0 -1
  636. package/dist/esm/calcite-action-bar_6.entry.js.map +0 -1
  637. package/dist/esm/calcite-action-group.entry.js.map +0 -1
  638. package/dist/esm/calcite-action-menu_2.entry.js.map +0 -1
  639. package/dist/esm/calcite-action-pad.entry.js.map +0 -1
  640. package/dist/esm/calcite-action_2.entry.js.map +0 -1
  641. package/dist/esm/calcite-alert.entry.js.map +0 -1
  642. package/dist/esm/calcite-avatar.entry.js.map +0 -1
  643. package/dist/esm/calcite-block-section.entry.js.map +0 -1
  644. package/dist/esm/calcite-block.entry.js.map +0 -1
  645. package/dist/esm/calcite-button.entry.js.map +0 -1
  646. package/dist/esm/calcite-card.entry.js.map +0 -1
  647. package/dist/esm/calcite-checkbox.entry.js.map +0 -1
  648. package/dist/esm/calcite-chip.entry.js.map +0 -1
  649. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
  650. package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
  651. package/dist/esm/calcite-color-picker.entry.js.map +0 -1
  652. package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
  653. package/dist/esm/calcite-combobox_3.entry.js.map +0 -1
  654. package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
  655. package/dist/esm/calcite-date-picker.entry.js.map +0 -1
  656. package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
  657. package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
  658. package/dist/esm/calcite-dropdown.entry.js.map +0 -1
  659. package/dist/esm/calcite-fab.entry.js.map +0 -1
  660. package/dist/esm/calcite-filter.entry.js.map +0 -1
  661. package/dist/esm/calcite-flow-item.entry.js.map +0 -1
  662. package/dist/esm/calcite-flow.entry.js.map +0 -1
  663. package/dist/esm/calcite-graph.entry.js.map +0 -1
  664. package/dist/esm/calcite-handle.entry.js.map +0 -1
  665. package/dist/esm/calcite-icon.entry.js.map +0 -1
  666. package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
  667. package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
  668. package/dist/esm/calcite-input-number.entry.js.map +0 -1
  669. package/dist/esm/calcite-input-text.entry.js.map +0 -1
  670. package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
  671. package/dist/esm/calcite-input_2.entry.js.map +0 -1
  672. package/dist/esm/calcite-label.entry.js.map +0 -1
  673. package/dist/esm/calcite-link.entry.js.map +0 -1
  674. package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
  675. package/dist/esm/calcite-list_2.entry.js.map +0 -1
  676. package/dist/esm/calcite-modal.entry.js.map +0 -1
  677. package/dist/esm/calcite-option-group.entry.js.map +0 -1
  678. package/dist/esm/calcite-option_2.entry.js.map +0 -1
  679. package/dist/esm/calcite-pagination.entry.js.map +0 -1
  680. package/dist/esm/calcite-panel_2.entry.js.map +0 -1
  681. package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
  682. package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
  683. package/dist/esm/calcite-pick-list.entry.js.map +0 -1
  684. package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
  685. package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
  686. package/dist/esm/calcite-radio-button.entry.js.map +0 -1
  687. package/dist/esm/calcite-rating.entry.js.map +0 -1
  688. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  689. package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
  690. package/dist/esm/calcite-shell-panel_14.entry.js.map +0 -1
  691. package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
  692. package/dist/esm/calcite-split-button.entry.js.map +0 -1
  693. package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
  694. package/dist/esm/calcite-stepper.entry.js.map +0 -1
  695. package/dist/esm/calcite-switch.entry.js.map +0 -1
  696. package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
  697. package/dist/esm/calcite-tile-select.entry.js.map +0 -1
  698. package/dist/esm/calcite-tile.entry.js.map +0 -1
  699. package/dist/esm/calcite-time-picker.entry.js.map +0 -1
  700. package/dist/esm/calcite-tip-group.entry.js.map +0 -1
  701. package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
  702. package/dist/esm/calcite-tip.entry.js.map +0 -1
  703. package/dist/esm/calcite-tooltip-manager.entry.js.map +0 -1
  704. package/dist/esm/calcite-tooltip.entry.js.map +0 -1
  705. package/dist/esm/calcite-tree_3.entry.js.map +0 -1
  706. package/dist/esm/check-list.entry.js.map +0 -1
  707. package/dist/esm/conditionalSlot-bb4cab11.js.map +0 -1
  708. package/dist/esm/config-buffer-tools.entry.js.map +0 -1
  709. package/dist/esm/config-draw-tools.entry.js.map +0 -1
  710. package/dist/esm/config-layer-picker.entry.js.map +0 -1
  711. package/dist/esm/config-pdf-download.entry.js.map +0 -1
  712. package/dist/esm/date-45de0016.js.map +0 -1
  713. package/dist/esm/debounce-4c884e5c.js.map +0 -1
  714. package/dist/esm/dom-e593bf85.js.map +0 -1
  715. package/dist/esm/filter-82935f2d.js.map +0 -1
  716. package/dist/esm/floating-ui-69a55a27.js.map +0 -1
  717. package/dist/esm/form-dbfde8ce.js.map +0 -1
  718. package/dist/esm/guid-15fce7c0.js.map +0 -1
  719. package/dist/esm/index-15022d11.js.map +0 -1
  720. package/dist/esm/index-9c882a6e.js.map +0 -1
  721. package/dist/esm/index-d33ebc35.js.map +0 -1
  722. package/dist/esm/index.js.map +0 -1
  723. package/dist/esm/interactive-822ffed6.js.map +0 -1
  724. package/dist/esm/interfaces-4ae145eb.js.map +0 -1
  725. package/dist/esm/interfaces-e2a2064d.js.map +0 -1
  726. package/dist/esm/key-acb660e7.js.map +0 -1
  727. package/dist/esm/label-d411de44.js.map +0 -1
  728. package/dist/esm/labelFormats-b37958c3.js.map +0 -1
  729. package/dist/esm/loadModules-d3b50f95.js.map +0 -1
  730. package/dist/esm/loader.js.map +0 -1
  731. package/dist/esm/locale-0b490b02.js.map +0 -1
  732. package/dist/esm/locale-0e10d7e5.js.map +0 -1
  733. package/dist/esm/map-search.entry.js.map +0 -1
  734. package/dist/esm/mapViewUtils-09f1e7bd.js.map +0 -1
  735. package/dist/esm/math-552c5420.js.map +0 -1
  736. package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +0 -1
  737. package/dist/esm/observers-31601001.js.map +0 -1
  738. package/dist/esm/openCloseComponent-5caff873.js.map +0 -1
  739. package/dist/esm/public-notification.entry.js.map +0 -1
  740. package/dist/esm/publicNotificationStore-060c59c8.js.map +0 -1
  741. package/dist/esm/publicNotificationUtils-5cb5a607.js.map +0 -1
  742. package/dist/esm/resources-2235e4ff.js.map +0 -1
  743. package/dist/esm/resources-3d641588.js.map +0 -1
  744. package/dist/esm/resources-436ae282.js.map +0 -1
  745. package/dist/esm/resources-4d02cb48.js.map +0 -1
  746. package/dist/esm/resources-78132e50.js.map +0 -1
  747. package/dist/esm/resources-7d4a587f.js.map +0 -1
  748. package/dist/esm/resources-971845d1.js.map +0 -1
  749. package/dist/esm/resources-9eb63965.js.map +0 -1
  750. package/dist/esm/resources-d60362c3.js.map +0 -1
  751. package/dist/esm/resources-e3a5cf27.js.map +0 -1
  752. package/dist/esm/shared-list-render-4e9d47a3.js.map +0 -1
  753. package/dist/esm/solution-configuration.entry.js.map +0 -1
  754. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  755. package/dist/esm/solution-store-0c58c852.js.map +0 -1
  756. package/dist/esm/solutions-components.js.map +0 -1
  757. package/dist/esm/sortable.esm-3b2eaa5c.js.map +0 -1
  758. package/dist/esm/store-manager.entry.js.map +0 -1
  759. package/dist/esm/time-f014778c.js.map +0 -1
  760. package/dist/esm/utils-3f4ee4c3.js.map +0 -1
  761. package/dist/esm/utils-583554bc.js.map +0 -1
  762. package/dist/solutions-components/index.esm.js.map +0 -1
  763. package/dist/solutions-components/p-06dab43c.entry.js +0 -140
  764. package/dist/solutions-components/p-06dab43c.entry.js.map +0 -1
  765. package/dist/solutions-components/p-0bbe4865.entry.js +0 -620
  766. package/dist/solutions-components/p-0bbe4865.entry.js.map +0 -1
  767. package/dist/solutions-components/p-0fda7d9e.entry.js +0 -434
  768. package/dist/solutions-components/p-0fda7d9e.entry.js.map +0 -1
  769. package/dist/solutions-components/p-0fddf8a4.entry.js +0 -349
  770. package/dist/solutions-components/p-0fddf8a4.entry.js.map +0 -1
  771. package/dist/solutions-components/p-11bc6805.entry.js +0 -87
  772. package/dist/solutions-components/p-11bc6805.entry.js.map +0 -1
  773. package/dist/solutions-components/p-13b37f05.js.map +0 -1
  774. package/dist/solutions-components/p-1dfb5fae.entry.js +0 -713
  775. package/dist/solutions-components/p-1dfb5fae.entry.js.map +0 -1
  776. package/dist/solutions-components/p-1e15b1a3.js.map +0 -1
  777. package/dist/solutions-components/p-1e5bc9c3.entry.js +0 -96
  778. package/dist/solutions-components/p-1e5bc9c3.entry.js.map +0 -1
  779. package/dist/solutions-components/p-1ed05745.entry.js +0 -214
  780. package/dist/solutions-components/p-1ed05745.entry.js.map +0 -1
  781. package/dist/solutions-components/p-20bdf42f.js.map +0 -1
  782. package/dist/solutions-components/p-22574d83.entry.js +0 -74
  783. package/dist/solutions-components/p-22574d83.entry.js.map +0 -1
  784. package/dist/solutions-components/p-23904a3d.js.map +0 -1
  785. package/dist/solutions-components/p-24d75151.entry.js +0 -107
  786. package/dist/solutions-components/p-24d75151.entry.js.map +0 -1
  787. package/dist/solutions-components/p-26484399.entry.js +0 -108
  788. package/dist/solutions-components/p-26484399.entry.js.map +0 -1
  789. package/dist/solutions-components/p-291fd295.entry.js +0 -1250
  790. package/dist/solutions-components/p-291fd295.entry.js.map +0 -1
  791. package/dist/solutions-components/p-29bdbd3e.entry.js +0 -280
  792. package/dist/solutions-components/p-29bdbd3e.entry.js.map +0 -1
  793. package/dist/solutions-components/p-2ac06389.js.map +0 -1
  794. package/dist/solutions-components/p-2bce7fa2.entry.js +0 -45
  795. package/dist/solutions-components/p-2bce7fa2.entry.js.map +0 -1
  796. package/dist/solutions-components/p-2e9ed892.js.map +0 -1
  797. package/dist/solutions-components/p-2f12ff1b.entry.js +0 -202
  798. package/dist/solutions-components/p-2f12ff1b.entry.js.map +0 -1
  799. package/dist/solutions-components/p-2ff754ce.entry.js +0 -257
  800. package/dist/solutions-components/p-2ff754ce.entry.js.map +0 -1
  801. package/dist/solutions-components/p-30a6199a.entry.js +0 -445
  802. package/dist/solutions-components/p-30a6199a.entry.js.map +0 -1
  803. package/dist/solutions-components/p-32a67cb2.js.map +0 -1
  804. package/dist/solutions-components/p-341ff921.entry.js +0 -449
  805. package/dist/solutions-components/p-341ff921.entry.js.map +0 -1
  806. package/dist/solutions-components/p-36ce64e4.entry.js +0 -215
  807. package/dist/solutions-components/p-36ce64e4.entry.js.map +0 -1
  808. package/dist/solutions-components/p-374a5031.js.map +0 -1
  809. package/dist/solutions-components/p-3b010ce1.js.map +0 -1
  810. package/dist/solutions-components/p-3f6b0af4.js.map +0 -1
  811. package/dist/solutions-components/p-400e1427.entry.js +0 -236
  812. package/dist/solutions-components/p-400e1427.entry.js.map +0 -1
  813. package/dist/solutions-components/p-40d7cf01.entry.js +0 -228
  814. package/dist/solutions-components/p-40d7cf01.entry.js.map +0 -1
  815. package/dist/solutions-components/p-45556aff.entry.js +0 -215
  816. package/dist/solutions-components/p-45556aff.entry.js.map +0 -1
  817. package/dist/solutions-components/p-49aaa793.entry.js +0 -95
  818. package/dist/solutions-components/p-49aaa793.entry.js.map +0 -1
  819. package/dist/solutions-components/p-4e32bf8c.js.map +0 -1
  820. package/dist/solutions-components/p-4e89b243.entry.js +0 -479
  821. package/dist/solutions-components/p-4e89b243.entry.js.map +0 -1
  822. package/dist/solutions-components/p-515637fb.entry.js +0 -183
  823. package/dist/solutions-components/p-515637fb.entry.js.map +0 -1
  824. package/dist/solutions-components/p-5243a654.entry.js +0 -147
  825. package/dist/solutions-components/p-5243a654.entry.js.map +0 -1
  826. package/dist/solutions-components/p-55673790.entry.js +0 -82
  827. package/dist/solutions-components/p-55673790.entry.js.map +0 -1
  828. package/dist/solutions-components/p-56350bff.js.map +0 -1
  829. package/dist/solutions-components/p-58b374c0.entry.js +0 -347
  830. package/dist/solutions-components/p-58b374c0.entry.js.map +0 -1
  831. package/dist/solutions-components/p-58c69df2.js.map +0 -1
  832. package/dist/solutions-components/p-59fd6684.entry.js +0 -22
  833. package/dist/solutions-components/p-59fd6684.entry.js.map +0 -1
  834. package/dist/solutions-components/p-5b0d7c7d.js.map +0 -1
  835. package/dist/solutions-components/p-5cf33602.js.map +0 -1
  836. package/dist/solutions-components/p-600e23c6.js.map +0 -1
  837. package/dist/solutions-components/p-61398a7b.entry.js +0 -74
  838. package/dist/solutions-components/p-61398a7b.entry.js.map +0 -1
  839. package/dist/solutions-components/p-63a05701.entry.js +0 -45
  840. package/dist/solutions-components/p-63a05701.entry.js.map +0 -1
  841. package/dist/solutions-components/p-63f6e8f1.js.map +0 -1
  842. package/dist/solutions-components/p-64a2040e.entry.js +0 -63
  843. package/dist/solutions-components/p-64a2040e.entry.js.map +0 -1
  844. package/dist/solutions-components/p-64c63eb2.entry.js +0 -157
  845. package/dist/solutions-components/p-64c63eb2.entry.js.map +0 -1
  846. package/dist/solutions-components/p-659edb14.js +0 -4096
  847. package/dist/solutions-components/p-659edb14.js.map +0 -1
  848. package/dist/solutions-components/p-6940e2fd.entry.js +0 -100
  849. package/dist/solutions-components/p-6940e2fd.entry.js.map +0 -1
  850. package/dist/solutions-components/p-69900b68.entry.js +0 -152
  851. package/dist/solutions-components/p-69900b68.entry.js.map +0 -1
  852. package/dist/solutions-components/p-699125b6.entry.js +0 -44
  853. package/dist/solutions-components/p-699125b6.entry.js.map +0 -1
  854. package/dist/solutions-components/p-6b9dc092.js.map +0 -1
  855. package/dist/solutions-components/p-6d0899c8.entry.js +0 -118
  856. package/dist/solutions-components/p-6d0899c8.entry.js.map +0 -1
  857. package/dist/solutions-components/p-6e0da576.js.map +0 -1
  858. package/dist/solutions-components/p-6fe17794.js.map +0 -1
  859. package/dist/solutions-components/p-708a63a8.js.map +0 -1
  860. package/dist/solutions-components/p-729708a3.js.map +0 -1
  861. package/dist/solutions-components/p-73e23995.js.map +0 -1
  862. package/dist/solutions-components/p-75f54a34.entry.js +0 -883
  863. package/dist/solutions-components/p-75f54a34.entry.js.map +0 -1
  864. package/dist/solutions-components/p-77182c3a.js.map +0 -1
  865. package/dist/solutions-components/p-77c75f3a.entry.js +0 -21534
  866. package/dist/solutions-components/p-77c75f3a.entry.js.map +0 -1
  867. package/dist/solutions-components/p-77e6b03c.entry.js +0 -1872
  868. package/dist/solutions-components/p-77e6b03c.entry.js.map +0 -1
  869. package/dist/solutions-components/p-794ba85d.entry.js +0 -175
  870. package/dist/solutions-components/p-794ba85d.entry.js.map +0 -1
  871. package/dist/solutions-components/p-79cde78e.entry.js +0 -203
  872. package/dist/solutions-components/p-79cde78e.entry.js.map +0 -1
  873. package/dist/solutions-components/p-7a2c75a4.entry.js +0 -230
  874. package/dist/solutions-components/p-7a2c75a4.entry.js.map +0 -1
  875. package/dist/solutions-components/p-7daea1df.js.map +0 -1
  876. package/dist/solutions-components/p-7de77097.entry.js +0 -162
  877. package/dist/solutions-components/p-7de77097.entry.js.map +0 -1
  878. package/dist/solutions-components/p-7f2b74a9.entry.js +0 -56
  879. package/dist/solutions-components/p-7f2b74a9.entry.js.map +0 -1
  880. package/dist/solutions-components/p-81e606c0.entry.js +0 -915
  881. package/dist/solutions-components/p-81e606c0.entry.js.map +0 -1
  882. package/dist/solutions-components/p-86908777.js.map +0 -1
  883. package/dist/solutions-components/p-87a0ccb4.entry.js +0 -254
  884. package/dist/solutions-components/p-87a0ccb4.entry.js.map +0 -1
  885. package/dist/solutions-components/p-90629c1d.entry.js +0 -1986
  886. package/dist/solutions-components/p-90629c1d.entry.js.map +0 -1
  887. package/dist/solutions-components/p-9393631c.entry.js +0 -542
  888. package/dist/solutions-components/p-9393631c.entry.js.map +0 -1
  889. package/dist/solutions-components/p-93d3119d.js.map +0 -1
  890. package/dist/solutions-components/p-958e2979.entry.js +0 -111
  891. package/dist/solutions-components/p-958e2979.entry.js.map +0 -1
  892. package/dist/solutions-components/p-95ddb529.entry.js +0 -181
  893. package/dist/solutions-components/p-95ddb529.entry.js.map +0 -1
  894. package/dist/solutions-components/p-97c4a268.entry.js +0 -725
  895. package/dist/solutions-components/p-97c4a268.entry.js.map +0 -1
  896. package/dist/solutions-components/p-984cb687.entry.js +0 -2632
  897. package/dist/solutions-components/p-984cb687.entry.js.map +0 -1
  898. package/dist/solutions-components/p-991ee695.js.map +0 -1
  899. package/dist/solutions-components/p-99d9b624.entry.js +0 -177
  900. package/dist/solutions-components/p-99d9b624.entry.js.map +0 -1
  901. package/dist/solutions-components/p-9a9955db.js.map +0 -1
  902. package/dist/solutions-components/p-9d925d5b.entry.js +0 -233
  903. package/dist/solutions-components/p-9d925d5b.entry.js.map +0 -1
  904. package/dist/solutions-components/p-9dc0210f.entry.js +0 -125
  905. package/dist/solutions-components/p-9dc0210f.entry.js.map +0 -1
  906. package/dist/solutions-components/p-9fec2884.entry.js +0 -216
  907. package/dist/solutions-components/p-9fec2884.entry.js.map +0 -1
  908. package/dist/solutions-components/p-a2ada355.entry.js +0 -135
  909. package/dist/solutions-components/p-a2ada355.entry.js.map +0 -1
  910. package/dist/solutions-components/p-a57adb27.entry.js +0 -154
  911. package/dist/solutions-components/p-a57adb27.entry.js.map +0 -1
  912. package/dist/solutions-components/p-a80b3880.js.map +0 -1
  913. package/dist/solutions-components/p-a88dd457.entry.js +0 -123
  914. package/dist/solutions-components/p-a88dd457.entry.js.map +0 -1
  915. package/dist/solutions-components/p-ac6efd19.entry.js +0 -57
  916. package/dist/solutions-components/p-ac6efd19.entry.js.map +0 -1
  917. package/dist/solutions-components/p-ae1fd76b.js.map +0 -1
  918. package/dist/solutions-components/p-afffa81a.entry.js +0 -140
  919. package/dist/solutions-components/p-afffa81a.entry.js.map +0 -1
  920. package/dist/solutions-components/p-b0f3ed4d.entry.js +0 -376
  921. package/dist/solutions-components/p-b0f3ed4d.entry.js.map +0 -1
  922. package/dist/solutions-components/p-b359dc78.js.map +0 -1
  923. package/dist/solutions-components/p-b66cba3e.entry.js +0 -97
  924. package/dist/solutions-components/p-b66cba3e.entry.js.map +0 -1
  925. package/dist/solutions-components/p-b6c2f470.entry.js +0 -574
  926. package/dist/solutions-components/p-b6c2f470.entry.js.map +0 -1
  927. package/dist/solutions-components/p-b978636e.js.map +0 -1
  928. package/dist/solutions-components/p-bd19837e.entry.js +0 -96
  929. package/dist/solutions-components/p-bd19837e.entry.js.map +0 -1
  930. package/dist/solutions-components/p-be1ed982.entry.js +0 -1121
  931. package/dist/solutions-components/p-be1ed982.entry.js.map +0 -1
  932. package/dist/solutions-components/p-be8cc144.entry.js +0 -567
  933. package/dist/solutions-components/p-be8cc144.entry.js.map +0 -1
  934. package/dist/solutions-components/p-bfd20deb.entry.js +0 -80
  935. package/dist/solutions-components/p-bfd20deb.entry.js.map +0 -1
  936. package/dist/solutions-components/p-c2c8442d.entry.js +0 -140
  937. package/dist/solutions-components/p-c2c8442d.entry.js.map +0 -1
  938. package/dist/solutions-components/p-c3f93cec.entry.js +0 -158
  939. package/dist/solutions-components/p-c3f93cec.entry.js.map +0 -1
  940. package/dist/solutions-components/p-c9870dc4.entry.js +0 -38
  941. package/dist/solutions-components/p-c9870dc4.entry.js.map +0 -1
  942. package/dist/solutions-components/p-cbd9fecf.js.map +0 -1
  943. package/dist/solutions-components/p-cfb300c6.entry.js +0 -250
  944. package/dist/solutions-components/p-cfb300c6.entry.js.map +0 -1
  945. package/dist/solutions-components/p-d48a24e6.js.map +0 -1
  946. package/dist/solutions-components/p-dbad98e8.js.map +0 -1
  947. package/dist/solutions-components/p-dd79118e.entry.js +0 -708
  948. package/dist/solutions-components/p-dd79118e.entry.js.map +0 -1
  949. package/dist/solutions-components/p-de5416e8.js.map +0 -1
  950. package/dist/solutions-components/p-de881187.entry.js +0 -87
  951. package/dist/solutions-components/p-de881187.entry.js.map +0 -1
  952. package/dist/solutions-components/p-e1905f7b.entry.js +0 -120
  953. package/dist/solutions-components/p-e1905f7b.entry.js.map +0 -1
  954. package/dist/solutions-components/p-e515767a.entry.js +0 -116
  955. package/dist/solutions-components/p-e515767a.entry.js.map +0 -1
  956. package/dist/solutions-components/p-e611d8c8.js.map +0 -1
  957. package/dist/solutions-components/p-e6a695a5.js.map +0 -1
  958. package/dist/solutions-components/p-e947d3b0.js.map +0 -1
  959. package/dist/solutions-components/p-e99b1247.js.map +0 -1
  960. package/dist/solutions-components/p-eb5b78c3.entry.js +0 -125
  961. package/dist/solutions-components/p-eb5b78c3.entry.js.map +0 -1
  962. package/dist/solutions-components/p-eb976965.js.map +0 -1
  963. package/dist/solutions-components/p-ed075c2f.entry.js +0 -186
  964. package/dist/solutions-components/p-ed075c2f.entry.js.map +0 -1
  965. package/dist/solutions-components/p-eeb0321d.js.map +0 -1
  966. package/dist/solutions-components/p-f0294899.entry.js +0 -84
  967. package/dist/solutions-components/p-f0294899.entry.js.map +0 -1
  968. package/dist/solutions-components/p-f477f146.entry.js +0 -310
  969. package/dist/solutions-components/p-f477f146.entry.js.map +0 -1
  970. package/dist/solutions-components/p-f48821a2.js.map +0 -1
  971. package/dist/solutions-components/p-f496ed0c.entry.js +0 -150
  972. package/dist/solutions-components/p-f496ed0c.entry.js.map +0 -1
  973. package/dist/solutions-components/p-f5268b4f.entry.js +0 -60
  974. package/dist/solutions-components/p-f5268b4f.entry.js.map +0 -1
  975. package/dist/solutions-components/p-f759a6e7.js.map +0 -1
  976. package/dist/solutions-components/p-fc884dd6.js.map +0 -1
  977. package/dist/solutions-components/p-fe0fdd8b.js.map +0 -1
  978. package/dist/solutions-components/solutions-components.esm.js.map +0 -1
@@ -1,2632 +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 { r as registerInstance, c as createEvent, h, f as forceUpdate, g as getElement, H as Host, F as Fragment } from './p-58c69df2.js';
7
- import { b as getElementDir, i as isPrimaryPointerButton, a as getSlotted, n as nodeListToArray, l as filterDirectChildren, g as getElementProp, t as toAriaBoolean } from './p-32a67cb2.js';
8
- import { c as clamp } from './p-63f6e8f1.js';
9
- import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './p-5cf33602.js';
10
- import { g as guid } from './p-a80b3880.js';
11
- import { c as createObserver } from './p-9a9955db.js';
12
- import { u as updateHostInteraction } from './p-7daea1df.js';
13
- import { S as Sortable } from './p-77182c3a.js';
14
- import { o as getItemIndex, m as mutationObserverCallback, d as deselectRemovedItems, a as deselectSiblingItems, s as selectSiblings, h as handleFilter, g as getItemData, k as keyDownHandler, p as moveItemIndex, i as initialize, b as initializeObserver, c as cleanUpObserver, j as calciteListFocusOutHandler, r as removeItem, e as calciteListItemChangeHandler, f as calciteInternalListItemValueChangeHandler, l as setUpItems, n as setFocus, L as List } from './p-13b37f05.js';
15
- import { I as ICON_TYPES$1 } from './p-b978636e.js';
16
- import { C as CSS$2, S as SLOTS$3 } from './p-de5416e8.js';
17
- import { g as getLocaleComponentStrings } from './p-20bdf42f.js';
18
- import { s as state, E as EFileType } from './p-659edb14.js';
19
- import { c as EUpdateType } from './p-6b9dc092.js';
20
- import './p-729708a3.js';
21
- import './p-e947d3b0.js';
22
- import './p-ae1fd76b.js';
23
- import './p-4e32bf8c.js';
24
- import './p-3b010ce1.js';
25
- import './p-f759a6e7.js';
26
-
27
- /*!
28
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
29
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
30
- * v1.0.0-beta.97
31
- */
32
- const CSS$1 = {
33
- container: "container",
34
- content: "content",
35
- contentHeader: "content__header",
36
- contentBody: "content__body",
37
- contentDetached: "content--detached",
38
- separator: "separator"
39
- };
40
- const SLOTS$2 = {
41
- actionBar: "action-bar",
42
- header: "header"
43
- };
44
- const TEXT = {
45
- resize: "Resize"
46
- };
47
-
48
- const shellPanelCss = "@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{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width);max-inline-size:var(--calcite-shell-panel-max-width);min-inline-size:var(--calcite-shell-panel-min-width);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([dismissed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
49
-
50
- const ShellPanel = class {
51
- constructor(hostRef) {
52
- registerInstance(this, hostRef);
53
- this.calciteShellPanelToggle = createEvent(this, "calciteShellPanelToggle", 6);
54
- // --------------------------------------------------------------------------
55
- //
56
- // Properties
57
- //
58
- // --------------------------------------------------------------------------
59
- /**
60
- * When `true`, hides the component's content area.
61
- */
62
- this.collapsed = false;
63
- /**
64
- * When `true`, the content area displays like a floating panel.
65
- */
66
- this.detached = false;
67
- /**
68
- * When `detached`, specifies the maximum height of the component.
69
- */
70
- this.detachedHeightScale = "l";
71
- /**
72
- * Specifies the width of the component's content area.
73
- */
74
- this.widthScale = "m";
75
- /**
76
- * Accessible name for the resize separator.
77
- *
78
- * @default "Resize"
79
- */
80
- this.intlResize = TEXT.resize;
81
- /**
82
- * When `true` and not `detached`, the component's content area is resizable.
83
- */
84
- this.resizable = false;
85
- this.contentWidth = null;
86
- this.initialContentWidth = null;
87
- this.initialClientX = null;
88
- this.contentWidthMax = null;
89
- this.contentWidthMin = null;
90
- this.step = 1;
91
- this.stepMultiplier = 10;
92
- this.storeContentEl = (contentEl) => {
93
- this.contentEl = contentEl;
94
- };
95
- this.getKeyAdjustedWidth = (event) => {
96
- const { key } = event;
97
- const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
98
- const multipliedStep = step * stepMultiplier;
99
- const MOVEMENT_KEYS = [
100
- "ArrowUp",
101
- "ArrowDown",
102
- "ArrowLeft",
103
- "ArrowRight",
104
- "Home",
105
- "End",
106
- "PageUp",
107
- "PageDown"
108
- ];
109
- if (MOVEMENT_KEYS.indexOf(key) > -1) {
110
- event.preventDefault();
111
- }
112
- const dir = getElementDir(el);
113
- const directionKeys = ["ArrowLeft", "ArrowRight"];
114
- const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
115
- const increaseKeys = key === "ArrowUp" ||
116
- (position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
117
- if (increaseKeys) {
118
- const stepValue = event.shiftKey ? multipliedStep : step;
119
- return initialContentWidth + directionFactor * stepValue;
120
- }
121
- const decreaseKeys = key === "ArrowDown" ||
122
- (position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
123
- if (decreaseKeys) {
124
- const stepValue = event.shiftKey ? multipliedStep : step;
125
- return initialContentWidth - directionFactor * stepValue;
126
- }
127
- if (typeof contentWidthMin === "number" && key === "Home") {
128
- return contentWidthMin;
129
- }
130
- if (typeof contentWidthMax === "number" && key === "End") {
131
- return contentWidthMax;
132
- }
133
- if (key === "PageDown") {
134
- return initialContentWidth - multipliedStep;
135
- }
136
- if (key === "PageUp") {
137
- return initialContentWidth + multipliedStep;
138
- }
139
- return null;
140
- };
141
- this.separatorKeyDown = (event) => {
142
- this.setInitialContentWidth();
143
- const width = this.getKeyAdjustedWidth(event);
144
- if (typeof width === "number") {
145
- this.setContentWidth(width);
146
- }
147
- };
148
- this.separatorPointerMove = (event) => {
149
- event.preventDefault();
150
- const { el, initialContentWidth, position, initialClientX } = this;
151
- const offset = event.clientX - initialClientX;
152
- const dir = getElementDir(el);
153
- const adjustmentDirection = dir === "rtl" ? -1 : 1;
154
- const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
155
- const width = initialContentWidth + adjustedOffset;
156
- this.setContentWidth(width);
157
- };
158
- this.separatorPointerUp = (event) => {
159
- if (!isPrimaryPointerButton(event)) {
160
- return;
161
- }
162
- event.preventDefault();
163
- document.removeEventListener("pointerup", this.separatorPointerUp);
164
- document.removeEventListener("pointermove", this.separatorPointerMove);
165
- };
166
- this.setInitialContentWidth = () => {
167
- var _a;
168
- this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
169
- };
170
- this.separatorPointerDown = (event) => {
171
- if (!isPrimaryPointerButton(event)) {
172
- return;
173
- }
174
- event.preventDefault();
175
- const { separatorEl } = this;
176
- separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
177
- this.setInitialContentWidth();
178
- this.initialClientX = event.clientX;
179
- document.addEventListener("pointerup", this.separatorPointerUp);
180
- document.addEventListener("pointermove", this.separatorPointerMove);
181
- };
182
- this.connectSeparator = (separatorEl) => {
183
- this.disconnectSeparator();
184
- this.separatorEl = separatorEl;
185
- separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
186
- };
187
- this.disconnectSeparator = () => {
188
- var _a;
189
- (_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
190
- };
191
- }
192
- watchHandler() {
193
- this.calciteShellPanelToggle.emit();
194
- }
195
- //--------------------------------------------------------------------------
196
- //
197
- // Lifecycle
198
- //
199
- //--------------------------------------------------------------------------
200
- connectedCallback() {
201
- connectConditionalSlotComponent(this);
202
- }
203
- disconnectedCallback() {
204
- disconnectConditionalSlotComponent(this);
205
- this.disconnectSeparator();
206
- }
207
- componentDidLoad() {
208
- this.updateAriaValues();
209
- }
210
- // --------------------------------------------------------------------------
211
- //
212
- // Render Methods
213
- //
214
- // --------------------------------------------------------------------------
215
- renderHeader() {
216
- const { el } = this;
217
- const hasHeader = getSlotted(el, SLOTS$2.header);
218
- return hasHeader ? (h("div", { class: CSS$1.contentHeader, key: "header" }, h("slot", { name: SLOTS$2.header }))) : null;
219
- }
220
- render() {
221
- const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
222
- const allowResizing = !detached && resizable;
223
- const contentNode = (h("div", { class: { [CSS$1.content]: true, [CSS$1.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$1.contentBody }, h("slot", null))));
224
- const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$1.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
225
- const actionBarNode = h("slot", { key: "action-bar", name: SLOTS$2.actionBar });
226
- const mainNodes = [actionBarNode, contentNode, separatorNode];
227
- if (position === "end") {
228
- mainNodes.reverse();
229
- }
230
- return h("div", { class: { [CSS$1.container]: true } }, mainNodes);
231
- }
232
- // --------------------------------------------------------------------------
233
- //
234
- // private Methods
235
- //
236
- // --------------------------------------------------------------------------
237
- setContentWidth(width) {
238
- const { contentWidthMax, contentWidthMin } = this;
239
- const roundedWidth = Math.round(width);
240
- this.contentWidth =
241
- typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
242
- ? clamp(roundedWidth, contentWidthMin, contentWidthMax)
243
- : roundedWidth;
244
- }
245
- updateAriaValues() {
246
- const { contentEl } = this;
247
- const computedStyle = contentEl && getComputedStyle(contentEl);
248
- if (!computedStyle) {
249
- return;
250
- }
251
- const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
252
- const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
253
- const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
254
- if (typeof valueNow === "number" && !isNaN(valueNow)) {
255
- this.initialContentWidth = valueNow;
256
- }
257
- if (typeof max === "number" && !isNaN(max)) {
258
- this.contentWidthMax = max;
259
- }
260
- if (typeof min === "number" && !isNaN(min)) {
261
- this.contentWidthMin = min;
262
- }
263
- forceUpdate(this);
264
- }
265
- get el() { return getElement(this); }
266
- static get watchers() { return {
267
- "collapsed": ["watchHandler"]
268
- }; }
269
- };
270
- ShellPanel.style = shellPanelCss;
271
-
272
- const tabCss = "@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([selected]) section,:host([selected]) .container{display:block}:host{display:none;block-size:100%;inline-size:100%}:host([selected]){display:block;block-size:100%;inline-size:100%;overflow:auto}section,.container{display:none;block-size:100%;inline-size:100%}:host([scale=s]){padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}";
273
-
274
- const Tab = class {
275
- constructor(hostRef) {
276
- registerInstance(this, hostRef);
277
- this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 6);
278
- /**
279
- * When `true`, the component's contents are selected.
280
- *
281
- * Only one tab can be selected within the `calcite-tabs` parent.
282
- *
283
- * @deprecated Use `selected` instead.
284
- */
285
- this.active = false;
286
- /**
287
- * When `true`, the component's contents are selected.
288
- *
289
- * Only one tab can be selected within the `calcite-tabs` parent.
290
- */
291
- this.selected = false;
292
- /**
293
- * @internal
294
- */
295
- this.scale = "m";
296
- this.guid = `calcite-tab-title-${guid()}`;
297
- }
298
- activeHandler(value) {
299
- this.selected = value;
300
- }
301
- selectedHandler(value) {
302
- this.active = value;
303
- }
304
- //--------------------------------------------------------------------------
305
- //
306
- // Lifecycle
307
- //
308
- //--------------------------------------------------------------------------
309
- render() {
310
- const id = this.el.id || this.guid;
311
- return (h(Host, { "aria-labelledby": this.labeledBy, id: id }, h("div", { class: "container", role: "tabpanel", tabIndex: this.selected ? 0 : -1 }, h("section", null, h("slot", null)))));
312
- }
313
- connectedCallback() {
314
- this.parentTabsEl = this.el.closest("calcite-tabs");
315
- const isSelected = this.selected || this.active;
316
- if (isSelected) {
317
- this.activeHandler(isSelected);
318
- this.selectedHandler(isSelected);
319
- }
320
- }
321
- componentDidLoad() {
322
- this.calciteInternalTabRegister.emit();
323
- }
324
- componentWillRender() {
325
- var _a;
326
- this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
327
- }
328
- disconnectedCallback() {
329
- var _a;
330
- // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
331
- (_a = document.body) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent("calciteTabUnregister", {
332
- detail: this.el
333
- }));
334
- }
335
- //--------------------------------------------------------------------------
336
- //
337
- // Event Listeners
338
- //
339
- //--------------------------------------------------------------------------
340
- internalTabChangeHandler(event) {
341
- const targetTabsEl = event
342
- .composedPath()
343
- .find((el) => el.tagName === "CALCITE-TABS");
344
- // to allow `<calcite-tabs>` to be nested we need to make sure this
345
- // `calciteTabChange` event was actually fired from a within the same
346
- // `<calcite-tabs>` that is the a parent of this tab.
347
- if (targetTabsEl !== this.parentTabsEl) {
348
- return;
349
- }
350
- if (this.tab) {
351
- this.selected = this.tab === event.detail.tab;
352
- }
353
- else {
354
- this.getTabIndex().then((index) => {
355
- this.selected = index === event.detail.tab;
356
- });
357
- }
358
- event.stopPropagation();
359
- }
360
- //--------------------------------------------------------------------------
361
- //
362
- // Public Methods
363
- //
364
- //--------------------------------------------------------------------------
365
- /**
366
- * Returns the index of the component item within the tab array.
367
- */
368
- async getTabIndex() {
369
- return Array.prototype.indexOf.call(nodeListToArray(this.el.parentElement.children).filter((el) => el.matches("calcite-tab")), this.el);
370
- }
371
- //--------------------------------------------------------------------------
372
- //
373
- // Private Methods
374
- //
375
- //--------------------------------------------------------------------------
376
- /**
377
- * @param tabIds
378
- * @param titleIds
379
- * @internal
380
- */
381
- async updateAriaInfo(tabIds = [], titleIds = []) {
382
- this.labeledBy = titleIds[tabIds.indexOf(this.el.id)] || null;
383
- }
384
- get el() { return getElement(this); }
385
- static get watchers() { return {
386
- "active": ["activeHandler"],
387
- "selected": ["selectedHandler"]
388
- }; }
389
- };
390
- Tab.style = tabCss;
391
-
392
- const tabNavCss = "@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{position:relative;display:flex}:host([scale=s]){min-block-size:1.5rem}:host([scale=m]){min-block-size:2rem}:host([scale=l]){min-block-size:2.75rem}.tab-nav{display:flex;inline-size:100%;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;inset-inline:0px;inset-block-end:0px;block-size:0.125rem;inline-size:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;inset-block-end:0px;display:block;block-size:0.125rem;background-color:var(--calcite-ui-brand);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([position=below]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=bottom]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=below]) .tab-nav-active-indicator-container{inset-block-start:0px;inset-block-end:unset}:host([position=bottom]) .tab-nav-active-indicator-container{inset-block-end:unset;inset-block-start:0px}:host([bordered]) .tab-nav-active-indicator-container{inset-block-end:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}:host([bordered][position=bottom]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}";
393
-
394
- const TabNav = class {
395
- constructor(hostRef) {
396
- registerInstance(this, hostRef);
397
- this.calciteTabChange = createEvent(this, "calciteTabChange", 6);
398
- this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 6);
399
- /**
400
- * @internal
401
- */
402
- this.scale = "m";
403
- /**
404
- * @internal
405
- */
406
- this.layout = "inline";
407
- /**
408
- * @internal
409
- */
410
- this.position = "bottom";
411
- /**
412
- * @internal
413
- */
414
- this.bordered = false;
415
- this.animationActiveDuration = 0.3;
416
- this.resizeObserver = createObserver("resize", () => {
417
- // remove active indicator transition duration during resize to prevent wobble
418
- this.activeIndicatorEl.style.transitionDuration = "0s";
419
- this.updateActiveWidth();
420
- this.updateOffsetPosition();
421
- });
422
- //--------------------------------------------------------------------------
423
- //
424
- // Private Methods
425
- //
426
- //--------------------------------------------------------------------------
427
- this.handleContainerScroll = () => {
428
- // remove active indicator transition duration while container is scrolling to prevent wobble
429
- this.activeIndicatorEl.style.transitionDuration = "0s";
430
- this.updateOffsetPosition();
431
- };
432
- }
433
- async selectedTabChanged() {
434
- if (localStorage &&
435
- this.storageId &&
436
- this.selectedTab !== undefined &&
437
- this.selectedTab !== null) {
438
- localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.selectedTab));
439
- }
440
- this.calciteInternalTabChange.emit({
441
- tab: this.selectedTab
442
- });
443
- this.selectedTabEl = await this.getTabTitleById(this.selectedTab);
444
- }
445
- selectedTabElChanged() {
446
- this.updateOffsetPosition();
447
- this.updateActiveWidth();
448
- // reset the animation time on tab selection
449
- this.activeIndicatorEl.style.transitionDuration = `${this.animationActiveDuration}s`;
450
- }
451
- //--------------------------------------------------------------------------
452
- //
453
- // Lifecycle
454
- //
455
- //--------------------------------------------------------------------------
456
- connectedCallback() {
457
- var _a;
458
- this.parentTabsEl = this.el.closest("calcite-tabs");
459
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
460
- }
461
- disconnectedCallback() {
462
- var _a;
463
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
464
- }
465
- componentWillLoad() {
466
- const storageKey = `calcite-tab-nav-${this.storageId}`;
467
- if (localStorage && this.storageId && localStorage.getItem(storageKey)) {
468
- const storedTab = JSON.parse(localStorage.getItem(storageKey));
469
- this.selectedTab = storedTab;
470
- }
471
- }
472
- componentWillRender() {
473
- const { parentTabsEl } = this;
474
- this.layout = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.layout;
475
- this.position = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.position;
476
- this.scale = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.scale;
477
- this.bordered = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.bordered;
478
- // fix issue with active tab-title not lining up with blue indicator
479
- if (this.selectedTabEl) {
480
- this.updateOffsetPosition();
481
- }
482
- }
483
- componentDidRender() {
484
- // if every tab title is active select the first tab.
485
- if (this.tabTitles.length &&
486
- this.tabTitles.every((title) => !title.active) &&
487
- !this.selectedTab) {
488
- this.tabTitles[0].getTabIdentifier().then((tab) => {
489
- this.calciteInternalTabChange.emit({
490
- tab
491
- });
492
- });
493
- }
494
- }
495
- render() {
496
- const dir = getElementDir(this.el);
497
- const width = `${this.indicatorWidth}px`;
498
- const offset = `${this.indicatorOffset}px`;
499
- const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
500
- return (h(Host, { role: "tablist" }, h("div", { class: "tab-nav", onScroll: this.handleContainerScroll, ref: (el) => (this.tabNavEl = el) }, h("div", { class: "tab-nav-active-indicator-container", ref: (el) => (this.activeIndicatorContainerEl = el) }, h("div", { class: "tab-nav-active-indicator", ref: (el) => (this.activeIndicatorEl = el), style: indicatorStyle })), h("slot", null))));
501
- }
502
- //--------------------------------------------------------------------------
503
- //
504
- // Event Listeners
505
- //
506
- //--------------------------------------------------------------------------
507
- focusPreviousTabHandler(event) {
508
- const currentIndex = this.getIndexOfTabTitle(event.target, this.enabledTabTitles);
509
- const previousTab = this.enabledTabTitles[currentIndex - 1] ||
510
- this.enabledTabTitles[this.enabledTabTitles.length - 1];
511
- previousTab === null || previousTab === void 0 ? void 0 : previousTab.focus();
512
- event.stopPropagation();
513
- event.preventDefault();
514
- }
515
- focusNextTabHandler(event) {
516
- const currentIndex = this.getIndexOfTabTitle(event.target, this.enabledTabTitles);
517
- const nextTab = this.enabledTabTitles[currentIndex + 1] || this.enabledTabTitles[0];
518
- nextTab === null || nextTab === void 0 ? void 0 : nextTab.focus();
519
- event.stopPropagation();
520
- event.preventDefault();
521
- }
522
- internalActivateTabHandler(event) {
523
- this.selectedTab = event.detail.tab
524
- ? event.detail.tab
525
- : this.getIndexOfTabTitle(event.target);
526
- event.stopPropagation();
527
- event.preventDefault();
528
- }
529
- activateTabHandler(event) {
530
- this.calciteTabChange.emit({
531
- tab: this.selectedTab
532
- });
533
- event.stopPropagation();
534
- event.preventDefault();
535
- }
536
- /**
537
- * Check for active tabs on register and update selected
538
- *
539
- * @param event
540
- */
541
- updateTabTitles(event) {
542
- if (event.target.active) {
543
- this.selectedTab = event.detail;
544
- }
545
- }
546
- globalInternalTabChangeHandler(event) {
547
- if (this.syncId &&
548
- event.target !== this.el &&
549
- event.target.syncId === this.syncId &&
550
- this.selectedTab !== event.detail.tab) {
551
- this.selectedTab = event.detail.tab;
552
- }
553
- event.stopPropagation();
554
- }
555
- iconStartChangeHandler() {
556
- this.updateActiveWidth();
557
- }
558
- updateOffsetPosition() {
559
- var _a, _b, _c, _d, _e;
560
- const dir = getElementDir(this.el);
561
- const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
562
- const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
563
- const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
564
- const offsetRight = navWidth - (tabLeft + tabWidth);
565
- this.indicatorOffset =
566
- dir !== "rtl" ? tabLeft - ((_d = this.tabNavEl) === null || _d === void 0 ? void 0 : _d.scrollLeft) : offsetRight + ((_e = this.tabNavEl) === null || _e === void 0 ? void 0 : _e.scrollLeft);
567
- }
568
- updateActiveWidth() {
569
- var _a;
570
- this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
571
- }
572
- getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
573
- // In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
574
- // However, when doing relative index operations, it makes sense to pass in this.enabledTabTitles as the 2nd arg.
575
- return tabTitles.indexOf(el);
576
- }
577
- async getTabTitleById(id) {
578
- return Promise.all(this.tabTitles.map((el) => el.getTabIdentifier())).then((ids) => {
579
- return this.tabTitles[ids.indexOf(id)];
580
- });
581
- }
582
- get tabTitles() {
583
- return filterDirectChildren(this.el, "calcite-tab-title");
584
- }
585
- get enabledTabTitles() {
586
- return filterDirectChildren(this.el, "calcite-tab-title:not([disabled])");
587
- }
588
- get el() { return getElement(this); }
589
- static get watchers() { return {
590
- "selectedTab": ["selectedTabChanged"],
591
- "selectedTabEl": ["selectedTabElChanged"]
592
- }; }
593
- };
594
- TabNav.style = tabNavCss;
595
-
596
- const tabTitleCss = "@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-block:0px;margin-inline:1.25rem;text-align:center;flex-basis:12rem;margin:auto}:host([position=below]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host([position=bottom]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host .container{outline-color:transparent}:host(:focus) .container{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]) .container{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) .container{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .container{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) .container{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.container{box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-block-end-width:2px;padding-inline:0px;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end-color:transparent;border-block-end-style:solid}.calcite-tab-title--icon{position:relative;margin:0px;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][selected]){box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][selected][position=below]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered][selected][position=bottom]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) .container,:host([bordered]:focus) .container,:host([bordered]:active) .container{position:relative}:host([bordered]:hover) .container{background-color:var(--calcite-button-transparent-hover)}:host([bordered]) .container{border-block-end-style:unset;-webkit-border-start:1px solid transparent;border-inline-start:1px solid transparent;-webkit-border-end:1px solid transparent;border-inline-end:1px solid transparent}:host([bordered][position=below]) .container{border-block-start-style:unset}:host([bordered][position=bottom]) .container{border-block-start-style:unset}:host([selected][bordered]) .container{border-inline-start-color:var(--calcite-ui-border-1);border-inline-end-color:var(--calcite-ui-border-1)}:host([bordered]) .container{padding-inline:0.75rem}:host([bordered][scale=s]) .container{padding-inline:0.5rem}:host([bordered][scale=l]) .container{padding-inline:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered][position=below]) .container{border-block-start-style:solid}:host([bordered][position=bottom]) .container{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][position=below][selected]) .container{border-block-start-style:none}:host([bordered][position=bottom][selected]) .container{border-block-start-style:none}}";
597
-
598
- const TabTitle = class {
599
- constructor(hostRef) {
600
- registerInstance(this, hostRef);
601
- this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 6);
602
- this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 6);
603
- this.calciteInternalTabsFocusNext = createEvent(this, "calciteInternalTabsFocusNext", 6);
604
- this.calciteInternalTabsFocusPrevious = createEvent(this, "calciteInternalTabsFocusPrevious", 6);
605
- this.calciteInternalTabTitleRegister = createEvent(this, "calciteInternalTabTitleRegister", 6);
606
- this.calciteInternalTabIconChanged = createEvent(this, "calciteInternalTabIconChanged", 6);
607
- //--------------------------------------------------------------------------
608
- //
609
- // Properties
610
- //
611
- //--------------------------------------------------------------------------
612
- /**
613
- * When `true`, the component and its respective `calcite-tab` contents are selected.
614
- *
615
- * Only one tab can be selected within the `calcite-tabs` parent.
616
- *
617
- * @deprecated Use `selected` instead.
618
- */
619
- this.active = false;
620
- /**
621
- * When `true`, the component and its respective `calcite-tab` contents are selected.
622
- *
623
- * Only one tab can be selected within the `calcite-tabs` parent.
624
- */
625
- this.selected = false;
626
- /** When `true`, interaction is prevented and the component is displayed with lower opacity. */
627
- this.disabled = false;
628
- /**
629
- * @internal
630
- */
631
- this.bordered = false;
632
- //--------------------------------------------------------------------------
633
- //
634
- // Private State/Props
635
- //
636
- //--------------------------------------------------------------------------
637
- /** watches for changing text content */
638
- this.mutationObserver = createObserver("mutation", () => this.updateHasText());
639
- /** determine if there is slotted text for styling purposes */
640
- this.hasText = false;
641
- this.resizeObserver = createObserver("resize", () => {
642
- this.calciteInternalTabIconChanged.emit();
643
- });
644
- this.guid = `calcite-tab-title-${guid()}`;
645
- }
646
- activeHandler(value) {
647
- this.selected = value;
648
- }
649
- selectedHandler(value) {
650
- this.active = value;
651
- if (this.selected) {
652
- this.emitActiveTab(false);
653
- }
654
- }
655
- //--------------------------------------------------------------------------
656
- //
657
- // Lifecycle
658
- //
659
- //--------------------------------------------------------------------------
660
- connectedCallback() {
661
- const { selected, active } = this;
662
- if (selected) {
663
- this.active = selected;
664
- }
665
- else if (active) {
666
- this.activeHandler(active);
667
- }
668
- this.setupTextContentObserver();
669
- this.parentTabNavEl = this.el.closest("calcite-tab-nav");
670
- this.parentTabsEl = this.el.closest("calcite-tabs");
671
- }
672
- disconnectedCallback() {
673
- var _a, _b, _c;
674
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
675
- // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
676
- (_b = document.body) === null || _b === void 0 ? void 0 : _b.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
677
- detail: this.el
678
- }));
679
- (_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
680
- }
681
- componentWillLoad() {
682
- {
683
- this.updateHasText();
684
- }
685
- if (this.tab && this.selected) {
686
- this.emitActiveTab(false);
687
- }
688
- }
689
- componentWillRender() {
690
- if (this.parentTabsEl) {
691
- this.layout = this.parentTabsEl.layout;
692
- this.position = this.parentTabsEl.position;
693
- this.scale = this.parentTabsEl.scale;
694
- this.bordered = this.parentTabsEl.bordered;
695
- }
696
- // handle case when tab-nav is only parent
697
- if (!this.parentTabsEl && this.parentTabNavEl) {
698
- this.position = getElementProp(this.parentTabNavEl, "position", this.position);
699
- this.scale = getElementProp(this.parentTabNavEl, "scale", this.scale);
700
- }
701
- }
702
- render() {
703
- const id = this.el.id || this.guid;
704
- const iconStartEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
705
- const iconEndEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
706
- return (h(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, h("div", { class: {
707
- container: true,
708
- "container--has-text": this.hasText
709
- }, ref: (el) => { var _a; return (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(el); } }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
710
- }
711
- async componentDidLoad() {
712
- this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
713
- }
714
- componentDidRender() {
715
- updateHostInteraction(this, () => {
716
- return this.selected;
717
- });
718
- }
719
- //--------------------------------------------------------------------------
720
- //
721
- // Event Listeners
722
- //
723
- //--------------------------------------------------------------------------
724
- internalTabChangeHandler(event) {
725
- const targetTabsEl = event
726
- .composedPath()
727
- .find((el) => el.tagName === "CALCITE-TABS");
728
- if (targetTabsEl !== this.parentTabsEl) {
729
- return;
730
- }
731
- if (this.tab) {
732
- this.selected = this.tab === event.detail.tab;
733
- }
734
- else {
735
- this.getTabIndex().then((index) => {
736
- this.selected = index === event.detail.tab;
737
- });
738
- }
739
- event.stopPropagation();
740
- }
741
- onClick() {
742
- this.emitActiveTab();
743
- }
744
- keyDownHandler(event) {
745
- switch (event.key) {
746
- case " ":
747
- case "Enter":
748
- this.emitActiveTab();
749
- event.preventDefault();
750
- break;
751
- case "ArrowRight":
752
- event.preventDefault();
753
- if (getElementDir(this.el) === "ltr") {
754
- this.calciteInternalTabsFocusNext.emit();
755
- }
756
- else {
757
- this.calciteInternalTabsFocusPrevious.emit();
758
- }
759
- break;
760
- case "ArrowLeft":
761
- event.preventDefault();
762
- if (getElementDir(this.el) === "ltr") {
763
- this.calciteInternalTabsFocusPrevious.emit();
764
- }
765
- else {
766
- this.calciteInternalTabsFocusNext.emit();
767
- }
768
- break;
769
- }
770
- }
771
- //--------------------------------------------------------------------------
772
- //
773
- // Public Methods
774
- //
775
- //--------------------------------------------------------------------------
776
- /**
777
- * Returns the index of the title within the `calcite-tab-nav`.
778
- */
779
- async getTabIndex() {
780
- return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"), this.el);
781
- }
782
- /**
783
- * @internal
784
- */
785
- async getTabIdentifier() {
786
- return this.tab ? this.tab : this.getTabIndex();
787
- }
788
- /**
789
- * @param tabIds
790
- * @param titleIds
791
- * @internal
792
- */
793
- async updateAriaInfo(tabIds = [], titleIds = []) {
794
- this.controls = tabIds[titleIds.indexOf(this.el.id)] || null;
795
- }
796
- updateHasText() {
797
- this.hasText = this.el.textContent.trim().length > 0;
798
- }
799
- setupTextContentObserver() {
800
- var _a;
801
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
802
- }
803
- emitActiveTab(userTriggered = true) {
804
- if (this.disabled) {
805
- return;
806
- }
807
- const payload = { tab: this.tab };
808
- this.calciteInternalTabsActivate.emit(payload);
809
- if (userTriggered) {
810
- this.calciteTabsActivate.emit(payload);
811
- }
812
- }
813
- get el() { return getElement(this); }
814
- static get watchers() { return {
815
- "active": ["activeHandler"],
816
- "selected": ["selectedHandler"]
817
- }; }
818
- };
819
- TabTitle.style = tabTitleCss;
820
-
821
- /*!
822
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
823
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
824
- * v1.0.0-beta.97
825
- */
826
- const SLOTS$1 = {
827
- tabNav: "tab-nav"
828
- };
829
-
830
- const tabsCss = "@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:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){-webkit-margin-after:-1px;margin-block-end:-1px}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){-webkit-margin-after:-1px;margin-block-end:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){-webkit-margin-before:-1px;margin-block-start:-1px}:host([bordered][position=below]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){flex-direction:column-reverse}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-ui-border-1);border-block-start-style:solid}:host([position=below]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-block-end-style:solid}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=below][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}";
831
-
832
- const Tabs = class {
833
- constructor(hostRef) {
834
- registerInstance(this, hostRef);
835
- //--------------------------------------------------------------------------
836
- //
837
- // Public Properties
838
- //
839
- //--------------------------------------------------------------------------
840
- /**
841
- * Specifies the layout of the `calcite-tab-nav`, justifying the `calcite-tab-title`s to the start (`"inline"`), or across and centered (`"center"`).
842
- */
843
- this.layout = "inline";
844
- /**
845
- * Specifies the position of the component in relation to the `calcite-tab`s. The `"above"` and `"below"` values are deprecated.
846
- *
847
- */
848
- this.position = "top";
849
- /**
850
- * Specifies the size of the component.
851
- */
852
- this.scale = "m";
853
- /**
854
- * When `true`, the component will display with a folder style menu.
855
- */
856
- this.bordered = false;
857
- //--------------------------------------------------------------------------
858
- //
859
- // Events
860
- //
861
- //--------------------------------------------------------------------------
862
- //--------------------------------------------------------------------------
863
- //
864
- // Private State/Props
865
- //
866
- //--------------------------------------------------------------------------
867
- /**
868
- *
869
- * Stores an array of ids of `<calcite-tab-titles>`s to match up ARIA
870
- * attributes.
871
- */
872
- this.titles = [];
873
- /**
874
- *
875
- * Stores an array of ids of `<calcite-tab>`s to match up ARIA attributes.
876
- */
877
- this.tabs = [];
878
- }
879
- //--------------------------------------------------------------------------
880
- //
881
- // Lifecycle
882
- //
883
- //--------------------------------------------------------------------------
884
- render() {
885
- return (h(Fragment, null, h("slot", { name: SLOTS$1.tabNav }), h("section", null, h("slot", null))));
886
- }
887
- //--------------------------------------------------------------------------
888
- //
889
- // Event Listeners
890
- //
891
- //--------------------------------------------------------------------------
892
- /**
893
- * @param event
894
- * @internal
895
- */
896
- calciteInternalTabTitleRegister(event) {
897
- this.titles = [...this.titles, event.target];
898
- this.registryHandler();
899
- event.stopPropagation();
900
- }
901
- /**
902
- * @param event
903
- * @internal
904
- */
905
- calciteTabTitleUnregister(event) {
906
- this.titles = this.titles.filter((el) => el !== event.detail);
907
- this.registryHandler();
908
- event.stopPropagation();
909
- }
910
- /**
911
- * @param event
912
- * @internal
913
- */
914
- calciteInternalTabRegister(event) {
915
- this.tabs = [...this.tabs, event.target];
916
- this.registryHandler();
917
- event.stopPropagation();
918
- }
919
- /**
920
- * @param event
921
- * @internal
922
- */
923
- calciteTabUnregister(event) {
924
- this.tabs = this.tabs.filter((el) => el !== event.detail);
925
- this.registryHandler();
926
- event.stopPropagation();
927
- }
928
- //--------------------------------------------------------------------------
929
- //
930
- // Private Methods
931
- //
932
- //--------------------------------------------------------------------------
933
- /**
934
- *
935
- * Matches up elements from the internal `tabs` and `titles` to automatically
936
- * update the ARIA attributes and link `<calcite-tab>` and
937
- * `<calcite-tab-title>` components.
938
- */
939
- async registryHandler() {
940
- let tabIds;
941
- let titleIds;
942
- // determine if we are using `tab` based or `index` based tab identifiers.
943
- if (this.tabs.some((el) => el.tab) || this.titles.some((el) => el.tab)) {
944
- // if we are using `tab` based identifiers sort by `tab` to account for
945
- // possible out of order tabs and get the id of each tab
946
- tabIds = this.tabs.sort((a, b) => a.tab.localeCompare(b.tab)).map((el) => el.id);
947
- titleIds = this.titles.sort((a, b) => a.tab.localeCompare(b.tab)).map((el) => el.id);
948
- }
949
- else {
950
- // if we are using index based tabs then the `<calcite-tab>` and
951
- // `<calcite-tab-title>` might have been rendered out of order so the
952
- // order of `this.tabs` and `this.titles` might not reflect the DOM state,
953
- // and might not match each other so we need to get the index of all the
954
- // tabs and titles in the DOM order to match them up as a source of truth
955
- const tabDomIndexes = await Promise.all(this.tabs.map((el) => el.getTabIndex()));
956
- const titleDomIndexes = await Promise.all(this.titles.map((el) => el.getTabIndex()));
957
- // once we have the DOM order as a source of truth we can build the
958
- // matching tabIds and titleIds arrays
959
- tabIds = tabDomIndexes.reduce((ids, indexInDOM, registryIndex) => {
960
- ids[indexInDOM] = this.tabs[registryIndex].id;
961
- return ids;
962
- }, []);
963
- titleIds = titleDomIndexes.reduce((ids, indexInDOM, registryIndex) => {
964
- ids[indexInDOM] = this.titles[registryIndex].id;
965
- return ids;
966
- }, []);
967
- }
968
- // pass all our new aria information to each `<calcite-tab>` and
969
- // `<calcite-tab-title>` which will check if they can update their internal
970
- // `controlled` or `labeledBy` states and re-render if necessary
971
- this.tabs.forEach((el) => el.updateAriaInfo(tabIds, titleIds));
972
- this.titles.forEach((el) => el.updateAriaInfo(tabIds, titleIds));
973
- }
974
- get el() { return getElement(this); }
975
- };
976
- Tabs.style = tabsCss;
977
-
978
- /*!
979
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
980
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
981
- * v1.0.0-beta.97
982
- */
983
- const CSS = {
984
- container: "container",
985
- handle: "handle"
986
- };
987
- var ICON_TYPES;
988
- (function (ICON_TYPES) {
989
- ICON_TYPES["grip"] = "grip";
990
- })(ICON_TYPES || (ICON_TYPES = {}));
991
-
992
- /*!
993
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
994
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
995
- * v1.0.0-beta.97
996
- */
997
- function getScreenReaderText(item, status, valueList) {
998
- const { items, intlDragHandleIdle, intlDragHandleActive, intlDragHandleChange, intlDragHandleCommit } = valueList;
999
- const total = items.length;
1000
- const position = getItemIndex(valueList, item) + 1;
1001
- if (status === "idle") {
1002
- const idleText = intlDragHandleIdle
1003
- ? replacePlaceholders(intlDragHandleIdle, item.label, position, total)
1004
- : `${item.label}, press space and use arrow keys to reorder content. Current position ${position} of ${total}.`;
1005
- return idleText;
1006
- }
1007
- else if (status === "active") {
1008
- const activeText = intlDragHandleActive
1009
- ? replacePlaceholders(intlDragHandleActive, item.label, position, total)
1010
- : `Reordering ${item.label}, current position ${position} of ${total}.`;
1011
- return activeText;
1012
- }
1013
- else if (status === "change") {
1014
- const changeText = intlDragHandleChange
1015
- ? replacePlaceholders(intlDragHandleChange, item.label, position, total)
1016
- : `${item.label}, new position ${position} of ${total}. Press space to confirm.`;
1017
- return changeText;
1018
- }
1019
- else {
1020
- const commitText = intlDragHandleCommit
1021
- ? replacePlaceholders(intlDragHandleCommit, item.label, position, total)
1022
- : `${item.label}, current position ${position} of ${total}.`;
1023
- return commitText;
1024
- }
1025
- }
1026
- function getHandleAndItemElement(event) {
1027
- const handle = event
1028
- .composedPath()
1029
- .find((item) => { var _a; return ((_a = item.dataset) === null || _a === void 0 ? void 0 : _a.jsHandle) !== undefined; });
1030
- const item = event
1031
- .composedPath()
1032
- .find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
1033
- return { handle, item };
1034
- }
1035
- function replacePlaceholders(text, label, position, total) {
1036
- const replacePosition = text.replace("${position}", position.toString());
1037
- const replaceLabel = replacePosition.replace("${item.label}", label);
1038
- return replaceLabel.replace("${total}", total.toString());
1039
- }
1040
-
1041
- const valueListCss = "@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:300}calcite-filter{-webkit-margin-after:1px;margin-block-end:1px}";
1042
-
1043
- const ValueList = class {
1044
- constructor(hostRef) {
1045
- registerInstance(this, hostRef);
1046
- this.calciteListChange = createEvent(this, "calciteListChange", 6);
1047
- this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 6);
1048
- // --------------------------------------------------------------------------
1049
- //
1050
- // Properties
1051
- //
1052
- // --------------------------------------------------------------------------
1053
- /**
1054
- * When `true`, interaction is prevented and the component is displayed with lower opacity.
1055
- */
1056
- this.disabled = false;
1057
- /**
1058
- * When `true`, `calcite-value-list-item`s are sortable via a draggable button.
1059
- */
1060
- this.dragEnabled = false;
1061
- /**
1062
- * When `true`, an input appears at the top of the component that can be used by end users to filter list items.
1063
- */
1064
- this.filterEnabled = false;
1065
- /**
1066
- * When `true`, a busy indicator is displayed.
1067
- */
1068
- this.loading = false;
1069
- /**
1070
- * Similar to standard radio buttons and checkboxes.
1071
- * When `true`, a user can select multiple `calcite-value-list-item`s at a time.
1072
- * When `false`, only a single `calcite-value-list-item` can be selected at a time,
1073
- * and a new selection will deselect previous selections.
1074
- */
1075
- this.multiple = false;
1076
- /**
1077
- * When `true` and single-selection is enabled, the selection changes when navigating `calcite-value-list-item`s via keyboard.
1078
- */
1079
- this.selectionFollowsFocus = false;
1080
- // --------------------------------------------------------------------------
1081
- //
1082
- // Private Properties
1083
- //
1084
- // --------------------------------------------------------------------------
1085
- this.selectedValues = new Map();
1086
- this.dataForFilter = [];
1087
- this.lastSelectedItem = null;
1088
- this.mutationObserver = createObserver("mutation", mutationObserverCallback.bind(this));
1089
- this.setFilterEl = (el) => {
1090
- this.filterEl = el;
1091
- };
1092
- this.deselectRemovedItems = deselectRemovedItems.bind(this);
1093
- this.deselectSiblingItems = deselectSiblingItems.bind(this);
1094
- this.selectSiblings = selectSiblings.bind(this);
1095
- this.handleFilter = handleFilter.bind(this);
1096
- this.getItemData = getItemData.bind(this);
1097
- this.keyDownHandler = (event) => {
1098
- if (event.defaultPrevented) {
1099
- return;
1100
- }
1101
- const { handle, item } = getHandleAndItemElement(event);
1102
- if (handle && !item.handleActivated && event.key === " ") {
1103
- this.updateScreenReaderText(getScreenReaderText(item, "commit", this));
1104
- }
1105
- if (!handle || !item.handleActivated) {
1106
- keyDownHandler.call(this, event);
1107
- return;
1108
- }
1109
- const { items } = this;
1110
- if (event.key === " ") {
1111
- this.updateScreenReaderText(getScreenReaderText(item, "active", this));
1112
- }
1113
- if ((event.key !== "ArrowUp" && event.key !== "ArrowDown") || items.length <= 1) {
1114
- return;
1115
- }
1116
- event.preventDefault();
1117
- const { el } = this;
1118
- const nextIndex = moveItemIndex(this, item, event.key === "ArrowUp" ? "up" : "down");
1119
- if (nextIndex === items.length - 1) {
1120
- el.appendChild(item);
1121
- }
1122
- else {
1123
- const itemAtNextIndex = el.children[nextIndex];
1124
- const insertionReferenceItem = itemAtNextIndex === item.nextElementSibling
1125
- ? itemAtNextIndex.nextElementSibling
1126
- : itemAtNextIndex;
1127
- el.insertBefore(item, insertionReferenceItem);
1128
- }
1129
- this.items = this.getItems();
1130
- this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
1131
- requestAnimationFrame(() => handle === null || handle === void 0 ? void 0 : handle.focus());
1132
- item.handleActivated = true;
1133
- this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
1134
- };
1135
- this.storeAssistiveEl = (el) => {
1136
- this.assistiveTextEl = el;
1137
- };
1138
- this.handleFocusIn = (event) => {
1139
- const { handle, item } = getHandleAndItemElement(event);
1140
- if (!(item === null || item === void 0 ? void 0 : item.handleActivated) && item && handle) {
1141
- this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
1142
- }
1143
- };
1144
- }
1145
- // --------------------------------------------------------------------------
1146
- //
1147
- // Lifecycle
1148
- //
1149
- // --------------------------------------------------------------------------
1150
- connectedCallback() {
1151
- initialize.call(this);
1152
- initializeObserver.call(this);
1153
- }
1154
- componentDidLoad() {
1155
- this.setUpDragAndDrop();
1156
- }
1157
- componentDidRender() {
1158
- updateHostInteraction(this);
1159
- }
1160
- disconnectedCallback() {
1161
- cleanUpObserver.call(this);
1162
- this.cleanUpDragAndDrop();
1163
- }
1164
- calciteListFocusOutHandler(event) {
1165
- calciteListFocusOutHandler.call(this, event);
1166
- }
1167
- calciteListItemRemoveHandler(event) {
1168
- removeItem.call(this, event);
1169
- }
1170
- calciteListItemChangeHandler(event) {
1171
- calciteListItemChangeHandler.call(this, event);
1172
- }
1173
- calciteInternalListItemPropsChangeHandler(event) {
1174
- event.stopPropagation();
1175
- this.setUpFilter();
1176
- }
1177
- calciteInternalListItemValueChangeHandler(event) {
1178
- calciteInternalListItemValueChangeHandler.call(this, event);
1179
- event.stopPropagation();
1180
- }
1181
- // --------------------------------------------------------------------------
1182
- //
1183
- // Private Methods
1184
- //
1185
- // --------------------------------------------------------------------------
1186
- getItems() {
1187
- return Array.from(this.el.querySelectorAll("calcite-value-list-item"));
1188
- }
1189
- setUpItems() {
1190
- setUpItems.call(this, "calcite-value-list-item");
1191
- }
1192
- setUpFilter() {
1193
- if (this.filterEnabled) {
1194
- this.dataForFilter = this.getItemData();
1195
- }
1196
- }
1197
- setUpDragAndDrop() {
1198
- this.cleanUpDragAndDrop();
1199
- if (!this.dragEnabled) {
1200
- return;
1201
- }
1202
- this.sortable = Sortable.create(this.el, {
1203
- dataIdAttr: "id",
1204
- handle: `.${CSS.handle}`,
1205
- draggable: "calcite-value-list-item",
1206
- group: this.group,
1207
- onSort: () => {
1208
- this.items = Array.from(this.el.querySelectorAll("calcite-value-list-item"));
1209
- const values = this.items.map((item) => item.value);
1210
- this.calciteListOrderChange.emit(values);
1211
- }
1212
- });
1213
- }
1214
- cleanUpDragAndDrop() {
1215
- var _a;
1216
- (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
1217
- this.sortable = null;
1218
- }
1219
- handleBlur() {
1220
- if (this.dragEnabled) {
1221
- this.updateScreenReaderText("");
1222
- }
1223
- }
1224
- // --------------------------------------------------------------------------
1225
- //
1226
- // Public Methods
1227
- //
1228
- // --------------------------------------------------------------------------
1229
- /** Returns the currently selected items */
1230
- async getSelectedItems() {
1231
- return this.selectedValues;
1232
- }
1233
- /**
1234
- * Sets focus on the component.
1235
- *
1236
- * @param focusId
1237
- */
1238
- async setFocus(focusId) {
1239
- return setFocus.call(this, focusId);
1240
- }
1241
- // --------------------------------------------------------------------------
1242
- //
1243
- // Render Methods
1244
- //
1245
- // --------------------------------------------------------------------------
1246
- getIconType() {
1247
- let type = null;
1248
- if (this.dragEnabled) {
1249
- type = ICON_TYPES.grip;
1250
- }
1251
- return type;
1252
- }
1253
- updateScreenReaderText(text) {
1254
- this.assistiveTextEl.textContent = text;
1255
- }
1256
- updateHandleAriaLabel(handleElement, text) {
1257
- handleElement.ariaLabel = text;
1258
- }
1259
- render() {
1260
- return (h(List, { onBlur: this.handleBlur, onFocusin: this.handleFocusIn, onKeyDown: this.keyDownHandler, props: this }));
1261
- }
1262
- get el() { return getElement(this); }
1263
- };
1264
- ValueList.style = valueListCss;
1265
-
1266
- /*!
1267
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
1268
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
1269
- * v1.0.0-beta.97
1270
- */
1271
- const ICONS = {
1272
- drag: "drag"
1273
- };
1274
- const SLOTS = {
1275
- actionsEnd: "actions-end",
1276
- actionsStart: "actions-start"
1277
- };
1278
-
1279
- const valueListItemCss = "@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{-webkit-margin-after:1px;margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";
1280
-
1281
- const ValueListItem = class {
1282
- constructor(hostRef) {
1283
- registerInstance(this, hostRef);
1284
- this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
1285
- /**
1286
- * When `true`, interaction is prevented and the component is displayed with lower opacity.
1287
- */
1288
- this.disabled = false;
1289
- /**
1290
- * @internal
1291
- */
1292
- this.disableDeselect = false;
1293
- /**
1294
- * When `true`, prevents the content of the component from user interaction.
1295
- */
1296
- this.nonInteractive = false;
1297
- /**
1298
- * @internal
1299
- */
1300
- this.handleActivated = false;
1301
- /**
1302
- * Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
1303
- *
1304
- * @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
1305
- */
1306
- this.icon = null;
1307
- /**
1308
- * When `true`, adds an action to remove the component.
1309
- */
1310
- this.removable = false;
1311
- /**
1312
- * When `true`, the component is selected.
1313
- */
1314
- this.selected = false;
1315
- this.pickListItem = null;
1316
- this.guid = `calcite-value-list-item-${guid()}`;
1317
- // --------------------------------------------------------------------------
1318
- //
1319
- // Private Methods
1320
- //
1321
- // --------------------------------------------------------------------------
1322
- this.getPickListRef = (el) => (this.pickListItem = el);
1323
- this.handleKeyDown = (event) => {
1324
- if (event.key === " ") {
1325
- this.handleActivated = !this.handleActivated;
1326
- }
1327
- };
1328
- this.handleBlur = () => {
1329
- this.handleActivated = false;
1330
- };
1331
- this.handleSelectChange = (event) => {
1332
- this.selected = event.detail.selected;
1333
- };
1334
- }
1335
- // --------------------------------------------------------------------------
1336
- //
1337
- // Lifecycle
1338
- //
1339
- // --------------------------------------------------------------------------
1340
- connectedCallback() {
1341
- connectConditionalSlotComponent(this);
1342
- }
1343
- disconnectedCallback() {
1344
- disconnectConditionalSlotComponent(this);
1345
- }
1346
- componentDidRender() {
1347
- updateHostInteraction(this, this.el.closest("calcite-value-list") ? "managed" : false);
1348
- }
1349
- // --------------------------------------------------------------------------
1350
- //
1351
- // Public Methods
1352
- //
1353
- // --------------------------------------------------------------------------
1354
- /**
1355
- * Toggle the selection state. By default this won't trigger an event.
1356
- * The first argument allows the value to be coerced, rather than swapping values.
1357
- *
1358
- * @param coerce
1359
- */
1360
- async toggleSelected(coerce) {
1361
- this.pickListItem.toggleSelected(coerce);
1362
- }
1363
- /** Set focus on the component. */
1364
- async setFocus() {
1365
- var _a;
1366
- (_a = this.pickListItem) === null || _a === void 0 ? void 0 : _a.setFocus();
1367
- }
1368
- calciteListItemChangeHandler(event) {
1369
- // adjust item payload from wrapped item before bubbling
1370
- event.detail.item = this.el;
1371
- }
1372
- // --------------------------------------------------------------------------
1373
- //
1374
- // Render Methods
1375
- //
1376
- // --------------------------------------------------------------------------
1377
- renderActionsEnd() {
1378
- const { el } = this;
1379
- const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
1380
- return hasActionsEnd ? (h("slot", { name: SLOTS.actionsEnd, slot: SLOTS$3.actionsEnd })) : null;
1381
- }
1382
- renderActionsStart() {
1383
- const { el } = this;
1384
- const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
1385
- return hasActionsStart ? (h("slot", { name: SLOTS.actionsStart, slot: SLOTS$3.actionsStart })) : null;
1386
- }
1387
- renderHandle() {
1388
- const { icon } = this;
1389
- if (icon === ICON_TYPES$1.grip) {
1390
- return (h("span", { class: {
1391
- [CSS$2.handle]: true,
1392
- [CSS$2.handleActivated]: this.handleActivated
1393
- }, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
1394
- }
1395
- }
1396
- render() {
1397
- return (h(Host, { id: this.el.id || this.guid }, this.renderHandle(), h("calcite-pick-list-item", { description: this.description, disableDeselect: this.disableDeselect, disabled: this.disabled, label: this.label, metadata: this.metadata, nonInteractive: this.nonInteractive, onCalciteListItemChange: this.handleSelectChange, ref: this.getPickListRef, removable: this.removable, selected: this.selected, value: this.value }, this.renderActionsStart(), this.renderActionsEnd())));
1398
- }
1399
- get el() { return getElement(this); }
1400
- };
1401
- ValueListItem.style = valueListItemCss;
1402
-
1403
- const jsonEditorCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{-webkit-padding-end:0.125rem;padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;padding:0px;overflow:hidden;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;padding:0px;overflow:hidden;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;padding:0px;overflow:hidden;max-height:100% !important}";
1404
-
1405
- const JsonEditor = class {
1406
- constructor(hostRef) {
1407
- registerInstance(this, hostRef);
1408
- this._loaded = false;
1409
- this._useDiffEditor = false;
1410
- this.hasChanges = false;
1411
- this.hasErrors = false;
1412
- this.instanceid = "";
1413
- this.value = "";
1414
- }
1415
- //--------------------------------------------------------------------------
1416
- //
1417
- // Lifecycle
1418
- //
1419
- //--------------------------------------------------------------------------
1420
- /**
1421
- * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
1422
- */
1423
- componentDidLoad() {
1424
- const editorContainer = document.getElementById(`${this.instanceid}-container`);
1425
- if (editorContainer) {
1426
- this._editor = monaco.editor.create(editorContainer, {
1427
- value: this.value,
1428
- language: "json",
1429
- theme: "vs",
1430
- minimap: {
1431
- enabled: false
1432
- },
1433
- automaticLayout: true,
1434
- scrollBeyondLastLine: false
1435
- });
1436
- this._currentModel = this._editor.getModel();
1437
- this._contentChanged = this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));
1438
- // Intercept the monaco function call that shows error markers to see if our content has errors
1439
- const setModelMarkers = monaco.editor.setModelMarkers;
1440
- const self = this;
1441
- monaco.editor.setModelMarkers = function (model, owner, markers) {
1442
- var _a, _b;
1443
- // If this call was for our model, it acts like an onEditorChange event
1444
- // but gives us access to the error state as well
1445
- if (model.id === self._currentModel.id) {
1446
- // Set the error state & dispatch event if state has changed
1447
- self._flagEditorHasErrors(markers.length > 0);
1448
- // Set the changed state & dispatch event if state has changed, but only if there are no errors
1449
- if (!self.hasErrors) {
1450
- self._flagEditorHasChanges((_a = self._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo());
1451
- if ((_b = self._currentModel) === null || _b === void 0 ? void 0 : _b.canUndo()) {
1452
- self._flagEditorContentChanged();
1453
- }
1454
- }
1455
- // Show the error flag if there are errors
1456
- const errorFlag = document.getElementById(`${self.instanceid}-errorFlag`);
1457
- errorFlag.style.visibility = self.hasErrors ? "visible" : "hidden";
1458
- }
1459
- // Pass on the call to the next editor in a chain of intercepts or, finally, to monaco
1460
- setModelMarkers.call(monaco.editor, model, owner, markers);
1461
- };
1462
- this._diffEditor = monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`), {
1463
- automaticLayout: true
1464
- });
1465
- this._setDiffModel();
1466
- this._loaded = true;
1467
- this._toggleUndoRedo();
1468
- }
1469
- }
1470
- /**
1471
- * StencilJS: Called once just after the component is first connected to the DOM.
1472
- *
1473
- * @returns Promise when complete
1474
- */
1475
- async componentWillLoad() {
1476
- this._initValueObserver();
1477
- await this._getTranslations();
1478
- return;
1479
- }
1480
- /**
1481
- * Renders the component.
1482
- */
1483
- render() {
1484
- return (h(Host, null, h("div", { id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { class: "editor-controls" }, h("div", { class: "editor-buttons" }, h("calcite-icon", { id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "undo", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "redo", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "compare", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "search", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "reset", scale: "s" })))), h("div", { class: "edit-parent" }, h("div", { id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
1485
- }
1486
- //--------------------------------------------------------------------------
1487
- //
1488
- // Event Listeners
1489
- //
1490
- //--------------------------------------------------------------------------
1491
- //--------------------------------------------------------------------------
1492
- //
1493
- // Events
1494
- //
1495
- //--------------------------------------------------------------------------
1496
- //--------------------------------------------------------------------------
1497
- //
1498
- // Public Methods (async)
1499
- //
1500
- //--------------------------------------------------------------------------
1501
- /**
1502
- * Gets the contents of the editor.
1503
- *
1504
- * @returns Promise resolving with the current contents of the editor
1505
- */
1506
- async getEditorContents() {
1507
- return new Promise((resolve, reject) => {
1508
- try {
1509
- const currentValue = this._currentModel.getValue();
1510
- resolve(currentValue);
1511
- }
1512
- catch (e) {
1513
- reject(e);
1514
- }
1515
- });
1516
- }
1517
- /**
1518
- * Frees the editor events and memory; to be called when the web component is no longer needed.
1519
- *
1520
- * Because the component lifecycle doesn't include an "onDestroy" event
1521
- * (@see https://stenciljs.com/docs/component-lifecycle#disconnectedcallback)
1522
- * and TypeScript/JavaScript does automatic garbage collection without a callback
1523
- * hook until ES2021
1524
- * (@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry),
1525
- * this cleanup call needs to be called manually.
1526
- */
1527
- async prepareForDeletion() {
1528
- var _a, _b, _c, _d, _e;
1529
- (_a = this._searchBtnHandler) === null || _a === void 0 ? void 0 : _a.removeEventListener("click", this._search);
1530
- (_b = this._cancelEditsBtnHandler) === null || _b === void 0 ? void 0 : _b.removeEventListener("click", this._reset);
1531
- (_c = this._valueObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
1532
- (_d = this._contentChanged) === null || _d === void 0 ? void 0 : _d.dispose();
1533
- (_e = this._editor) === null || _e === void 0 ? void 0 : _e.dispose();
1534
- }
1535
- /**
1536
- * Replaces the current selection with the supplied text, inserting if nothing is selected.
1537
- *
1538
- * @param replacement Text to use for replacement or insertion
1539
- * @returns Promise resolving when function is done
1540
- */
1541
- async replaceCurrentSelection(replacement) {
1542
- const currentSelection = this._editor.getSelection();
1543
- this._editor.executeEdits("", [
1544
- { range: currentSelection, text: replacement }
1545
- ]);
1546
- }
1547
- /**
1548
- * Resets the contents of the editor with the current `value`.
1549
- *
1550
- * @returns Promise resolving when function is done
1551
- */
1552
- async reset() {
1553
- return new Promise((resolve, reject) => {
1554
- try {
1555
- this._reset();
1556
- resolve({ success: true });
1557
- }
1558
- catch (e) {
1559
- reject(e);
1560
- }
1561
- });
1562
- }
1563
- //--------------------------------------------------------------------------
1564
- //
1565
- // Private Methods
1566
- //
1567
- //--------------------------------------------------------------------------
1568
- /**
1569
- * Disables a button.
1570
- *
1571
- * @param buttonId Id of button to disable
1572
- *
1573
- * @protected
1574
- */
1575
- _disableButton(buttonId) {
1576
- var _a;
1577
- (_a = document.getElementById(buttonId)) === null || _a === void 0 ? void 0 : _a.setAttribute("disabled", "");
1578
- }
1579
- /**
1580
- * Enables a button.
1581
- *
1582
- * @param buttonId Id of button to enable
1583
- *
1584
- * @protected
1585
- */
1586
- _enableButton(buttonId) {
1587
- var _a;
1588
- (_a = document.getElementById(buttonId)) === null || _a === void 0 ? void 0 : _a.removeAttribute("disabled");
1589
- }
1590
- /**
1591
- * Dispatches an event that the editor's content has changed.
1592
- *
1593
- * @protected
1594
- */
1595
- _flagEditorContentChanged() {
1596
- // Event for notifying that the editor contents have changed
1597
- window.dispatchEvent(new CustomEvent("solutionEditorContentChanged", {
1598
- detail: {
1599
- id: this.instanceid,
1600
- contents: this._currentModel.getValue()
1601
- },
1602
- bubbles: true,
1603
- cancelable: false,
1604
- composed: true
1605
- }));
1606
- }
1607
- /**
1608
- * Sets the editor's flag indicating if it has changes and dispatches an event when
1609
- * the flag value changes.
1610
- *
1611
- * @param flagHasChanges Current state of change in the editor; if it doesn't match the value saved in this
1612
- * object, an event is dispatched with the new value and the saved value is updated
1613
- *
1614
- * @protected
1615
- */
1616
- _flagEditorHasChanges(flagHasChanges) {
1617
- // Event for notifying if the editor has updated the value of its hasChanges property
1618
- if (this.hasChanges !== flagHasChanges) {
1619
- window.dispatchEvent(new CustomEvent("solutionEditorHasChanges", {
1620
- detail: flagHasChanges,
1621
- bubbles: true,
1622
- cancelable: false,
1623
- composed: true
1624
- }));
1625
- this.hasChanges = flagHasChanges;
1626
- }
1627
- }
1628
- /**
1629
- * Sets the editor's flag indicating if it has errors and dispatches an event when
1630
- * the flag value changes.
1631
- *
1632
- * @param flagHasErrors Current state of errors in the editor; if it doesn't match the value saved in this
1633
- * object, an event is dispatched with the new value and the saved value is updated
1634
- *
1635
- * @protected
1636
- */
1637
- _flagEditorHasErrors(flagHasErrors) {
1638
- // Event for notifying if the editor has updated the value of its hasErrors property
1639
- if (this.hasErrors !== flagHasErrors) {
1640
- window.dispatchEvent(new CustomEvent("solutionEditorHasErrors", {
1641
- detail: flagHasErrors,
1642
- bubbles: true,
1643
- cancelable: false,
1644
- composed: true
1645
- }));
1646
- this.hasErrors = flagHasErrors;
1647
- }
1648
- }
1649
- /**
1650
- * Fetches the component's translations
1651
- *
1652
- * @protected
1653
- */
1654
- async _getTranslations() {
1655
- const translations = await getLocaleComponentStrings(this.el);
1656
- this._translations = translations[0];
1657
- }
1658
- /**
1659
- * Initializes the observer that will monitor and respond to changes of the value.
1660
- *
1661
- * @protected
1662
- */
1663
- _initValueObserver() {
1664
- this._valueObserver = new MutationObserver(ml => {
1665
- ml.forEach(mutation => {
1666
- if (mutation.type === 'attributes' && mutation.attributeName === "value") {
1667
- const newValue = mutation.target[mutation.attributeName];
1668
- if ((newValue !== mutation.oldValue && this._loaded)) {
1669
- this._currentModel.setValue(this.value);
1670
- }
1671
- }
1672
- });
1673
- });
1674
- this._valueObserver.observe(this.el, { attributes: true, attributeOldValue: true });
1675
- }
1676
- /**
1677
- * Handles activites appropriate to changes in the editor.
1678
- *
1679
- * @protected
1680
- */
1681
- _onEditorChange() {
1682
- // Note: we're not flagging that the editor has changes here because this event
1683
- // arrives before the model markers event, which indicates errors. We don't want
1684
- // to notify about changes if there are errors.
1685
- this._toggleUndoRedo();
1686
- }
1687
- /**
1688
- * Redoes the previous edit operation.
1689
- *
1690
- * @protected
1691
- */
1692
- _redo() {
1693
- var _a;
1694
- if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canRedo()) {
1695
- this._currentModel.redo();
1696
- this._toggleUndoRedo();
1697
- }
1698
- }
1699
- /**
1700
- * Resets the stored model to the original value.
1701
- *
1702
- * @protected
1703
- */
1704
- _reset() {
1705
- // Restore the original value
1706
- this._currentModel.setValue(this.value);
1707
- // update the ui
1708
- this._toggleUndoRedo();
1709
- }
1710
- /**
1711
- * Handles click on "Search" button.
1712
- *
1713
- * @protected
1714
- */
1715
- _search() {
1716
- this._editor.trigger('toggleFind', 'actions.find');
1717
- }
1718
- /**
1719
- * Sets the models for the diff editor.
1720
- *
1721
- * @protected
1722
- */
1723
- _setDiffModel() {
1724
- if (this._diffEditor) {
1725
- this._diffEditor.setModel({
1726
- original: monaco.editor.createModel(this.value, "json"),
1727
- modified: this._editor.getModel()
1728
- });
1729
- }
1730
- }
1731
- /**
1732
- * Shows/Hides the appropriate editor: regular or diff.
1733
- *
1734
- * @protected
1735
- */
1736
- _toggleEditor() {
1737
- this._useDiffEditor = !this._useDiffEditor;
1738
- let diffContainer = document.getElementById(`${this.instanceid}-diff-container`);
1739
- let container = document.getElementById(`${this.instanceid}-container`);
1740
- if (this._useDiffEditor) {
1741
- this._setDiffModel();
1742
- diffContainer.classList.remove("display-none");
1743
- container.classList.add("display-none");
1744
- }
1745
- else {
1746
- diffContainer.classList.add("display-none");
1747
- container.classList.remove("display-none");
1748
- }
1749
- }
1750
- /**
1751
- * Toggles the undo and redo buttons.
1752
- *
1753
- * @protected
1754
- */
1755
- _toggleUndoRedo() {
1756
- var _a, _b, _c, _d;
1757
- if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo()) {
1758
- this._enableButton(`${this.instanceid}-undo`);
1759
- }
1760
- else {
1761
- this._disableButton(`${this.instanceid}-undo`);
1762
- }
1763
- if ((_b = this._currentModel) === null || _b === void 0 ? void 0 : _b.canRedo()) {
1764
- this._enableButton(`${this.instanceid}-redo`);
1765
- }
1766
- else {
1767
- this._disableButton(`${this.instanceid}-redo`);
1768
- }
1769
- if (((_c = this._currentModel) === null || _c === void 0 ? void 0 : _c.canUndo()) || ((_d = this._currentModel) === null || _d === void 0 ? void 0 : _d.canRedo())) {
1770
- this._enableButton(`${this.instanceid}-reset`);
1771
- }
1772
- else {
1773
- this._disableButton(`${this.instanceid}-reset`);
1774
- }
1775
- }
1776
- /**
1777
- * Undoes the current edit operation.
1778
- *
1779
- * @protected
1780
- */
1781
- _undo() {
1782
- var _a;
1783
- if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo()) {
1784
- this._currentModel.undo();
1785
- this._toggleUndoRedo();
1786
- }
1787
- }
1788
- static get assetsDirs() { return ["assets"]; }
1789
- get el() { return getElement(this); }
1790
- };
1791
- JsonEditor.style = jsonEditorCss;
1792
-
1793
- const solutionItemDetailsCss = ".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;-webkit-margin-end:0.375rem;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;-webkit-margin-end:1rem;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}label-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}label-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}label-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}label-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}label-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}label-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}label-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}label-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>label{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>label{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>label{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>label{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>label{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>label{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>label{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>label{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>label{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>label{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>label{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>label{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>label{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>label{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>label{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>label{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face label{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face label b,.code-face label strong{font-weight:400}.code-italic label{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic label b,.code-italic label strong{font-weight:400}";
1794
-
1795
- const SolutionItemDetails = class {
1796
- constructor(hostRef) {
1797
- registerInstance(this, hostRef);
1798
- this.itemId = "";
1799
- this.itemDetails = {
1800
- accessInformation: "",
1801
- description: "",
1802
- licenseInfo: "",
1803
- snippet: "",
1804
- tags: [],
1805
- title: ""
1806
- };
1807
- this.itemEdit = undefined;
1808
- this._translations = undefined;
1809
- this.thumbnail = undefined;
1810
- this.thumbnailContainer = undefined;
1811
- }
1812
- itemIdWatchHandler() {
1813
- console.log("update item details; id " + this.itemId); //???
1814
- }
1815
- //--------------------------------------------------------------------------
1816
- //
1817
- // Lifecycle
1818
- //
1819
- //--------------------------------------------------------------------------
1820
- /**
1821
- * StencilJS: Called once just after the component is first connected to the DOM.
1822
- */
1823
- async componentWillLoad() {
1824
- return this._getTranslations();
1825
- }
1826
- async componentWillRender() {
1827
- console.log("update item details " + this.itemId); //???
1828
- this.itemEdit = state.getItemInfo(this.itemId);
1829
- if (this.itemEdit) {
1830
- this.itemDetails = this.itemEdit.item;
1831
- this.itemType = this.itemDetails.type;
1832
- }
1833
- return Promise.resolve();
1834
- }
1835
- /**
1836
- * Renders the component.
1837
- */
1838
- render() {
1839
- console.log("render item details " + this.itemId); //???
1840
- console.log(" title " + this.itemDetails.title); //???
1841
- console.log(" snippet " + this.itemDetails.snippet); //???
1842
- return (h(Host, null, h("div", { class: "parent-container" }, h("div", { class: "inputBottomSeparation" }, h("calcite-input", { id: "item-title", value: this.itemDetails.title })), h("div", { class: "inputBottomSeparation" }, h("input", { accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), h("button", { class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), h("div", { class: "flex" }, h("div", { class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { class: "snippet-count-container" }, h("calcite-input", { id: "item-snippet", maxlength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", null, this._translations.description, h("label", { id: "item-description-label" }, h("calcite-input", { id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", null, this._translations.tags, h("label", { id: "item-tags-label" }, h("calcite-input", { id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? h("calcite-label", null, this._translations.credits, h("label", { id: "item-credits-label" }, h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? h("calcite-label", null, h("label", { id: "item-terms-label" }, this._translations.termsOfUse, h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
1843
- }
1844
- componentDidRender() {
1845
- this._loadThumb();
1846
- }
1847
- //--------------------------------------------------------------------------
1848
- //
1849
- // Event Listeners
1850
- //
1851
- //--------------------------------------------------------------------------
1852
- /**
1853
- * Updates the component's value with changes to the input fields.
1854
- */
1855
- inputReceivedHandler(event) {
1856
- switch (event.target.id) {
1857
- case "item-title":
1858
- this.itemDetails.title = event.target.value;
1859
- this._updateStore();
1860
- break;
1861
- case "item-snippet":
1862
- if (event.target.value.length > 250) {
1863
- event.target.value = event.target.value.substring(0, 250);
1864
- }
1865
- this.itemDetails.snippet = event.target.value;
1866
- this._updateLengthLabel(this.itemDetails.snippet);
1867
- this._updateStore();
1868
- break;
1869
- case "item-description":
1870
- this.itemDetails.description = event.target.value;
1871
- this._updateStore();
1872
- break;
1873
- case "item-tags":
1874
- this.itemDetails.tags = event.target.value;
1875
- this._updateStore();
1876
- break;
1877
- case "item-credits":
1878
- this.itemDetails.accessInformation = event.target.value;
1879
- this._updateStore();
1880
- break;
1881
- case "item-terms":
1882
- this.itemDetails.licenseInfo = event.target.value;
1883
- this._updateStore();
1884
- break;
1885
- }
1886
- }
1887
- //--------------------------------------------------------------------------
1888
- //
1889
- // Events
1890
- //
1891
- //--------------------------------------------------------------------------
1892
- //--------------------------------------------------------------------------
1893
- //
1894
- // Public Methods (async)
1895
- //
1896
- //--------------------------------------------------------------------------
1897
- //--------------------------------------------------------------------------
1898
- //
1899
- // Private Methods
1900
- //
1901
- //--------------------------------------------------------------------------
1902
- /**
1903
- * Opens image file browse dialog.
1904
- *
1905
- */
1906
- _getThumbnail() {
1907
- this.browseForThumbnail.click();
1908
- }
1909
- /**
1910
- * Load the templates thumbnail
1911
- *
1912
- */
1913
- _loadThumb() {
1914
- var _a;
1915
- if (this.thumbnail && ((_a = this.itemEdit) === null || _a === void 0 ? void 0 : _a.thumbnail)) {
1916
- // Show the thumbnail
1917
- this.thumbnail.src = URL.createObjectURL(this.itemEdit.thumbnail);
1918
- this.thumbnailContainer.classList.remove("empty-box");
1919
- this.thumbnail.classList.remove("display-none");
1920
- }
1921
- else {
1922
- // Replace the thumbnail with an empty box
1923
- this.thumbnailContainer.classList.add("empty-box");
1924
- this.thumbnail.classList.add("display-none");
1925
- }
1926
- }
1927
- /**
1928
- * Updates the length label to reflect the current number of characters
1929
- * relative to the max number of characters supported.
1930
- *
1931
- * @param phrase the current phrase from the control
1932
- */
1933
- _updateLengthLabel(phrase) {
1934
- this.itemSnippetCount.innerText =
1935
- this._translations.snippetCountPattern.replace("{{n}}", phrase.length.toString());
1936
- }
1937
- /**
1938
- * Add or remove the value from the store
1939
- */
1940
- _updateStore() {
1941
- this.itemEdit = state.getItemInfo(this.itemId);
1942
- this.itemEdit.item = this.itemDetails;
1943
- state.setItemInfo(this.itemEdit);
1944
- }
1945
- /**
1946
- * Gets and displays image result from browse and updates the item in the store.
1947
- *
1948
- * @param event The input controls event that contains the new file
1949
- * @param updateStore boolean that controls if the new value is written to the store
1950
- * should be false on the initial load but true the rest of the time
1951
- */
1952
- _updateThumbnail(event) {
1953
- const files = event.target.files;
1954
- if (files && files[0]) {
1955
- if (this.thumbnail) {
1956
- // Update UI
1957
- this.thumbnail.src = URL.createObjectURL(files[0]);
1958
- // Update info in store
1959
- this.itemEdit = state.getItemInfo(this.itemId);
1960
- this.itemEdit.thumbnail = files[0];
1961
- state.replaceItemThumbnail(this.itemEdit);
1962
- }
1963
- }
1964
- }
1965
- /**
1966
- * Fetches the component's translations
1967
- *
1968
- * @protected
1969
- */
1970
- async _getTranslations() {
1971
- const translations = await getLocaleComponentStrings(this.el);
1972
- this._translations = translations[0];
1973
- }
1974
- get el() { return getElement(this); }
1975
- static get watchers() { return {
1976
- "itemId": ["itemIdWatchHandler"]
1977
- }; }
1978
- };
1979
- SolutionItemDetails.style = solutionItemDetailsCss;
1980
-
1981
- const solutionItemSharingCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
1982
-
1983
- const SolutionItemSharing = class {
1984
- constructor(hostRef) {
1985
- registerInstance(this, hostRef);
1986
- this.groupId = "";
1987
- this._translations = undefined;
1988
- this.sharing = [];
1989
- }
1990
- itemIdWatchHandler() {
1991
- const itemEdit = state.getItemInfo(this.groupId);
1992
- this.sharing = itemEdit.groupDetails;
1993
- }
1994
- //--------------------------------------------------------------------------
1995
- //
1996
- // Lifecycle
1997
- //
1998
- //--------------------------------------------------------------------------
1999
- /**
2000
- * StencilJS: Called once just after the component is first connected to the DOM.
2001
- */
2002
- async componentWillLoad() {
2003
- return this._getTranslations();
2004
- }
2005
- /**
2006
- * Renders the component.
2007
- */
2008
- render() {
2009
- return (h(Host, null, h("div", { class: "container-border" }, h("calcite-label", null, this._translations.groupInfo), this._renderItems(this.sharing))));
2010
- }
2011
- //--------------------------------------------------------------------------
2012
- //
2013
- // Event Listeners
2014
- //
2015
- //--------------------------------------------------------------------------
2016
- //--------------------------------------------------------------------------
2017
- //
2018
- // Events
2019
- //
2020
- //--------------------------------------------------------------------------
2021
- //--------------------------------------------------------------------------
2022
- //
2023
- // Public Methods (async)
2024
- //
2025
- //--------------------------------------------------------------------------
2026
- async getShareInfo() {
2027
- return this.sharing;
2028
- }
2029
- //--------------------------------------------------------------------------
2030
- //
2031
- // Private Methods
2032
- //
2033
- //--------------------------------------------------------------------------
2034
- /**
2035
- * Render share options based on the list of share details
2036
- *
2037
- * @param objs list of IItemShare objects that are used to expose and store share info for the solutions items
2038
- */
2039
- _renderItems(objs) {
2040
- return objs && objs.length > 0
2041
- ? objs.map(item => {
2042
- return (h("calcite-label", { layout: "inline" }, h("calcite-switch", { id: item.id, name: "setting", onCalciteSwitchChange: (event) => this._updateItem(event), scale: "m", switched: item.shareItem, value: "enabled" }), h("solution-item-icon", { type: item.type, typeKeywords: item.typeKeywords }), h("span", { class: "icon-text", title: item.title }, item.title)));
2043
- })
2044
- : null;
2045
- }
2046
- /**
2047
- * Update the items share prop based on the switch state
2048
- *
2049
- * @param event onCalciteSwitchChange event
2050
- */
2051
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
2052
- _updateItem(event) {
2053
- const id = event.target.id;
2054
- this.sharing = this.sharing.map((itemShare) => {
2055
- if (itemShare.id === id) {
2056
- // update the item
2057
- itemShare.shareItem = event.detail.switched;
2058
- // update the item in the store
2059
- const itemEdit = state.getItemInfo(id);
2060
- if (itemShare.shareItem) {
2061
- // Add the group to the item if it's not already there
2062
- if (!itemEdit.groups) {
2063
- itemEdit.groups = [this.groupId];
2064
- }
2065
- else if (itemEdit.groups.indexOf(this.groupId) < 0) {
2066
- itemEdit.groups.push(this.groupId);
2067
- }
2068
- }
2069
- else {
2070
- // Remove the group from the item if it's there
2071
- if (itemEdit.groups) {
2072
- const i = itemEdit.groups.indexOf(this.groupId);
2073
- if (i > -1) {
2074
- itemEdit.groups.splice(i, 1);
2075
- }
2076
- }
2077
- }
2078
- state.setItemInfo(itemEdit);
2079
- }
2080
- return itemShare;
2081
- });
2082
- }
2083
- /**
2084
- * Fetches the component's translations
2085
- *
2086
- * @protected
2087
- */
2088
- async _getTranslations() {
2089
- const translations = await getLocaleComponentStrings(this.el);
2090
- this._translations = translations[0];
2091
- }
2092
- get el() { return getElement(this); }
2093
- static get watchers() { return {
2094
- "groupId": ["itemIdWatchHandler"]
2095
- }; }
2096
- };
2097
- SolutionItemSharing.style = solutionItemSharingCss;
2098
-
2099
- const solutionOrganizationVariablesCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";
2100
-
2101
- const SolutionOrganizationVariables = class {
2102
- constructor(hostRef) {
2103
- registerInstance(this, hostRef);
2104
- this.organizationVariableSelected = createEvent(this, "organizationVariableSelected", 7);
2105
- this.value = "";
2106
- this._organizationVariables = [];
2107
- this._translations = undefined;
2108
- }
2109
- valueWatchHandler() {
2110
- this._organizationVariables = JSON.parse(this.value);
2111
- }
2112
- //--------------------------------------------------------------------------
2113
- //
2114
- // Lifecycle
2115
- //
2116
- //--------------------------------------------------------------------------
2117
- /**
2118
- * StencilJS: Called once just after the component is first connected to the DOM.
2119
- */
2120
- async componentWillLoad() {
2121
- return this._getTranslations();
2122
- }
2123
- /**
2124
- * Renders the component.
2125
- */
2126
- render() {
2127
- return (h(Host, null, h("div", null, h("h4", { class: "org-var-header" }, this._translations.orgVariables)), h("div", { class: "container-border" }, h("calcite-tree", { id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
2128
- }
2129
- //--------------------------------------------------------------------------
2130
- //
2131
- // Public Methods (async)
2132
- //
2133
- //--------------------------------------------------------------------------
2134
- //--------------------------------------------------------------------------
2135
- //
2136
- // Private Methods
2137
- //
2138
- //--------------------------------------------------------------------------
2139
- /**
2140
- * Renders the organization based variable items the user can insert at runtime
2141
- *
2142
- * @param objs a list of organization variables to render
2143
- */
2144
- _renderHierarchy(objs) {
2145
- const hierarchy = objs.map(obj => {
2146
- return (h("calcite-tree-item", { onClick: () => this._treeItemSelected(obj.id, obj.value) }, obj.title));
2147
- });
2148
- return hierarchy;
2149
- }
2150
- /**
2151
- * Publishes the `organizationVariableSelected` event containing `itemId`, the id of the selected variable and the value of the variable.
2152
- *
2153
- * @param itemId Item id as reported by click event
2154
- * @param value Variable id as reported by click event
2155
- */
2156
- _treeItemSelected(itemId, value) {
2157
- this.organizationVariableSelected.emit({
2158
- itemId,
2159
- value
2160
- });
2161
- }
2162
- /**
2163
- * Fetches the component's translations
2164
- *
2165
- * @protected
2166
- */
2167
- async _getTranslations() {
2168
- const translations = await getLocaleComponentStrings(this.el);
2169
- this._translations = translations[0];
2170
- }
2171
- get el() { return getElement(this); }
2172
- static get watchers() { return {
2173
- "value": ["valueWatchHandler"]
2174
- }; }
2175
- };
2176
- SolutionOrganizationVariables.style = solutionOrganizationVariablesCss;
2177
-
2178
- const solutionResourceItemCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.resource-item{padding:1rem}.resource-button{-webkit-margin-end:1rem;margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";
2179
-
2180
- const SolutionResourceItem = class {
2181
- constructor(hostRef) {
2182
- registerInstance(this, hostRef);
2183
- this._removedResources = {};
2184
- this.authentication = undefined;
2185
- this.itemId = "";
2186
- this.resourceFilePaths = [];
2187
- this.resources = [];
2188
- this._translations = undefined;
2189
- }
2190
- itemIdWatchHandler() {
2191
- const item = state.getItemInfo(this.itemId);
2192
- this.resourceFilePaths = item.resourceFilePaths;
2193
- this.resources = item.resources.map(
2194
- // False linting error
2195
- // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
2196
- (path) => path.substring(path.lastIndexOf("/") + 1));
2197
- }
2198
- //--------------------------------------------------------------------------
2199
- //
2200
- // Lifecycle
2201
- //
2202
- //--------------------------------------------------------------------------
2203
- /**
2204
- * StencilJS: Called once just after the component is first connected to the DOM.
2205
- */
2206
- componentWillLoad() {
2207
- return this._getTranslations();
2208
- }
2209
- /**
2210
- * Renders the component.
2211
- */
2212
- render() {
2213
- const hasValidResources = this._hasValidResources();
2214
- return (h(Host, null, h("div", { class: "resource-item" }, h("div", { class: "margin-bottom-1" }, h("calcite-button", { appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
2215
- }
2216
- //--------------------------------------------------------------------------
2217
- //
2218
- // Event Listeners
2219
- //
2220
- //--------------------------------------------------------------------------
2221
- //--------------------------------------------------------------------------
2222
- //
2223
- // Events
2224
- //
2225
- //--------------------------------------------------------------------------
2226
- //--------------------------------------------------------------------------
2227
- //
2228
- // Public Methods (async)
2229
- //
2230
- //--------------------------------------------------------------------------
2231
- //--------------------------------------------------------------------------
2232
- //
2233
- // Private Methods
2234
- //
2235
- //--------------------------------------------------------------------------
2236
- /**
2237
- * Render resources while avoiding thumbnail resoures that are managed by solution-item
2238
- *
2239
- */
2240
- _renderResourceList() {
2241
- return (h("calcite-value-list", { multiple: true }, this.resourceFilePaths.reduce((prev, cur) => {
2242
- if (cur.type !== EFileType.Thumbnail) {
2243
- prev.push(this._renderResource(cur));
2244
- }
2245
- return prev;
2246
- }, [])));
2247
- }
2248
- /**
2249
- * Render the resource and supporting actions for download/update/delete/(reset..if deleted)
2250
- *
2251
- * @param resource the filename and url used to interact with the resource
2252
- */
2253
- _renderResource(resource) {
2254
- const resettable = resource.updateType === EUpdateType.Remove;
2255
- const fullname = resource.folder ? resource.folder + "/" + resource.filename : resource.filename;
2256
- return (h("calcite-value-list-item", { class: resettable ? "disabled" : "", label: fullname, nonInteractive: true, value: resource.url }, h("calcite-action-group", { "expand-disabled": "true", layout: "horizontal", slot: "actions-end" }, h("calcite-action", { disabled: resettable, icon: "download", label: this._translations.download, onClick: () => this._download(resource.url, resource.filename), scale: "m", text: this._translations.download, title: this._translations.download }), h("calcite-action", { disabled: resettable, icon: "upload-to", label: this._translations.update, onClick: () => this._upload(resource), scale: "m", text: this._translations.update, title: this._translations.update }), h("calcite-action", { disabled: resettable, icon: "trash", label: this._translations.delete, onClick: () => this._delete(resource), scale: "m", text: this._translations.delete, title: this._translations.delete }), resettable ? h("calcite-action", { icon: "reset", label: this._translations.reset, onClick: () => this._reset(resource.filename), scale: "m", text: this._translations.reset, title: this._translations.reset }) : h("div", { class: "display-none" }))));
2257
- }
2258
- /**
2259
- * Adds the name to the deleted array so it will be skipped while rendering
2260
- * but still exist if the user chooses to reset
2261
- *
2262
- * @param resource the resource to be updated
2263
- */
2264
- _delete(resource) {
2265
- resource.updateType = EUpdateType.Remove;
2266
- this.resourceFilePaths = [...this.resourceFilePaths]; // to trigger refresh
2267
- this._updateStore();
2268
- }
2269
- /**
2270
- * Remove the name from the deleted array so it will again be rendered
2271
- *
2272
- * @param name the name to be added to the deleted array
2273
- */
2274
- _reset(name) {
2275
- // need to make sure I know if this reset is from the source or a new one
2276
- // Because the item's `resources` array is not updated until (and if) the solution is saved,
2277
- // we can use it for the reset info
2278
- this.resources.some(resourceName => resourceName === name) ?
2279
- // Undo removing an existing resource
2280
- this.resourceFilePaths = this.resourceFilePaths.map(p => {
2281
- if (p.filename === name) {
2282
- p.updateType = EUpdateType.None;
2283
- }
2284
- return p;
2285
- }) :
2286
- // Undo cancelling the adding of a resource
2287
- this.resourceFilePaths = this.resourceFilePaths.map(p => {
2288
- if (p.filename === name) {
2289
- p.updateType = EUpdateType.Add;
2290
- }
2291
- return p;
2292
- });
2293
- this._updateStore();
2294
- }
2295
- /**
2296
- * Download all of the templates resources
2297
- *
2298
- */
2299
- _downloadAll() {
2300
- this.resourceFilePaths.forEach((resource) => {
2301
- this._download(resource.url, resource.filename);
2302
- });
2303
- }
2304
- /**
2305
- * Download the current resource
2306
- *
2307
- * @param url the resource url
2308
- * @param name the resource name
2309
- */
2310
- _download(url, name) {
2311
- // files that have been added manually do not need to be requested from the item
2312
- if (url.startsWith("blob")) {
2313
- this.downloadFile(url, name);
2314
- }
2315
- else {
2316
- const _url = `${url}?token=${this.authentication.token}`;
2317
- void this.fetchAndDownload(_url, name);
2318
- }
2319
- }
2320
- /**
2321
- * Dynamically creates an anchor and downloads the file
2322
- *
2323
- * @param url the url of the resource
2324
- * @param name the name of the resource
2325
- */
2326
- downloadFile(url, name) {
2327
- const link = document.createElement("a");
2328
- link.href = url;
2329
- link.download = name;
2330
- link.target = "_blank";
2331
- link.click();
2332
- }
2333
- /**
2334
- * Check if the template resources have any non-thumbnail resources
2335
- *
2336
- * @returns true if we have data resources and false if only thumbnail
2337
- */
2338
- _hasValidResources() {
2339
- return this.resourceFilePaths.some(r => r.url.indexOf("_info_thumbnail") < 0);
2340
- }
2341
- /**
2342
- * Fetches and downloads the resource from the solution
2343
- *
2344
- * @param url the url of the resource
2345
- * @param name the name of the resource
2346
- */
2347
- async fetchAndDownload(url, name) {
2348
- const image = await fetch(url);
2349
- const b = await image.blob();
2350
- const bURL = URL.createObjectURL(b);
2351
- this.downloadFile(bURL, name);
2352
- }
2353
- /**
2354
- * Create an input element to support the uploading of the resource and upload the resource
2355
- *
2356
- * @param resource the resource to be updated
2357
- */
2358
- _upload(resource) {
2359
- const _input = document.createElement("input");
2360
- _input.classList.add("display-none");
2361
- _input.onchange = this._updateResource.bind(this, resource);
2362
- _input.type = "file";
2363
- _input.click();
2364
- }
2365
- /**
2366
- * Create an input element to support the uploading of a resource and add the new resource
2367
- *
2368
- */
2369
- _addNewResource() {
2370
- const _input = document.createElement("input");
2371
- _input.classList.add("display-none");
2372
- _input.onchange = this._add.bind(this);
2373
- _input.type = "file";
2374
- _input.click();
2375
- }
2376
- /**
2377
- * Replace the resource file path when update action is used
2378
- *
2379
- * @param resourcePath the resource to be updated
2380
- * @param event the input event that contains the file
2381
- */
2382
- _updateResource(resourcePath, event) {
2383
- const files = event.target.files;
2384
- if (files && files[0]) {
2385
- resourcePath.blob = files[0];
2386
- resourcePath.updateType = EUpdateType.Update;
2387
- this._updateStore();
2388
- }
2389
- }
2390
- /**
2391
- * Add the new resource to the resource file paths
2392
- *
2393
- * @param event the inputs event that contains the new file
2394
- */
2395
- _add(event) {
2396
- const files = event.target.files;
2397
- if (files && files[0]) {
2398
- const url = URL.createObjectURL(files[0]);
2399
- const filename = files[0].name;
2400
- // Add the item if it's not already in the resource file paths list
2401
- if (!this.resourceFilePaths.some(r => r.filename === filename && r.url === url)) {
2402
- this.resourceFilePaths = [
2403
- ...this.resourceFilePaths,
2404
- {
2405
- url,
2406
- type: EFileType.Data,
2407
- folder: undefined,
2408
- filename,
2409
- blob: files[0],
2410
- updateType: EUpdateType.Add
2411
- }
2412
- ];
2413
- this._updateStore();
2414
- }
2415
- }
2416
- }
2417
- /**
2418
- * Add or remove the value from the store
2419
- */
2420
- _updateStore() {
2421
- const item = state.getItemInfo(this.itemId);
2422
- item.resourceFilePaths = this.resourceFilePaths;
2423
- state.setItemInfo(item);
2424
- }
2425
- /**
2426
- * Fetches the component's translations
2427
- *
2428
- * @protected
2429
- */
2430
- async _getTranslations() {
2431
- const translations = await getLocaleComponentStrings(this.el);
2432
- this._translations = translations[0];
2433
- }
2434
- get el() { return getElement(this); }
2435
- static get watchers() { return {
2436
- "itemId": ["itemIdWatchHandler"]
2437
- }; }
2438
- };
2439
- SolutionResourceItem.style = solutionResourceItemCss;
2440
-
2441
- const solutionTemplateDataCss = ":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";
2442
-
2443
- const SolutionTemplateData = class {
2444
- //--------------------------------------------------------------------------
2445
- //
2446
- // Lifecycle
2447
- //
2448
- //--------------------------------------------------------------------------
2449
- constructor(hostRef) {
2450
- registerInstance(this, hostRef);
2451
- this._initializing = false;
2452
- this.instanceid = "";
2453
- this.itemId = "";
2454
- this.organizationVariables = "";
2455
- this.solutionVariables = "";
2456
- this.varsOpen = true;
2457
- this._translations = undefined;
2458
- this.value = "";
2459
- window.addEventListener("solutionEditorContentChanged", (evt) => {
2460
- if (this.itemId) {
2461
- const { id, contents } = evt.detail;
2462
- const [itemId, instanceId] = id.split("|");
2463
- if (itemId == this.itemId && instanceId === this.instanceid) {
2464
- if (!this._initializing && contents.length > 0) {
2465
- const itemEdit = state.getItemInfo(itemId);
2466
- if (instanceId === "data") {
2467
- itemEdit.data = JSON.parse(contents);
2468
- }
2469
- else {
2470
- itemEdit.properties = JSON.parse(contents);
2471
- }
2472
- state.setItemInfo(itemEdit);
2473
- }
2474
- this._initializing = false;
2475
- }
2476
- }
2477
- });
2478
- }
2479
- itemIdWatchHandler() {
2480
- this._initializing = true;
2481
- this.value = JSON.stringify(this.instanceid === "data"
2482
- ? state.getItemInfo(this.itemId).data
2483
- : state.getItemInfo(this.itemId).properties, null, 2);
2484
- }
2485
- /**
2486
- * StencilJS: Called once just after the component is first connected to the DOM.
2487
- */
2488
- componentWillLoad() {
2489
- return this._getTranslations();
2490
- }
2491
- /**
2492
- * Renders the component.
2493
- */
2494
- render() {
2495
- return (h(Host, null, h("div", { class: "solution-data-container" }, h("calcite-shell", { class: "light var-container", dir: "ltr" }, h("calcite-panel", { class: "json-editor" }, h("div", { class: "solution-data-child-container calcite-match-height" }, h("json-editor", { class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, value: this.value }))), h("calcite-shell-panel", { "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { value: this.organizationVariables })), h("div", { class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { value: this.solutionVariables }))))))));
2496
- }
2497
- //--------------------------------------------------------------------------
2498
- //
2499
- // Event Listeners
2500
- //
2501
- //--------------------------------------------------------------------------
2502
- //--------------------------------------------------------------------------
2503
- //
2504
- // Events
2505
- //
2506
- //--------------------------------------------------------------------------
2507
- //--------------------------------------------------------------------------
2508
- //
2509
- // Public Methods (async)
2510
- //
2511
- //--------------------------------------------------------------------------
2512
- //--------------------------------------------------------------------------
2513
- //
2514
- // Private Methods
2515
- //
2516
- //--------------------------------------------------------------------------
2517
- /**
2518
- * Toggle varsOpen prop to show/hide variable containers
2519
- */
2520
- _toggleVars() {
2521
- this.varsOpen = !this.varsOpen;
2522
- }
2523
- /**
2524
- * Fetches the component's translations
2525
- *
2526
- * @protected
2527
- */
2528
- async _getTranslations() {
2529
- const translations = await getLocaleComponentStrings(this.el);
2530
- this._translations = translations[0];
2531
- }
2532
- get el() { return getElement(this); }
2533
- static get watchers() { return {
2534
- "itemId": ["itemIdWatchHandler"]
2535
- }; }
2536
- };
2537
- SolutionTemplateData.style = solutionTemplateDataCss;
2538
-
2539
- const solutionVariablesCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
2540
-
2541
- const SolutionVariables = class {
2542
- constructor(hostRef) {
2543
- registerInstance(this, hostRef);
2544
- this.solutionVariableSelected = createEvent(this, "solutionVariableSelected", 7);
2545
- this.value = "";
2546
- this._solutionVariables = [];
2547
- this._translations = undefined;
2548
- }
2549
- valueWatchHandler() {
2550
- this._solutionVariables = JSON.parse(this.value);
2551
- }
2552
- //--------------------------------------------------------------------------
2553
- //
2554
- // Lifecycle
2555
- //
2556
- //--------------------------------------------------------------------------
2557
- /**
2558
- * StencilJS: Called once just after the component is first connected to the DOM.
2559
- */
2560
- componentWillLoad() {
2561
- return this._getTranslations();
2562
- }
2563
- /**
2564
- * Renders the component.
2565
- */
2566
- render() {
2567
- return (h(Host, null, h("div", null, h("h4", { class: "org-var-header" }, this._translations.solVariables)), h("div", { class: "container-border" }, h("calcite-tree", { id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
2568
- }
2569
- //--------------------------------------------------------------------------
2570
- //
2571
- // Public Methods (async)
2572
- //
2573
- //--------------------------------------------------------------------------
2574
- //--------------------------------------------------------------------------
2575
- //
2576
- // Private Methods
2577
- //
2578
- //--------------------------------------------------------------------------
2579
- /**
2580
- * Render the solution item variables that the user can insert into temaplates at runtime.
2581
- *
2582
- * @param objs a list of variable items that have been gathered from the solutions templates
2583
- */
2584
- _renderHierarchy(objs) {
2585
- const hierarchy = objs.map(obj => {
2586
- return obj.dependencies && obj.dependencies.length > 0 ? (h("calcite-tree-item", { onClick: (evt) => this._toggleExpand(evt) }, h("solution-item-icon", { type: obj.type }), h("span", { class: "icon-text", title: obj.title }, obj.title), h("calcite-tree", { slot: "children" }, this._renderHierarchy(obj.dependencies)))) : (h("calcite-tree-item", { onClick: () => this._treeItemSelected(obj.id, obj.value) }, obj.title));
2587
- });
2588
- return hierarchy;
2589
- }
2590
- /**
2591
- * Publishes the `solutionVariableSelected` event containing `itemId`, the id of the selected variable and the value of the variable.
2592
- *
2593
- * @param id Item id as reported by click event
2594
- * @param value Variable id as reported by click event
2595
- */
2596
- _treeItemSelected(id, value) {
2597
- this.solutionVariableSelected.emit({
2598
- itemId: id,
2599
- value
2600
- });
2601
- }
2602
- /**
2603
- * Toggle the tree item that was clicked
2604
- *
2605
- * @param evt the clicks mouse event
2606
- */
2607
- _toggleExpand(evt = undefined) {
2608
- var _a;
2609
- const treeItem = (_a = evt === null || evt === void 0 ? void 0 : evt.target) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
2610
- if (treeItem) {
2611
- treeItem.expanded = !treeItem.expanded;
2612
- }
2613
- }
2614
- /**
2615
- * Fetches the component's translations
2616
- *
2617
- * @protected
2618
- */
2619
- async _getTranslations() {
2620
- const translations = await getLocaleComponentStrings(this.el);
2621
- this._translations = translations[0];
2622
- }
2623
- get el() { return getElement(this); }
2624
- static get watchers() { return {
2625
- "value": ["valueWatchHandler"]
2626
- }; }
2627
- };
2628
- SolutionVariables.style = solutionVariablesCss;
2629
-
2630
- export { ShellPanel as calcite_shell_panel, Tab as calcite_tab, TabNav as calcite_tab_nav, TabTitle as calcite_tab_title, Tabs as calcite_tabs, ValueList as calcite_value_list, ValueListItem as calcite_value_list_item, JsonEditor as json_editor, SolutionItemDetails as solution_item_details, SolutionItemSharing as solution_item_sharing, SolutionOrganizationVariables as solution_organization_variables, SolutionResourceItem as solution_resource_item, SolutionTemplateData as solution_template_data, SolutionVariables as solution_variables };
2631
-
2632
- //# sourceMappingURL=p-984cb687.entry.js.map