@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,180 @@
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 { n as numberStringFormatter } from './locale2.js';
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
+ /**
14
+ * Check if date is within a min and max
15
+ *
16
+ * @param date
17
+ * @param min
18
+ * @param max
19
+ */
20
+ function inRange(date, min, max) {
21
+ const time = date.getTime();
22
+ const afterMin = !(min instanceof Date) || time >= min.getTime();
23
+ const beforeMax = !(max instanceof Date) || time <= max.getTime();
24
+ return afterMin && beforeMax;
25
+ }
26
+ /**
27
+ * Ensures date is within range,
28
+ * returns min or max if out of bounds
29
+ *
30
+ * @param date
31
+ * @param min
32
+ * @param max
33
+ */
34
+ function dateFromRange(date, min, max) {
35
+ if (!(date instanceof Date)) {
36
+ return null;
37
+ }
38
+ const time = date.getTime();
39
+ const beforeMin = min instanceof Date && time < min.getTime();
40
+ const afterMax = max instanceof Date && time > max.getTime();
41
+ if (beforeMin) {
42
+ return min;
43
+ }
44
+ if (afterMax) {
45
+ return max;
46
+ }
47
+ return date;
48
+ }
49
+ /**
50
+ * Parse an iso8601 string (YYYY-mm-dd) into a valid date.
51
+ * TODO: handle time when time of day UI is added
52
+ *
53
+ * @param iso8601
54
+ * @param isEndDate
55
+ */
56
+ function dateFromISO(iso8601, isEndDate = false) {
57
+ if (iso8601 instanceof Date) {
58
+ return iso8601;
59
+ }
60
+ if (!iso8601 || typeof iso8601 !== "string") {
61
+ return null;
62
+ }
63
+ const d = iso8601.split(/[: T-]/).map(parseFloat);
64
+ const date = new Date(d[0], (d[1] || 1) - 1, d[2] || 1);
65
+ date.setFullYear(d[0]);
66
+ if (isNaN(date.getTime())) {
67
+ throw new Error(`Invalid ISO 8601 date: "${iso8601}"`);
68
+ }
69
+ if (isEndDate) {
70
+ return setEndOfDay(date);
71
+ }
72
+ return date;
73
+ }
74
+ /**
75
+ * Return first portion of ISO string (YYYY-mm-dd)
76
+ *
77
+ * @param date
78
+ */
79
+ function dateToISO(date) {
80
+ if (typeof date === "string") {
81
+ return date;
82
+ }
83
+ if (date instanceof Date) {
84
+ return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().split("T")[0];
85
+ }
86
+ return "";
87
+ }
88
+ /**
89
+ * Check if two dates are the same day, month, year
90
+ *
91
+ * @param d1
92
+ * @param d2
93
+ */
94
+ function sameDate(d1, d2) {
95
+ return (d1 instanceof Date &&
96
+ d2 instanceof Date &&
97
+ d1.getDate() === d2.getDate() &&
98
+ d1.getMonth() === d2.getMonth() &&
99
+ d1.getFullYear() === d2.getFullYear());
100
+ }
101
+ /**
102
+ * Get a date one month in the past
103
+ *
104
+ * @param date
105
+ */
106
+ function prevMonth(date) {
107
+ const month = date.getMonth();
108
+ const nextDate = new Date(date);
109
+ nextDate.setMonth(month - 1);
110
+ // date doesn't exist in new month, use last day
111
+ if (month === nextDate.getMonth()) {
112
+ return new Date(date.getFullYear(), month, 0);
113
+ }
114
+ return nextDate;
115
+ }
116
+ /**
117
+ * Get a date one month in the future
118
+ *
119
+ * @param date
120
+ */
121
+ function nextMonth(date) {
122
+ const month = date.getMonth();
123
+ const nextDate = new Date(date);
124
+ nextDate.setMonth(month + 1);
125
+ // date doesn't exist in new month, use last day
126
+ if ((month + 2) % 7 === nextDate.getMonth() % 7) {
127
+ return new Date(date.getFullYear(), month + 2, 0);
128
+ }
129
+ return nextDate;
130
+ }
131
+ /**
132
+ * Parse numeric units for day, month, and year from a localized string
133
+ * month starts at 0 (can pass to date constructor)
134
+ *
135
+ * @param str
136
+ * @param localeData
137
+ */
138
+ function parseDateString(str, localeData) {
139
+ const { separator, unitOrder } = localeData;
140
+ const order = getOrder(unitOrder);
141
+ const values = str.split(separator).map((part) => numberStringFormatter.delocalize(part));
142
+ return {
143
+ day: parseInt(values[order.indexOf("d")]),
144
+ month: parseInt(values[order.indexOf("m")]) - 1,
145
+ year: parseInt(values[order.indexOf("y")])
146
+ };
147
+ }
148
+ /**
149
+ * Based on the unitOrder string, find order of month, day, and year for locale
150
+ *
151
+ * @param unitOrder
152
+ */
153
+ function getOrder(unitOrder) {
154
+ const signifiers = ["d", "m", "y"];
155
+ const order = unitOrder.toLowerCase();
156
+ return signifiers.sort((a, b) => order.indexOf(a) - order.indexOf(b));
157
+ }
158
+ /**
159
+ * Get number of days between two dates
160
+ *
161
+ * @param date1
162
+ * @param date2
163
+ */
164
+ function getDaysDiff(date1, date2) {
165
+ const ts1 = date1.getTime();
166
+ const ts2 = date2.getTime();
167
+ return (ts1 - ts2) / (1000 * 3600 * 24);
168
+ }
169
+ /**
170
+ * Set time of the day to the end.
171
+ *
172
+ * @param {Date} date Date.
173
+ * @returns {Date} Date with time set to end of day .
174
+ */
175
+ function setEndOfDay(date) {
176
+ date.setHours(23, 59, 59, 999);
177
+ return date;
178
+ }
179
+
180
+ export { dateFromISO as a, dateFromRange as b, sameDate as c, dateToISO as d, getOrder as e, prevMonth as f, getDaysDiff as g, inRange as i, nextMonth as n, parseDateString as p, setEndOfDay as s };
@@ -0,0 +1,487 @@
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
+ /** Detect free variable `global` from Node.js. */
7
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
8
+
9
+ /** Detect free variable `self`. */
10
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
11
+
12
+ /** Used as a reference to the global object. */
13
+ var root = freeGlobal || freeSelf || Function('return this')();
14
+
15
+ /** Built-in value references. */
16
+ var Symbol = root.Symbol;
17
+
18
+ /** Used for built-in method references. */
19
+ var objectProto$1 = Object.prototype;
20
+
21
+ /** Used to check objects for own properties. */
22
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
23
+
24
+ /**
25
+ * Used to resolve the
26
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
27
+ * of values.
28
+ */
29
+ var nativeObjectToString$1 = objectProto$1.toString;
30
+
31
+ /** Built-in value references. */
32
+ var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
33
+
34
+ /**
35
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
36
+ *
37
+ * @private
38
+ * @param {*} value The value to query.
39
+ * @returns {string} Returns the raw `toStringTag`.
40
+ */
41
+ function getRawTag(value) {
42
+ var isOwn = hasOwnProperty.call(value, symToStringTag$1),
43
+ tag = value[symToStringTag$1];
44
+
45
+ try {
46
+ value[symToStringTag$1] = undefined;
47
+ var unmasked = true;
48
+ } catch (e) {}
49
+
50
+ var result = nativeObjectToString$1.call(value);
51
+ if (unmasked) {
52
+ if (isOwn) {
53
+ value[symToStringTag$1] = tag;
54
+ } else {
55
+ delete value[symToStringTag$1];
56
+ }
57
+ }
58
+ return result;
59
+ }
60
+
61
+ /** Used for built-in method references. */
62
+ var objectProto = Object.prototype;
63
+
64
+ /**
65
+ * Used to resolve the
66
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
67
+ * of values.
68
+ */
69
+ var nativeObjectToString = objectProto.toString;
70
+
71
+ /**
72
+ * Converts `value` to a string using `Object.prototype.toString`.
73
+ *
74
+ * @private
75
+ * @param {*} value The value to convert.
76
+ * @returns {string} Returns the converted string.
77
+ */
78
+ function objectToString(value) {
79
+ return nativeObjectToString.call(value);
80
+ }
81
+
82
+ /** `Object#toString` result references. */
83
+ var nullTag = '[object Null]',
84
+ undefinedTag = '[object Undefined]';
85
+
86
+ /** Built-in value references. */
87
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
88
+
89
+ /**
90
+ * The base implementation of `getTag` without fallbacks for buggy environments.
91
+ *
92
+ * @private
93
+ * @param {*} value The value to query.
94
+ * @returns {string} Returns the `toStringTag`.
95
+ */
96
+ function baseGetTag(value) {
97
+ if (value == null) {
98
+ return value === undefined ? undefinedTag : nullTag;
99
+ }
100
+ return (symToStringTag && symToStringTag in Object(value))
101
+ ? getRawTag(value)
102
+ : objectToString(value);
103
+ }
104
+
105
+ /**
106
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
107
+ * and has a `typeof` result of "object".
108
+ *
109
+ * @static
110
+ * @memberOf _
111
+ * @since 4.0.0
112
+ * @category Lang
113
+ * @param {*} value The value to check.
114
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
115
+ * @example
116
+ *
117
+ * _.isObjectLike({});
118
+ * // => true
119
+ *
120
+ * _.isObjectLike([1, 2, 3]);
121
+ * // => true
122
+ *
123
+ * _.isObjectLike(_.noop);
124
+ * // => false
125
+ *
126
+ * _.isObjectLike(null);
127
+ * // => false
128
+ */
129
+ function isObjectLike(value) {
130
+ return value != null && typeof value == 'object';
131
+ }
132
+
133
+ /** `Object#toString` result references. */
134
+ var symbolTag = '[object Symbol]';
135
+
136
+ /**
137
+ * Checks if `value` is classified as a `Symbol` primitive or object.
138
+ *
139
+ * @static
140
+ * @memberOf _
141
+ * @since 4.0.0
142
+ * @category Lang
143
+ * @param {*} value The value to check.
144
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
145
+ * @example
146
+ *
147
+ * _.isSymbol(Symbol.iterator);
148
+ * // => true
149
+ *
150
+ * _.isSymbol('abc');
151
+ * // => false
152
+ */
153
+ function isSymbol(value) {
154
+ return typeof value == 'symbol' ||
155
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
156
+ }
157
+
158
+ /** Used to match a single whitespace character. */
159
+ var reWhitespace = /\s/;
160
+
161
+ /**
162
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
163
+ * character of `string`.
164
+ *
165
+ * @private
166
+ * @param {string} string The string to inspect.
167
+ * @returns {number} Returns the index of the last non-whitespace character.
168
+ */
169
+ function trimmedEndIndex(string) {
170
+ var index = string.length;
171
+
172
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
173
+ return index;
174
+ }
175
+
176
+ /** Used to match leading whitespace. */
177
+ var reTrimStart = /^\s+/;
178
+
179
+ /**
180
+ * The base implementation of `_.trim`.
181
+ *
182
+ * @private
183
+ * @param {string} string The string to trim.
184
+ * @returns {string} Returns the trimmed string.
185
+ */
186
+ function baseTrim(string) {
187
+ return string
188
+ ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
189
+ : string;
190
+ }
191
+
192
+ /**
193
+ * Checks if `value` is the
194
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
195
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
196
+ *
197
+ * @static
198
+ * @memberOf _
199
+ * @since 0.1.0
200
+ * @category Lang
201
+ * @param {*} value The value to check.
202
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
203
+ * @example
204
+ *
205
+ * _.isObject({});
206
+ * // => true
207
+ *
208
+ * _.isObject([1, 2, 3]);
209
+ * // => true
210
+ *
211
+ * _.isObject(_.noop);
212
+ * // => true
213
+ *
214
+ * _.isObject(null);
215
+ * // => false
216
+ */
217
+ function isObject(value) {
218
+ var type = typeof value;
219
+ return value != null && (type == 'object' || type == 'function');
220
+ }
221
+
222
+ /** Used as references for various `Number` constants. */
223
+ var NAN = 0 / 0;
224
+
225
+ /** Used to detect bad signed hexadecimal string values. */
226
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
227
+
228
+ /** Used to detect binary string values. */
229
+ var reIsBinary = /^0b[01]+$/i;
230
+
231
+ /** Used to detect octal string values. */
232
+ var reIsOctal = /^0o[0-7]+$/i;
233
+
234
+ /** Built-in method references without a dependency on `root`. */
235
+ var freeParseInt = parseInt;
236
+
237
+ /**
238
+ * Converts `value` to a number.
239
+ *
240
+ * @static
241
+ * @memberOf _
242
+ * @since 4.0.0
243
+ * @category Lang
244
+ * @param {*} value The value to process.
245
+ * @returns {number} Returns the number.
246
+ * @example
247
+ *
248
+ * _.toNumber(3.2);
249
+ * // => 3.2
250
+ *
251
+ * _.toNumber(Number.MIN_VALUE);
252
+ * // => 5e-324
253
+ *
254
+ * _.toNumber(Infinity);
255
+ * // => Infinity
256
+ *
257
+ * _.toNumber('3.2');
258
+ * // => 3.2
259
+ */
260
+ function toNumber(value) {
261
+ if (typeof value == 'number') {
262
+ return value;
263
+ }
264
+ if (isSymbol(value)) {
265
+ return NAN;
266
+ }
267
+ if (isObject(value)) {
268
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
269
+ value = isObject(other) ? (other + '') : other;
270
+ }
271
+ if (typeof value != 'string') {
272
+ return value === 0 ? value : +value;
273
+ }
274
+ value = baseTrim(value);
275
+ var isBinary = reIsBinary.test(value);
276
+ return (isBinary || reIsOctal.test(value))
277
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
278
+ : (reIsBadHex.test(value) ? NAN : +value);
279
+ }
280
+
281
+ /**
282
+ * Gets the timestamp of the number of milliseconds that have elapsed since
283
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
284
+ *
285
+ * @static
286
+ * @memberOf _
287
+ * @since 2.4.0
288
+ * @category Date
289
+ * @returns {number} Returns the timestamp.
290
+ * @example
291
+ *
292
+ * _.defer(function(stamp) {
293
+ * console.log(_.now() - stamp);
294
+ * }, _.now());
295
+ * // => Logs the number of milliseconds it took for the deferred invocation.
296
+ */
297
+ var now = function() {
298
+ return root.Date.now();
299
+ };
300
+
301
+ /** Error message constants. */
302
+ var FUNC_ERROR_TEXT = 'Expected a function';
303
+
304
+ /* Built-in method references for those with the same name as other `lodash` methods. */
305
+ var nativeMax = Math.max,
306
+ nativeMin = Math.min;
307
+
308
+ /**
309
+ * Creates a debounced function that delays invoking `func` until after `wait`
310
+ * milliseconds have elapsed since the last time the debounced function was
311
+ * invoked. The debounced function comes with a `cancel` method to cancel
312
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
313
+ * Provide `options` to indicate whether `func` should be invoked on the
314
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
315
+ * with the last arguments provided to the debounced function. Subsequent
316
+ * calls to the debounced function return the result of the last `func`
317
+ * invocation.
318
+ *
319
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
320
+ * invoked on the trailing edge of the timeout only if the debounced function
321
+ * is invoked more than once during the `wait` timeout.
322
+ *
323
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
324
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
325
+ *
326
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
327
+ * for details over the differences between `_.debounce` and `_.throttle`.
328
+ *
329
+ * @static
330
+ * @memberOf _
331
+ * @since 0.1.0
332
+ * @category Function
333
+ * @param {Function} func The function to debounce.
334
+ * @param {number} [wait=0] The number of milliseconds to delay.
335
+ * @param {Object} [options={}] The options object.
336
+ * @param {boolean} [options.leading=false]
337
+ * Specify invoking on the leading edge of the timeout.
338
+ * @param {number} [options.maxWait]
339
+ * The maximum time `func` is allowed to be delayed before it's invoked.
340
+ * @param {boolean} [options.trailing=true]
341
+ * Specify invoking on the trailing edge of the timeout.
342
+ * @returns {Function} Returns the new debounced function.
343
+ * @example
344
+ *
345
+ * // Avoid costly calculations while the window size is in flux.
346
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
347
+ *
348
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
349
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
350
+ * 'leading': true,
351
+ * 'trailing': false
352
+ * }));
353
+ *
354
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
355
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
356
+ * var source = new EventSource('/stream');
357
+ * jQuery(source).on('message', debounced);
358
+ *
359
+ * // Cancel the trailing debounced invocation.
360
+ * jQuery(window).on('popstate', debounced.cancel);
361
+ */
362
+ function debounce(func, wait, options) {
363
+ var lastArgs,
364
+ lastThis,
365
+ maxWait,
366
+ result,
367
+ timerId,
368
+ lastCallTime,
369
+ lastInvokeTime = 0,
370
+ leading = false,
371
+ maxing = false,
372
+ trailing = true;
373
+
374
+ if (typeof func != 'function') {
375
+ throw new TypeError(FUNC_ERROR_TEXT);
376
+ }
377
+ wait = toNumber(wait) || 0;
378
+ if (isObject(options)) {
379
+ leading = !!options.leading;
380
+ maxing = 'maxWait' in options;
381
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
382
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
383
+ }
384
+
385
+ function invokeFunc(time) {
386
+ var args = lastArgs,
387
+ thisArg = lastThis;
388
+
389
+ lastArgs = lastThis = undefined;
390
+ lastInvokeTime = time;
391
+ result = func.apply(thisArg, args);
392
+ return result;
393
+ }
394
+
395
+ function leadingEdge(time) {
396
+ // Reset any `maxWait` timer.
397
+ lastInvokeTime = time;
398
+ // Start the timer for the trailing edge.
399
+ timerId = setTimeout(timerExpired, wait);
400
+ // Invoke the leading edge.
401
+ return leading ? invokeFunc(time) : result;
402
+ }
403
+
404
+ function remainingWait(time) {
405
+ var timeSinceLastCall = time - lastCallTime,
406
+ timeSinceLastInvoke = time - lastInvokeTime,
407
+ timeWaiting = wait - timeSinceLastCall;
408
+
409
+ return maxing
410
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
411
+ : timeWaiting;
412
+ }
413
+
414
+ function shouldInvoke(time) {
415
+ var timeSinceLastCall = time - lastCallTime,
416
+ timeSinceLastInvoke = time - lastInvokeTime;
417
+
418
+ // Either this is the first call, activity has stopped and we're at the
419
+ // trailing edge, the system time has gone backwards and we're treating
420
+ // it as the trailing edge, or we've hit the `maxWait` limit.
421
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
422
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
423
+ }
424
+
425
+ function timerExpired() {
426
+ var time = now();
427
+ if (shouldInvoke(time)) {
428
+ return trailingEdge(time);
429
+ }
430
+ // Restart the timer.
431
+ timerId = setTimeout(timerExpired, remainingWait(time));
432
+ }
433
+
434
+ function trailingEdge(time) {
435
+ timerId = undefined;
436
+
437
+ // Only invoke if we have `lastArgs` which means `func` has been
438
+ // debounced at least once.
439
+ if (trailing && lastArgs) {
440
+ return invokeFunc(time);
441
+ }
442
+ lastArgs = lastThis = undefined;
443
+ return result;
444
+ }
445
+
446
+ function cancel() {
447
+ if (timerId !== undefined) {
448
+ clearTimeout(timerId);
449
+ }
450
+ lastInvokeTime = 0;
451
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
452
+ }
453
+
454
+ function flush() {
455
+ return timerId === undefined ? result : trailingEdge(now());
456
+ }
457
+
458
+ function debounced() {
459
+ var time = now(),
460
+ isInvoking = shouldInvoke(time);
461
+
462
+ lastArgs = arguments;
463
+ lastThis = this;
464
+ lastCallTime = time;
465
+
466
+ if (isInvoking) {
467
+ if (timerId === undefined) {
468
+ return leadingEdge(lastCallTime);
469
+ }
470
+ if (maxing) {
471
+ // Handle invocations in a tight loop.
472
+ clearTimeout(timerId);
473
+ timerId = setTimeout(timerExpired, wait);
474
+ return invokeFunc(lastCallTime);
475
+ }
476
+ }
477
+ if (timerId === undefined) {
478
+ timerId = setTimeout(timerExpired, wait);
479
+ }
480
+ return result;
481
+ }
482
+ debounced.cancel = cancel;
483
+ debounced.flush = flush;
484
+ return debounced;
485
+ }
486
+
487
+ export { Symbol as S, isSymbol as a, baseGetTag as b, isObjectLike as c, debounce as d, freeGlobal as f, isObject as i, root as r };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DeductCalculator extends Components.DeductCalculator, HTMLElement {}
4
+ export const DeductCalculator: {
5
+ prototype: DeductCalculator;
6
+ new (): DeductCalculator;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -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 { D as DeductCalculator$1, d as defineCustomElement$1 } from './deduct-calculator2.js';
7
+
8
+ const DeductCalculator = DeductCalculator$1;
9
+ const defineCustomElement = defineCustomElement$1;
10
+
11
+ export { DeductCalculator, defineCustomElement };