@esri/solutions-components 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) hide show
  1. package/dist/cjs/buffer-tools_6.cjs.entry.js +21 -79
  2. package/dist/cjs/calcite-action-bar_6.cjs.entry.js +14 -16
  3. package/dist/cjs/calcite-action_2.cjs.entry.js +1 -1
  4. package/dist/cjs/calcite-block-section.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-block.cjs.entry.js +1 -1
  6. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  7. package/dist/cjs/calcite-checkbox.cjs.entry.js +1 -1
  8. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +2 -2
  9. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +1 -1
  10. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -3
  11. package/dist/cjs/calcite-combobox_3.cjs.entry.js +3 -18
  12. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +1 -1
  13. package/dist/cjs/calcite-dropdown.cjs.entry.js +1 -1
  14. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  15. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  16. package/dist/cjs/calcite-flow-item.cjs.entry.js +1 -1
  17. package/dist/cjs/calcite-inline-editable.cjs.entry.js +1 -1
  18. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +1 -1
  19. package/dist/cjs/calcite-input-number.cjs.entry.js +1 -1
  20. package/dist/cjs/calcite-input-text.cjs.entry.js +1 -1
  21. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +1 -1
  22. package/dist/cjs/calcite-input_2.cjs.entry.js +1 -1
  23. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  24. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  25. package/dist/cjs/calcite-list_2.cjs.entry.js +2 -2
  26. package/dist/cjs/calcite-option_2.cjs.entry.js +1 -1
  27. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  28. package/dist/cjs/calcite-panel_2.cjs.entry.js +1 -1
  29. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +1 -1
  30. package/dist/cjs/calcite-pick-list.cjs.entry.js +1 -1
  31. package/dist/cjs/calcite-radio-button.cjs.entry.js +1 -1
  32. package/dist/cjs/calcite-rating.cjs.entry.js +1 -1
  33. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +17 -116
  34. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  35. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  36. package/dist/cjs/calcite-stepper-item.cjs.entry.js +1 -1
  37. package/dist/cjs/calcite-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +1 -1
  39. package/dist/cjs/calcite-tile-select.cjs.entry.js +1 -1
  40. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/calcite-time-picker.cjs.entry.js +1 -1
  42. package/dist/cjs/calcite-tree_3.cjs.entry.js +1 -15
  43. package/dist/cjs/check-list.cjs.entry.js +2 -10
  44. package/dist/cjs/config-buffer-tools.cjs.entry.js +2 -11
  45. package/dist/cjs/config-draw-tools.cjs.entry.js +1 -9
  46. package/dist/cjs/config-layer-picker.cjs.entry.js +2 -19
  47. package/dist/cjs/config-pdf-download.cjs.entry.js +1 -17
  48. package/dist/cjs/{index-73010cd8.js → index-7af21b6f.js} +7 -158
  49. package/dist/cjs/loader.cjs.js +1 -1
  50. package/dist/cjs/map-search.cjs.entry.js +3 -0
  51. package/dist/cjs/public-notification.cjs.entry.js +3 -24
  52. package/dist/cjs/{resources-f7622a24.js → resources-aa19bf8c.js} +1 -1
  53. package/dist/cjs/solution-configuration.cjs.entry.js +7 -24
  54. package/dist/cjs/solution-contents_3.cjs.entry.js +7 -33
  55. package/dist/cjs/solutions.cjs.js +1 -1
  56. package/dist/cjs/store-manager.cjs.entry.js +1 -12
  57. package/dist/collection/collection-manifest.json +1 -1
  58. package/dist/collection/components/buffer-tools/buffer-tools.js +1 -29
  59. package/dist/collection/components/check-list/check-list.js +2 -10
  60. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +2 -11
  61. package/dist/collection/components/config-draw-tools/config-draw-tools.js +1 -9
  62. package/dist/collection/components/config-layer-picker/config-layer-picker.js +2 -19
  63. package/dist/collection/components/config-pdf-download/config-pdf-download.js +1 -17
  64. package/dist/collection/components/json-editor/assets/monaco-editor/LICENSE +21 -21
  65. package/dist/collection/components/json-editor/json-editor.js +2 -22
  66. package/dist/collection/components/map-draw-tools/map-draw-tools.js +5 -14
  67. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -16
  68. package/dist/collection/components/map-search/map-search.js +5 -0
  69. package/dist/collection/components/map-select-tools/map-select-tools.js +8 -4
  70. package/dist/collection/components/pdf-download/pdf-download.js +2 -8
  71. package/dist/collection/components/public-notification/public-notification.js +3 -24
  72. package/dist/collection/components/refine-selection/refine-selection.js +4 -4
  73. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +13 -34
  74. package/dist/collection/components/solution-configuration/solution-configuration.js +7 -24
  75. package/dist/collection/components/solution-contents/solution-contents.js +1 -3
  76. package/dist/collection/components/solution-item/solution-item.js +3 -9
  77. package/dist/collection/components/solution-item-details/solution-item-details.js +4 -8
  78. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -14
  79. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -11
  80. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -13
  81. package/dist/collection/components/solution-resource-item/solution-resource-item.js +3 -16
  82. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +3 -21
  83. package/dist/collection/components/solution-template-data/solution-template-data.js +2 -30
  84. package/dist/collection/components/solution-variables/solution-variables.js +1 -13
  85. package/dist/collection/components/store-manager/store-manager.js +1 -12
  86. package/dist/components/action.js +1 -1
  87. package/dist/components/buffer-tools2.js +1 -29
  88. package/dist/components/button.js +1 -1
  89. package/dist/components/calcite-block-section.js +1 -1
  90. package/dist/components/calcite-block.js +1 -1
  91. package/dist/components/calcite-color-picker.js +1 -1
  92. package/dist/components/calcite-fab.js +1 -1
  93. package/dist/components/calcite-filter.js +1 -1
  94. package/dist/components/calcite-flow-item.js +1 -1
  95. package/dist/components/calcite-inline-editable.js +1 -1
  96. package/dist/components/calcite-input-date-picker.js +1 -1
  97. package/dist/components/calcite-input-number.js +1 -1
  98. package/dist/components/calcite-input-text.js +1 -1
  99. package/dist/components/calcite-input-time-picker.js +1 -1
  100. package/dist/components/calcite-pagination.js +1 -1
  101. package/dist/components/calcite-pick-list.js +1 -1
  102. package/dist/components/calcite-radio-button.js +1 -1
  103. package/dist/components/calcite-rating.js +1 -1
  104. package/dist/components/calcite-sortable-list.js +1 -1
  105. package/dist/components/calcite-split-button.js +1 -1
  106. package/dist/components/calcite-stepper-item.js +1 -1
  107. package/dist/components/calcite-tile-select-group.js +1 -1
  108. package/dist/components/calcite-tile-select.js +1 -1
  109. package/dist/components/check-list2.js +2 -10
  110. package/dist/components/checkbox.js +1 -1
  111. package/dist/components/color-picker-swatch.js +7 -158
  112. package/dist/components/combobox-item.js +1 -1
  113. package/dist/components/combobox.js +1 -1
  114. package/dist/components/config-buffer-tools.js +2 -11
  115. package/dist/components/config-draw-tools.js +1 -9
  116. package/dist/components/config-layer-picker.js +2 -19
  117. package/dist/components/config-pdf-download.js +1 -17
  118. package/dist/components/date-picker-day.js +1 -1
  119. package/dist/components/dropdown.js +1 -1
  120. package/dist/components/input.js +1 -1
  121. package/dist/components/json-editor2.js +2 -22
  122. package/dist/components/label.js +1 -1
  123. package/dist/components/link.js +1 -1
  124. package/dist/components/list-item.js +1 -1
  125. package/dist/components/list.js +1 -1
  126. package/dist/components/map-draw-tools2.js +5 -14
  127. package/dist/components/map-layer-picker2.js +1 -16
  128. package/dist/components/map-search.js +3 -0
  129. package/dist/components/map-select-tools2.js +8 -4
  130. package/dist/components/panel.js +1 -1
  131. package/dist/components/pdf-download2.js +2 -8
  132. package/dist/components/pick-list-item.js +1 -1
  133. package/dist/components/public-notification.js +3 -24
  134. package/dist/components/radio-group.js +1 -1
  135. package/dist/components/refine-selection-tools2.js +13 -34
  136. package/dist/components/refine-selection2.js +4 -4
  137. package/dist/components/select.js +1 -1
  138. package/dist/components/slider.js +1 -1
  139. package/dist/components/solution-configuration.js +7 -24
  140. package/dist/components/solution-contents2.js +1 -3
  141. package/dist/components/solution-item-details2.js +4 -8
  142. package/dist/components/solution-item-icon2.js +0 -14
  143. package/dist/components/solution-item-sharing2.js +1 -11
  144. package/dist/components/solution-item2.js +3 -9
  145. package/dist/components/solution-organization-variables2.js +1 -13
  146. package/dist/components/solution-resource-item2.js +3 -16
  147. package/dist/components/solution-spatial-ref2.js +3 -21
  148. package/dist/components/solution-template-data2.js +2 -30
  149. package/dist/components/solution-variables2.js +1 -13
  150. package/dist/components/store-manager.js +1 -12
  151. package/dist/components/switch.js +1 -1
  152. package/dist/components/tab-title.js +1 -1
  153. package/dist/components/tile.js +1 -1
  154. package/dist/components/time-picker.js +1 -1
  155. package/dist/components/tree-item.js +1 -1
  156. package/dist/components/value-list-item.js +1 -1
  157. package/dist/components/value-list.js +1 -1
  158. package/dist/esm/buffer-tools_6.entry.js +21 -79
  159. package/dist/esm/calcite-action-bar_6.entry.js +14 -16
  160. package/dist/esm/calcite-action_2.entry.js +1 -1
  161. package/dist/esm/calcite-block-section.entry.js +1 -1
  162. package/dist/esm/calcite-block.entry.js +1 -1
  163. package/dist/esm/calcite-button.entry.js +1 -1
  164. package/dist/esm/calcite-checkbox.entry.js +1 -1
  165. package/dist/esm/calcite-color-picker-hex-input.entry.js +2 -2
  166. package/dist/esm/calcite-color-picker-swatch.entry.js +1 -1
  167. package/dist/esm/calcite-color-picker.entry.js +3 -3
  168. package/dist/esm/calcite-combobox_3.entry.js +3 -18
  169. package/dist/esm/calcite-date-picker-day_3.entry.js +1 -1
  170. package/dist/esm/calcite-dropdown.entry.js +1 -1
  171. package/dist/esm/calcite-fab.entry.js +1 -1
  172. package/dist/esm/calcite-filter.entry.js +1 -1
  173. package/dist/esm/calcite-flow-item.entry.js +1 -1
  174. package/dist/esm/calcite-inline-editable.entry.js +1 -1
  175. package/dist/esm/calcite-input-date-picker.entry.js +1 -1
  176. package/dist/esm/calcite-input-number.entry.js +1 -1
  177. package/dist/esm/calcite-input-text.entry.js +1 -1
  178. package/dist/esm/calcite-input-time-picker.entry.js +1 -1
  179. package/dist/esm/calcite-input_2.entry.js +1 -1
  180. package/dist/esm/calcite-label.entry.js +1 -1
  181. package/dist/esm/calcite-link.entry.js +1 -1
  182. package/dist/esm/calcite-list_2.entry.js +2 -2
  183. package/dist/esm/calcite-option_2.entry.js +1 -1
  184. package/dist/esm/calcite-pagination.entry.js +1 -1
  185. package/dist/esm/calcite-panel_2.entry.js +1 -1
  186. package/dist/esm/calcite-pick-list-item.entry.js +1 -1
  187. package/dist/esm/calcite-pick-list.entry.js +1 -1
  188. package/dist/esm/calcite-radio-button.entry.js +1 -1
  189. package/dist/esm/calcite-rating.entry.js +1 -1
  190. package/dist/esm/calcite-shell-panel_14.entry.js +17 -116
  191. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  192. package/dist/esm/calcite-split-button.entry.js +1 -1
  193. package/dist/esm/calcite-stepper-item.entry.js +1 -1
  194. package/dist/esm/calcite-switch.entry.js +1 -1
  195. package/dist/esm/calcite-tile-select-group.entry.js +1 -1
  196. package/dist/esm/calcite-tile-select.entry.js +1 -1
  197. package/dist/esm/calcite-tile.entry.js +1 -1
  198. package/dist/esm/calcite-time-picker.entry.js +1 -1
  199. package/dist/esm/calcite-tree_3.entry.js +1 -15
  200. package/dist/esm/check-list.entry.js +2 -10
  201. package/dist/esm/config-buffer-tools.entry.js +2 -11
  202. package/dist/esm/config-draw-tools.entry.js +1 -9
  203. package/dist/esm/config-layer-picker.entry.js +2 -19
  204. package/dist/esm/config-pdf-download.entry.js +1 -17
  205. package/dist/esm/{index-dc607780.js → index-d33ebc35.js} +7 -158
  206. package/dist/esm/loader.js +1 -1
  207. package/dist/esm/map-search.entry.js +3 -0
  208. package/dist/esm/public-notification.entry.js +3 -24
  209. package/dist/esm/{resources-adf937de.js → resources-7d4a587f.js} +1 -1
  210. package/dist/esm/solution-configuration.entry.js +7 -24
  211. package/dist/esm/solution-contents_3.entry.js +7 -33
  212. package/dist/esm/solutions.js +1 -1
  213. package/dist/esm/store-manager.entry.js +1 -12
  214. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +0 -1
  215. package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +0 -1
  216. package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +0 -1
  217. package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +0 -2
  218. package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +0 -2
  219. package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +0 -1
  220. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +0 -1
  221. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +0 -1
  222. package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +0 -1
  223. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +0 -1
  224. package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +0 -1
  225. package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +0 -1
  226. package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +0 -1
  227. package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +0 -1
  228. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +0 -6
  229. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +0 -1
  230. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +0 -6
  231. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +0 -6
  232. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +0 -2
  233. package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +0 -1
  234. package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +0 -1
  235. package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +0 -1
  236. package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +0 -1
  237. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +1 -2
  238. package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +0 -1
  239. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +0 -1
  240. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +0 -1
  241. package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +0 -1
  242. package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-group/radio-group.css +0 -1
  243. package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +0 -1
  244. package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +0 -1
  245. package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +0 -1
  246. package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +0 -1
  247. package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +0 -1
  248. package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +0 -1
  249. package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +0 -2
  250. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +0 -1
  251. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +0 -2
  252. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +0 -1
  253. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +0 -1
  254. package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +0 -1
  255. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +0 -1
  256. package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +0 -1
  257. package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +0 -1
  258. package/dist/solutions/assets/monaco-editor/LICENSE +21 -21
  259. package/dist/solutions/{p-9fdfd6c6.entry.js → p-07ff4a74.entry.js} +1 -1
  260. package/dist/solutions/p-08c96ac2.entry.js +6 -0
  261. package/dist/solutions/p-1033ca8d.entry.js +6 -0
  262. package/dist/solutions/{p-22b54603.entry.js → p-15994a4d.entry.js} +1 -1
  263. package/dist/solutions/p-199c5c24.entry.js +6 -0
  264. package/dist/solutions/p-1db37170.entry.js +6 -0
  265. package/dist/solutions/p-1ed2008f.entry.js +22 -0
  266. package/dist/solutions/{p-0922119b.entry.js → p-255ff9e3.entry.js} +2 -2
  267. package/dist/solutions/p-2a977e48.entry.js +11 -0
  268. package/dist/solutions/{p-911c476b.entry.js → p-320edf27.entry.js} +1 -1
  269. package/dist/solutions/p-33d9d95c.entry.js +11 -0
  270. package/dist/solutions/{p-5f367dbf.js → p-374a5031.js} +2 -2
  271. package/dist/solutions/{p-8b19de1b.entry.js → p-3841527d.entry.js} +2 -2
  272. package/dist/solutions/p-420de3c4.entry.js +29 -0
  273. package/dist/solutions/{p-f8df8f60.entry.js → p-46cb43a6.entry.js} +1 -1
  274. package/dist/solutions/{p-01e27538.entry.js → p-4a418e85.entry.js} +1 -1
  275. package/dist/solutions/{p-2f504ad4.entry.js → p-4d5989db.entry.js} +2 -2
  276. package/dist/solutions/{p-972c9f6b.entry.js → p-4ed258b7.entry.js} +1 -1
  277. package/dist/solutions/{p-aecc26bc.entry.js → p-58022a7b.entry.js} +1 -1
  278. package/dist/solutions/p-59070b11.entry.js +6 -0
  279. package/dist/solutions/{p-fee0d21a.entry.js → p-60e33308.entry.js} +1 -1
  280. package/dist/solutions/{p-32bde829.entry.js → p-6152930f.entry.js} +1 -1
  281. package/dist/solutions/{p-1c4e26cd.entry.js → p-66e3e92c.entry.js} +1 -1
  282. package/dist/solutions/{p-5aa00dda.entry.js → p-68a32f82.entry.js} +2 -2
  283. package/dist/solutions/p-6d81d035.entry.js +12 -0
  284. package/dist/solutions/{p-062a0a85.entry.js → p-74c52dd8.entry.js} +1 -1
  285. package/dist/solutions/p-763f2aff.entry.js +6 -0
  286. package/dist/solutions/{p-e73ac319.entry.js → p-838b5963.entry.js} +1 -1
  287. package/dist/solutions/p-8717d549.entry.js +11 -0
  288. package/dist/solutions/p-93d3119d.js +6 -0
  289. package/dist/solutions/{p-f65f29be.entry.js → p-953d2b0b.entry.js} +1 -1
  290. package/dist/solutions/{p-b506be5a.entry.js → p-9645aeb2.entry.js} +1 -1
  291. package/dist/solutions/{p-1d59f41f.entry.js → p-9b36c7c3.entry.js} +2 -2
  292. package/dist/solutions/{p-6cd67c8f.entry.js → p-9bbaf3a6.entry.js} +1 -1
  293. package/dist/solutions/{p-3ba01dcf.entry.js → p-9eebe062.entry.js} +1 -1
  294. package/dist/solutions/p-9efcd26b.entry.js +23 -0
  295. package/dist/solutions/{p-4d3cc150.entry.js → p-9f4aab0d.entry.js} +1 -1
  296. package/dist/solutions/p-a25b2981.entry.js +6 -0
  297. package/dist/solutions/{p-11aefdf6.entry.js → p-a25b5eac.entry.js} +1 -1
  298. package/dist/solutions/{p-0d969c42.entry.js → p-a2ff7885.entry.js} +1 -1
  299. package/dist/solutions/{p-cdcf8087.entry.js → p-a47e729e.entry.js} +2 -2
  300. package/dist/solutions/p-a8def555.entry.js +11 -0
  301. package/dist/solutions/{p-c5e2efca.entry.js → p-ac1f7035.entry.js} +2 -2
  302. package/dist/solutions/p-adaf2269.entry.js +6 -0
  303. package/dist/solutions/{p-60d5be8d.entry.js → p-b498f95f.entry.js} +1 -1
  304. package/dist/solutions/p-ba3f1e2c.entry.js +6 -0
  305. package/dist/solutions/p-bd9c54b1.entry.js +12 -0
  306. package/dist/solutions/{p-28c78bbe.entry.js → p-c188f72f.entry.js} +1 -1
  307. package/dist/solutions/{p-d6d15e07.entry.js → p-c55027a5.entry.js} +3 -3
  308. package/dist/solutions/{p-f8910acc.entry.js → p-d63c9fda.entry.js} +1 -1
  309. package/dist/solutions/{p-7e9bcf39.entry.js → p-d6d803fd.entry.js} +1 -1
  310. package/dist/solutions/{p-d6d53153.entry.js → p-e9b057bb.entry.js} +1 -1
  311. package/dist/solutions/{p-e1ac2e9d.entry.js → p-efa46da1.entry.js} +1 -1
  312. package/dist/solutions/p-fb544e27.entry.js +6 -0
  313. package/dist/solutions/solutions.css +1 -1
  314. package/dist/solutions/solutions.esm.js +1 -1
  315. package/dist/solutions-components_commit.txt +5 -7
  316. package/dist/types/stencil-public-runtime.d.ts +5 -0
  317. package/package.json +1 -1
  318. package/dist/solutions/p-092a0bff.entry.js +0 -12
  319. package/dist/solutions/p-0b6167b7.entry.js +0 -11
  320. package/dist/solutions/p-3c69af40.entry.js +0 -6
  321. package/dist/solutions/p-437e55cb.entry.js +0 -6
  322. package/dist/solutions/p-4c125f96.entry.js +0 -6
  323. package/dist/solutions/p-57157b9d.entry.js +0 -12
  324. package/dist/solutions/p-599afe71.entry.js +0 -6
  325. package/dist/solutions/p-5ba1efd5.entry.js +0 -6
  326. package/dist/solutions/p-60deec33.entry.js +0 -6
  327. package/dist/solutions/p-7e689d39.entry.js +0 -6
  328. package/dist/solutions/p-7ee9ae73.entry.js +0 -23
  329. package/dist/solutions/p-87c09099.entry.js +0 -11
  330. package/dist/solutions/p-ba6ba612.entry.js +0 -6
  331. package/dist/solutions/p-be63740d.entry.js +0 -6
  332. package/dist/solutions/p-c89eefda.entry.js +0 -11
  333. package/dist/solutions/p-cd33aa83.entry.js +0 -6
  334. package/dist/solutions/p-ce33ef37.js +0 -6
  335. package/dist/solutions/p-d58c1b71.entry.js +0 -29
  336. package/dist/solutions/p-e9641c29.entry.js +0 -11
  337. package/dist/solutions/p-f27e1023.entry.js +0 -22
@@ -1,6 +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 i,h as t,H as e,g as s}from"./p-be2e3b99.js";import{l}from"./p-a128b9ca.js";import{a,E as d,b as n}from"./p-6b9dc092.js";import{a as o,b as c,c as r,h}from"./p-fe0fdd8b.js";import{s as p}from"./p-fda0d45f.js";import{g}from"./p-0af82897.js";import{g as v,a as u}from"./p-fc884dd6.js";import"./p-91192214.js";import"./p-3b010ce1.js";const b=class{constructor(t){i(this,t),this._downloadActive=!0,this._numSelected=0,this._pageType=a.LIST,this._saveEnabled=!1,this._selectionSets=[],this._selectionWorkflowType=d.SEARCH}async selectionSetsWatchHandler(i,t){i&&i!==t&&i.length>0&&0===i.filter((i=>i.workflowType!==d.REFINE)).length&&(this._selectionSets=[])}async pageTypeWatchHandler(i,t){if(this._clearHighlight(),t!==a.SELECT&&t!==a.REFINE||await this._clearSelection(),i!==a.SELECT)return this._highlightFeatures()}selectionSetsChanged(i){this._selectionSets=[...i.detail]}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){var i,s,l,d;const n=this._selectionSets.length>0;return t(e,null,t("calcite-shell",null,t("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getActionGroup("list-check",!1,a.LIST,null===(i=this._translations)||void 0===i?void 0:i.myLists),this._getActionGroup("test-data",!n,a.REFINE,null===(s=this._translations)||void 0===s?void 0:s.refineSelection),this._getActionGroup("file-pdf",!n,a.PDF,null===(l=this._translations)||void 0===l?void 0:l.downloadPDF),this._getActionGroup("file-csv",!n,a.CSV,null===(d=this._translations)||void 0===d?void 0:d.downloadCSV)),this._getPage(this._pageType)))}async _initModules(){const[i]=await l(["esri/geometry/geometryEngine"]);this._geometryEngine=i}_getActionGroup(i,e,s,l){return t("calcite-action-group",{class:"action-center w-1-4",layout:"horizontal"},t("calcite-action",{active:this._pageType===s,alignment:"center",class:"width-full height-full",compact:!1,disabled:e,icon:i,id:i,onClick:()=>{this._setPageType(s)},text:""}),t("calcite-tooltip",{label:"",placement:"bottom","reference-element":i},t("span",null,l)))}_setPageType(i){this._pageType=i}_getPage(i){let t;switch(i){case a.LIST:t=this._getListPage();break;case a.SELECT:t=this._getSelectPage();break;case a.REFINE:t=this._getRefinePage();break;case a.PDF:t=this._getPDFPage();break;case a.CSV:t=this._getCSVPage()}return t}_getListPage(){var i,e,s,l,n,o,c,r,h,p,g,u,b,m,f;const w=this._selectionSets.filter((i=>i.workflowType!==d.REFINE)).length>0,y=v(this._selectionSets);return w?t("calcite-panel",null,t("div",{class:"padding-top-sides-1"},t("calcite-label",{class:"font-bold"},null===(i=this._translations)||void 0===i?void 0:i.myLists)),this._getNotice(null===(e=this._translations)||void 0===e?void 0:e.listHasSetsTip,"padding-sides-1 padding-bottom-1"),t("div",{class:"display-flex padding-sides-1"},t("calcite-label",{class:"font-bold width-full"},null===(s=this._translations)||void 0===s?void 0:s.addresseeLayer,t("map-layer-picker",{mapView:this.mapView,onLayerSelectionChange:i=>this._layerSelectionChange(i),selectedLayers:this.addresseeLayer?[null===(l=this.addresseeLayer)||void 0===l?void 0:l.layer.title]:[],selectionMode:"single"}))),t("div",{class:"padding-sides-1 height-1-1-2"},t("div",{class:"position-left"},t("calcite-label",{alignment:"start",class:"font-bold"},null===(n=this._translations)||void 0===n?void 0:n.notifications)),t("div",{class:"position-right"},t("calcite-input-message",{active:!0,class:"info-blue margin-top-0",scale:"m"},null===(o=this._translations)||void 0===o?void 0:o.uniqueCout.replace("{{n}}",y.toString())))),w?this._getSelectionSetList():t("div",{class:"info-message"},t("calcite-input-message",{active:!0,class:"info-blue",scale:"m"},null===(c=this._translations)||void 0===c?void 0:c.noNotifications)),t("div",{class:"display-flex padding-1"},t("calcite-button",{onClick:()=>{this._setPageType(a.SELECT)},width:"full"},null===(r=this._translations)||void 0===r?void 0:r.add))):t("calcite-panel",null,t("div",{class:"padding-top-sides-1"},t("calcite-label",{class:"font-bold"},null===(h=this._translations)||void 0===h?void 0:h.myLists)),t("div",{class:"padding-sides-1"},t("calcite-label",null,null===(p=this._translations)||void 0===p?void 0:p.notifications)),t("div",{class:"info-message padding-bottom-1"},t("calcite-input-message",{active:!0,class:"info-blue",scale:"m"},null===(g=this._translations)||void 0===g?void 0:g.noNotifications)),this._getNotice(null===(u=this._translations)||void 0===u?void 0:u.selectLayerAndAdd,"padding-sides-1 padding-bottom-1"),t("div",{class:"display-flex padding-sides-1"},t("calcite-label",{class:"font-bold width-full"},null===(b=this._translations)||void 0===b?void 0:b.addresseeLayer,t("map-layer-picker",{mapView:this.mapView,onLayerSelectionChange:i=>this._layerSelectionChange(i),selectedLayers:this.addresseeLayer?[null===(m=this.addresseeLayer)||void 0===m?void 0:m.layer.title]:[],selectionMode:"single"}))),t("div",{class:"display-flex padding-1"},t("calcite-button",{onClick:()=>{this._setPageType(a.SELECT)},width:"full"},null===(f=this._translations)||void 0===f?void 0:f.add)))}_getSelectionSetList(){return t("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((i,e,s)=>(e.workflowType!==d.REFINE&&i.push(t("calcite-list-item",{description:this._translations.selectedFeatures.replace("{{n}}",e.selectedIds.length.toString()),label:e.label,onClick:()=>o(e.selectedIds,e.layerView,this.mapView)},this._getAction(!0,"pencil","",(i=>this._openSelection(e,i)),!1,"actions-end"),this._getAction(!0,"x","",(i=>this._deleteSelection(s,i)),!1,"actions-end"))),i)),[]))}_getSelectPage(){var i,e,s,l,a,n,o,c,r,h;const p=`${null===(i=this._translations)||void 0===i?void 0:i.selectSearchTip} ${null===(e=this._translations)||void 0===e?void 0:e.optionalSearchDistance}`,g=`${null===(s=this._translations)||void 0===s?void 0:s.selectLayerTip} ${null===(l=this._translations)||void 0===l?void 0:l.optionalSearchDistance}`,v=`${null===(a=this._translations)||void 0===a?void 0:a.selectSketchTip} ${null===(n=this._translations)||void 0===n?void 0:n.optionalSearchDistance}`,u=this._selectionWorkflowType===d.SELECT?g:this._selectionWorkflowType===d.SKETCH?v:p;return t("calcite-panel",null,this._getLabel(null===(o=this._translations)||void 0===o?void 0:o.stepTwoFull,!0),this._getNotice(u),t("div",{class:"padding-1"},t("map-select-tools",{class:"font-bold",isUpdate:!!this._activeSelection,mapView:this.mapView,onSelectionSetChange:i=>this._updateForSelection(i),onWorkflowTypeChange:i=>this._updateForWorkflowType(i),ref:i=>{this._selectTools=i},selectLayerView:this.addresseeLayer,selectionSet:this._activeSelection})),t("div",{class:"padding-sides-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},t("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),t("calcite-input-message",{active:!0,class:"info-blue",scale:"m"},null===(c=this._translations)||void 0===c?void 0:c.selectedAddresses.replace("{{n}}",this._numSelected.toString()))),this._getPageNavButtons(null===(r=this._translations)||void 0===r?void 0:r.done,0===this._numSelected,(()=>{this._saveSelection()}),null===(h=this._translations)||void 0===h?void 0:h.cancel,!1,(()=>{this._home()})))}_getRefinePage(){var i,e;return t("calcite-panel",null,this._getLabel(null===(i=this._translations)||void 0===i?void 0:i.refineSelection),this._getNotice(null===(e=this._translations)||void 0===e?void 0:e.refineTip,"padding-sides-1"),t("refine-selection",{addresseeLayer:this.addresseeLayer,mapView:this.mapView,selectionSets:this._selectionSets}))}_getPDFPage(){return this._getDownloadPage(n.PDF)}_getCSVPage(){return this._getDownloadPage(n.CSV)}_getDownloadPage(i){var e,s,l,a,d,o,c;const r=i===n.PDF;return t("calcite-panel",null,t("div",null,t("div",{class:"padding-top-sides-1"},t("calcite-label",{class:"font-bold"},r?null===(e=this._translations)||void 0===e?void 0:e.pdfDownloads:null===(s=this._translations)||void 0===s?void 0:s.csvDownloads),t("calcite-label",null,null===(l=this._translations)||void 0===l?void 0:l.notifications)),this._getSelectionLists(),t("div",{class:"margin-side-1 padding-top-1 border-bottom"}),t("div",{class:"padding-top-sides-1"},t("calcite-label",{disabled:!this._downloadActive,layout:"inline"},t("calcite-checkbox",{disabled:!this._downloadActive,ref:i=>{this._removeDuplicates=i}}),null===(a=this._translations)||void 0===a?void 0:a.removeDuplicate)),t("div",{class:r?"":"display-none"},this._getLabel(null===(d=this._translations)||void 0===d?void 0:d.selectPDFLabelOption,!1,!this._downloadActive),t("div",{class:"padding-sides-1"},t("pdf-download",{disabled:!this._downloadActive,layerView:this.addresseeLayer,ref:i=>{this._downloadTools=i}}))),t("div",{class:"padding-1 display-flex"},t("calcite-button",{disabled:!this._downloadActive,onClick:r?()=>this._downloadPDF():()=>this._downloadCSV(),width:"full"},r?null===(o=this._translations)||void 0===o?void 0:o.downloadPDF:null===(c=this._translations)||void 0===c?void 0:c.downloadCSV))))}_getPageNavButtons(i,e,s,l,a,d){return t("div",null,t("div",{class:"display-flex padding-top-sides-1"},t("calcite-button",{disabled:e,onClick:s,width:"full"},i)),t("div",{class:"display-flex padding-top-1-2 padding-sides-1"},t("calcite-button",{appearance:"outline",disabled:a,onClick:d,width:"full"},l)))}_getNotice(i,e="padding-1"){return t("calcite-notice",{active:!0,class:e,color:"green",icon:"lightbulb"},t("div",{slot:"message"},i))}_getLabel(i,e=!1,s=!1){return t("div",{class:"padding-top-sides-1"},t("calcite-label",{class:"font-bold","disable-spacing":e,disabled:s},i))}_getSelectionLists(){return this._selectionSets.reduce(((i,e)=>(e.workflowType!==d.REFINE&&(!this._downloadActive&&e.download&&(this._downloadActive=!0),i.push(t("div",{class:"display-flex padding-sides-1 padding-bottom-1"},t("calcite-checkbox",{checked:e.download,onClick:()=>{this._toggleDownload(e.id)}}),t("calcite-list",{class:"list-border margin-start-1-2 w-100",id:"download-list"},t("calcite-list-item",{description:this._translations.selectedFeatures.replace("{{n}}",e.selectedIds.length.toString()),disabled:!e.download,label:e.label,onClick:()=>{this._toggleDownload(e.id)}}))))),i)),[])||t("div",null)}async _toggleDownload(i){let t=!1;this._selectionSets=this._selectionSets.map((e=>(e.download=e.id===i?!e.download:e.download,t=!!e.download||t,e))),this._downloadActive=t,await this._highlightFeatures()}_downloadPDF(){const i=u(this._getDownloadSelectionSets());return this._downloadTools.downloadPDF(i,this._removeDuplicates.checked)}_downloadCSV(){const i=u(this._getDownloadSelectionSets());return this._downloadTools.downloadCSV(i,this._removeDuplicates.checked)}_getDownloadSelectionSets(){return this._selectionSets.filter((i=>i.download||i.workflowType===d.REFINE))}_updateForWorkflowType(i){this._selectionWorkflowType=i.detail}_getAction(i,e,s,l,a=!1,d=""){return t("calcite-action",{disabled:!i,icon:e,indicator:a,onClick:l,slot:d,text:s})}_updateForSelection(i){this._numSelected=i.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(a.LIST)}async _layerSelectionChange(i){var t,e;const s=(null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.length)>0?i.detail[0]:"";s!==(null===(e=this.addresseeLayer)||void 0===e?void 0:e.layer.title)&&(this.addresseeLayer=await c(this.mapView,s),await this._updateSelectionSets(this.addresseeLayer))}async _updateSelectionSets(i){const t=this._selectionSets.filter((i=>i.workflowType!==d.REFINE)),e=[];return t.forEach((t=>{t.layerView=i,t.selectedIds=[],e.push(r(t,this._geometryEngine))})),Promise.all(e).then((async i=>{i.forEach(((i,e)=>{t[e].selectedIds=i})),await this._highlightFeatures(),this._selectionSets=[...t]}))}async _saveSelection(){var i,t;const e=await(null===(i=this._selectTools)||void 0===i?void 0:i.getSelection()),s=null===(t=this._selectTools)||void 0===t?void 0:t.isUpdate;return this._selectionSets=s?this._selectionSets.map((i=>i.id===e.id?e:i)):[...this._selectionSets,e],this._home()}async _clearSelection(){var i;await(null===(i=this._selectTools)||void 0===i?void 0:i.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(i,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter(((t,e)=>{if(e!==i)return t})),this._highlightFeatures()}_openSelection(i,t){t.stopPropagation(),this._activeSelection=i,this._pageType=a.SELECT}async _highlightFeatures(){this._clearHighlight();const i=u(this._selectionSets);i.length>0&&(p.highlightHandle=await h(i,this.addresseeLayer,this.mapView))}_clearHighlight(){var i;null===(i=p.highlightHandle)||void 0===i||i.remove()}async _getTranslations(){const i=await g(this.el);this._translations=i[0]}get el(){return s(this)}static get watchers(){return{_selectionSets:["selectionSetsWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};b.style=':host{display:block}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir="rtl"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.position-left{position:absolute;left:1rem}.position-left[dir="rtl"]{position:absolute;right:1rem}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}';export{b as public_notification}
@@ -1,6 +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 e,c as t,h as i,H as r,g as a}from"./p-be2e3b99.js";import{g as n,t as o}from"./p-32a67cb2.js";import{u as s}from"./p-7daea1df.js";import{n as c,c as l,d}from"./p-23904a3d.js";import"./p-729708a3.js";import"./p-a80b3880.js";import"./p-73e23995.js";import"./p-9a9955db.js";const p=class{constructor(i){e(this,i),this.calciteInternalStepperItemKeyEvent=t(this,"calciteInternalStepperItemKeyEvent",6),this.calciteInternalStepperItemSelect=t(this,"calciteInternalStepperItemSelect",6),this.calciteInternalUserRequestedStepperItemSelect=t(this,"calciteInternalUserRequestedStepperItemSelect",6),this.calciteInternalStepperItemRegister=t(this,"calciteInternalStepperItemRegister",6),this.active=!1,this.selected=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.layout="horizontal",this.icon=!1,this.numbered=!1,this.scale="m",this.effectiveLocale="",this.keyDownHandler=e=>{if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault()}},this.handleItemClick=e=>{"horizontal"===this.layout&&e.composedPath().some((e=>{var t;return null===(t=e.classList)||void 0===t?void 0:t.contains("stepper-item-content")}))||this.emitUserRequestedItem()},this.emitUserRequestedItem=()=>{this.emitRequestedItem(),this.disabled||this.calciteInternalUserRequestedStepperItemSelect.emit({position:this.itemPosition})},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition})}}activeHandler(e){this.selected=e}selectedHandler(e){this.active=e,this.selected&&this.emitRequestedItem()}disabledWatcher(){this.registerStepperItem()}effectiveLocaleWatcher(e){var t;c.numberFormatOptions={locale:e,numberingSystem:null===(t=this.parentStepperEl)||void 0===t?void 0:t.numberingSystem,useGrouping:!1}}connectedCallback(){l(this);const{selected:e,active:t}=this;e?this.active=e:t&&(this.selected=t)}componentWillLoad(){var e;this.icon=n(this.el,"icon",!1),this.numbered=n(this.el,"numbered",!1),this.layout=n(this.el,"layout",!1),this.scale=n(this.el,"scale","m"),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem(),c.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:null===(e=this.parentStepperEl)||void 0===e?void 0:e.numberingSystem,useGrouping:!1}}componentDidRender(){s(this,!0)}disconnectedCallback(){d(this)}render(){return i(r,{"aria-expanded":o(this.active),onClick:this.handleItemClick,onKeyDown:this.keyDownHandler},i("div",{class:"container"},i("div",{class:"stepper-item-header",ref:e=>this.headerEl=e,tabIndex:"horizontal"!==this.layout||this.disabled?null:0},this.icon?this.renderIcon():null,this.numbered?i("div",{class:"stepper-item-number"},c.numberFormatter.format(this.itemPosition+1),"."):null,i("div",{class:"stepper-item-header-text"},i("span",{class:"stepper-item-heading"},this.heading||this.itemTitle),i("span",{class:"stepper-item-description"},this.description||this.itemSubtitle))),i("div",{class:"stepper-item-content"},i("slot",null))))}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}async setFocus(){var e;null===(e="vertical"===this.layout?this.el:this.headerEl)||void 0===e||e.focus()}renderIcon(){return i("calcite-icon",{class:"stepper-item-icon",icon:this.selected?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}getItemPosition(){var e;return Array.from(null===(e=this.parentStepperEl)||void 0===e?void 0:e.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],selected:["selectedHandler"],disabled:["disabledWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};p.style="@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([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);-webkit-margin-before:1px;margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;-webkit-margin-before:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content ::slotted(:last-child){-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-l);margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-danger-hover)}:host([layout=horizontal]){display:contents}:host([layout=horizontal]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{-webkit-margin-end:0.25rem;margin-inline-end:0.25rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][complete]) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal][error]) .stepper-item-header{border-color:var(--calcite-ui-danger)}:host([layout=horizontal][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}";export{p as calcite_stepper_item}
@@ -1,6 +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 i,c as t,h as e,H as a,g as o}from"./p-be2e3b99.js";import{f as n,t as r}from"./p-32a67cb2.js";import{c as s,d as c,g as l}from"./p-dbad98e8.js";import{c as d,d as h,H as m}from"./p-ab93e73f.js";import{u as p}from"./p-7daea1df.js";import{i as u}from"./p-73e23995.js";import"./p-729708a3.js";import"./p-a80b3880.js";const b=class{constructor(e){i(this,e),this.calciteSwitchChange=t(this,"calciteSwitchChange",6),this.disabled=!1,this.scale="m",this.switched=!1,this.checked=!1,this.keyDownHandler=i=>{!this.disabled&&u(i.key)&&(this.toggle(),i.preventDefault())},this.clickHandler=()=>{this.toggle()},this.setSwitchEl=i=>{this.switchEl=i}}switchedWatcher(i){this.checked=i}async setFocus(){n(this.switchEl)}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit({switched:this.checked})}connectedCallback(){const i=this.checked||this.switched;i&&(this.switched=this.checked=i),s(this),d(this)}disconnectedCallback(){c(this),h(this)}componentDidRender(){p(this)}render(){return e(a,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},e("div",{"aria-checked":r(this.checked),"aria-label":l(this),class:"container",ref:this.setSwitchEl,role:"switch",tabIndex:0},e("div",{class:"track"},e("div",{class:"handle"})),e(m,{component:this})))}get el(){return o(this)}static get watchers(){return{switched:["switchedWatcher"]}}};b.style="@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;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host{inline-size:auto;outline-color:transparent}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}.container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{b as calcite_switch}
@@ -1,6 +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 t,h as e,H as s,g as i}from"./p-be2e3b99.js";const r=class{constructor(e){t(this,e),this.defaultChecked=!0,this._elements=[]}async getConfigInfo(){return this._elements.reduce(((t,e)=>(t[e.value]=e.checked,t)),{})}async componentDidLoad(){this.defaultChecked&&this._elements.forEach((t=>{t.checked=!0}))}render(){return e(s,null,e("div",null,this._renderCheckboxes(this.values)))}_renderCheckboxes(t){return t.map((t=>e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>this._elements.push(t),value:t}),t)))}get el(){return i(this)}};r.style=":host{display:block}";export{r as check_list}
@@ -1,23 +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 e,c as t,h as i,H as a,g as o,a as n}from"./p-be2e3b99.js";import{f as c,n as r,m as s,a as l,b as d,t as m,l as p}from"./p-32a67cb2.js";import{C as h}from"./p-729708a3.js";import{c as u,d as g}from"./p-61dc587c.js";import{u as b}from"./p-7daea1df.js";import"./p-a80b3880.js";import"./p-9a9955db.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- * v1.0.0-beta.97
11
- */var f;function k(e,t){const i="down"===t?"nextElementSibling":"previousElementSibling";let a=e,o=null;for(;null==(n=a)?void 0:n.matches("calcite-tree-item");){if(!a.disabled){o=a;break}a=a[i]}
12
- /*!
13
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
15
- * v1.0.0-beta.97
16
- */
17
- var n;return o}!function(e){e.Single="single",e.Multi="multi",e.None="none",e.Children="children",e.MultiChildren="multi-children",e.Ancestors="ancestors"}(f||(f={}));const y=class{constructor(i){e(this,i),this.calciteTreeSelect=t(this,"calciteTreeSelect",6),this.lines=!1,this.inputEnabled=!1,this.scale="m",this.selectionMode=f.Single}componentWillRender(){var e;const t=null===(e=this.el.parentElement)||void 0===e?void 0:e.closest("calcite-tree");this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}render(){return i(a,{"aria-multiselectable":this.child?void 0:(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren).toString(),role:this.child?void 0:"tree",tabIndex:this.getRootTabIndex()},i("slot",null))}onFocus(){if(!this.child){const e=this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])");c(e)}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onClick(e){const t=e.target,i=r(t.querySelectorAll("calcite-tree-item"));if(this.child)return;if(this.child||(e.preventDefault(),e.stopPropagation()),this.selectionMode===f.Ancestors&&!this.child)return void this.updateAncestorTree(e);const a=this.selectionMode===f.None,o=!a&&e.detail.modifyCurrentSelection&&(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren),n=this.selectionMode===f.MultiChildren||this.selectionMode===f.Children,c=!o&&((this.selectionMode===f.Single||this.selectionMode===f.Multi)&&i.length<=0||this.selectionMode===f.Children||this.selectionMode===f.MultiChildren),s=this.selectionMode===f.Children||this.selectionMode===f.MultiChildren;if(!this.child){const l=[];null!==this.selectionMode&&(!t.hasChildren||t.hasChildren&&(this.selectionMode===f.Children||this.selectionMode===f.MultiChildren))&&l.push(t),n&&i.forEach((e=>{l.push(e)})),c&&r(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach((e=>{l.includes(e)||(e.selected=!1)})),s&&!e.detail.forceToggle&&(t.expanded=!0),o&&window.getSelection().removeAllRanges(),o&&t.selected||n&&e.detail.forceToggle?l.forEach((e=>{e.disabled||(e.selected=!1)})):a||l.forEach((e=>{e.disabled||(e.selected=!0)}))}const l=a?[t]:r(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected));this.calciteTreeSelect.emit({selected:l}),e.stopPropagation()}keyDownHandler(e){var t;const i=this.el.closest("calcite-tree:not([child])"),a=e.target;if(i===this.el&&"CALCITE-TREE-ITEM"===a.tagName&&this.el.contains(a))if("ArrowDown"!==e.key){if("ArrowUp"===e.key){const t=k(a.previousElementSibling,"up");t&&(t.focus(),e.preventDefault())}if("ArrowLeft"===e.key&&!a.disabled){if(a.hasChildren&&a.expanded)return a.expanded=!1,void e.preventDefault();const t=a.parentElement.closest("calcite-tree-item");return!t||a.hasChildren&&!1!==a.expanded?void 0:(t.focus(),void e.preventDefault())}"ArrowRight"!==e.key||a.disabled||a.hasChildren&&(a.expanded&&s(this.el).activeElement===a?(null===(t=k(a.querySelector("calcite-tree-item"),"down"))||void 0===t||t.focus(),e.preventDefault()):(a.expanded=!0,e.preventDefault()))}else{const t=k(a.nextElementSibling,"down");t&&(t.focus(),e.preventDefault())}}updateAncestorTree(e){const t=e.target;if(t.disabled)return;const i=[];let a=t.parentElement.closest("calcite-tree-item");for(;a;)i.push(a),a=a.parentElement.closest("calcite-tree-item");const o=Array.from(t.querySelectorAll("calcite-tree-item:not([disabled])")),n=o.filter((e=>!e.hasChildren)),c=o.filter((e=>e.hasChildren)),s=t.hasChildren?!(t.selected||t.indeterminate):!t.selected;function l(e,t){const i=e.filter((e=>e.selected)),a=e.filter((e=>!e.selected));t.selected=i.length===e.length,t.indeterminate=i.length>0&&a.length>0}n.forEach((e=>{e.selected=s,e.indeterminate=!1})),c.forEach((e=>{l(Array.from(e.querySelectorAll(":scope > calcite-tree > calcite-tree-item")),e)})),t.hasChildren?l(o,t):(t.selected=s,t.indeterminate=!1),i.forEach((e=>{const t=r(e.querySelectorAll("calcite-tree-item")),i=t.filter((e=>e.selected));if(0===i.length)return e.selected=!1,void(e.indeterminate=!1);const a=i.length<t.length;e.indeterminate=a,e.selected=!a})),this.calciteTreeSelect.emit({selected:r(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected))})}getRootTabIndex(){return this.child?-1:0}get el(){return o(this)}};y.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}";
18
- /*!
19
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
20
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
21
- * v1.0.0-beta.97
22
- */
23
- const v=class{constructor(i){e(this,i),this.calciteInternalTreeItemSelect=t(this,"calciteInternalTreeItemSelect",6),this.disabled=!1,this.selected=!1,this.expanded=!1,this.parentExpanded=!1,this.depth=-1,this.hasChildren=null,this.iconClickHandler=e=>{e.stopPropagation(),this.expanded=!this.expanded},this.childrenClickHandler=e=>e.stopPropagation(),this.updateParentIsExpanded=(e,t)=>{l(e,"children",{all:!0,selector:"calcite-tree-item"}).forEach((e=>e.parentExpanded=t))},this.updateAncestorTree=()=>{var e;if(this.selected&&this.selectionMode===f.Ancestors){const t=[];let i=this.parentTreeItem;for(;i;)t.push(i),i=null===(e=i.parentElement)||void 0===e?void 0:e.closest("calcite-tree-item");t.forEach((e=>e.indeterminate=!0))}}}expandedHandler(e){this.updateParentIsExpanded(this.el,e)}getselectionMode(){this.isSelectionMultiLike=this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren}connectedCallback(){var e;if(this.parentTreeItem=null===(e=this.el.parentElement)||void 0===e?void 0:e.closest("calcite-tree-item"),this.parentTreeItem){const{expanded:e}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,e)}u(this)}disconnectedCallback(){g(this)}componentWillRender(){var e;this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let t,i=this.el.closest("calcite-tree");if(i)for(this.selectionMode=i.selectionMode,this.scale=i.scale||"m",this.lines=i.lines;i&&(t=null===(e=i.parentElement)||void 0===e?void 0:e.closest("calcite-tree"),t!==i);)i=t,this.depth=this.depth+1}componentDidLoad(){this.updateAncestorTree()}componentDidRender(){b(this,(()=>this.parentExpanded||1===this.depth))}render(){const e="rtl"===d(this.el),t=this.selectionMode===f.Single||this.selectionMode===f.Children,o=this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren,n=this.selectionMode===f.None&&!this.hasChildren,c=this.hasChildren?i("calcite-icon",{class:{chevron:!0,[h.rtl]:e},"data-test-id":"icon",icon:"chevron-right",onClick:this.iconClickHandler,scale:"s"}):null,r=i("slot",{key:"default-slot"}),s=this.selectionMode===f.Ancestors?i("label",{class:"checkbox-label",key:"checkbox-label"},i("calcite-checkbox",{checked:this.selected,class:"checkbox","data-test-id":"checkbox",indeterminate:this.hasChildren&&this.indeterminate,scale:this.scale,tabIndex:-1}),r):null,l=t?"bullet-point":o?"check":n?"blank":null,p=l?i("calcite-icon",{class:{"bullet-point":"bullet-point"===l,checkmark:"check"===l,[h.rtl]:e},icon:l,scale:"s"}):null,u=!(this.parentExpanded||1===this.depth);return i(a,{"aria-expanded":this.hasChildren?m(this.expanded):void 0,"aria-hidden":m(u),"aria-selected":this.selected?"true":o?"false":void 0,"calcite-hydrated-hidden":u,role:"treeitem"},i("div",{class:{"node-container":!0,[h.rtl]:e},"data-selection-mode":this.selectionMode,ref:e=>this.defaultSlotWrapper=e},c,p,s||r),i("div",{class:{"children-container":!0,[h.rtl]:e},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,ref:e=>this.childrenSlotWrapper=e,role:this.hasChildren?"group":void 0},i("slot",{name:"children"})))}onClick(e){const[t]=p(this.el,"a");t&&"a"!==e.composedPath()[0].tagName.toLowerCase()&&window.open(t.href,""===t.target?"_self":t.target),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode===f.Ancestors||this.isSelectionMultiLike,forceToggle:!1})}keyDownHandler(e){let t;switch(e.key){case" ":this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),e.preventDefault();break;case"Enter":const i=r(this.el.children).find((e=>e.matches("a")));i?(i.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),e.preventDefault();break;case"Home":t=this.el.closest("calcite-tree:not([child])");const a=t.querySelector("calcite-tree-item");null==a||a.focus();break;case"End":t=this.el.closest("calcite-tree:not([child])");let o=t.children[t.children.length-1],n=r(o.children).find((e=>e.matches("calcite-tree")));for(;n;)o=n.children[t.children.length-1],n=r(o.children).find((e=>e.matches("calcite-tree")));null==o||o.focus()}}get el(){return o(this)}static get watchers(){return{expanded:["expandedHandler"],selectionMode:["getselectionMode"]}}};v.style='@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;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-container{--calcite-tree-padding-y:0.25rem}:host([scale=s]) .node-container .checkbox,:host([scale=s]) .node-container .chevron,:host([scale=s]) .node-container .checkmark,:host([scale=s]) .node-container .bullet-point{margin-inline:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-container{--calcite-tree-padding-y:0.5rem}:host([scale=m]) .node-container .checkbox,:host([scale=m]) .node-container .chevron,:host([scale=m]) .node-container .checkmark,:host([scale=m]) .node-container .bullet-point{margin-inline:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-container{--calcite-tree-padding-y:0.75rem}:host([scale=l]) .node-container .checkbox,:host([scale=l]) .node-container .chevron,:host([scale=l]) .node-container .checkmark,:host([scale=l]) .node-container .bullet-point{margin-inline:0.75rem}:host([lines]) .children-container:after{position:absolute;inset-block-start:0px;z-index:1;inline-size:1px;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:"";background-color:var(--calcite-ui-border-2)}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){inline-size:100%;-webkit-text-decoration-line:none;text-decoration-line:none}:host{outline-color:transparent}:host(:focus:not([disabled])){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{line-height:0}.checkbox-label{pointer-events:none;display:flex;align-items:center}.checkbox:focus{outline:2px solid transparent;outline-offset:2px}.children-container{position:relative;block-size:0px;overflow:hidden;-webkit-margin-start:1.25rem;margin-inline-start:1.25rem;transform:scaleY(0);opacity:0;transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transform-origin:top}:host([expanded])>.children-container{transform:scaleY(1);opacity:1;block-size:auto}.node-container{position:relative;display:flex;align-items:center;padding-block:var(--calcite-tree-padding-y);padding-inline:0}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected])>.node-container,:host([selected])>.node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected])>.node-container .bullet-point,:host([selected])>.node-container .checkmark,:host([selected])>.node-container:hover .bullet-point,:host([selected])>.node-container:hover .checkmark{opacity:1;color:var(--calcite-ui-brand)}:host([selection-mode=none]:not([has-children])):host([scale=s])>.node-container{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}:host([selection-mode=none]:not([has-children])):host([scale=m])>.node-container{-webkit-padding-start:1rem;padding-inline-start:1rem}:host([selection-mode=none]:not([has-children])):host([scale=l])>.node-container{-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=s])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.25rem;padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem}:host([has-children])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-margin-start:0;margin-inline-start:0}:host([has-children])>.node-container .bullet-point,:host([has-children])>.node-container .checkmark{display:none}:host([has-children][expanded]:not([selected]):not([selection-mode=none]))>.node-container ::slotted(*){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([has-children][selected])>.node-container[data-selection-mode=children],:host([has-children][selected])>.node-container[data-selection-mode=multi-children]{color:var(--calcite-ui-brand)}.chevron{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}.calcite--rtl .chevron{transform:rotate(180deg)}:host([expanded])>.node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-ui-brand)}';const w=class{constructor(t){e(this,t),this.isPortal=!1,this.type="",this.typeKeywords=[]}render(){return i("div",{title:this.type},i("img",{class:"item-type-icon item-type-icon-margin",height:"16",src:this._getIconUrl(this.type,this.typeKeywords),width:"16"}))}_getIconUrl(e,t){const i=e&&e.toLowerCase()||"";let a=!1,o=!1,c=!1,r=!1,s=!1,l=!1,d="";return t=t||[],i.indexOf("service")>0||"feature collection"===i||"kml"===i||"wms"===i||"wmts"===i||"wfs"===i?(a=t.indexOf("Hosted Service")>-1,"feature service"===i||"feature collection"===i||"kml"===i||"wfs"===i?(r=t.indexOf("Table")>-1,o=t.indexOf("Route Layer")>-1,c=t.indexOf("Markup")>-1,s=-1!==t.indexOf("Spatiotemporal"),d=s&&r?"spatiotemporaltable":r?"table":o?"routelayer":c?"markup":s?"spatiotemporal":a?"featureshosted":"features"):"map service"===i||"wms"===i||"wmts"===i?(s=-1!==t.indexOf("Spatiotemporal"),l=-1!==t.indexOf("Relational"),d=s||l?"mapimages":a||t.indexOf("Tiled")>-1||"wmts"===i?"maptiles":"mapimages"):d="scene service"===i?t.indexOf("Line")>-1?"sceneweblayerline":t.indexOf("3DObject")>-1?"sceneweblayermultipatch":t.indexOf("Point")>-1?"sceneweblayerpoint":t.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":t.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":t.indexOf("Polygon")>-1?"sceneweblayerpolygon":t.indexOf("Building")>-1?"sceneweblayerbuilding":"sceneweblayer":"image service"===i?t.indexOf("Elevation 3D Layer")>-1?"elevationlayer":t.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===i?"streamlayer":"vector tile service"===i?"vectortile":"datastore catalog service"===i?"datastorecollection":"geocoding service"===i?"geocodeservice":"geoprocessing service"===i&&t.indexOf("Web Tool")>-1&&this.isPortal?"tool":"layers"):d="web map"===i||"cityengine web scene"===i?"maps":"web scene"===i?t.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===i||"mobile application"===i||"application"===i||"operation view"===i||"desktop application"===i?"apps":"map document"===i||"map package"===i||"published map"===i||"scene document"===i||"globe document"===i||"basemap package"===i||"mobile basemap package"===i||"mobile map package"===i||"project package"===i||"project template"===i||"pro map"===i||"layout"===i||"layer"===i&&t.indexOf("ArcGIS Pro")>-1||"explorer map"===i&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===i||"csv"===i||"shapefile"===i||"cad drawing"===i||"geojson"===i||"360 vr experience"===i||"netcdf"===i||"administrative report"===i?"datafiles":"explorer add in"===i||"desktop add in"===i||"windows viewer add in"===i||"windows viewer configuration"===i?"appsgray":"arcgis pro add in"===i||"arcgis pro configuration"===i?"addindesktop":"rule package"===i||"file geodatabase"===i||"sqlite geodatabase"===i||"csv collection"===i||"kml collection"===i||"windows mobile package"===i||"map template"===i||"desktop application template"===i||"gml"===i||"arcpad package"===i||"code sample"===i||"form"===i||"document link"===i||"operations dashboard add in"===i||"rules package"===i||"image"===i||"workflow manager package"===i||"explorer map"===i&&t.indexOf("Explorer Mapping Application")>-1||t.indexOf("Document")>-1?"datafilesgray":"network analysis service"===i||"geoprocessing service"===i||"geodata service"===i||"geometry service"===i||"geoprocessing package"===i||"locator package"===i||"geoprocessing sample"===i||"workflow manager service"===i?"toolsgray":"layer"===i||"layer package"===i||"explorer layer"===i?"layersgray":"scene package"===i?"scenepackage":"mobile scene package"===i?"mobilescenepackage":"tile package"===i||"compact tile package"===i?"tilepackage":"task file"===i?"taskfile":"report template"===i?"report-template":"statistical data collection"===i?"statisticaldatacollection":"insights workbook"===i?"workbook":"insights model"===i?"insightsmodel":"insights page"===i?"insightspage":"insights theme"===i?"insightstheme":"hub initiative"===i?"hubinitiative":"hub page"===i?"hubpage":"hub site application"===i?"hubsite":"hub event"===i?"hubevent":"relational database connection"===i?"relationaldatabaseconnection":"big data file share"===i?"datastorecollection":"image collection"===i?"imagecollection":"desktop style"===i?"desktopstyle":"style"===i?"style":"dashboard"===i?"dashboard":"raster function template"===i?"rasterprocessingtemplate":"vector tile package"===i?"vectortilepackage":"ortho mapping project"===i?"orthomappingproject":"ortho mapping template"===i?"orthomappingtemplate":"solution"===i?"solutions":"geopackage"===i?"geopackage":"deep learning package"===i?"deeplearningpackage":"real time analytic"===i?"realtimeanalytics":"big data analytic"===i?"bigdataanalytics":"feed"===i?"feed":"excalibur imagery project"===i?"excaliburimageryproject":"notebook"===i?"notebook":"storymap"===i?"storymap":"survey123 add in"===i?"survey123addin":"mission"===i?"mission":"mission report"===i?"missionreport":"quickcapture project"===i?"quickcaptureproject":"pro report"===i?"proreport":"urban model"===i?"urbanmodel":"web experience"===i?"experiencebuilder":"web experience template"===i?"webexperiencetemplate":"workflow"===i?"workflow":"kernel gateway connection"===i?"kernelgatewayconnection":"insights script"===i?"insightsscript":"hub initiative template"===i?"hubinitiativetemplate":"storymap theme"===i?"storymaptheme":"group"===i?"group":"maps",d?n("./item-icons/"+d+"16.png"):null}static get assetsDirs(){return["item-icons"]}get el(){return o(this)}};w.style='.item-type-icon{pointer-events:none;display:block;height:1rem;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}.item-type-icon-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.item-type-icon-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.item-type-icon-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.item-type-icon-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.item-type-icon-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.item-type-icon-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.item-type-icon-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.item-type-icon-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face .item-type-icon{letter-spacing:0em;font-family:"Consolas", "Andale Mono", "Lucida Console", "Monaco", monospace;font-weight:400;font-style:normal}.code-face .item-type-icon b,.code-face .item-type-icon strong{font-weight:400}.code-italic .item-type-icon{letter-spacing:0em;font-family:"Consolas", "Andale Mono", "Lucida Console", "Monaco", monospace;font-weight:400;font-style:italic}.code-italic .item-type-icon b,.code-italic .item-type-icon strong{font-weight:400}.item-type-icon{margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{-webkit-margin-end:0.375rem;margin-inline-end:0.375rem}';export{y as calcite_tree,v as calcite_tree_item,w as solution_item_icon}
@@ -1,11 +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 t,c as a,h as e,H as i,g as n,f as o}from"./p-be2e3b99.js";import{c as r}from"./p-9a9955db.js";import{u as c}from"./p-7daea1df.js";import{t as l}from"./p-32a67cb2.js";import{g as s}from"./p-a80b3880.js";import"./p-729708a3.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- * v1.0.0-beta.97
11
- */const d=class{constructor(e){t(this,e),this.calciteActionClick=a(this,"calciteActionClick",6),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.indicator=!1,this.intlLoading="Loading",this.loading=!1,this.scale="m",this.textEnabled=!1,this.mutationObserver=r("mutation",(()=>o(this))),this.handleTooltipSlotChange=t=>{const a=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")))[0];a&&(a.referenceElement=this.buttonEl)},this.calciteActionClickHandler=()=>{this.disabled||this.calciteActionClick.emit()}}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentDidRender(){c(this)}async setFocus(){var t;null===(t=this.buttonEl)||void 0===t||t.focus()}renderTextContainer(){const{text:t,textEnabled:a}=this;return t?e("div",{class:{"text-container":!0,"text-container--visible":a},key:"text-container"},t):null}renderIconContainer(){var t;const{loading:a,icon:i,scale:n,el:o,intlLoading:r}=this,c="l"===n?"m":"s",l=a?e("calcite-loader",{active:!0,inline:!0,label:r,scale:"l"===n?"l":"m"}):null,s=i?e("calcite-icon",{icon:i,scale:c}):null,d=l||s,m=d||(null===(t=o.children)||void 0===t?void 0:t.length),u=e("div",{class:{"slot-container":!0,"slot-container--hidden":a}},e("slot",null));return m?e("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},d,u):null}render(){const{compact:t,disabled:a,loading:n,textEnabled:o,label:r,text:c}=this,s=r||c,d={button:!0,"button--text-visible":o,"button--compact":t};return e(i,{onClick:this.calciteActionClickHandler},e("button",{"aria-busy":l(n),"aria-disabled":l(a),"aria-label":s,class:d,disabled:a,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()),e("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}))}get el(){return n(this)}};d.style='@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}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-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;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}';const m=class{constructor(a){t(this,a),this.active=!1,this.inline=!1,this.scale="m",this.value=0,this.text="",this.noPadding=!1}render(){const{el:t,inline:a,label:n,scale:o,text:r,type:c,value:l}=this,d=t.id||s(),m=a?this.getInlineSize(o):this.getSize(o),u=.45*m,v=`0 0 ${m} ${m}`,b="determinate"===c,f=2*u*Math.PI,h=l/100*f,p=f-h,g=Math.floor(l),k={r:u,cx:m/2,cy:m/2},y={"stroke-dasharray":`${h} ${p}`};return e(i,Object.assign({"aria-label":n,id:d,role:"progressbar"},b?{"aria-valuenow":g,"aria-valuemin":0,"aria-valuemax":100,complete:100===g}:{}),e("div",{class:"loader__svgs"},e("svg",{class:"loader__svg loader__svg--1",viewBox:v},e("circle",Object.assign({},k))),e("svg",{class:"loader__svg loader__svg--2",viewBox:v},e("circle",Object.assign({},k))),e("svg",Object.assign({class:"loader__svg loader__svg--3",viewBox:v},b?{style:y}:{}),e("circle",Object.assign({},k)))),r&&e("div",{class:"loader__text"},r),b&&e("div",{class:"loader__percentage"},l))}getSize(t){return{s:32,m:56,l:80}[t]}getInlineSize(t){return{s:12,m:16,l:20}[t]}get el(){return n(this)}};m.style='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:none}:host([active]){display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);-webkit-margin-before:calc(var(--calcite-loader-size) + 1.5rem);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;-webkit-margin-start:calc(var(--calcite-loader-size) / 2 * -1);margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;-webkit-margin-start:calc(var(--calcite-loader-size) / 2 * -1);margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);-webkit-margin-end:calc(var(--calcite-loader-size-inline) * 0.5);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}';export{d as calcite_action,m as calcite_loader}
@@ -1,6 +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 i,h as t,H as a,g as s}from"./p-be2e3b99.js";import{g as n}from"./p-0af82897.js";import"./p-3b010ce1.js";const e=class{constructor(t){i(this,t),this.defaultChecked=!0}async getConfigInfo(){return this._checkList.getConfigInfo()}async componentWillLoad(){await this._getTranslations()}render(){var i,s;const n=(null===(i=this._translations)||void 0===i?void 0:i.types)||{},e=Object.keys(n).map((i=>n[i]));return t(a,null,t("div",null,t("div",{class:"padding-block-end-1"},t("calcite-label",{class:"label-spacing"},null===(s=this._translations)||void 0===s?void 0:s.drawTools)),t("div",{class:"padding-inline-start-1"},t("check-list",{defaultChecked:this.defaultChecked,ref:i=>{this._checkList=i},values:e}))))}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}get el(){return s(this)}};e.style=":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";export{e as config_draw_tools}
@@ -1,6 +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 t,h as a,H as i,g as s}from"./p-be2e3b99.js";import{g as e}from"./p-0af82897.js";import{g as n}from"./p-fe0fdd8b.js";import"./p-3b010ce1.js";import"./p-6b9dc092.js";const r=class{constructor(a){t(this,a),this.defaultChecked=!0,this._layerNames=[]}async watchStateHandler(){await this._setLayers()}async getConfigInfo(){return this._checkList.getConfigInfo()}async componentWillLoad(){await this._setLayers(),await this._getTranslations()}render(){var t;return a(i,null,a("div",null,a("div",{class:"padding-block-end-1"},a("calcite-label",{class:"label-spacing"},null===(t=this._translations)||void 0===t?void 0:t.addresseeLayers)),a("div",{class:"padding-inline-start-1"},a("check-list",{defaultChecked:this.defaultChecked,ref:t=>{this._checkList=t},values:this._layerNames}))))}async _setLayers(){this.mapView&&(this._layerNames=await n(this.mapView))}async _getTranslations(){const t=await e(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{mapView:["watchStateHandler"]}}};r.style=":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";export{r as config_layer_picker}
@@ -1,11 +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 t,c as n,h as i,g as e}from"./p-be2e3b99.js";import{g as a}from"./p-a80b3880.js";import{u as o}from"./p-7daea1df.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- * v1.0.0-beta.97
11
- */const c=class{constructor(i){t(this,i),this.calciteTileSelectChange=n(this,"calciteTileSelectChange",6),this.checked=!1,this.disabled=!1,this.hidden=!1,this.inputEnabled=!1,this.inputAlignment="start",this.type="radio",this.width="auto",this.guid=`calcite-tile-select-${a()}`,this.focused=!1}checkedChanged(t){this.input.checked=t}nameChanged(t){this.input.name=t}async setFocus(){var t;null===(t=this.input)||void 0===t||t.setFocus()}checkboxChangeHandler(t){const n=t.target;n===this.input&&(this.checked=n.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){t.target===this.input&&(this.focused=t.detail),t.stopPropagation()}radioButtonChangeHandler(t){const n=t.target;n===this.input&&(this.checked=n.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){const n=t.target;n===this.input&&(this.checked=n.checked),t.stopPropagation()}radioButtonFocusBlurHandler(t){const n=t.target;n===this.input&&(this.focused=n.focused),t.stopPropagation()}click(t){["calcite-tile","calcite-tile-select"].includes(t.target.localName)&&this.input.click()}mouseenter(){"calcite-radio-button"===this.input.localName&&(this.input.hovered=!0),"calcite-checkbox"===this.input.localName&&(this.input.hovered=!0)}mouseleave(){"calcite-radio-button"===this.input.localName&&(this.input.hovered=!1),"calcite-checkbox"===this.input.localName&&(this.input.hovered=!1)}connectedCallback(){this.renderInput()}disconnectedCallback(){this.input.parentNode.removeChild(this.input)}componentDidRender(){o(this)}renderInput(){this.input=document.createElement("radio"===this.type?"calcite-radio-button":"calcite-checkbox"),this.input.checked=this.checked,this.input.disabled=this.disabled,this.input.hidden=this.hidden,this.input.id=this.guid,this.input.label=this.heading||this.name||"",this.name&&(this.input.name=this.name),this.value&&(this.input.value=null!=this.value?this.value.toString():""),this.el.insertAdjacentElement("beforeend",this.input)}render(){const{checked:t,description:n,disabled:e,focused:a,heading:o,icon:c,inputAlignment:l,inputEnabled:s,width:r}=this;return i("div",{class:{checked:t,container:!0,description:Boolean(n),"description-only":Boolean(!o&&!c&&n),disabled:e,focused:a,heading:Boolean(o),"heading-only":o&&!c&&!n,icon:Boolean(c),"icon-only":!o&&c&&!n,"input-alignment-end":"end"===l,"input-alignment-start":"start"===l,"input-enabled":s,"large-visual":o&&c&&!n,"width-auto":"auto"===r,"width-full":"full"===r}},i("calcite-tile",{active:t,description:n,embed:!0,heading:o,icon:c}),i("slot",null))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};c.style="@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;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;block-size:100%;max-inline-size:300px;padding:0.75rem;position:relative;vertical-align:top;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host .container.checked{z-index:1;box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused{outline-color:transparent}:host .container.focused:not(.disabled):not(.input-enabled){outline:2px solid var(--calcite-ui-brand);outline-offset:-4px;box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:flex;max-inline-size:none}:host .container.width-full calcite-tile{flex:1 1 auto}:host(:hover) .container:not(.input-enabled){box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{c as calcite_tile_select}
@@ -1,6 +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 t,c as e,g as s}from"./p-be2e3b99.js";const r=class{constructor(s){t(this,s),this.stateLoaded=e(this,"stateLoaded",7),this.value="",this.templates=[]}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const e=t.target[t.attributeName];if("attributes"===t.type&&"value"===t.attributeName&&e!==t.oldValue&&""!==e)return!0}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}get el(){return s(this)}};export{r as store_manager}
@@ -1,6 +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{c as e}from"./p-3b010ce1.js";var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=e((function(e){var t=Array.prototype.concat,n=Array.prototype.slice,r=e.exports=function(e){for(var r,a=[],s=0,o=e.length;s<o;s++){var i=e[s];(r=i)&&"string"!=typeof r&&(r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&"String"!==r.constructor.name))?a=t.call(a,n.call(i)):a.push(i)}return a};r.wrap=function(e){return function(){return e(r(arguments))}}})),r=e((function(e){var r=Object.hasOwnProperty,a={};for(var s in t)r.call(t,s)&&(a[t[s]]=s);var o=e.exports={to:{},get:{}};function i(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}o.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=o.get.hsl(e),n="hsl";break;case"hwb":t=o.get.hwb(e),n="hwb";break;default:t=o.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},o.get.rgb=function(e){if(!e)return null;var n,a,s,o=[0,0,0,1];if(n=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(s=n[2],n=n[1],a=0;a<3;a++){var l=2*a;o[a]=parseInt(n.slice(l,l+2),16)}s&&(o[3]=parseInt(s,16)/255)}else if(n=e.match(/^#([a-f0-9]{3,4})$/i)){for(s=(n=n[1])[3],a=0;a<3;a++)o[a]=parseInt(n[a]+n[a],16);s&&(o[3]=parseInt(s+s,16)/255)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)o[a]=parseInt(n[a+1],0);n[4]&&(o[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}else{if(!(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=e.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:r.call(t,n[1])?((o=t[n[1]])[3]=1,o):null:null;for(a=0;a<3;a++)o[a]=Math.round(2.55*parseFloat(n[a+1]));n[4]&&(o[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}for(a=0;a<3;a++)o[a]=i(o[a],0,255);return o[3]=i(o[3],0,1),o},o.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(n)?1:n,0,1)]}return null},o.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(n)?1:n,0,1)]}return null},o.to.hex=function(){var e=n(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},o.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},o.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+a+"%)":"rgba("+t+"%, "+r+"%, "+a+"%, "+e[3]+")"},o.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},o.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},o.to.keyword=function(e){return a[e.slice(0,3)]}})),a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const s={};for(const e of Object.keys(a))s[a[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var i=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}function l(e,t){return function(n){return t(e(n))}}function u(e,t){const n=[t[e].parent,e];let r=i[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=l(i[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),s=Math.max(t,n,r),o=s-a;let i,l;s===a?i=0:t===s?i=(n-r)/o:n===s?i=2+(r-t)/o:r===s&&(i=4+(t-n)/o),i=Math.min(60*i,360),i<0&&(i+=360);const u=(a+s)/2;return l=s===a?0:u<=.5?o/(s+a):o/(2-s-a),[i,100*l,100*u]},o.rgb.hsv=function(e){let t,n,r,a,s;const o=e[0]/255,i=e[1]/255,l=e[2]/255,u=Math.max(o,i,l),c=u-Math.min(o,i,l),h=function(e){return(u-e)/6/c+.5};return 0===c?(a=0,s=0):(s=c/u,t=h(o),n=h(i),r=h(l),o===u?a=r-n:i===u?a=1/3+t-r:l===u&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*s,100*u]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,100*s,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r);return[100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const t=s[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(a)){const s=((o=e)[0]-(i=a[t])[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2;s<r&&(r=s,n=t)}var o,i;return n},o.keyword.rgb=function(e){return a[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,s,o;if(0===n)return o=255*r,[o,o,o];a=r<.5?r*(1+n):r+n-r*n;const i=2*r-a,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?i+6*(a-i)*s:2*s<1?a:3*s<2?i+(a-i)*(2/3-s)*6:i,l[e]=255*o;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const s=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,a*=s<=1?s:2-s,[t,100*(0===r?2*a/(s+a):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,s=t-Math.floor(t),o=255*r*(1-n),i=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,a){case 0:return[r,l,o];case 1:return[i,r,o];case 2:return[o,r,l];case 3:return[o,i,r];case 4:return[l,o,r];case 5:return[r,o,i]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let s,o;o=(2-n)*r;const i=(2-n)*a;return s=n*a,s/=i<=1?i:2-i,s=s||0,o/=2,[t,100*s,100*o]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let s;a>1&&(n/=a,r/=a);const o=Math.floor(6*t),i=1-r;s=6*t-o,0!=(1&o)&&(s=1-s);const l=n+s*(i-n);let u,c,h;switch(o){default:case 6:case 0:u=i,c=l,h=n;break;case 1:u=l,c=i,h=n;break;case 2:u=n,c=i,h=l;break;case 3:u=n,c=l,h=i;break;case 4:u=l,c=n,h=i;break;case 5:u=i,c=n,h=l}return[255*u,255*c,255*h]},o.cmyk.rgb=function(e){const t=e[1]/100,n=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,s,o;return a=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*a,255*s,255*o]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const a=n**3,s=t**3,o=r**3;return n=a>.008856?a:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;return a=360*Math.atan2(r,n)/2/Math.PI,a<0&&(a+=360),[t,Math.sqrt(n*n+r*r),a]},o.lch.lab=function(e){const t=e[1],n=e[2]/360*2*Math.PI;return[e[0],t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),o=a-s;let i,l;return i=o<1?s/(1-o):0,l=o<=0?0:a===t?(n-r)/o%6:a===n?2+(r-t)/o:4+(t-n)/o,l/=6,l%=1,[360*l,100*o,100*i]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},o.hsv.hcg=function(e){const t=e[2]/100,n=e[1]/100*t;let r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},o.hcg.rgb=function(e){const t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];const r=[0,0,0],a=e[0]/360%1*6,s=a%1,o=1-s;let i=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return i=(1-t)*n,[255*(t*r[0]+i),255*(t*r[1]+i),255*(t*r[2]+i)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=1-e[2]/100,n=t-e[1]/100;let r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const c={};Object.keys(i).forEach((e=>{c[e]={},Object.defineProperty(c[e],"channels",{value:i[e].channels}),Object.defineProperty(c[e],"labels",{value:i[e].labels});const t=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(i);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(i[e]);for(let a=r.length,s=0;s<a;s++){const a=r[s],o=t[a];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(a))}}return t}(e),n={},r=Object.keys(t);for(let e=r.length,a=0;a<e;a++){const e=r[a];null!==t[e].parent&&(n[e]=u(e,t))}return n}(e);Object.keys(t).forEach((n=>{const r=t[n];c[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),c[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var h=c;const f=["keyword","gray","hex"],d={};for(const e of Object.keys(h))d[[...h[e].labels].sort().join("")]=e;const b={};function g(e,t){if(!(this instanceof g))return new g(e,t);if(t&&t in f&&(t=null),t&&!(t in h))throw new Error("Unknown model: "+t);let n,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof g)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=h[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=h[this.model].channels;const n=Array.prototype.slice.call(e,0,a);this.color=k(n,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in d))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=d[r];const{labels:a}=h[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=k(s)}if(b[this.model])for(a=h[this.model].channels,n=0;n<a;n++){const e=b[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}g.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=h[this.model],{labels:n}=h[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new g([...this.color.map(y(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new g([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:m("rgb",0,p(255)),green:m("rgb",1,p(255)),blue:m("rgb",2,p(255)),hue:m(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:m("hsl",1,p(100)),lightness:m("hsl",2,p(100)),saturationv:m("hsv",1,p(100)),value:m("hsv",2,p(100)),chroma:m("hcg",1,p(100)),gray:m("hcg",2,p(100)),white:m("hwb",1,p(100)),wblack:m("hwb",2,p(100)),cyan:m("cmyk",0,p(100)),magenta:m("cmyk",1,p(100)),yellow:m("cmyk",2,p(100)),black:m("cmyk",3,p(100)),x:m("xyz",0,p(95.047)),y:m("xyz",1,p(100)),z:m("xyz",2,p(108.833)),l:m("lab",0,p(100)),a:m("lab",1),b:m("lab",2),keyword(e){return void 0!==e?new g(e):h[this.model].keyword(this.color)},hex(e){return void 0!==e?new g(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new g(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return g.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=void 0===t?.5:t,s=2*a-1,o=n.alpha()-r.alpha(),i=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,l=1-i;return g.rgb(i*n.red()+l*r.red(),i*n.green()+l*r.green(),i*n.blue()+l*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(h)){if(f.includes(e))continue;const{channels:t}=h[e];g.prototype[e]=function(...t){return this.model===e?new g(this):new g(t.length>0?t:[...(n=h[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},g[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=k(n,t)),new g(r,e)}}function y(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function m(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(b[r]||(b[r]=[]))[t]=n;return e=e[0],function(r){let a;return void 0!==r?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function k(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}var w=g;export{w as c}