@esri/solutions-components 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-ee607805.js');
11
- const pciUtils = require('./pciUtils-6a806ba4.js');
11
+ const pciUtils = require('./pciUtils-423cfc68.js');
12
12
 
13
13
  const deductCalculatorCss = ":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}";
14
14
 
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-ee607805.js');
11
- const pciUtils = require('./pciUtils-6a806ba4.js');
11
+ const pciUtils = require('./pciUtils-423cfc68.js');
12
12
 
13
13
  const pciCalculatorCss = ":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;-webkit-padding-end:1rem;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";
14
14
 
@@ -65,7 +65,8 @@ exports.EDistressType = void 0;
65
65
  EDistressType[EDistressType["SHOVING"] = 16] = "SHOVING";
66
66
  EDistressType[EDistressType["SLIPPAGE_CRACKING"] = 17] = "SLIPPAGE_CRACKING";
67
67
  EDistressType[EDistressType["SWELL"] = 18] = "SWELL";
68
- EDistressType[EDistressType["WEATHERING_RAVELING"] = 19] = "WEATHERING_RAVELING";
68
+ EDistressType[EDistressType["RAVELING"] = 19] = "RAVELING";
69
+ EDistressType[EDistressType["WEATHERING"] = 20] = "WEATHERING";
69
70
  })(exports.EDistressType || (exports.EDistressType = {}));
70
71
  /**
71
72
  * Calculate the deduct value for the given distress.
@@ -149,8 +150,11 @@ function calculateDeductValue(type, severity, density, showDebugging = false) {
149
150
  case exports.EDistressType.SWELL:
150
151
  calc = _calcSwell;
151
152
  break;
152
- case exports.EDistressType.WEATHERING_RAVELING:
153
- calc = _calcWeatheringReveling;
153
+ case exports.EDistressType.RAVELING:
154
+ calc = _calcRaveling;
155
+ break;
156
+ case exports.EDistressType.WEATHERING:
157
+ calc = _calcWeathering;
154
158
  break;
155
159
  }
156
160
  const dv = calc(_severity, Math.log10(_density));
@@ -673,10 +677,24 @@ function _calcSwell(severity, density) {
673
677
  *
674
678
  * @returns the calculated deduct value
675
679
  */
676
- function _calcWeatheringReveling(severity, density) {
677
- const vals = severity === exports.ESeverity.H ? [16.67, 10.94, 5.897, 13.38, -0.2589, -6.328, 1.806] :
678
- severity === exports.ESeverity.M ? [8.335, 4.022, 1.032, 6.267, 1.154, -3.004, 0.7874] :
679
- [1.761, 0.3251, -1.586, 5.783, 1.365, -3.576, 1.05];
680
+ function _calcRaveling(severity, density) {
681
+ const vals = severity === exports.ESeverity.H ? [16.77, 10.67, 5.758, 12.9, -0.0633, -5.659, 1.48] :
682
+ severity === exports.ESeverity.M ? [8.512, 5.106, 1.63, 3.469, 1.028, -1.211, 0.1938] :
683
+ [];
684
+ return _calc(density, vals);
685
+ }
686
+ /**
687
+ * Execute the deduct value calculation for the distress type
688
+ *
689
+ * @param severity The severity of the distress type
690
+ * @param density percent density of the distress type
691
+ *
692
+ * @returns the calculated deduct value
693
+ */
694
+ function _calcWeathering(severity, density) {
695
+ const vals = severity === exports.ESeverity.H ? [3.673, 3.349, 2.598, -1.233, 2.754, 2.434, -1.485] :
696
+ severity === exports.ESeverity.M ? [1.12, 0.9769, 0.93, -0.5955, 1.041, 1.111, -0.614] :
697
+ [-0.0386, -0.0736, 0.834, 1.63, -0.0287, -0.639, 0.1515];
680
698
  return _calc(density, vals);
681
699
  }
682
700
  /**
@@ -23,9 +23,9 @@
23
23
  -->
24
24
  <style>
25
25
  .main {
26
- position: absolute;
27
- right: 0px;
28
26
  background-color: var(--calcite-ui-foreground-1);
27
+ display: grid;
28
+ align-self: center;
29
29
  }
30
30
  .column {
31
31
  min-width: 300px;
@@ -33,9 +33,6 @@
33
33
  padding: 1rem;
34
34
  border: 1px solid;
35
35
  }
36
- .column[dir="rtl"] {
37
- float: left;
38
- }
39
36
  </style>
40
37
 
41
38
  <link rel="stylesheet" href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.94/dist/calcite/calcite.css" type="text/css" />
@@ -55,14 +55,16 @@
55
55
 
56
56
  <link
57
57
  rel="stylesheet"
58
- href="https://js.arcgis.com/4.23/esri/themes/light/main.css"
58
+ href="https://js.arcgis.com/4.25/esri/themes/light/main.css"
59
59
  />
60
- <link rel="stylesheet" href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.94/dist/calcite/calcite.css" type="text/css" />
60
+ <link rel="stylesheet" href="../../node_modules/@esri/calcite-components/dist/calcite/calcite.css" type="text/css" />
61
61
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
62
62
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
63
63
 
64
- <script src="https://js.arcgis.com/4.23/"></script>
65
- <script type="module" src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.94/dist/calcite/calcite.esm.js"></script>
64
+ <script src="https://js.arcgis.com/4.25/"></script>
65
+ <!-- <script type="module" src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.97/dist/calcite/calcite.esm.js"></script> -->
66
+ <script type="module" src="../../node_modules/@esri/calcite-components/dist/calcite/calcite.esm.js"></script>
67
+
66
68
  <script type="module" src="../solutions-components.esm.js"></script>
67
69
 
68
70
  <script>
@@ -63,7 +63,8 @@ export var EDistressType;
63
63
  EDistressType[EDistressType["SHOVING"] = 16] = "SHOVING";
64
64
  EDistressType[EDistressType["SLIPPAGE_CRACKING"] = 17] = "SLIPPAGE_CRACKING";
65
65
  EDistressType[EDistressType["SWELL"] = 18] = "SWELL";
66
- EDistressType[EDistressType["WEATHERING_RAVELING"] = 19] = "WEATHERING_RAVELING";
66
+ EDistressType[EDistressType["RAVELING"] = 19] = "RAVELING";
67
+ EDistressType[EDistressType["WEATHERING"] = 20] = "WEATHERING";
67
68
  })(EDistressType || (EDistressType = {}));
68
69
  /**
69
70
  * Calculate the deduct value for the given distress.
@@ -147,8 +148,11 @@ export function calculateDeductValue(type, severity, density, showDebugging = fa
147
148
  case EDistressType.SWELL:
148
149
  calc = _calcSwell;
149
150
  break;
150
- case EDistressType.WEATHERING_RAVELING:
151
- calc = _calcWeatheringReveling;
151
+ case EDistressType.RAVELING:
152
+ calc = _calcRaveling;
153
+ break;
154
+ case EDistressType.WEATHERING:
155
+ calc = _calcWeathering;
152
156
  break;
153
157
  }
154
158
  const dv = calc(_severity, Math.log10(_density));
@@ -671,10 +675,24 @@ function _calcSwell(severity, density) {
671
675
  *
672
676
  * @returns the calculated deduct value
673
677
  */
674
- function _calcWeatheringReveling(severity, density) {
675
- const vals = severity === ESeverity.H ? [16.67, 10.94, 5.897, 13.38, -0.2589, -6.328, 1.806] :
676
- severity === ESeverity.M ? [8.335, 4.022, 1.032, 6.267, 1.154, -3.004, 0.7874] :
677
- [1.761, 0.3251, -1.586, 5.783, 1.365, -3.576, 1.05];
678
+ function _calcRaveling(severity, density) {
679
+ const vals = severity === ESeverity.H ? [16.77, 10.67, 5.758, 12.9, -0.0633, -5.659, 1.48] :
680
+ severity === ESeverity.M ? [8.512, 5.106, 1.63, 3.469, 1.028, -1.211, 0.1938] :
681
+ [];
682
+ return _calc(density, vals);
683
+ }
684
+ /**
685
+ * Execute the deduct value calculation for the distress type
686
+ *
687
+ * @param severity The severity of the distress type
688
+ * @param density percent density of the distress type
689
+ *
690
+ * @returns the calculated deduct value
691
+ */
692
+ function _calcWeathering(severity, density) {
693
+ const vals = severity === ESeverity.H ? [3.673, 3.349, 2.598, -1.233, 2.754, 2.434, -1.485] :
694
+ severity === ESeverity.M ? [1.12, 0.9769, 0.93, -0.5955, 1.041, 1.111, -0.614] :
695
+ [-0.0386, -0.0736, 0.834, 1.63, -0.0287, -0.639, 0.1515];
678
696
  return _calc(density, vals);
679
697
  }
680
698
  /**
@@ -58,7 +58,8 @@ export enum EDistressType {
58
58
  SHOVING,
59
59
  SLIPPAGE_CRACKING,
60
60
  SWELL,
61
- WEATHERING_RAVELING
61
+ RAVELING,
62
+ WEATHERING
62
63
  }
63
64
 
64
65
  /**
@@ -160,8 +161,11 @@ export function calculateDeductValue(
160
161
  case EDistressType.SWELL:
161
162
  calc = _calcSwell;
162
163
  break;
163
- case EDistressType.WEATHERING_RAVELING:
164
- calc = _calcWeatheringReveling;
164
+ case EDistressType.RAVELING:
165
+ calc = _calcRaveling;
166
+ break;
167
+ case EDistressType.WEATHERING:
168
+ calc = _calcWeathering;
165
169
  break;
166
170
  }
167
171
 
@@ -851,13 +855,32 @@ function _calcSwell(
851
855
  *
852
856
  * @returns the calculated deduct value
853
857
  */
854
- function _calcWeatheringReveling(
858
+ function _calcRaveling(
859
+ severity: ESeverity,
860
+ density: number
861
+ ): number {
862
+ const vals = severity === ESeverity.H ? [16.77, 10.67, 5.758, 12.9, -0.0633, -5.659, 1.48] :
863
+ severity === ESeverity.M ? [8.512, 5.106, 1.63, 3.469, 1.028, -1.211, 0.1938] :
864
+ [];
865
+
866
+ return _calc(density, vals);
867
+ }
868
+
869
+ /**
870
+ * Execute the deduct value calculation for the distress type
871
+ *
872
+ * @param severity The severity of the distress type
873
+ * @param density percent density of the distress type
874
+ *
875
+ * @returns the calculated deduct value
876
+ */
877
+ function _calcWeathering(
855
878
  severity: ESeverity,
856
879
  density: number
857
880
  ): number {
858
- const vals = severity === ESeverity.H ? [16.67, 10.94, 5.897, 13.38, -0.2589, -6.328, 1.806] :
859
- severity === ESeverity.M ? [8.335, 4.022, 1.032, 6.267, 1.154, -3.004, 0.7874] :
860
- [1.761, 0.3251, -1.586, 5.783, 1.365, -3.576, 1.05];
881
+ const vals = severity === ESeverity.H ? [3.673, 3.349, 2.598, -1.233, 2.754, 2.434, -1.485] :
882
+ severity === ESeverity.M ? [1.12, 0.9769, 0.93, -0.5955, 1.041, 1.111, -0.614] :
883
+ [-0.0386, -0.0736, 0.834, 1.63, -0.0287, -0.639, 0.1515];
861
884
 
862
885
  return _calc(density, vals);
863
886
  }
@@ -0,0 +1,110 @@
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 { forceUpdate, h } from '@stencil/core/internal/client';
7
+ import { c as getElementDir } from './dom.js';
8
+ import { S as SLOTS } from './action-menu.js';
9
+ import { S as SLOTS$1 } from './action-group.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 overflowActionsDebounceInMs = 150;
17
+ const groupBufferPx = 2;
18
+ const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
19
+ const geActionDimensions = (actions) => {
20
+ const actionLen = actions === null || actions === void 0 ? void 0 : actions.length;
21
+ return {
22
+ actionWidth: actionLen ? getAverage(actions.map((action) => action.clientWidth || 0)) : 0,
23
+ actionHeight: actionLen ? getAverage(actions.map((action) => action.clientHeight || 0)) : 0
24
+ };
25
+ };
26
+ const getMaxActionCount = ({ width, actionWidth, layout, height, actionHeight, groupCount }) => {
27
+ const maxContainerPx = layout === "horizontal" ? width : height;
28
+ const avgItemPx = layout === "horizontal" ? actionWidth : actionHeight;
29
+ return Math.floor((maxContainerPx - groupCount * groupBufferPx) / avgItemPx);
30
+ };
31
+ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeight, height, groupCount }) => {
32
+ return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
33
+ };
34
+ const queryActions = (el) => {
35
+ return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS.trigger : true);
36
+ };
37
+ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
38
+ let needToSlotCount = overflowCount;
39
+ actionGroups.reverse().forEach((group) => {
40
+ let slottedWithinGroupCount = 0;
41
+ const groupActions = queryActions(group).reverse();
42
+ groupActions.forEach((groupAction) => {
43
+ if (groupAction.slot === SLOTS$1.menuActions) {
44
+ groupAction.removeAttribute("slot");
45
+ groupAction.textEnabled = expanded;
46
+ }
47
+ });
48
+ if (needToSlotCount > 0) {
49
+ groupActions.some((groupAction) => {
50
+ const unslottedActions = groupActions.filter((action) => !action.slot);
51
+ if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
52
+ groupAction.textEnabled = true;
53
+ groupAction.setAttribute("slot", SLOTS$1.menuActions);
54
+ slottedWithinGroupCount++;
55
+ if (slottedWithinGroupCount > 1) {
56
+ needToSlotCount--;
57
+ }
58
+ }
59
+ return needToSlotCount < 1;
60
+ });
61
+ }
62
+ forceUpdate(group);
63
+ });
64
+ };
65
+
66
+ /*!
67
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
68
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
69
+ * v1.0.0-beta.97
70
+ */
71
+ const ICONS = {
72
+ chevronsLeft: "chevrons-left",
73
+ chevronsRight: "chevrons-right"
74
+ };
75
+ function getCalcitePosition(position, el) {
76
+ var _a;
77
+ return position || ((_a = el.closest("calcite-shell-panel")) === null || _a === void 0 ? void 0 : _a.position) || "start";
78
+ }
79
+ function toggleChildActionText({ parent, expanded }) {
80
+ queryActions(parent)
81
+ .filter((el) => el.slot !== SLOTS$1.menuActions)
82
+ .forEach((action) => (action.textEnabled = expanded));
83
+ parent
84
+ .querySelectorAll("calcite-action-group, calcite-action-menu")
85
+ .forEach((el) => (el.expanded = expanded));
86
+ }
87
+ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
88
+ if (tooltip) {
89
+ tooltip.referenceElement = !expanded && referenceElement ? referenceElement : null;
90
+ }
91
+ if (ref) {
92
+ ref(referenceElement);
93
+ }
94
+ return referenceElement;
95
+ };
96
+ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
97
+ const rtl = getElementDir(el) === "rtl";
98
+ const expandText = expanded ? intlCollapse : intlExpand;
99
+ const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
100
+ if (rtl) {
101
+ icons.reverse();
102
+ }
103
+ const end = getCalcitePosition(position, el) === "end";
104
+ const expandIcon = end ? icons[1] : icons[0];
105
+ const collapseIcon = end ? icons[0] : icons[1];
106
+ const actionNode = (h("calcite-action", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
107
+ return actionNode;
108
+ };
109
+
110
+ export { ExpandToggle as E, overflowActions as a, getOverflowCount as b, geActionDimensions as g, overflowActionsDebounceInMs as o, queryActions as q, toggleChildActionText as t };
@@ -0,0 +1,22 @@
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 { h } from '@stencil/core/internal/client';
7
+
8
+ /*!
9
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
10
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
11
+ * v1.0.0-beta.97
12
+ */
13
+ function constrainHeadingLevel(level) {
14
+ return Math.min(Math.max(Math.ceil(level), 1), 6);
15
+ }
16
+ const Heading = (props, children) => {
17
+ const HeadingTag = `h${props.level}`;
18
+ delete props.level;
19
+ return h(HeadingTag, { ...props }, children);
20
+ };
21
+
22
+ export { Heading as H, constrainHeadingLevel as c };
@@ -0,0 +1,22 @@
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
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
+
8
+ function createCommonjsModule(fn, basedir, module) {
9
+ return module = {
10
+ path: basedir,
11
+ exports: {},
12
+ require: function (path, base) {
13
+ return commonjsRequire();
14
+ }
15
+ }, fn(module, module.exports), module.exports;
16
+ }
17
+
18
+ function commonjsRequire () {
19
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
20
+ }
21
+
22
+ export { commonjsGlobal as a, commonjsRequire as b, createCommonjsModule as c };
@@ -0,0 +1,276 @@
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 { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, g as geActionDimensions, a as overflowActions, E as ExpandToggle, b as getOverflowCount } from './ExpandToggle.js';
8
+ import { b as getSlotted, f as focusElement } from './dom.js';
9
+ import { c as createObserver } from './observers.js';
10
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
11
+ import { d as defineCustomElement$6 } from './action.js';
12
+ import { d as defineCustomElement$5 } from './action-group.js';
13
+ import { d as defineCustomElement$4 } from './action-menu.js';
14
+ import { d as defineCustomElement$3 } from './icon.js';
15
+ import { d as defineCustomElement$2 } from './loader.js';
16
+ import { d as defineCustomElement$1 } from './popover.js';
17
+ import { d as debounce } from './debounce.js';
18
+
19
+ /*!
20
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
21
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
22
+ * v1.0.0-beta.97
23
+ */
24
+ const CSS = {
25
+ actionGroupBottom: "action-group--bottom"
26
+ };
27
+ const SLOTS = {
28
+ bottomActions: "bottom-actions",
29
+ expandTooltip: "expand-tooltip"
30
+ };
31
+ const TEXT = {
32
+ expand: "Expand",
33
+ collapse: "Collapse"
34
+ };
35
+
36
+ const actionBarCss = "@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{pointer-events:auto;display:inline-flex;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=horizontal]){flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-width:0px;border-inline-end-width:1px;border-style:solid}::slotted(calcite-action-group:last-child){border-block-end-width:0px;border-inline-end-width:0px}.action-group--bottom{flex-grow:1;justify-content:flex-end;-webkit-padding-after:0px;padding-block-end:0px;-webkit-padding-end:0px;padding-inline-end:0px}";
37
+
38
+ const ActionBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
39
+ constructor() {
40
+ super();
41
+ this.__registerHost();
42
+ this.__attachShadow();
43
+ this.calciteActionBarToggle = createEvent(this, "calciteActionBarToggle", 6);
44
+ // --------------------------------------------------------------------------
45
+ //
46
+ // Properties
47
+ //
48
+ // --------------------------------------------------------------------------
49
+ /**
50
+ * When `true`, the expand-toggling behavior is disabled.
51
+ */
52
+ this.expandDisabled = false;
53
+ /**
54
+ * When `true`, the component is expanded.
55
+ */
56
+ this.expanded = false;
57
+ /**
58
+ * The layout direction of the actions.
59
+ */
60
+ this.layout = "vertical";
61
+ /**
62
+ * Disables automatically overflowing `calcite-action`s that won't fit into menus.
63
+ */
64
+ this.overflowActionsDisabled = false;
65
+ this.mutationObserver = createObserver("mutation", () => {
66
+ const { el, expanded } = this;
67
+ toggleChildActionText({ parent: el, expanded });
68
+ this.conditionallyOverflowActions();
69
+ });
70
+ this.resizeObserver = createObserver("resize", (entries) => this.resizeHandlerEntries(entries));
71
+ // --------------------------------------------------------------------------
72
+ //
73
+ // Private Methods
74
+ //
75
+ // --------------------------------------------------------------------------
76
+ this.actionMenuOpenChangeHandler = (event) => {
77
+ if (event.detail) {
78
+ const composedPath = event.composedPath();
79
+ Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((group) => {
80
+ if (!composedPath.includes(group)) {
81
+ group.menuOpen = false;
82
+ }
83
+ });
84
+ }
85
+ };
86
+ this.resizeHandlerEntries = (entries) => {
87
+ entries.forEach(this.resizeHandler);
88
+ };
89
+ this.resizeHandler = (entry) => {
90
+ const { width, height } = entry.contentRect;
91
+ this.resize({ width, height });
92
+ };
93
+ this.resize = debounce(({ width, height }) => {
94
+ const { el, expanded, expandDisabled, layout } = this;
95
+ if ((layout === "vertical" && !height) || (layout === "horizontal" && !width)) {
96
+ return;
97
+ }
98
+ const actions = queryActions(el);
99
+ const actionCount = expandDisabled ? actions.length : actions.length + 1;
100
+ const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
101
+ const groupCount = getSlotted(el, SLOTS.bottomActions) || !expandDisabled
102
+ ? actionGroups.length + 1
103
+ : actionGroups.length;
104
+ const { actionHeight, actionWidth } = geActionDimensions(actions);
105
+ const overflowCount = getOverflowCount({
106
+ layout,
107
+ actionCount,
108
+ actionHeight,
109
+ actionWidth,
110
+ height,
111
+ width,
112
+ groupCount
113
+ });
114
+ overflowActions({
115
+ actionGroups,
116
+ expanded,
117
+ overflowCount
118
+ });
119
+ }, overflowActionsDebounceInMs);
120
+ this.conditionallyOverflowActions = () => {
121
+ if (!this.overflowActionsDisabled) {
122
+ this.overflowActions();
123
+ }
124
+ };
125
+ this.toggleExpand = () => {
126
+ this.expanded = !this.expanded;
127
+ this.calciteActionBarToggle.emit();
128
+ };
129
+ this.setExpandToggleRef = (el) => {
130
+ this.expandToggleEl = el;
131
+ };
132
+ }
133
+ expandHandler() {
134
+ this.conditionallyOverflowActions();
135
+ }
136
+ expandedHandler(expanded) {
137
+ toggleChildActionText({ parent: this.el, expanded });
138
+ this.conditionallyOverflowActions();
139
+ }
140
+ overflowDisabledHandler(overflowActionsDisabled) {
141
+ overflowActionsDisabled
142
+ ? this.resizeObserver.disconnect()
143
+ : this.resizeObserver.observe(this.el);
144
+ }
145
+ // --------------------------------------------------------------------------
146
+ //
147
+ // Lifecycle
148
+ //
149
+ // --------------------------------------------------------------------------
150
+ componentDidLoad() {
151
+ this.conditionallyOverflowActions();
152
+ }
153
+ connectedCallback() {
154
+ var _a, _b;
155
+ const { el, expanded } = this;
156
+ toggleChildActionText({ parent: el, expanded });
157
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
158
+ if (!this.overflowActionsDisabled) {
159
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
160
+ }
161
+ this.conditionallyOverflowActions();
162
+ connectConditionalSlotComponent(this);
163
+ }
164
+ disconnectedCallback() {
165
+ var _a, _b;
166
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
167
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
168
+ disconnectConditionalSlotComponent(this);
169
+ }
170
+ // --------------------------------------------------------------------------
171
+ //
172
+ // Methods
173
+ //
174
+ // --------------------------------------------------------------------------
175
+ /**
176
+ * Overflows actions that won't fit into menus.
177
+ *
178
+ * @internal
179
+ */
180
+ async overflowActions() {
181
+ this.resize({ width: this.el.clientWidth, height: this.el.clientHeight });
182
+ }
183
+ /**
184
+ * Sets focus on the component.
185
+ *
186
+ * @param focusId
187
+ */
188
+ async setFocus(focusId) {
189
+ var _a;
190
+ if (focusId === "expand-toggle") {
191
+ await focusElement(this.expandToggleEl);
192
+ return;
193
+ }
194
+ (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
195
+ }
196
+ // --------------------------------------------------------------------------
197
+ //
198
+ // Render Methods
199
+ //
200
+ // --------------------------------------------------------------------------
201
+ renderBottomActionGroup() {
202
+ const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
203
+ const tooltip = getSlotted(el, SLOTS.expandTooltip);
204
+ const expandLabel = intlExpand || TEXT.expand;
205
+ const collapseLabel = intlCollapse || TEXT.collapse;
206
+ const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
207
+ return getSlotted(el, SLOTS.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS.bottomActions }), h("slot", { name: SLOTS.expandTooltip }), expandToggleNode)) : null;
208
+ }
209
+ render() {
210
+ return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
211
+ }
212
+ get el() { return this; }
213
+ static get watchers() { return {
214
+ "expandDisabled": ["expandHandler"],
215
+ "expanded": ["expandedHandler"],
216
+ "overflowActionsDisabled": ["overflowDisabledHandler"]
217
+ }; }
218
+ static get style() { return actionBarCss; }
219
+ }, [1, "calcite-action-bar", {
220
+ "expandDisabled": [516, "expand-disabled"],
221
+ "expanded": [1540],
222
+ "intlExpand": [1, "intl-expand"],
223
+ "intlCollapse": [1, "intl-collapse"],
224
+ "layout": [513],
225
+ "overflowActionsDisabled": [516, "overflow-actions-disabled"],
226
+ "position": [513],
227
+ "scale": [513],
228
+ "overflowActions": [64],
229
+ "setFocus": [64]
230
+ }]);
231
+ function defineCustomElement() {
232
+ if (typeof customElements === "undefined") {
233
+ return;
234
+ }
235
+ const components = ["calcite-action-bar", "calcite-action", "calcite-action-group", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-popover"];
236
+ components.forEach(tagName => { switch (tagName) {
237
+ case "calcite-action-bar":
238
+ if (!customElements.get(tagName)) {
239
+ customElements.define(tagName, ActionBar);
240
+ }
241
+ break;
242
+ case "calcite-action":
243
+ if (!customElements.get(tagName)) {
244
+ defineCustomElement$6();
245
+ }
246
+ break;
247
+ case "calcite-action-group":
248
+ if (!customElements.get(tagName)) {
249
+ defineCustomElement$5();
250
+ }
251
+ break;
252
+ case "calcite-action-menu":
253
+ if (!customElements.get(tagName)) {
254
+ defineCustomElement$4();
255
+ }
256
+ break;
257
+ case "calcite-icon":
258
+ if (!customElements.get(tagName)) {
259
+ defineCustomElement$3();
260
+ }
261
+ break;
262
+ case "calcite-loader":
263
+ if (!customElements.get(tagName)) {
264
+ defineCustomElement$2();
265
+ }
266
+ break;
267
+ case "calcite-popover":
268
+ if (!customElements.get(tagName)) {
269
+ defineCustomElement$1();
270
+ }
271
+ break;
272
+ } });
273
+ }
274
+ defineCustomElement();
275
+
276
+ export { ActionBar as A, defineCustomElement as d };