@esri/solutions-components 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (314) hide show
  1. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  2. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  3. package/dist/cjs/{pciUtils-6a806ba4.js → pciUtils-423cfc68.js} +25 -7
  4. package/dist/collection/demos/deduct-calculator.html +2 -5
  5. package/dist/collection/demos/new-public-notification.html +6 -4
  6. package/dist/collection/utils/pciUtils.js +25 -7
  7. package/dist/collection/utils/pciUtils.ts +30 -7
  8. package/dist/components/ExpandToggle.js +110 -0
  9. package/dist/components/Heading.js +22 -0
  10. package/dist/components/_commonjsHelpers.js +22 -0
  11. package/dist/components/action-bar.js +276 -0
  12. package/dist/components/action-group.js +149 -0
  13. package/dist/components/action-menu.js +356 -0
  14. package/dist/components/action.js +214 -0
  15. package/dist/components/add-record-modal.d.ts +11 -0
  16. package/dist/components/add-record-modal.js +171 -0
  17. package/dist/components/array.js +15 -0
  18. package/dist/components/block.js +272 -0
  19. package/dist/components/buffer-tools.d.ts +11 -0
  20. package/dist/components/buffer-tools.js +11 -0
  21. package/dist/components/buffer-tools2.js +262 -0
  22. package/dist/components/button.js +263 -0
  23. package/dist/components/calcite-accordion-item.js +244 -0
  24. package/dist/components/calcite-accordion.js +180 -0
  25. package/dist/components/calcite-action-bar.js +11 -0
  26. package/dist/components/calcite-action-group.js +11 -0
  27. package/dist/components/calcite-action-menu.js +11 -0
  28. package/dist/components/calcite-action-pad.js +197 -0
  29. package/dist/components/calcite-action.js +11 -0
  30. package/dist/components/calcite-alert.js +297 -0
  31. package/dist/components/calcite-avatar.js +182 -0
  32. package/dist/components/calcite-block-section.js +155 -0
  33. package/dist/components/calcite-block.js +11 -0
  34. package/dist/components/calcite-button.js +11 -0
  35. package/dist/components/calcite-card.js +187 -0
  36. package/dist/components/calcite-checkbox.js +11 -0
  37. package/dist/components/calcite-chip.js +11 -0
  38. package/dist/components/calcite-color-picker-hex-input.js +11 -0
  39. package/dist/components/calcite-color-picker-swatch.js +11 -0
  40. package/dist/components/calcite-color-picker.js +1036 -0
  41. package/dist/components/calcite-combobox-item-group.js +75 -0
  42. package/dist/components/calcite-combobox-item.js +11 -0
  43. package/dist/components/calcite-combobox.js +11 -0
  44. package/dist/components/calcite-date-picker-day.js +11 -0
  45. package/dist/components/calcite-date-picker-month-header.js +11 -0
  46. package/dist/components/calcite-date-picker-month.js +11 -0
  47. package/dist/components/calcite-date-picker.js +11 -0
  48. package/dist/components/calcite-dropdown-group.js +11 -0
  49. package/dist/components/calcite-dropdown-item.js +11 -0
  50. package/dist/components/calcite-dropdown.js +11 -0
  51. package/dist/components/calcite-fab.js +144 -0
  52. package/dist/components/calcite-filter.js +195 -0
  53. package/dist/components/calcite-flow-item.js +243 -0
  54. package/dist/components/calcite-flow.js +147 -0
  55. package/dist/components/calcite-graph.js +11 -0
  56. package/dist/components/calcite-handle.js +11 -0
  57. package/dist/components/calcite-icon.js +11 -0
  58. package/dist/components/calcite-inline-editable.js +294 -0
  59. package/dist/components/calcite-input-date-picker.js +713 -0
  60. package/dist/components/calcite-input-message.js +11 -0
  61. package/dist/components/calcite-input-number.js +637 -0
  62. package/dist/components/calcite-input-text.js +400 -0
  63. package/dist/components/calcite-input-time-picker.js +434 -0
  64. package/dist/components/calcite-input.js +11 -0
  65. package/dist/components/calcite-label.js +11 -0
  66. package/dist/components/calcite-link.js +11 -0
  67. package/dist/components/calcite-list-item-group.js +65 -0
  68. package/dist/components/calcite-list-item.js +11 -0
  69. package/dist/components/calcite-list.js +11 -0
  70. package/dist/components/calcite-loader.js +11 -0
  71. package/dist/components/calcite-modal.js +11 -0
  72. package/dist/components/calcite-notice.js +11 -0
  73. package/dist/components/calcite-option-group.js +64 -0
  74. package/dist/components/calcite-option.js +11 -0
  75. package/dist/components/calcite-pagination.js +258 -0
  76. package/dist/components/calcite-panel.js +11 -0
  77. package/dist/components/calcite-pick-list-group.js +74 -0
  78. package/dist/components/calcite-pick-list-item.js +11 -0
  79. package/dist/components/calcite-pick-list.js +11 -0
  80. package/dist/components/calcite-popover-manager.js +94 -0
  81. package/dist/components/calcite-popover.js +11 -0
  82. package/dist/components/calcite-progress.js +11 -0
  83. package/dist/components/calcite-radio-button-group.js +132 -0
  84. package/dist/components/calcite-radio-button.js +310 -0
  85. package/dist/components/calcite-radio-group-item.js +11 -0
  86. package/dist/components/calcite-radio-group.js +11 -0
  87. package/dist/components/calcite-rating.js +201 -0
  88. package/dist/components/calcite-scrim.js +11 -0
  89. package/dist/components/calcite-select.js +11 -0
  90. package/dist/components/calcite-shell-center-row.js +100 -0
  91. package/dist/components/calcite-shell-panel.js +11 -0
  92. package/dist/components/calcite-shell.js +11 -0
  93. package/dist/components/calcite-slider.js +11 -0
  94. package/dist/components/calcite-sortable-list.js +202 -0
  95. package/dist/components/calcite-split-button.js +11 -0
  96. package/dist/components/calcite-stepper-item.js +271 -0
  97. package/dist/components/calcite-stepper.js +256 -0
  98. package/dist/components/calcite-switch.js +11 -0
  99. package/dist/components/calcite-tab-nav.js +11 -0
  100. package/dist/components/calcite-tab-title.js +11 -0
  101. package/dist/components/calcite-tab.js +11 -0
  102. package/dist/components/calcite-tabs.js +11 -0
  103. package/dist/components/calcite-tile-select-group.js +65 -0
  104. package/dist/components/calcite-tile-select.js +266 -0
  105. package/dist/components/calcite-tile.js +11 -0
  106. package/dist/components/calcite-time-picker.js +11 -0
  107. package/dist/components/calcite-tip-group.js +41 -0
  108. package/dist/components/calcite-tip-manager.js +223 -0
  109. package/dist/components/calcite-tip.js +162 -0
  110. package/dist/components/calcite-tooltip-manager.js +57 -0
  111. package/dist/components/calcite-tooltip.js +11 -0
  112. package/dist/components/calcite-tree-item.js +11 -0
  113. package/dist/components/calcite-tree.js +11 -0
  114. package/dist/components/calcite-value-list-item.js +11 -0
  115. package/dist/components/calcite-value-list.js +11 -0
  116. package/dist/components/card-manager.d.ts +11 -0
  117. package/dist/components/card-manager.js +143 -0
  118. package/dist/components/check-list.d.ts +11 -0
  119. package/dist/components/check-list.js +11 -0
  120. package/dist/components/check-list2.js +131 -0
  121. package/dist/components/checkbox.js +165 -0
  122. package/dist/components/chip.js +170 -0
  123. package/dist/components/color-picker-hex-input.js +363 -0
  124. package/dist/components/color-picker-swatch.js +2034 -0
  125. package/dist/components/combobox-item.js +182 -0
  126. package/dist/components/combobox.js +912 -0
  127. package/dist/components/comment-card.d.ts +11 -0
  128. package/dist/components/comment-card.js +90 -0
  129. package/dist/components/conditionalSlot.js +50 -0
  130. package/dist/components/config-buffer-tools.d.ts +11 -0
  131. package/dist/components/config-buffer-tools.js +187 -0
  132. package/dist/components/config-draw-tools.d.ts +11 -0
  133. package/dist/components/config-draw-tools.js +121 -0
  134. package/dist/components/config-layer-picker.d.ts +11 -0
  135. package/dist/components/config-layer-picker.js +163 -0
  136. package/dist/components/config-pdf-download.d.ts +11 -0
  137. package/dist/components/config-pdf-download.js +154 -0
  138. package/dist/components/crowdsource-manager.d.ts +11 -0
  139. package/dist/components/crowdsource-manager.js +90 -0
  140. package/dist/components/crowdsource-reporter.d.ts +11 -0
  141. package/dist/components/crowdsource-reporter.js +90 -0
  142. package/dist/components/csvUtils.js +74 -0
  143. package/dist/components/date-picker-day.js +111 -0
  144. package/dist/components/date-picker-month-header.js +224 -0
  145. package/dist/components/date-picker-month.js +344 -0
  146. package/dist/components/date-picker.js +575 -0
  147. package/dist/components/date.js +180 -0
  148. package/dist/components/debounce.js +487 -0
  149. package/dist/components/deduct-calculator.d.ts +11 -0
  150. package/dist/components/deduct-calculator.js +11 -0
  151. package/dist/components/deduct-calculator2.js +1002 -0
  152. package/dist/components/dom.js +231 -0
  153. package/dist/components/dropdown-group.js +96 -0
  154. package/dist/components/dropdown-item.js +232 -0
  155. package/dist/components/dropdown.js +505 -0
  156. package/dist/components/edit-record-modal.d.ts +11 -0
  157. package/dist/components/edit-record-modal.js +11 -0
  158. package/dist/components/edit-record-modal2.js +161 -0
  159. package/dist/components/filter.js +763 -0
  160. package/dist/components/floating-ui.js +1768 -0
  161. package/dist/components/form.js +228 -0
  162. package/dist/components/graph.js +254 -0
  163. package/dist/components/guid.js +24 -0
  164. package/dist/components/handle.js +119 -0
  165. package/dist/components/icon.js +202 -0
  166. package/dist/components/index.d.ts +61 -0
  167. package/dist/components/index.js +196 -0
  168. package/dist/components/index2.js +199 -0
  169. package/dist/components/info-card.d.ts +11 -0
  170. package/dist/components/info-card.js +11 -0
  171. package/dist/components/info-card2.js +97 -0
  172. package/dist/components/input-message.js +101 -0
  173. package/dist/components/input.js +740 -0
  174. package/dist/components/interactive.js +51 -0
  175. package/dist/components/interfaces.js +19 -0
  176. package/dist/components/interfaces2.js +21 -0
  177. package/dist/components/interfaces3.js +80 -0
  178. package/dist/components/json-editor.d.ts +11 -0
  179. package/dist/components/json-editor.js +11 -0
  180. package/dist/components/json-editor2.js +441 -0
  181. package/dist/components/key.js +16 -0
  182. package/dist/components/label.js +106 -0
  183. package/dist/components/label2.js +131 -0
  184. package/dist/components/labelFormats.js +210 -0
  185. package/dist/components/layer-table.d.ts +11 -0
  186. package/dist/components/layer-table.js +453 -0
  187. package/dist/components/link.js +123 -0
  188. package/dist/components/list-item.d.ts +11 -0
  189. package/dist/components/list-item.js +90 -0
  190. package/dist/components/list-item2.js +149 -0
  191. package/dist/components/list.js +83 -0
  192. package/dist/components/loadModules.js +28 -0
  193. package/dist/components/loader.js +116 -0
  194. package/dist/components/locale.js +412 -0
  195. package/dist/components/locale2.js +413 -0
  196. package/dist/components/map-card.d.ts +11 -0
  197. package/dist/components/map-card.js +354 -0
  198. package/dist/components/map-draw-tools.d.ts +11 -0
  199. package/dist/components/map-draw-tools.js +11 -0
  200. package/dist/components/map-draw-tools2.js +228 -0
  201. package/dist/components/map-layer-picker.d.ts +11 -0
  202. package/dist/components/map-layer-picker.js +11 -0
  203. package/dist/components/map-layer-picker2.js +188 -0
  204. package/dist/components/map-search.d.ts +11 -0
  205. package/dist/components/map-search.js +155 -0
  206. package/dist/components/map-select-tools.d.ts +11 -0
  207. package/dist/components/map-select-tools.js +11 -0
  208. package/dist/components/map-select-tools2.js +588 -0
  209. package/dist/components/mapViewUtils.js +129 -0
  210. package/dist/components/math.js +24 -0
  211. package/dist/components/media-card.d.ts +11 -0
  212. package/dist/components/media-card.js +11 -0
  213. package/dist/components/media-card2.js +177 -0
  214. package/dist/components/modal.js +495 -0
  215. package/dist/components/nonChromiumPlatformUtils.js +503 -0
  216. package/dist/components/notice.js +192 -0
  217. package/dist/components/observers.js +56 -0
  218. package/dist/components/openCloseComponent.js +56 -0
  219. package/dist/components/option.js +109 -0
  220. package/dist/components/panel.js +459 -0
  221. package/dist/components/pci-calculator.d.ts +11 -0
  222. package/dist/components/pci-calculator.js +193 -0
  223. package/dist/components/pdf-download.d.ts +11 -0
  224. package/dist/components/pdf-download.js +11 -0
  225. package/dist/components/pdf-download2.js +189 -0
  226. package/dist/components/pick-list-item.js +255 -0
  227. package/dist/components/pick-list.js +170 -0
  228. package/dist/components/popover.js +500 -0
  229. package/dist/components/progress.js +60 -0
  230. package/dist/components/public-notification.d.ts +11 -0
  231. package/dist/components/public-notification.js +825 -0
  232. package/dist/components/publicNotificationStore.js +38 -0
  233. package/dist/components/queryUtils.js +187 -0
  234. package/dist/components/radio-group-item.js +101 -0
  235. package/dist/components/radio-group.js +235 -0
  236. package/dist/components/refine-selection-tools.d.ts +11 -0
  237. package/dist/components/refine-selection-tools.js +11 -0
  238. package/dist/components/refine-selection-tools2.js +492 -0
  239. package/dist/components/refine-selection.d.ts +11 -0
  240. package/dist/components/refine-selection.js +11 -0
  241. package/dist/components/refine-selection2.js +376 -0
  242. package/dist/components/resources.js +24 -0
  243. package/dist/components/resources2.js +21 -0
  244. package/dist/components/resources3.js +38 -0
  245. package/dist/components/scrim.js +83 -0
  246. package/dist/components/select.js +259 -0
  247. package/dist/components/shared-list-render.js +319 -0
  248. package/dist/components/shell-panel.js +281 -0
  249. package/dist/components/shell.js +121 -0
  250. package/dist/components/slider.js +896 -0
  251. package/dist/components/solution-configuration.d.ts +11 -0
  252. package/dist/components/solution-configuration.js +2233 -0
  253. package/dist/components/solution-contents.d.ts +11 -0
  254. package/dist/components/solution-contents.js +11 -0
  255. package/dist/components/solution-contents2.js +128 -0
  256. package/dist/components/solution-item-details.d.ts +11 -0
  257. package/dist/components/solution-item-details.js +11 -0
  258. package/dist/components/solution-item-details2.js +234 -0
  259. package/dist/components/solution-item-icon.d.ts +11 -0
  260. package/dist/components/solution-item-icon.js +11 -0
  261. package/dist/components/solution-item-icon2.js +342 -0
  262. package/dist/components/solution-item-sharing.d.ts +11 -0
  263. package/dist/components/solution-item-sharing.js +11 -0
  264. package/dist/components/solution-item-sharing2.js +167 -0
  265. package/dist/components/solution-item.d.ts +11 -0
  266. package/dist/components/solution-item.js +11 -0
  267. package/dist/components/solution-item2.js +315 -0
  268. package/dist/components/solution-organization-variables.d.ts +11 -0
  269. package/dist/components/solution-organization-variables.js +11 -0
  270. package/dist/components/solution-organization-variables2.js +132 -0
  271. package/dist/components/solution-resource-item.d.ts +11 -0
  272. package/dist/components/solution-resource-item.js +11 -0
  273. package/dist/components/solution-resource-item2.js +356 -0
  274. package/dist/components/solution-spatial-ref.d.ts +11 -0
  275. package/dist/components/solution-spatial-ref.js +11 -0
  276. package/dist/components/solution-spatial-ref2.js +21446 -0
  277. package/dist/components/solution-store.js +4092 -0
  278. package/dist/components/solution-template-data.d.ts +11 -0
  279. package/dist/components/solution-template-data.js +11 -0
  280. package/dist/components/solution-template-data2.js +233 -0
  281. package/dist/components/solution-variables.d.ts +11 -0
  282. package/dist/components/solution-variables.js +11 -0
  283. package/dist/components/solution-variables2.js +150 -0
  284. package/dist/components/sortable.esm.js +3026 -0
  285. package/dist/components/split-button.js +165 -0
  286. package/dist/components/store-manager.d.ts +11 -0
  287. package/dist/components/store-manager.js +83 -0
  288. package/dist/components/switch.js +139 -0
  289. package/dist/components/tab-nav.js +241 -0
  290. package/dist/components/tab-title.js +276 -0
  291. package/dist/components/tab.js +154 -0
  292. package/dist/components/tabs.js +188 -0
  293. package/dist/components/tile.js +129 -0
  294. package/dist/components/time-picker.js +943 -0
  295. package/dist/components/tooltip.js +399 -0
  296. package/dist/components/tree-item.js +294 -0
  297. package/dist/components/tree.js +327 -0
  298. package/dist/components/utils.js +119 -0
  299. package/dist/components/utils2.js +51 -0
  300. package/dist/components/value-list-item.js +204 -0
  301. package/dist/components/value-list.js +333 -0
  302. package/dist/esm/deduct-calculator.entry.js +1 -1
  303. package/dist/esm/pci-calculator.entry.js +1 -1
  304. package/dist/esm/{pciUtils-e3007a1c.js → pciUtils-ecda46e5.js} +25 -7
  305. package/dist/solutions-components/demos/deduct-calculator.html +2 -5
  306. package/dist/solutions-components/demos/new-public-notification.html +6 -4
  307. package/dist/solutions-components/{p-ff80ffbb.entry.js → p-0512635b.entry.js} +1 -1
  308. package/dist/solutions-components/{p-5ec407c2.entry.js → p-0c088725.entry.js} +1 -1
  309. package/dist/solutions-components/p-cc815aca.js +21 -0
  310. package/dist/solutions-components/solutions-components.esm.js +1 -1
  311. package/dist/solutions-components/utils/pciUtils.ts +30 -7
  312. package/dist/types/utils/pciUtils.d.ts +2 -1
  313. package/package.json +4 -3
  314. package/dist/solutions-components/p-647bbd18.js +0 -21
@@ -0,0 +1,310 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
+ import { g as guid } from './guid.js';
8
+ import { c as getElementDir, f as focusElement, t as toAriaBoolean } from './dom.js';
9
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label2.js';
10
+ import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
11
+ import { g as getRoundRobinIndex } from './array.js';
12
+ import { u as updateHostInteraction } from './interactive.js';
13
+
14
+ /*!
15
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
16
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
17
+ * v1.0.0-beta.97
18
+ */
19
+ const CSS = {
20
+ container: "container"
21
+ };
22
+
23
+ const radioButtonCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:\"\";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::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}";
24
+
25
+ const RadioButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
26
+ constructor() {
27
+ super();
28
+ this.__registerHost();
29
+ this.__attachShadow();
30
+ this.calciteInternalRadioButtonBlur = createEvent(this, "calciteInternalRadioButtonBlur", 6);
31
+ this.calciteRadioButtonChange = createEvent(this, "calciteRadioButtonChange", 6);
32
+ this.calciteInternalRadioButtonCheckedChange = createEvent(this, "calciteInternalRadioButtonCheckedChange", 6);
33
+ this.calciteInternalRadioButtonFocus = createEvent(this, "calciteInternalRadioButtonFocus", 6);
34
+ //--------------------------------------------------------------------------
35
+ //
36
+ // Properties
37
+ //
38
+ //--------------------------------------------------------------------------
39
+ /** When `true`, the component is checked. */
40
+ this.checked = false;
41
+ /** When `true`, interaction is prevented and the component is displayed with lower opacity. */
42
+ this.disabled = false;
43
+ /**
44
+ * The focused state of the component.
45
+ *
46
+ * @internal
47
+ */
48
+ this.focused = false;
49
+ /** When `true`, the component is not displayed and is not focusable or checkable. */
50
+ this.hidden = false;
51
+ /**
52
+ * The hovered state of the component.
53
+ *
54
+ * @internal
55
+ */
56
+ this.hovered = false;
57
+ /** When `true`, the component must have a value selected from the `calcite-radio-button-group` in order for the form to submit. */
58
+ this.required = false;
59
+ /** Specifies the size of the component inherited from the `calcite-radio-button-group`. */
60
+ this.scale = "m";
61
+ //--------------------------------------------------------------------------
62
+ //
63
+ // Private Methods
64
+ //
65
+ //--------------------------------------------------------------------------
66
+ this.selectItem = (items, selectedIndex) => {
67
+ items[selectedIndex].click();
68
+ };
69
+ this.queryButtons = () => {
70
+ return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((radioButton) => radioButton.name === this.name);
71
+ };
72
+ this.isDefaultSelectable = () => {
73
+ const radioButtons = this.queryButtons();
74
+ return !radioButtons.some((radioButton) => radioButton.checked) && radioButtons[0] === this.el;
75
+ };
76
+ this.check = () => {
77
+ if (this.disabled) {
78
+ return;
79
+ }
80
+ this.uncheckAllRadioButtonsInGroup();
81
+ this.checked = true;
82
+ this.focused = true;
83
+ this.calciteRadioButtonChange.emit();
84
+ this.setFocus();
85
+ };
86
+ this.clickHandler = () => {
87
+ this.check();
88
+ };
89
+ this.setContainerEl = (el) => {
90
+ this.containerEl = el;
91
+ };
92
+ this.handleKeyDown = (event) => {
93
+ const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
94
+ const { key } = event;
95
+ const { el } = this;
96
+ if (keys.indexOf(key) === -1) {
97
+ return;
98
+ }
99
+ if (key === " ") {
100
+ this.check();
101
+ event.preventDefault();
102
+ return;
103
+ }
104
+ let adjustedKey = key;
105
+ if (getElementDir(el) === "rtl") {
106
+ if (key === "ArrowRight") {
107
+ adjustedKey = "ArrowLeft";
108
+ }
109
+ if (key === "ArrowLeft") {
110
+ adjustedKey = "ArrowRight";
111
+ }
112
+ }
113
+ const radioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
114
+ let currentIndex = 0;
115
+ const radioButtonsLength = radioButtons.length;
116
+ radioButtons.some((item, index) => {
117
+ if (item.checked) {
118
+ currentIndex = index;
119
+ return true;
120
+ }
121
+ });
122
+ switch (adjustedKey) {
123
+ case "ArrowLeft":
124
+ case "ArrowUp":
125
+ event.preventDefault();
126
+ this.selectItem(radioButtons, getRoundRobinIndex(Math.max(currentIndex - 1, -1), radioButtonsLength));
127
+ return;
128
+ case "ArrowRight":
129
+ case "ArrowDown":
130
+ event.preventDefault();
131
+ this.selectItem(radioButtons, getRoundRobinIndex(currentIndex + 1, radioButtonsLength));
132
+ return;
133
+ default:
134
+ return;
135
+ }
136
+ };
137
+ this.onContainerBlur = () => {
138
+ this.focused = false;
139
+ this.calciteInternalRadioButtonBlur.emit();
140
+ };
141
+ this.onContainerFocus = () => {
142
+ if (!this.disabled) {
143
+ this.focused = true;
144
+ this.calciteInternalRadioButtonFocus.emit();
145
+ }
146
+ };
147
+ }
148
+ checkedChanged(newChecked) {
149
+ if (newChecked) {
150
+ this.uncheckOtherRadioButtonsInGroup();
151
+ }
152
+ this.calciteInternalRadioButtonCheckedChange.emit();
153
+ }
154
+ nameChanged() {
155
+ this.checkLastRadioButton();
156
+ }
157
+ //--------------------------------------------------------------------------
158
+ //
159
+ // Public Methods
160
+ //
161
+ //--------------------------------------------------------------------------
162
+ /** Sets focus on the component. */
163
+ async setFocus() {
164
+ if (!this.disabled) {
165
+ focusElement(this.containerEl);
166
+ }
167
+ }
168
+ onLabelClick(event) {
169
+ if (!this.disabled && !this.hidden) {
170
+ this.uncheckOtherRadioButtonsInGroup();
171
+ const label = event.currentTarget;
172
+ const radioButton = label.for
173
+ ? this.rootNode.querySelector(`calcite-radio-button[id="${label.for}"]`)
174
+ : label.querySelector(`calcite-radio-button[name="${this.name}"]`);
175
+ if (radioButton) {
176
+ radioButton.checked = true;
177
+ radioButton.focused = true;
178
+ }
179
+ this.calciteRadioButtonChange.emit();
180
+ this.setFocus();
181
+ }
182
+ }
183
+ checkLastRadioButton() {
184
+ const radioButtons = this.queryButtons();
185
+ const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
186
+ if ((checkedRadioButtons === null || checkedRadioButtons === void 0 ? void 0 : checkedRadioButtons.length) > 1) {
187
+ const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
188
+ checkedRadioButtons
189
+ .filter((checkedRadioButton) => checkedRadioButton !== lastCheckedRadioButton)
190
+ .forEach((checkedRadioButton) => {
191
+ checkedRadioButton.checked = false;
192
+ checkedRadioButton.emitCheckedChange();
193
+ });
194
+ }
195
+ }
196
+ /** @internal */
197
+ async emitCheckedChange() {
198
+ this.calciteInternalRadioButtonCheckedChange.emit();
199
+ }
200
+ uncheckAllRadioButtonsInGroup() {
201
+ const radioButtons = this.queryButtons();
202
+ radioButtons.forEach((radioButton) => {
203
+ if (radioButton.checked) {
204
+ radioButton.checked = false;
205
+ radioButton.focused = false;
206
+ }
207
+ });
208
+ }
209
+ uncheckOtherRadioButtonsInGroup() {
210
+ const radioButtons = this.queryButtons();
211
+ const otherRadioButtons = radioButtons.filter((radioButton) => radioButton.guid !== this.guid);
212
+ otherRadioButtons.forEach((otherRadioButton) => {
213
+ if (otherRadioButton.checked) {
214
+ otherRadioButton.checked = false;
215
+ otherRadioButton.focused = false;
216
+ }
217
+ });
218
+ }
219
+ getTabIndex() {
220
+ if (this.disabled) {
221
+ return undefined;
222
+ }
223
+ return this.checked || this.isDefaultSelectable() ? 0 : -1;
224
+ }
225
+ //--------------------------------------------------------------------------
226
+ //
227
+ // Event Listeners
228
+ //
229
+ //--------------------------------------------------------------------------
230
+ mouseenter() {
231
+ this.hovered = true;
232
+ }
233
+ mouseleave() {
234
+ this.hovered = false;
235
+ }
236
+ //--------------------------------------------------------------------------
237
+ //
238
+ // Lifecycle
239
+ //
240
+ //--------------------------------------------------------------------------
241
+ connectedCallback() {
242
+ this.rootNode = this.el.getRootNode();
243
+ this.guid = this.el.id || `calcite-radio-button-${guid()}`;
244
+ if (this.name) {
245
+ this.checkLastRadioButton();
246
+ }
247
+ connectLabel(this);
248
+ connectForm(this);
249
+ }
250
+ componentDidLoad() {
251
+ if (this.focused && !this.disabled) {
252
+ this.setFocus();
253
+ }
254
+ }
255
+ disconnectedCallback() {
256
+ disconnectLabel(this);
257
+ disconnectForm(this);
258
+ }
259
+ componentDidRender() {
260
+ updateHostInteraction(this);
261
+ }
262
+ // --------------------------------------------------------------------------
263
+ //
264
+ // Render Methods
265
+ //
266
+ // --------------------------------------------------------------------------
267
+ render() {
268
+ const tabIndex = this.getTabIndex();
269
+ return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, h("div", { class: "radio" })), h(HiddenFormInputSlot, { component: this })));
270
+ }
271
+ get el() { return this; }
272
+ static get watchers() { return {
273
+ "checked": ["checkedChanged"],
274
+ "name": ["nameChanged"]
275
+ }; }
276
+ static get style() { return radioButtonCss; }
277
+ }, [1, "calcite-radio-button", {
278
+ "checked": [1540],
279
+ "disabled": [516],
280
+ "focused": [1540],
281
+ "guid": [1537],
282
+ "hidden": [516],
283
+ "hovered": [1540],
284
+ "label": [1],
285
+ "name": [513],
286
+ "required": [516],
287
+ "scale": [513],
288
+ "value": [1032],
289
+ "setFocus": [64],
290
+ "emitCheckedChange": [64]
291
+ }, [[1, "pointerenter", "mouseenter"], [1, "pointerleave", "mouseleave"]]]);
292
+ function defineCustomElement$1() {
293
+ if (typeof customElements === "undefined") {
294
+ return;
295
+ }
296
+ const components = ["calcite-radio-button"];
297
+ components.forEach(tagName => { switch (tagName) {
298
+ case "calcite-radio-button":
299
+ if (!customElements.get(tagName)) {
300
+ customElements.define(tagName, RadioButton);
301
+ }
302
+ break;
303
+ } });
304
+ }
305
+ defineCustomElement$1();
306
+
307
+ const CalciteRadioButton = RadioButton;
308
+ const defineCustomElement = defineCustomElement$1;
309
+
310
+ export { CalciteRadioButton, defineCustomElement };
@@ -0,0 +1,11 @@
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 RadioGroupItem, d as defineCustomElement$1 } from './radio-group-item.js';
7
+
8
+ const CalciteRadioGroupItem = RadioGroupItem;
9
+ const defineCustomElement = defineCustomElement$1;
10
+
11
+ export { CalciteRadioGroupItem, defineCustomElement };
@@ -0,0 +1,11 @@
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 RadioGroup, d as defineCustomElement$1 } from './radio-group.js';
7
+
8
+ const CalciteRadioGroup = RadioGroup;
9
+ const defineCustomElement = defineCustomElement$1;
10
+
11
+ export { CalciteRadioGroup, defineCustomElement };
@@ -0,0 +1,201 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
7
+ import { g as guid } from './guid.js';
8
+ import { c as connectLabel, d as disconnectLabel } from './label2.js';
9
+ import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
10
+ import { u as updateHostInteraction } from './interactive.js';
11
+ import { i as isActivationKey } from './key.js';
12
+ import { d as defineCustomElement$3 } from './chip.js';
13
+ import { d as defineCustomElement$2 } from './icon.js';
14
+
15
+ /*!
16
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
17
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
18
+ * v1.0.0-beta.97
19
+ */
20
+ const TEXT = {
21
+ rating: "Rating",
22
+ stars: "Stars: ${num}"
23
+ };
24
+
25
+ const ratingCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0px;display:flex;border-width:0px;padding:0px}.wrapper{display:inline-block;-webkit-margin-end:var(--calcite-rating-spacing-unit);margin-inline-end:var(--calcite-rating-spacing-unit)}.star{position:relative;display:flex;cursor:pointer;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}:host .fraction{pointer-events:none;position:absolute;inset-block-start:0px;overflow:hidden;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){-webkit-margin-start:var(--calcite-rating-spacing-unit);margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{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}::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}";
26
+
27
+ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
28
+ constructor() {
29
+ super();
30
+ this.__registerHost();
31
+ this.__attachShadow();
32
+ this.calciteRatingChange = createEvent(this, "calciteRatingChange", 6);
33
+ // --------------------------------------------------------------------------
34
+ //
35
+ // Properties
36
+ //
37
+ // --------------------------------------------------------------------------
38
+ /** Specifies the size of the component. */
39
+ this.scale = "m";
40
+ /** The component's value. */
41
+ this.value = 0;
42
+ /** When `true`, the component's value can be read, but cannot be modified. */
43
+ this.readOnly = false;
44
+ /** When `true`, interaction is prevented and the component is displayed with lower opacity. */
45
+ this.disabled = false;
46
+ /** When `true`, and if available, displays the `average` and/or `count` data summary in a `calcite-chip`. */
47
+ this.showChip = false;
48
+ /**
49
+ * Accessible name for the component.
50
+ *
51
+ * @default "Rating"
52
+ */
53
+ this.intlRating = TEXT.rating;
54
+ /**
55
+ * Accessible name for each star. The `${num}` in the string will be replaced by the number.
56
+ *
57
+ * @default "Stars: ${num}"
58
+ */
59
+ this.intlStars = TEXT.stars;
60
+ /**
61
+ * When `true`, the component must have a value in order for the form to submit.
62
+ *
63
+ * @internal
64
+ */
65
+ this.required = false;
66
+ this.onKeyboardPressed = (event) => {
67
+ if (!this.required && isActivationKey(event.key)) {
68
+ event.preventDefault();
69
+ this.updateValue(0);
70
+ }
71
+ };
72
+ this.onFocusChange = (selectedRatingValue) => {
73
+ this.hasFocus = true;
74
+ if (!this.required && this.focusValue === selectedRatingValue) {
75
+ this.updateValue(0);
76
+ }
77
+ else {
78
+ this.focusValue = selectedRatingValue;
79
+ }
80
+ };
81
+ this.guid = `calcite-ratings-${guid()}`;
82
+ }
83
+ //--------------------------------------------------------------------------
84
+ //
85
+ // Lifecycle
86
+ //
87
+ //--------------------------------------------------------------------------
88
+ connectedCallback() {
89
+ connectLabel(this);
90
+ connectForm(this);
91
+ }
92
+ disconnectedCallback() {
93
+ disconnectLabel(this);
94
+ disconnectForm(this);
95
+ }
96
+ componentDidRender() {
97
+ updateHostInteraction(this);
98
+ }
99
+ //--------------------------------------------------------------------------
100
+ //
101
+ // Event Listeners
102
+ //
103
+ //--------------------------------------------------------------------------
104
+ blurHandler() {
105
+ this.hasFocus = false;
106
+ }
107
+ // --------------------------------------------------------------------------
108
+ //
109
+ // Render Methods
110
+ //
111
+ // --------------------------------------------------------------------------
112
+ renderStars() {
113
+ return [1, 2, 3, 4, 5].map((i) => {
114
+ const selected = this.value >= i;
115
+ const average = this.average && !this.value && i <= this.average;
116
+ const hovered = i <= this.hoverValue;
117
+ const fraction = this.average && this.average + 1 - i;
118
+ const partial = !this.value && !hovered && fraction > 0 && fraction < 1;
119
+ const focused = this.hasFocus && this.focusValue === i;
120
+ return (h("span", { class: { wrapper: true } }, h("label", { class: { star: true, focused, selected, average, hovered, partial }, htmlFor: `${this.guid}-${i}`, onPointerOver: () => {
121
+ this.hoverValue = i;
122
+ } }, h("calcite-icon", { "aria-hidden": "true", class: "icon", icon: selected || average || this.readOnly ? "star-f" : "star", scale: this.scale }), partial && (h("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, h("calcite-icon", { icon: "star-f", scale: this.scale }))), h("span", { class: "visually-hidden" }, this.intlStars.replace("${num}", `${i}`))), h("input", { checked: i === this.value, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: `${this.guid}-${i}`, name: this.guid, onChange: () => this.updateValue(i), onClick: (event) =>
123
+ // click is fired from the component's label, so we treat this as an internal event
124
+ event.stopPropagation(), onFocus: () => this.onFocusChange(i), onKeyDown: this.onKeyboardPressed, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: "radio", value: i })));
125
+ });
126
+ }
127
+ render() {
128
+ const { disabled, intlRating, showChip, scale, count, average } = this;
129
+ return (h(Fragment, null, h("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, h("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (h("calcite-chip", { scale: scale, value: count === null || count === void 0 ? void 0 : count.toString() }, !!average && h("span", { class: "number--average" }, average.toString()), !!count && h("span", { class: "number--count" }, "(", count === null || count === void 0 ? void 0 :
130
+ count.toString(), ")"))) : null, h(HiddenFormInputSlot, { component: this })));
131
+ }
132
+ //--------------------------------------------------------------------------
133
+ //
134
+ // Private Methods
135
+ //
136
+ //--------------------------------------------------------------------------
137
+ onLabelClick() {
138
+ this.setFocus();
139
+ }
140
+ updateValue(value) {
141
+ this.value = value;
142
+ this.calciteRatingChange.emit({ value });
143
+ }
144
+ //--------------------------------------------------------------------------
145
+ //
146
+ // Public Methods
147
+ //
148
+ //--------------------------------------------------------------------------
149
+ /** Sets focus on the component. */
150
+ async setFocus() {
151
+ var _a;
152
+ (_a = this.inputFocusRef) === null || _a === void 0 ? void 0 : _a.focus();
153
+ }
154
+ get el() { return this; }
155
+ static get style() { return ratingCss; }
156
+ }, [1, "calcite-rating", {
157
+ "scale": [513],
158
+ "value": [1538],
159
+ "readOnly": [516, "read-only"],
160
+ "disabled": [516],
161
+ "showChip": [516, "show-chip"],
162
+ "count": [514],
163
+ "average": [514],
164
+ "name": [513],
165
+ "intlRating": [1, "intl-rating"],
166
+ "intlStars": [1, "intl-stars"],
167
+ "required": [516],
168
+ "hoverValue": [32],
169
+ "focusValue": [32],
170
+ "hasFocus": [32],
171
+ "setFocus": [64]
172
+ }, [[0, "blur", "blurHandler"]]]);
173
+ function defineCustomElement$1() {
174
+ if (typeof customElements === "undefined") {
175
+ return;
176
+ }
177
+ const components = ["calcite-rating", "calcite-chip", "calcite-icon"];
178
+ components.forEach(tagName => { switch (tagName) {
179
+ case "calcite-rating":
180
+ if (!customElements.get(tagName)) {
181
+ customElements.define(tagName, Rating);
182
+ }
183
+ break;
184
+ case "calcite-chip":
185
+ if (!customElements.get(tagName)) {
186
+ defineCustomElement$3();
187
+ }
188
+ break;
189
+ case "calcite-icon":
190
+ if (!customElements.get(tagName)) {
191
+ defineCustomElement$2();
192
+ }
193
+ break;
194
+ } });
195
+ }
196
+ defineCustomElement$1();
197
+
198
+ const CalciteRating = Rating;
199
+ const defineCustomElement = defineCustomElement$1;
200
+
201
+ export { CalciteRating, defineCustomElement };
@@ -0,0 +1,11 @@
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 { S as Scrim, d as defineCustomElement$1 } from './scrim.js';
7
+
8
+ const CalciteScrim = Scrim;
9
+ const defineCustomElement = defineCustomElement$1;
10
+
11
+ export { CalciteScrim, defineCustomElement };
@@ -0,0 +1,11 @@
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 { S as Select, d as defineCustomElement$1 } from './select.js';
7
+
8
+ const CalciteSelect = Select;
9
+ const defineCustomElement = defineCustomElement$1;
10
+
11
+ export { CalciteSelect, defineCustomElement };
@@ -0,0 +1,100 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client';
7
+ import { b as getSlotted } from './dom.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
9
+
10
+ /*!
11
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
12
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
13
+ * v1.0.0-beta.97
14
+ */
15
+ const CSS = {
16
+ actionBarContainer: "action-bar-container",
17
+ content: "content"
18
+ };
19
+ const SLOTS = {
20
+ actionBar: "action-bar"
21
+ };
22
+
23
+ const shellCenterRowCss = "@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{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){-webkit-border-end:1px solid;border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}";
24
+
25
+ const ShellCenterRow = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
26
+ constructor() {
27
+ super();
28
+ this.__registerHost();
29
+ this.__attachShadow();
30
+ // --------------------------------------------------------------------------
31
+ //
32
+ // Properties
33
+ //
34
+ // --------------------------------------------------------------------------
35
+ /**
36
+ * When `true`, the content area displays like a floating panel.
37
+ */
38
+ this.detached = false;
39
+ /**
40
+ * Specifies the maximum height of the component.
41
+ */
42
+ this.heightScale = "s";
43
+ /**
44
+ * Specifies the component's position. Will be flipped when the element direction is right-to-left (`"rtl"`).
45
+ */
46
+ this.position = "end";
47
+ }
48
+ // --------------------------------------------------------------------------
49
+ //
50
+ // Lifecycle
51
+ //
52
+ // --------------------------------------------------------------------------
53
+ connectedCallback() {
54
+ connectConditionalSlotComponent(this);
55
+ }
56
+ disconnectedCallback() {
57
+ disconnectConditionalSlotComponent(this);
58
+ }
59
+ // --------------------------------------------------------------------------
60
+ //
61
+ // Render Methods
62
+ //
63
+ // --------------------------------------------------------------------------
64
+ render() {
65
+ const { el } = this;
66
+ const contentNode = (h("div", { class: CSS.content }, h("slot", null)));
67
+ const actionBar = getSlotted(el, SLOTS.actionBar);
68
+ const actionBarNode = actionBar ? (h("div", { class: CSS.actionBarContainer, key: "action-bar" }, h("slot", { name: SLOTS.actionBar }))) : null;
69
+ const children = [actionBarNode, contentNode];
70
+ if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
71
+ children.reverse();
72
+ }
73
+ return h(Fragment, null, children);
74
+ }
75
+ get el() { return this; }
76
+ static get style() { return shellCenterRowCss; }
77
+ }, [1, "calcite-shell-center-row", {
78
+ "detached": [516],
79
+ "heightScale": [513, "height-scale"],
80
+ "position": [513]
81
+ }]);
82
+ function defineCustomElement$1() {
83
+ if (typeof customElements === "undefined") {
84
+ return;
85
+ }
86
+ const components = ["calcite-shell-center-row"];
87
+ components.forEach(tagName => { switch (tagName) {
88
+ case "calcite-shell-center-row":
89
+ if (!customElements.get(tagName)) {
90
+ customElements.define(tagName, ShellCenterRow);
91
+ }
92
+ break;
93
+ } });
94
+ }
95
+ defineCustomElement$1();
96
+
97
+ const CalciteShellCenterRow = ShellCenterRow;
98
+ const defineCustomElement = defineCustomElement$1;
99
+
100
+ export { CalciteShellCenterRow, defineCustomElement };