@esri/solutions-components 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. package/dist/cjs/buffer-tools_6.cjs.entry.js +8 -5
  2. package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-input-message_5.cjs.entry.js +6 -4
  4. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
  5. package/dist/cjs/{csvUtils-83af7ae1.js → csvUtils-34666909.js} +1 -1
  6. package/dist/cjs/{interfaces-772edf61.js → interfaces-17c631bf.js} +1 -1
  7. package/dist/cjs/layer-table.cjs.entry.js +3 -3
  8. package/dist/cjs/map-card.cjs.entry.js +1 -1
  9. package/dist/cjs/{mapViewUtils-55ac76cb.js → mapViewUtils-24d1d859.js} +1 -1
  10. package/dist/cjs/public-notification.cjs.entry.js +16 -10
  11. package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
  12. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  13. package/dist/cjs/{solution-store-39726b81.js → solution-store-2dbab624.js} +1 -1
  14. package/dist/collection/components/buffer-tools/buffer-tools.js +2 -2
  15. package/dist/collection/components/map-draw-tools/map-draw-tools.js +2 -1
  16. package/dist/collection/components/public-notification/public-notification.js +14 -8
  17. package/dist/collection/components/refine-selection/refine-selection.js +4 -2
  18. package/dist/collection/components/refine-selection-tools/refine-selection-tools.css +1 -0
  19. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +3 -1
  20. package/dist/collection/demos/new-public-notification.html +2 -1
  21. package/dist/collection/utils/interfaces.js +1 -1
  22. package/dist/collection/utils/interfaces.ts +2 -2
  23. package/dist/components/interfaces3.js +1 -1
  24. package/dist/components/map-draw-tools2.js +2 -1
  25. package/dist/components/public-notification.js +14 -8
  26. package/dist/components/refine-selection-tools2.js +4 -2
  27. package/dist/components/refine-selection2.js +4 -2
  28. package/dist/esm/buffer-tools_6.entry.js +8 -5
  29. package/dist/esm/calcite-combobox_3.entry.js +2 -2
  30. package/dist/esm/calcite-input-message_5.entry.js +6 -4
  31. package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
  32. package/dist/esm/{csvUtils-eb231cfb.js → csvUtils-ae3004b9.js} +1 -1
  33. package/dist/esm/{interfaces-3b23a5f9.js → interfaces-d0d83efa.js} +1 -1
  34. package/dist/esm/layer-table.entry.js +3 -3
  35. package/dist/esm/map-card.entry.js +1 -1
  36. package/dist/esm/{mapViewUtils-e5d8a1e1.js → mapViewUtils-541e7a3c.js} +1 -1
  37. package/dist/esm/public-notification.entry.js +16 -10
  38. package/dist/esm/solution-configuration.entry.js +2 -2
  39. package/dist/esm/solution-contents_3.entry.js +2 -2
  40. package/dist/esm/{solution-store-c0bf9200.js → solution-store-41e15f1c.js} +1 -1
  41. package/dist/solutions-components/demos/new-public-notification.html +2 -1
  42. package/dist/solutions-components/p-05e64bd1.js +498 -2
  43. package/dist/solutions-components/p-08a95b33.entry.js +138 -0
  44. package/dist/solutions-components/p-0da5bbdf.entry.js +91 -0
  45. package/dist/solutions-components/p-0ef91144.entry.js +913 -0
  46. package/dist/solutions-components/p-0f523243.entry.js +1916 -0
  47. package/dist/solutions-components/p-11b9510e.entry.js +173 -0
  48. package/dist/solutions-components/p-1b875d94.entry.js +58 -0
  49. package/dist/solutions-components/p-1c567f3a.js +23 -16
  50. package/dist/solutions-components/p-1c883db9.entry.js +43 -0
  51. package/dist/solutions-components/p-1f225056.js +322 -0
  52. package/dist/solutions-components/p-1f499e67.entry.js +72 -0
  53. package/dist/solutions-components/p-20d3d758.entry.js +881 -0
  54. package/dist/solutions-components/p-2274ac9e.entry.js +160 -0
  55. package/dist/solutions-components/p-23ec5ac5.entry.js +93 -0
  56. package/dist/solutions-components/p-2447798c.entry.js +155 -0
  57. package/dist/solutions-components/p-2525e691.entry.js +432 -0
  58. package/dist/solutions-components/p-2561f5b5.js +4092 -0
  59. package/dist/solutions-components/p-29f887c0.entry.js +234 -0
  60. package/dist/solutions-components/p-2a0d8047.entry.js +345 -0
  61. package/dist/solutions-components/p-2c177e6a.entry.js +101 -0
  62. package/dist/solutions-components/p-2e9ed892.js +46 -1
  63. package/dist/solutions-components/p-316f56db.js +219 -2
  64. package/dist/solutions-components/p-327f3ebf.entry.js +98 -0
  65. package/dist/solutions-components/p-356f8b54.entry.js +138 -0
  66. package/dist/solutions-components/p-359c58de.entry.js +172 -0
  67. package/dist/solutions-components/p-37336c0d.entry.js +116 -0
  68. package/dist/solutions-components/p-374a5031.js +105 -2
  69. package/dist/solutions-components/p-39ea6ef4.entry.js +71 -0
  70. package/dist/solutions-components/p-3b010ce1.js +17 -1
  71. package/dist/solutions-components/p-4307dacd.js +194 -1
  72. package/dist/solutions-components/p-44da2507.js +405 -14
  73. package/dist/solutions-components/p-46bdffe8.entry.js +54 -0
  74. package/dist/solutions-components/p-4894bbeb.js +53 -2
  75. package/dist/solutions-components/p-4cd569f1.entry.js +1298 -0
  76. package/dist/solutions-components/p-4d4160f9.entry.js +121 -0
  77. package/dist/solutions-components/p-4e32bf8c.js +482 -1
  78. package/dist/solutions-components/p-4e9cbd32.entry.js +184 -0
  79. package/dist/solutions-components/p-508317b3.js +13 -2
  80. package/dist/solutions-components/p-54697d58.entry.js +198 -0
  81. package/dist/solutions-components/p-55c79103.entry.js +311 -0
  82. package/dist/solutions-components/p-57fd19c0.entry.js +706 -0
  83. package/dist/solutions-components/p-59b48fde.entry.js +443 -0
  84. package/dist/solutions-components/p-60e0e6a0.entry.js +214 -0
  85. package/dist/solutions-components/p-621d0534.entry.js +123 -0
  86. package/dist/solutions-components/p-63f6e8f1.js +14 -1
  87. package/dist/solutions-components/p-66aeec57.entry.js +61 -0
  88. package/dist/solutions-components/p-69834f46.entry.js +618 -0
  89. package/dist/solutions-components/p-6d9da8e5.entry.js +21530 -0
  90. package/dist/solutions-components/p-6e0da576.js +13 -1
  91. package/dist/solutions-components/p-6ec3f294.entry.js +106 -0
  92. package/dist/solutions-components/p-6fe17794.js +9 -1
  93. package/dist/solutions-components/p-7024cb16.entry.js +72 -0
  94. package/dist/solutions-components/p-70535506.entry.js +226 -0
  95. package/dist/solutions-components/p-708a63a8.js +12 -1
  96. package/dist/solutions-components/p-729708a3.js +14 -1
  97. package/dist/solutions-components/p-73e23995.js +6 -1
  98. package/dist/solutions-components/p-74b29d75.entry.js +231 -0
  99. package/dist/solutions-components/p-74b7ee25.entry.js +711 -0
  100. package/dist/solutions-components/p-77182c3a.js +3015 -1
  101. package/dist/solutions-components/p-78b3ef80.entry.js +456 -0
  102. package/dist/solutions-components/p-79709c19.js +60 -3
  103. package/dist/solutions-components/p-7a46ef97.js +181 -2
  104. package/dist/solutions-components/p-7be159e6.entry.js +175 -0
  105. package/dist/solutions-components/p-7d4451c2.entry.js +71 -0
  106. package/dist/solutions-components/p-7daea1df.js +41 -1
  107. package/dist/solutions-components/p-7e39e5ad.entry.js +102 -0
  108. package/dist/solutions-components/p-7fb45059.entry.js +43 -0
  109. package/dist/solutions-components/p-815533de.js +306 -3
  110. package/dist/solutions-components/p-816622ca.entry.js +248 -0
  111. package/dist/solutions-components/p-83166522.js +205 -2
  112. package/dist/solutions-components/p-83bd1991.entry.js +36 -0
  113. package/dist/solutions-components/p-856464d7.entry.js +572 -0
  114. package/dist/solutions-components/p-8c349bad.entry.js +347 -0
  115. package/dist/solutions-components/p-8dccb390.entry.js +1986 -0
  116. package/dist/solutions-components/p-904c185a.entry.js +228 -0
  117. package/dist/solutions-components/p-9092f8b3.entry.js +156 -0
  118. package/dist/solutions-components/p-9371145a.entry.js +477 -0
  119. package/dist/solutions-components/p-93d3119d.js +1948 -1
  120. package/dist/solutions-components/p-95ec8062.entry.js +173 -0
  121. package/dist/solutions-components/p-991ee695.js +109 -1
  122. package/dist/solutions-components/p-9a57dab7.entry.js +213 -0
  123. package/dist/solutions-components/p-9a9955db.js +41 -1
  124. package/dist/solutions-components/p-9c1ebc90.js +35 -16
  125. package/dist/solutions-components/p-9eba5c66.js +399 -3
  126. package/dist/solutions-components/p-a033a507.entry.js +252 -0
  127. package/dist/solutions-components/p-a3773415.entry.js +1132 -0
  128. package/dist/solutions-components/p-a44fe40f.entry.js +94 -0
  129. package/dist/solutions-components/p-a5b1ab03.js +33 -3
  130. package/dist/solutions-components/p-a5b2c13d.entry.js +723 -0
  131. package/dist/solutions-components/p-a6d729b7.entry.js +85 -0
  132. package/dist/solutions-components/p-a8005026.entry.js +565 -0
  133. package/dist/solutions-components/p-a80b3880.js +14 -1
  134. package/dist/solutions-components/p-a89198a3.entry.js +2620 -0
  135. package/dist/solutions-components/p-aa04bd1f.entry.js +95 -0
  136. package/dist/solutions-components/p-aa0a0922.entry.js +80 -0
  137. package/dist/solutions-components/p-ae1fd76b.js +11 -1
  138. package/dist/solutions-components/p-b2cf435e.entry.js +87 -0
  139. package/dist/solutions-components/p-b359dc78.js +41 -1
  140. package/dist/solutions-components/p-b57bc4eb.entry.js +71 -0
  141. package/dist/solutions-components/p-b75cc407.entry.js +145 -0
  142. package/dist/solutions-components/p-b911cb75.entry.js +71 -0
  143. package/dist/solutions-components/p-b965e177.entry.js +335 -0
  144. package/dist/solutions-components/p-b978636e.js +14 -1
  145. package/dist/solutions-components/p-ba10a5c8.entry.js +42 -0
  146. package/dist/solutions-components/p-bd67334c.js +122 -2
  147. package/dist/solutions-components/p-bde20dba.entry.js +212 -0
  148. package/dist/solutions-components/p-be0b5a94.entry.js +248 -0
  149. package/dist/solutions-components/p-c023e6a1.js +2028 -2
  150. package/dist/solutions-components/p-c27b0c2d.entry.js +150 -0
  151. package/dist/solutions-components/p-c579ed60.entry.js +447 -0
  152. package/dist/solutions-components/p-c92bc231.js +101 -2
  153. package/dist/solutions-components/p-cc815aca.js +839 -16
  154. package/dist/solutions-components/p-cc8beabb.entry.js +695 -0
  155. package/dist/solutions-components/p-cdc46c0c.js +1751 -2
  156. package/dist/solutions-components/p-d12e6992.entry.js +118 -0
  157. package/dist/solutions-components/p-d1dfed6b.entry.js +179 -0
  158. package/dist/solutions-components/p-d48a24e6.js +754 -2
  159. package/dist/solutions-components/p-d96ee3ef.entry.js +579 -0
  160. package/dist/solutions-components/p-dbc9a5a8.js +80 -0
  161. package/dist/solutions-components/p-dcdbe712.entry.js +278 -0
  162. package/dist/solutions-components/p-de39206f.entry.js +113 -0
  163. package/dist/solutions-components/p-de5416e8.js +28 -1
  164. package/dist/solutions-components/p-df420d54.entry.js +213 -0
  165. package/dist/solutions-components/p-e3138cf0.entry.js +20 -0
  166. package/dist/solutions-components/p-e4845fec.entry.js +152 -0
  167. package/dist/solutions-components/p-e611d8c8.js +28 -1
  168. package/dist/solutions-components/p-e947d3b0.js +5 -1
  169. package/dist/solutions-components/p-ea534300.js +41 -2
  170. package/dist/solutions-components/p-ec84ee85.entry.js +55 -0
  171. package/dist/solutions-components/p-ed36c637.entry.js +85 -0
  172. package/dist/solutions-components/p-f0add71c.js +74 -0
  173. package/dist/solutions-components/p-f42e014b.js +171 -2
  174. package/dist/solutions-components/p-fc02e7de.entry.js +308 -0
  175. package/dist/solutions-components/p-fc884dd6.js +28 -16
  176. package/dist/solutions-components/p-fcbfa59c.entry.js +181 -0
  177. package/dist/solutions-components/p-fdc5cf5f.entry.js +138 -0
  178. package/dist/solutions-components/solutions-components.esm.js +20 -1
  179. package/dist/solutions-components/utils/interfaces.ts +2 -2
  180. package/dist/types/components/buffer-tools/buffer-tools.d.ts +2 -2
  181. package/dist/types/components/public-notification/public-notification.d.ts +9 -1
  182. package/dist/types/components.d.ts +2 -2
  183. package/package.json +1 -1
  184. package/dist/solutions-components/p-021432b8.entry.js +0 -12
  185. package/dist/solutions-components/p-03440b1e.entry.js +0 -11
  186. package/dist/solutions-components/p-0512635b.entry.js +0 -6
  187. package/dist/solutions-components/p-086ef115.entry.js +0 -29
  188. package/dist/solutions-components/p-0b4bf57f.entry.js +0 -6
  189. package/dist/solutions-components/p-0c088725.entry.js +0 -6
  190. package/dist/solutions-components/p-0f820c08.entry.js +0 -6
  191. package/dist/solutions-components/p-164780a0.entry.js +0 -6
  192. package/dist/solutions-components/p-179a68a0.entry.js +0 -6
  193. package/dist/solutions-components/p-184b5005.entry.js +0 -11
  194. package/dist/solutions-components/p-1d082fee.entry.js +0 -11
  195. package/dist/solutions-components/p-1e6c02a2.entry.js +0 -11
  196. package/dist/solutions-components/p-20a58e62.entry.js +0 -17
  197. package/dist/solutions-components/p-20b2458c.entry.js +0 -11
  198. package/dist/solutions-components/p-245d47c1.entry.js +0 -6
  199. package/dist/solutions-components/p-2cb057a9.entry.js +0 -11
  200. package/dist/solutions-components/p-2cc72806.entry.js +0 -23
  201. package/dist/solutions-components/p-2de1db9c.entry.js +0 -11
  202. package/dist/solutions-components/p-2e9c7055.entry.js +0 -11
  203. package/dist/solutions-components/p-2ed5e6c8.entry.js +0 -11
  204. package/dist/solutions-components/p-3109d940.entry.js +0 -6
  205. package/dist/solutions-components/p-31a8bcfa.entry.js +0 -6
  206. package/dist/solutions-components/p-3649acb3.entry.js +0 -18
  207. package/dist/solutions-components/p-3f88ba73.entry.js +0 -6
  208. package/dist/solutions-components/p-3fa9b3c8.js +0 -36
  209. package/dist/solutions-components/p-40c41709.entry.js +0 -6
  210. package/dist/solutions-components/p-40e963c7.entry.js +0 -11
  211. package/dist/solutions-components/p-40f480da.entry.js +0 -11
  212. package/dist/solutions-components/p-49d5d2d3.entry.js +0 -11
  213. package/dist/solutions-components/p-4f7049a4.entry.js +0 -11
  214. package/dist/solutions-components/p-506e4d78.entry.js +0 -6
  215. package/dist/solutions-components/p-576fdcab.entry.js +0 -6
  216. package/dist/solutions-components/p-5bd0cf34.entry.js +0 -23
  217. package/dist/solutions-components/p-65e177f1.entry.js +0 -6
  218. package/dist/solutions-components/p-67d710c2.entry.js +0 -6
  219. package/dist/solutions-components/p-7268b445.entry.js +0 -11
  220. package/dist/solutions-components/p-75ea4667.entry.js +0 -6
  221. package/dist/solutions-components/p-778c0a36.entry.js +0 -17
  222. package/dist/solutions-components/p-7a22509b.entry.js +0 -12
  223. package/dist/solutions-components/p-7bff51db.entry.js +0 -6
  224. package/dist/solutions-components/p-7d2d0d5d.entry.js +0 -6
  225. package/dist/solutions-components/p-7f0036f1.entry.js +0 -11
  226. package/dist/solutions-components/p-8060fb94.entry.js +0 -6
  227. package/dist/solutions-components/p-80a1b305.entry.js +0 -6
  228. package/dist/solutions-components/p-81eae877.entry.js +0 -12
  229. package/dist/solutions-components/p-84e86b8b.entry.js +0 -6
  230. package/dist/solutions-components/p-851e04ae.entry.js +0 -6
  231. package/dist/solutions-components/p-9106950a.entry.js +0 -11
  232. package/dist/solutions-components/p-979804a4.entry.js +0 -11
  233. package/dist/solutions-components/p-9862baa8.entry.js +0 -11
  234. package/dist/solutions-components/p-9b5a9117.entry.js +0 -12
  235. package/dist/solutions-components/p-9deff0c2.entry.js +0 -6
  236. package/dist/solutions-components/p-9f400eeb.entry.js +0 -6
  237. package/dist/solutions-components/p-a0639ad1.entry.js +0 -11
  238. package/dist/solutions-components/p-a33c044e.entry.js +0 -6
  239. package/dist/solutions-components/p-a516c658.entry.js +0 -6
  240. package/dist/solutions-components/p-aa0ef36d.entry.js +0 -11
  241. package/dist/solutions-components/p-aaccbdf3.entry.js +0 -18
  242. package/dist/solutions-components/p-ab03a5c9.entry.js +0 -11
  243. package/dist/solutions-components/p-ad469b92.entry.js +0 -11
  244. package/dist/solutions-components/p-adc86ac3.entry.js +0 -6
  245. package/dist/solutions-components/p-addc1156.entry.js +0 -11
  246. package/dist/solutions-components/p-ae846934.entry.js +0 -11
  247. package/dist/solutions-components/p-b0572fc4.entry.js +0 -37
  248. package/dist/solutions-components/p-b4e476b7.js +0 -257
  249. package/dist/solutions-components/p-b668daf8.js +0 -21
  250. package/dist/solutions-components/p-b6e6eae1.entry.js +0 -6
  251. package/dist/solutions-components/p-bc317a7f.entry.js +0 -6
  252. package/dist/solutions-components/p-be41429f.js +0 -21
  253. package/dist/solutions-components/p-bf6b6353.entry.js +0 -11
  254. package/dist/solutions-components/p-c2e3dfbb.entry.js +0 -11
  255. package/dist/solutions-components/p-c4afae53.entry.js +0 -12
  256. package/dist/solutions-components/p-c9da1c26.entry.js +0 -6
  257. package/dist/solutions-components/p-cbf8cd49.entry.js +0 -6
  258. package/dist/solutions-components/p-cc1a064a.entry.js +0 -11
  259. package/dist/solutions-components/p-d09a168c.entry.js +0 -6
  260. package/dist/solutions-components/p-d377f913.entry.js +0 -11
  261. package/dist/solutions-components/p-d4cefead.entry.js +0 -37
  262. package/dist/solutions-components/p-d7bc0baf.entry.js +0 -16
  263. package/dist/solutions-components/p-d8968487.entry.js +0 -11
  264. package/dist/solutions-components/p-e00a0b86.entry.js +0 -11
  265. package/dist/solutions-components/p-e9a7ed49.entry.js +0 -11
  266. package/dist/solutions-components/p-ec27e493.entry.js +0 -11
  267. package/dist/solutions-components/p-ed6404eb.entry.js +0 -6
  268. package/dist/solutions-components/p-ef21e195.entry.js +0 -23
  269. package/dist/solutions-components/p-f6068a2d.entry.js +0 -11
  270. package/dist/solutions-components/p-f6c4cff3.entry.js +0 -11
  271. package/dist/solutions-components/p-f847291f.entry.js +0 -6
  272. package/dist/solutions-components/p-f90fd262.entry.js +0 -11
  273. package/dist/solutions-components/p-fc973005.entry.js +0 -6
  274. package/dist/solutions-components/p-ff9fb6bc.entry.js +0 -11
@@ -3,9 +3,188 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{i as n,g as e,b as t}from"./p-9eba5c66.js";
6
+ import { i as isValidNumber, g as getSupportedLocale, b as getSupportedNumberingSystem } from './p-9eba5c66.js';
7
+
7
8
  /*!
8
9
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
10
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
11
  * v1.0.0-beta.97
11
- */const r=5;function u(n,r,u=!0){try{const i={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:t(r)};return u&&(i.second="2-digit"),new Intl.DateTimeFormat(e(n),i)}catch(e){throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${n}`)}}function i(n){const e=n.toString();return n>=0&&n<=9?e.padStart(2,"0"):e}function o(n){if(!c(n))return null;const[e,t,r]=n.split(":"),u=i(parseInt(e)),o=i(parseInt(t));return r?`${u}:${o}:${i(parseInt(r))}`:`${u}:${o}`}function l(n,e){return a("meridiem",u(n,e).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24"}function a(n,e){var t,r,u,i;if(!n||!e)return null;if("hourSuffix"===n){const n=e.indexOf(e.find((({type:n})=>"hour"===n))),r=e.indexOf(e.find((({type:n})=>"minute"===n))),u=e[n+1];return u&&"literal"===u.type&&r-n==2&&(null===(t=u.value)||void 0===t?void 0:t.trim())||null}if("minuteSuffix"===n){const n=e.indexOf(e.find((({type:n})=>"minute"===n))),t=e.indexOf(e.find((({type:n})=>"second"===n))),u=e[n+1];return u&&"literal"===u.type&&t-n==2&&(null===(r=u.value)||void 0===r?void 0:r.trim())||null}if("secondSuffix"===n){const n=e.indexOf(e.find((({type:n})=>"second"===n))),t=e[n+1];return t&&"literal"===t.type&&(null===(u=t.value)||void 0===u?void 0:u.trim())||null}return(null===(i=e.find((({type:e})=>"meridiem"==n?"dayPeriod"===e:e===n)))||void 0===i?void 0:i.value)||null}function s(e){if(!n(e))return null;const t=parseInt(e);return t>=0&&t<=11?"AM":"PM"}function c(e){if(!e||e.startsWith(":")||e.endsWith(":"))return!1;const t=e.split(":");if(!(t.length>1&&t.length<4))return!1;const[r,u,i]=t,o=parseInt(t[0]),l=parseInt(t[1]),a=parseInt(t[2]),s=n(r)&&o>=0&&o<24,c=n(u)&&l>=0&&l<60,f=n(i)&&a>=0&&a<60;return!!(s&&c&&!i||s&&c&&f)||void 0}function f({value:e,part:t,locale:r,numberingSystem:i}){if(!function(e,t){if("meridiem"===t)return"AM"===e||"PM"===e;if(!n(e))return!1;const r=Number(e);return"hour"===t?r>=0&&r<24:r>=0&&r<60}(e,t))return;const o=parseInt(e),l=new Date(Date.UTC(0,0,0,"hour"===t?o:"meridiem"===t?"AM"===e?0:12:0,"minute"===t?o:0,"second"===t?o:0));return l?a(t,u(r,i).formatToParts(l)):void 0}function d({value:n,locale:e,numberingSystem:t,includeSeconds:r=!0}){if(!c(n))return null;const{hour:i,minute:o,second:l="0"}=I(n),a=new Date(Date.UTC(0,0,0,parseInt(i),parseInt(o),parseInt(l))),s=u(e,t,r);return(null==s?void 0:s.format(a))||null}function m({value:n,locale:e,numberingSystem:t}){if(!c(n))return null;const{hour:r,minute:i,second:o="0"}=I(n),l=new Date(Date.UTC(0,0,0,parseInt(r),parseInt(i),parseInt(o)));if(l){const n=u(e,t).formatToParts(l);return{localizedHour:a("hour",n),localizedHourSuffix:a("hourSuffix",n),localizedMinute:a("minute",n),localizedMinuteSuffix:a("minuteSuffix",n),localizedSecond:a("second",n),localizedSecondSuffix:a("secondSuffix",n),localizedMeridiem:a("meridiem",n)}}return null}function p({value:n,locale:e,numberingSystem:t}){if(!c(n))return null;const{hour:r,minute:i,second:o="0"}=I(n),l=new Date(Date.UTC(0,0,0,parseInt(r),parseInt(i),parseInt(o)));return l?u(e,t).formatToParts(l):null}function I(n){if(c(n)){const[e,t,r]=n.split(":");return{hour:e,minute:t,second:r}}return{hour:null,minute:null,second:null}}export{m as a,p as b,i as c,f as d,l as e,o as f,s as g,c as i,d as l,r as m,I as p}
12
+ */
13
+ const maxTenthForMinuteAndSecond = 5;
14
+ function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
15
+ try {
16
+ const options = {
17
+ hour: "2-digit",
18
+ minute: "2-digit",
19
+ timeZone: "UTC",
20
+ numberingSystem: getSupportedNumberingSystem(numberingSystem)
21
+ };
22
+ if (includeSeconds) {
23
+ options.second = "2-digit";
24
+ }
25
+ return new Intl.DateTimeFormat(getSupportedLocale(locale), options);
26
+ }
27
+ catch (error) {
28
+ throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${locale}`);
29
+ }
30
+ }
31
+ function formatTimePart(number) {
32
+ const numberAsString = number.toString();
33
+ return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
34
+ }
35
+ function formatTimeString(value) {
36
+ if (!isValidTime(value)) {
37
+ return null;
38
+ }
39
+ const [hourString, minuteString, secondString] = value.split(":");
40
+ const hour = formatTimePart(parseInt(hourString));
41
+ const minute = formatTimePart(parseInt(minuteString));
42
+ if (secondString) {
43
+ const second = formatTimePart(parseInt(secondString));
44
+ return `${hour}:${minute}:${second}`;
45
+ }
46
+ return `${hour}:${minute}`;
47
+ }
48
+ function getLocaleHourCycle(locale, numberingSystem) {
49
+ const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
50
+ const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
51
+ return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
52
+ }
53
+ function getLocalizedTimePart(part, parts) {
54
+ var _a, _b, _c, _d;
55
+ if (!part || !parts) {
56
+ return null;
57
+ }
58
+ if (part === "hourSuffix") {
59
+ const hourIndex = parts.indexOf(parts.find(({ type }) => type === "hour"));
60
+ const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
61
+ const hourSuffix = parts[hourIndex + 1];
62
+ return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
63
+ ? ((_a = hourSuffix.value) === null || _a === void 0 ? void 0 : _a.trim()) || null
64
+ : null;
65
+ }
66
+ if (part === "minuteSuffix") {
67
+ const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
68
+ const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
69
+ const minuteSuffix = parts[minuteIndex + 1];
70
+ return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
71
+ ? ((_b = minuteSuffix.value) === null || _b === void 0 ? void 0 : _b.trim()) || null
72
+ : null;
73
+ }
74
+ if (part === "secondSuffix") {
75
+ const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
76
+ const secondSuffix = parts[secondIndex + 1];
77
+ return secondSuffix && secondSuffix.type === "literal" ? ((_c = secondSuffix.value) === null || _c === void 0 ? void 0 : _c.trim()) || null : null;
78
+ }
79
+ return ((_d = parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))) === null || _d === void 0 ? void 0 : _d.value) || null;
80
+ }
81
+ function getMeridiem(hour) {
82
+ if (!isValidNumber(hour)) {
83
+ return null;
84
+ }
85
+ const hourAsNumber = parseInt(hour);
86
+ return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
87
+ }
88
+ function isValidTime(value) {
89
+ if (!value || value.startsWith(":") || value.endsWith(":")) {
90
+ return false;
91
+ }
92
+ const splitValue = value.split(":");
93
+ const validLength = splitValue.length > 1 && splitValue.length < 4;
94
+ if (!validLength) {
95
+ return false;
96
+ }
97
+ const [hour, minute, second] = splitValue;
98
+ const hourAsNumber = parseInt(splitValue[0]);
99
+ const minuteAsNumber = parseInt(splitValue[1]);
100
+ const secondAsNumber = parseInt(splitValue[2]);
101
+ const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
102
+ const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
103
+ const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
104
+ if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
105
+ return true;
106
+ }
107
+ }
108
+ function isValidTimePart(value, part) {
109
+ if (part === "meridiem") {
110
+ return value === "AM" || value === "PM";
111
+ }
112
+ if (!isValidNumber(value)) {
113
+ return false;
114
+ }
115
+ const valueAsNumber = Number(value);
116
+ return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
117
+ }
118
+ function localizeTimePart({ value, part, locale, numberingSystem }) {
119
+ if (!isValidTimePart(value, part)) {
120
+ return;
121
+ }
122
+ const valueAsNumber = parseInt(value);
123
+ const date = new Date(Date.UTC(0, 0, 0, part === "hour" ? valueAsNumber : part === "meridiem" ? (value === "AM" ? 0 : 12) : 0, part === "minute" ? valueAsNumber : 0, part === "second" ? valueAsNumber : 0));
124
+ if (!date) {
125
+ return;
126
+ }
127
+ const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
128
+ const parts = formatter.formatToParts(date);
129
+ return getLocalizedTimePart(part, parts);
130
+ }
131
+ function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true }) {
132
+ if (!isValidTime(value)) {
133
+ return null;
134
+ }
135
+ const { hour, minute, second = "0" } = parseTimeString(value);
136
+ const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
137
+ const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
138
+ return (formatter === null || formatter === void 0 ? void 0 : formatter.format(dateFromTimeString)) || null;
139
+ }
140
+ function localizeTimeStringToParts({ value, locale, numberingSystem }) {
141
+ if (!isValidTime(value)) {
142
+ return null;
143
+ }
144
+ const { hour, minute, second = "0" } = parseTimeString(value);
145
+ const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
146
+ if (dateFromTimeString) {
147
+ const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
148
+ const parts = formatter.formatToParts(dateFromTimeString);
149
+ return {
150
+ localizedHour: getLocalizedTimePart("hour", parts),
151
+ localizedHourSuffix: getLocalizedTimePart("hourSuffix", parts),
152
+ localizedMinute: getLocalizedTimePart("minute", parts),
153
+ localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
154
+ localizedSecond: getLocalizedTimePart("second", parts),
155
+ localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
156
+ localizedMeridiem: getLocalizedTimePart("meridiem", parts)
157
+ };
158
+ }
159
+ return null;
160
+ }
161
+ function getTimeParts({ value, locale, numberingSystem }) {
162
+ if (!isValidTime(value)) {
163
+ return null;
164
+ }
165
+ const { hour, minute, second = "0" } = parseTimeString(value);
166
+ const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
167
+ if (dateFromTimeString) {
168
+ const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
169
+ const parts = formatter.formatToParts(dateFromTimeString);
170
+ return parts;
171
+ }
172
+ return null;
173
+ }
174
+ function parseTimeString(value) {
175
+ if (isValidTime(value)) {
176
+ const [hour, minute, second] = value.split(":");
177
+ return {
178
+ hour,
179
+ minute,
180
+ second
181
+ };
182
+ }
183
+ return {
184
+ hour: null,
185
+ minute: null,
186
+ second: null
187
+ };
188
+ }
189
+
190
+ export { localizeTimeStringToParts as a, getTimeParts as b, formatTimePart as c, localizeTimePart as d, getLocaleHourCycle as e, formatTimeString as f, getMeridiem as g, isValidTime as i, localizeTimeString as l, maxTenthForMinuteAndSecond as m, parseTimeString as p };
@@ -0,0 +1,175 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './p-c023e6a1.js';
7
+ import { S as Sortable } from './p-77182c3a.js';
8
+ import { c as createObserver } from './p-9a9955db.js';
9
+ import { u as updateHostInteraction } from './p-7daea1df.js';
10
+
11
+ /*!
12
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
13
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
14
+ * v1.0.0-beta.97
15
+ */
16
+ const CSS = {
17
+ sortItem: "sort-item",
18
+ container: "container",
19
+ containerHorizontal: "container--horizontal",
20
+ containerVertical: "container--vertical"
21
+ };
22
+
23
+ const sortableListCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}";
24
+
25
+ const SortableList = class {
26
+ constructor(hostRef) {
27
+ registerInstance(this, hostRef);
28
+ this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 6);
29
+ /**
30
+ * The selector for the handle elements.
31
+ */
32
+ this.handleSelector = "calcite-handle";
33
+ /**
34
+ * Indicates the horizontal or vertical orientation of the component.
35
+ */
36
+ this.layout = "vertical";
37
+ /**
38
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
39
+ */
40
+ this.disabled = false;
41
+ /**
42
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
43
+ */
44
+ this.loading = false;
45
+ this.handleActivated = false;
46
+ this.items = [];
47
+ this.mutationObserver = createObserver("mutation", () => {
48
+ this.cleanUpDragAndDrop();
49
+ this.items = Array.from(this.el.children);
50
+ this.setUpDragAndDrop();
51
+ });
52
+ }
53
+ // --------------------------------------------------------------------------
54
+ //
55
+ // Lifecycle
56
+ //
57
+ // --------------------------------------------------------------------------
58
+ connectedCallback() {
59
+ this.items = Array.from(this.el.children);
60
+ this.setUpDragAndDrop();
61
+ this.beginObserving();
62
+ }
63
+ disconnectedCallback() {
64
+ var _a;
65
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
66
+ this.cleanUpDragAndDrop();
67
+ }
68
+ componentDidRender() {
69
+ updateHostInteraction(this);
70
+ }
71
+ calciteHandleNudgeHandler(event) {
72
+ var _a;
73
+ const sortItem = this.items.find((item) => {
74
+ return item.contains(event.detail.handle) || event.composedPath().includes(item);
75
+ });
76
+ const lastIndex = this.items.length - 1;
77
+ const startingIndex = this.items.indexOf(sortItem);
78
+ let appendInstead = false;
79
+ let buddyIndex;
80
+ switch (event.detail.direction) {
81
+ case "up":
82
+ event.preventDefault();
83
+ if (startingIndex === 0) {
84
+ appendInstead = true;
85
+ }
86
+ else {
87
+ buddyIndex = startingIndex - 1;
88
+ }
89
+ break;
90
+ case "down":
91
+ event.preventDefault();
92
+ if (startingIndex === lastIndex) {
93
+ buddyIndex = 0;
94
+ }
95
+ else if (startingIndex === lastIndex - 1) {
96
+ appendInstead = true;
97
+ }
98
+ else {
99
+ buddyIndex = startingIndex + 2;
100
+ }
101
+ break;
102
+ default:
103
+ return;
104
+ }
105
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
106
+ if (appendInstead) {
107
+ sortItem.parentElement.appendChild(sortItem);
108
+ }
109
+ else {
110
+ sortItem.parentElement.insertBefore(sortItem, this.items[buddyIndex]);
111
+ }
112
+ this.items = Array.from(this.el.children);
113
+ event.detail.handle.activated = true;
114
+ event.detail.handle.setFocus();
115
+ this.beginObserving();
116
+ }
117
+ // --------------------------------------------------------------------------
118
+ //
119
+ // Private Methods
120
+ //
121
+ // --------------------------------------------------------------------------
122
+ setUpDragAndDrop() {
123
+ this.cleanUpDragAndDrop();
124
+ const options = {
125
+ dataIdAttr: "id",
126
+ group: this.group,
127
+ handle: this.handleSelector,
128
+ // Changed sorting within list
129
+ onUpdate: () => {
130
+ this.items = Array.from(this.el.children);
131
+ this.calciteListOrderChange.emit();
132
+ },
133
+ // Element dragging started
134
+ onStart: () => {
135
+ var _a;
136
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
137
+ },
138
+ // Element dragging ended
139
+ onEnd: () => {
140
+ this.beginObserving();
141
+ }
142
+ };
143
+ if (this.dragSelector) {
144
+ options.draggable = this.dragSelector;
145
+ }
146
+ this.sortable = Sortable.create(this.el, options);
147
+ }
148
+ cleanUpDragAndDrop() {
149
+ var _a;
150
+ (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
151
+ this.sortable = null;
152
+ }
153
+ beginObserving() {
154
+ var _a;
155
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
156
+ }
157
+ // --------------------------------------------------------------------------
158
+ //
159
+ // Render Methods
160
+ //
161
+ // --------------------------------------------------------------------------
162
+ render() {
163
+ const { layout } = this;
164
+ const horizontal = layout === "horizontal" || false;
165
+ return (h("div", { class: {
166
+ [CSS.container]: true,
167
+ [CSS.containerVertical]: !horizontal,
168
+ [CSS.containerHorizontal]: horizontal
169
+ } }, h("slot", null)));
170
+ }
171
+ get el() { return getElement(this); }
172
+ };
173
+ SortableList.style = sortableListCss;
174
+
175
+ export { SortableList as calcite_sortable_list };
@@ -0,0 +1,71 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './p-c023e6a1.js';
7
+
8
+ const crowdsourceReporterCss = ":host{display:block}";
9
+
10
+ const CrowdsourceReporter = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ }
14
+ //--------------------------------------------------------------------------
15
+ //
16
+ // Properties (public)
17
+ //
18
+ //--------------------------------------------------------------------------
19
+ //--------------------------------------------------------------------------
20
+ //
21
+ // State (internal)
22
+ //
23
+ //--------------------------------------------------------------------------
24
+ //--------------------------------------------------------------------------
25
+ //
26
+ // Properties (protected)
27
+ //
28
+ //--------------------------------------------------------------------------
29
+ //--------------------------------------------------------------------------
30
+ //
31
+ // Watch handlers
32
+ //
33
+ //--------------------------------------------------------------------------
34
+ //--------------------------------------------------------------------------
35
+ //
36
+ // Methods (public)
37
+ //
38
+ //--------------------------------------------------------------------------
39
+ //--------------------------------------------------------------------------
40
+ //
41
+ // Events (public)
42
+ //
43
+ //--------------------------------------------------------------------------
44
+ //--------------------------------------------------------------------------
45
+ //
46
+ // Functions (lifecycle)
47
+ //
48
+ //--------------------------------------------------------------------------
49
+ render() {
50
+ return (h(Host, null, h("slot", null)));
51
+ }
52
+ //--------------------------------------------------------------------------
53
+ //
54
+ // Functions (protected)
55
+ //
56
+ //--------------------------------------------------------------------------
57
+ /**
58
+ * Fetches the component's translations
59
+ *
60
+ * @returns Promise when complete
61
+ * @protected
62
+ */
63
+ async _getTranslations() {
64
+ // const messages = await getLocaleComponentStrings(this.el);
65
+ // this._translations = messages[0] as typeof BufferTools_T9n;
66
+ }
67
+ get el() { return getElement(this); }
68
+ };
69
+ CrowdsourceReporter.style = crowdsourceReporterCss;
70
+
71
+ export { CrowdsourceReporter as crowdsource_reporter };
@@ -8,4 +8,44 @@
8
8
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
9
9
  * v1.0.0-beta.97
10
10
  */
11
- function e(){}function n(n,t=!1){if(n.disabled)return n.el.setAttribute("tabindex","-1"),n.el.setAttribute("aria-disabled","true"),n.el.contains(document.activeElement)&&document.activeElement.blur(),void(n.el.click=e);n.el.click=HTMLElement.prototype.click,"function"==typeof t?n.el.setAttribute("tabindex",t.call(n)?"0":"-1"):!0===t?n.el.setAttribute("tabindex","0"):!1===t&&n.el.removeAttribute("tabindex"),n.el.removeAttribute("aria-disabled")}export{n as u}
11
+ function noopClick() {
12
+ /** noop */
13
+ }
14
+ /**
15
+ * This helper updates the host element to prevent keyboard interaction on its subtree and sets the appropriate aria attribute for accessibility.
16
+ *
17
+ * This should be used in the `componentDidRender` lifecycle hook.
18
+ *
19
+ * **Notes**
20
+ *
21
+ * this util is not needed for simple components whose root element or elements are an interactive component (custom element or native control). For those cases, set the `disabled` props on the root components instead.
22
+ * technically, users can override `tabindex` and restore keyboard navigation, but this will be considered user error
23
+ *
24
+ * @param component
25
+ * @param hostIsTabbable
26
+ */
27
+ function updateHostInteraction(component, hostIsTabbable = false) {
28
+ if (component.disabled) {
29
+ component.el.setAttribute("tabindex", "-1");
30
+ component.el.setAttribute("aria-disabled", "true");
31
+ if (component.el.contains(document.activeElement)) {
32
+ document.activeElement.blur();
33
+ }
34
+ component.el.click = noopClick;
35
+ return;
36
+ }
37
+ component.el.click = HTMLElement.prototype.click;
38
+ if (typeof hostIsTabbable === "function") {
39
+ component.el.setAttribute("tabindex", hostIsTabbable.call(component) ? "0" : "-1");
40
+ }
41
+ else if (hostIsTabbable === true) {
42
+ component.el.setAttribute("tabindex", "0");
43
+ }
44
+ else if (hostIsTabbable === false) {
45
+ component.el.removeAttribute("tabindex");
46
+ }
47
+ else ;
48
+ component.el.removeAttribute("aria-disabled");
49
+ }
50
+
51
+ export { updateHostInteraction as u };
@@ -0,0 +1,102 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './p-c023e6a1.js';
7
+ import { g as getLocaleComponentStrings } from './p-44da2507.js';
8
+ import './p-3b010ce1.js';
9
+
10
+ const addRecordModalCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:bold}.font-500{font-weight:500}.display-none{display:none}";
11
+
12
+ const AddRecordModal = class {
13
+ constructor(hostRef) {
14
+ registerInstance(this, hostRef);
15
+ this.open = false;
16
+ this._translations = undefined;
17
+ }
18
+ //--------------------------------------------------------------------------
19
+ //
20
+ // Watch handlers
21
+ //
22
+ //--------------------------------------------------------------------------
23
+ //--------------------------------------------------------------------------
24
+ //
25
+ // Methods (public)
26
+ //
27
+ //--------------------------------------------------------------------------
28
+ //--------------------------------------------------------------------------
29
+ //
30
+ // Events (public)
31
+ //
32
+ //--------------------------------------------------------------------------
33
+ //--------------------------------------------------------------------------
34
+ //
35
+ // Functions (lifecycle)
36
+ //
37
+ //--------------------------------------------------------------------------
38
+ /**
39
+ * StencilJS: Called once just after the component is first connected to the DOM.
40
+ *
41
+ * @returns Promise when complete
42
+ */
43
+ async componentWillLoad() {
44
+ await this._getTranslations();
45
+ }
46
+ /**
47
+ * Renders the component.
48
+ */
49
+ render() {
50
+ return (h(Host, null, h("div", null, h("calcite-modal", { open: this.open, width: "s" }, h("div", { class: "font-500", slot: "header" }, this._translations.addRecord), h("div", { slot: "content" }, h("div", null, h("div", { class: "padding-bottom-1" }, h("calcite-label", { class: "font-bold" }, this._translations.source, h("calcite-input", { placeholder: this._translations.textField, type: 'textarea' }))), h("div", { class: "padding-bottom-1" }, h("calcite-label", { class: "font-bold" }, this._translations.publicView, h("calcite-input", { placeholder: this._translations.textField, type: 'textarea' }))), h("div", { class: "padding-bottom-1" }, h("calcite-label", { class: "font-bold" }, this._translations.attachments, h("div", null, h("input", { class: "display-none", onChange: (event) => (this._updateAttachment(event)), ref: (el) => (this._browseForAttachment = el), type: "file" }), h("calcite-button", { appearance: "solid", color: "neutral", onClick: () => this._browse(), width: 'auto' }, this._translations.browse)))))), h("calcite-button", { appearance: "outline", onClick: () => this._cancel(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { appearance: "solid", onClick: () => this._save(), slot: "primary", width: "full" }, this._translations.save)))));
51
+ }
52
+ //--------------------------------------------------------------------------
53
+ //
54
+ // Functions (protected)
55
+ //
56
+ //--------------------------------------------------------------------------
57
+ /**
58
+ * Opens the browse dialog
59
+ *
60
+ * @returns void
61
+ */
62
+ _browse() {
63
+ this._browseForAttachment.click();
64
+ }
65
+ /**
66
+ * Closes the modal
67
+ *
68
+ * @returns void
69
+ */
70
+ _cancel() {
71
+ this.open = false;
72
+ }
73
+ // TODO needs to be implemented will handle save of the record
74
+ _save() {
75
+ this.open = false;
76
+ }
77
+ /**
78
+ * Gets the result file from browse
79
+ *
80
+ * @param event The input controls event that contains the new file
81
+ */
82
+ _updateAttachment(event) {
83
+ const files = event.target.files;
84
+ if (files && files[0]) {
85
+ console.log(files[0]);
86
+ }
87
+ }
88
+ /**
89
+ * Fetches the component's translations
90
+ *
91
+ * @returns Promise when complete
92
+ * @protected
93
+ */
94
+ async _getTranslations() {
95
+ const messages = await getLocaleComponentStrings(this.el);
96
+ this._translations = messages[0];
97
+ }
98
+ get el() { return getElement(this); }
99
+ };
100
+ AddRecordModal.style = addRecordModalCss;
101
+
102
+ export { AddRecordModal as add_record_modal };
@@ -0,0 +1,43 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './p-c023e6a1.js';
7
+ import { H as Heading, c as constrainHeadingLevel } from './p-508317b3.js';
8
+
9
+ /*!
10
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
11
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
12
+ * v1.0.0-beta.97
13
+ */
14
+ const CSS = {
15
+ heading: "heading",
16
+ container: "container"
17
+ };
18
+ const HEADING_LEVEL = 3;
19
+
20
+ const listItemGroupCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;flex-direction:column}.heading{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.container{display:flex;inline-size:100%;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}::slotted(calcite-list-item-group){-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}";
21
+
22
+ const ListItemGroup = class {
23
+ constructor(hostRef) {
24
+ registerInstance(this, hostRef);
25
+ }
26
+ // --------------------------------------------------------------------------
27
+ //
28
+ // Render Methods
29
+ //
30
+ // --------------------------------------------------------------------------
31
+ render() {
32
+ var _a;
33
+ const { el, heading, headingLevel } = this;
34
+ const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
35
+ const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
36
+ const level = headingLevel || relativeLevel || HEADING_LEVEL;
37
+ return (h(Host, null, heading ? (h(Heading, { class: CSS.heading, level: level }, heading)) : null, h("div", { class: CSS.container, role: "group" }, h("slot", null))));
38
+ }
39
+ get el() { return getElement(this); }
40
+ };
41
+ ListItemGroup.style = listItemGroupCss;
42
+
43
+ export { ListItemGroup as calcite_list_item_group };