@esri/solutions-components 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -3
- package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-893499a5.js} +3 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +9 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
- package/dist/collection/components/solution-item/solution-item.js +2 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
- package/dist/collection/utils/solution-store.js +2 -0
- package/dist/collection/utils/solution-store.js.map +1 -1
- package/dist/collection/utils/solution-store.ts +2 -0
- package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
- package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
- package/dist/esm/solution-configuration.entry.js +10 -3
- package/dist/esm/solution-configuration.entry.js.map +1 -1
- package/dist/esm/solution-contents_3.entry.js +3 -1
- package/dist/esm/solution-contents_3.entry.js.map +1 -1
- package/dist/esm/{solution-store-b3c65467.js → solution-store-0c58c852.js} +3 -1
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-b25f6ebe.js → p-659edb14.js} +3 -1
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-638738f2.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/{p-7e8985f2.entry.js → p-90629c1d.entry.js} +11 -4
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-542189bc.entry.js → p-984cb687.entry.js} +17 -7
- package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/solution-store.ts +2 -0
- package/dist/solutions-components_commit.txt +9 -6
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-e2fc11ac.js.map +0 -1
- package/dist/components/ExpandToggle.js +0 -112
- package/dist/components/ExpandToggle.js.map +0 -1
- package/dist/components/Heading.js +0 -24
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -24
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/action-bar.js +0 -278
- package/dist/components/action-bar.js.map +0 -1
- package/dist/components/action-group.js +0 -151
- package/dist/components/action-group.js.map +0 -1
- package/dist/components/action-menu.js +0 -358
- package/dist/components/action-menu.js.map +0 -1
- package/dist/components/action.js +0 -216
- package/dist/components/action.js.map +0 -1
- package/dist/components/array.js +0 -17
- package/dist/components/array.js.map +0 -1
- package/dist/components/buffer-tools.d.ts +0 -11
- package/dist/components/buffer-tools.js +0 -13
- package/dist/components/buffer-tools.js.map +0 -1
- package/dist/components/buffer-tools2.js +0 -256
- package/dist/components/buffer-tools2.js.map +0 -1
- package/dist/components/button.js +0 -265
- package/dist/components/button.js.map +0 -1
- package/dist/components/calcite-accordion-item.js +0 -246
- package/dist/components/calcite-accordion-item.js.map +0 -1
- package/dist/components/calcite-accordion.js +0 -182
- package/dist/components/calcite-accordion.js.map +0 -1
- package/dist/components/calcite-action-bar.js +0 -13
- package/dist/components/calcite-action-bar.js.map +0 -1
- package/dist/components/calcite-action-group.js +0 -13
- package/dist/components/calcite-action-group.js.map +0 -1
- package/dist/components/calcite-action-menu.js +0 -13
- package/dist/components/calcite-action-menu.js.map +0 -1
- package/dist/components/calcite-action-pad.js +0 -199
- package/dist/components/calcite-action-pad.js.map +0 -1
- package/dist/components/calcite-action.js +0 -13
- package/dist/components/calcite-action.js.map +0 -1
- package/dist/components/calcite-alert.js +0 -299
- package/dist/components/calcite-alert.js.map +0 -1
- package/dist/components/calcite-avatar.js +0 -184
- package/dist/components/calcite-avatar.js.map +0 -1
- package/dist/components/calcite-block-section.js +0 -157
- package/dist/components/calcite-block-section.js.map +0 -1
- package/dist/components/calcite-block.js +0 -277
- package/dist/components/calcite-block.js.map +0 -1
- package/dist/components/calcite-button.js +0 -13
- package/dist/components/calcite-button.js.map +0 -1
- package/dist/components/calcite-card.js +0 -189
- package/dist/components/calcite-card.js.map +0 -1
- package/dist/components/calcite-checkbox.js +0 -13
- package/dist/components/calcite-checkbox.js.map +0 -1
- package/dist/components/calcite-chip.js +0 -13
- package/dist/components/calcite-chip.js.map +0 -1
- package/dist/components/calcite-color-picker-hex-input.js +0 -13
- package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
- package/dist/components/calcite-color-picker-swatch.js +0 -13
- package/dist/components/calcite-color-picker-swatch.js.map +0 -1
- package/dist/components/calcite-color-picker.js +0 -1038
- package/dist/components/calcite-color-picker.js.map +0 -1
- package/dist/components/calcite-combobox-item-group.js +0 -77
- package/dist/components/calcite-combobox-item-group.js.map +0 -1
- package/dist/components/calcite-combobox-item.js +0 -13
- package/dist/components/calcite-combobox-item.js.map +0 -1
- package/dist/components/calcite-combobox.js +0 -13
- package/dist/components/calcite-combobox.js.map +0 -1
- package/dist/components/calcite-date-picker-day.js +0 -13
- package/dist/components/calcite-date-picker-day.js.map +0 -1
- package/dist/components/calcite-date-picker-month-header.js +0 -13
- package/dist/components/calcite-date-picker-month-header.js.map +0 -1
- package/dist/components/calcite-date-picker-month.js +0 -13
- package/dist/components/calcite-date-picker-month.js.map +0 -1
- package/dist/components/calcite-date-picker.js +0 -13
- package/dist/components/calcite-date-picker.js.map +0 -1
- package/dist/components/calcite-dropdown-group.js +0 -101
- package/dist/components/calcite-dropdown-group.js.map +0 -1
- package/dist/components/calcite-dropdown-item.js +0 -237
- package/dist/components/calcite-dropdown-item.js.map +0 -1
- package/dist/components/calcite-dropdown.js +0 -13
- package/dist/components/calcite-dropdown.js.map +0 -1
- package/dist/components/calcite-fab.js +0 -146
- package/dist/components/calcite-fab.js.map +0 -1
- package/dist/components/calcite-filter.js +0 -197
- package/dist/components/calcite-filter.js.map +0 -1
- package/dist/components/calcite-flow-item.js +0 -245
- package/dist/components/calcite-flow-item.js.map +0 -1
- package/dist/components/calcite-flow.js +0 -149
- package/dist/components/calcite-flow.js.map +0 -1
- package/dist/components/calcite-graph.js +0 -13
- package/dist/components/calcite-graph.js.map +0 -1
- package/dist/components/calcite-handle.js +0 -13
- package/dist/components/calcite-handle.js.map +0 -1
- package/dist/components/calcite-icon.js +0 -13
- package/dist/components/calcite-icon.js.map +0 -1
- package/dist/components/calcite-inline-editable.js +0 -296
- package/dist/components/calcite-inline-editable.js.map +0 -1
- package/dist/components/calcite-input-date-picker.js +0 -715
- package/dist/components/calcite-input-date-picker.js.map +0 -1
- package/dist/components/calcite-input-message.js +0 -13
- package/dist/components/calcite-input-message.js.map +0 -1
- package/dist/components/calcite-input-number.js +0 -639
- package/dist/components/calcite-input-number.js.map +0 -1
- package/dist/components/calcite-input-text.js +0 -402
- package/dist/components/calcite-input-text.js.map +0 -1
- package/dist/components/calcite-input-time-picker.js +0 -436
- package/dist/components/calcite-input-time-picker.js.map +0 -1
- package/dist/components/calcite-input.js +0 -13
- package/dist/components/calcite-input.js.map +0 -1
- package/dist/components/calcite-label.js +0 -13
- package/dist/components/calcite-label.js.map +0 -1
- package/dist/components/calcite-link.js +0 -13
- package/dist/components/calcite-link.js.map +0 -1
- package/dist/components/calcite-list-item-group.js +0 -67
- package/dist/components/calcite-list-item-group.js.map +0 -1
- package/dist/components/calcite-list-item.js +0 -13
- package/dist/components/calcite-list-item.js.map +0 -1
- package/dist/components/calcite-list.js +0 -13
- package/dist/components/calcite-list.js.map +0 -1
- package/dist/components/calcite-loader.js +0 -13
- package/dist/components/calcite-loader.js.map +0 -1
- package/dist/components/calcite-modal.js +0 -500
- package/dist/components/calcite-modal.js.map +0 -1
- package/dist/components/calcite-notice.js +0 -13
- package/dist/components/calcite-notice.js.map +0 -1
- package/dist/components/calcite-option-group.js +0 -66
- package/dist/components/calcite-option-group.js.map +0 -1
- package/dist/components/calcite-option.js +0 -13
- package/dist/components/calcite-option.js.map +0 -1
- package/dist/components/calcite-pagination.js +0 -260
- package/dist/components/calcite-pagination.js.map +0 -1
- package/dist/components/calcite-panel.js +0 -13
- package/dist/components/calcite-panel.js.map +0 -1
- package/dist/components/calcite-pick-list-group.js +0 -76
- package/dist/components/calcite-pick-list-group.js.map +0 -1
- package/dist/components/calcite-pick-list-item.js +0 -13
- package/dist/components/calcite-pick-list-item.js.map +0 -1
- package/dist/components/calcite-pick-list.js +0 -175
- package/dist/components/calcite-pick-list.js.map +0 -1
- package/dist/components/calcite-popover-manager.js +0 -96
- package/dist/components/calcite-popover-manager.js.map +0 -1
- package/dist/components/calcite-popover.js +0 -13
- package/dist/components/calcite-popover.js.map +0 -1
- package/dist/components/calcite-progress.js +0 -13
- package/dist/components/calcite-progress.js.map +0 -1
- package/dist/components/calcite-radio-button-group.js +0 -134
- package/dist/components/calcite-radio-button-group.js.map +0 -1
- package/dist/components/calcite-radio-button.js +0 -312
- package/dist/components/calcite-radio-button.js.map +0 -1
- package/dist/components/calcite-radio-group-item.js +0 -13
- package/dist/components/calcite-radio-group-item.js.map +0 -1
- package/dist/components/calcite-radio-group.js +0 -13
- package/dist/components/calcite-radio-group.js.map +0 -1
- package/dist/components/calcite-rating.js +0 -203
- package/dist/components/calcite-rating.js.map +0 -1
- package/dist/components/calcite-scrim.js +0 -13
- package/dist/components/calcite-scrim.js.map +0 -1
- package/dist/components/calcite-select.js +0 -13
- package/dist/components/calcite-select.js.map +0 -1
- package/dist/components/calcite-shell-center-row.js +0 -102
- package/dist/components/calcite-shell-center-row.js.map +0 -1
- package/dist/components/calcite-shell-panel.js +0 -13
- package/dist/components/calcite-shell-panel.js.map +0 -1
- package/dist/components/calcite-shell.js +0 -13
- package/dist/components/calcite-shell.js.map +0 -1
- package/dist/components/calcite-slider.js +0 -13
- package/dist/components/calcite-slider.js.map +0 -1
- package/dist/components/calcite-sortable-list.js +0 -204
- package/dist/components/calcite-sortable-list.js.map +0 -1
- package/dist/components/calcite-split-button.js +0 -170
- package/dist/components/calcite-split-button.js.map +0 -1
- package/dist/components/calcite-stepper-item.js +0 -273
- package/dist/components/calcite-stepper-item.js.map +0 -1
- package/dist/components/calcite-stepper.js +0 -258
- package/dist/components/calcite-stepper.js.map +0 -1
- package/dist/components/calcite-switch.js +0 -13
- package/dist/components/calcite-switch.js.map +0 -1
- package/dist/components/calcite-tab-nav.js +0 -13
- package/dist/components/calcite-tab-nav.js.map +0 -1
- package/dist/components/calcite-tab-title.js +0 -13
- package/dist/components/calcite-tab-title.js.map +0 -1
- package/dist/components/calcite-tab.js +0 -13
- package/dist/components/calcite-tab.js.map +0 -1
- package/dist/components/calcite-tabs.js +0 -13
- package/dist/components/calcite-tabs.js.map +0 -1
- package/dist/components/calcite-tile-select-group.js +0 -67
- package/dist/components/calcite-tile-select-group.js.map +0 -1
- package/dist/components/calcite-tile-select.js +0 -268
- package/dist/components/calcite-tile-select.js.map +0 -1
- package/dist/components/calcite-tile.js +0 -13
- package/dist/components/calcite-tile.js.map +0 -1
- package/dist/components/calcite-time-picker.js +0 -13
- package/dist/components/calcite-time-picker.js.map +0 -1
- package/dist/components/calcite-tip-group.js +0 -43
- package/dist/components/calcite-tip-group.js.map +0 -1
- package/dist/components/calcite-tip-manager.js +0 -225
- package/dist/components/calcite-tip-manager.js.map +0 -1
- package/dist/components/calcite-tip.js +0 -164
- package/dist/components/calcite-tip.js.map +0 -1
- package/dist/components/calcite-tooltip-manager.js +0 -59
- package/dist/components/calcite-tooltip-manager.js.map +0 -1
- package/dist/components/calcite-tooltip.js +0 -13
- package/dist/components/calcite-tooltip.js.map +0 -1
- package/dist/components/calcite-tree-item.js +0 -13
- package/dist/components/calcite-tree-item.js.map +0 -1
- package/dist/components/calcite-tree.js +0 -13
- package/dist/components/calcite-tree.js.map +0 -1
- package/dist/components/calcite-value-list-item.js +0 -13
- package/dist/components/calcite-value-list-item.js.map +0 -1
- package/dist/components/calcite-value-list.js +0 -13
- package/dist/components/calcite-value-list.js.map +0 -1
- package/dist/components/check-list.d.ts +0 -11
- package/dist/components/check-list.js +0 -13
- package/dist/components/check-list.js.map +0 -1
- package/dist/components/check-list2.js +0 -128
- package/dist/components/check-list2.js.map +0 -1
- package/dist/components/checkbox.js +0 -167
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/chip.js +0 -172
- package/dist/components/chip.js.map +0 -1
- package/dist/components/color-picker-hex-input.js +0 -365
- package/dist/components/color-picker-hex-input.js.map +0 -1
- package/dist/components/color-picker-swatch.js +0 -2036
- package/dist/components/color-picker-swatch.js.map +0 -1
- package/dist/components/combobox-item.js +0 -184
- package/dist/components/combobox-item.js.map +0 -1
- package/dist/components/combobox.js +0 -914
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/conditionalSlot.js +0 -52
- package/dist/components/conditionalSlot.js.map +0 -1
- package/dist/components/config-buffer-tools.d.ts +0 -11
- package/dist/components/config-buffer-tools.js +0 -185
- package/dist/components/config-buffer-tools.js.map +0 -1
- package/dist/components/config-draw-tools.d.ts +0 -11
- package/dist/components/config-draw-tools.js +0 -124
- package/dist/components/config-draw-tools.js.map +0 -1
- package/dist/components/config-layer-picker.d.ts +0 -11
- package/dist/components/config-layer-picker.js +0 -148
- package/dist/components/config-layer-picker.js.map +0 -1
- package/dist/components/config-pdf-download.d.ts +0 -11
- package/dist/components/config-pdf-download.js +0 -157
- package/dist/components/config-pdf-download.js.map +0 -1
- package/dist/components/date-picker-day.js +0 -113
- package/dist/components/date-picker-day.js.map +0 -1
- package/dist/components/date-picker-month-header.js +0 -226
- package/dist/components/date-picker-month-header.js.map +0 -1
- package/dist/components/date-picker-month.js +0 -346
- package/dist/components/date-picker-month.js.map +0 -1
- package/dist/components/date-picker.js +0 -577
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date.js +0 -182
- package/dist/components/date.js.map +0 -1
- package/dist/components/debounce.js +0 -489
- package/dist/components/debounce.js.map +0 -1
- package/dist/components/dom.js +0 -233
- package/dist/components/dom.js.map +0 -1
- package/dist/components/dropdown.js +0 -507
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/filter.js +0 -765
- package/dist/components/filter.js.map +0 -1
- package/dist/components/floating-ui.js +0 -1787
- package/dist/components/floating-ui.js.map +0 -1
- package/dist/components/form.js +0 -230
- package/dist/components/form.js.map +0 -1
- package/dist/components/graph.js +0 -256
- package/dist/components/graph.js.map +0 -1
- package/dist/components/guid.js +0 -26
- package/dist/components/guid.js.map +0 -1
- package/dist/components/handle.js +0 -121
- package/dist/components/handle.js.map +0 -1
- package/dist/components/icon.js +0 -204
- package/dist/components/icon.js.map +0 -1
- package/dist/components/index.d.ts +0 -48
- package/dist/components/index.js +0 -190
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js +0 -201
- package/dist/components/index2.js.map +0 -1
- package/dist/components/input-message.js +0 -103
- package/dist/components/input-message.js.map +0 -1
- package/dist/components/input.js +0 -742
- package/dist/components/input.js.map +0 -1
- package/dist/components/interactive.js +0 -53
- package/dist/components/interactive.js.map +0 -1
- package/dist/components/interfaces.js +0 -21
- package/dist/components/interfaces.js.map +0 -1
- package/dist/components/interfaces2.js +0 -23
- package/dist/components/interfaces2.js.map +0 -1
- package/dist/components/interfaces3.js +0 -72
- package/dist/components/interfaces3.js.map +0 -1
- package/dist/components/json-editor.d.ts +0 -11
- package/dist/components/json-editor.js +0 -13
- package/dist/components/json-editor.js.map +0 -1
- package/dist/components/json-editor2.js +0 -443
- package/dist/components/json-editor2.js.map +0 -1
- package/dist/components/key.js +0 -18
- package/dist/components/key.js.map +0 -1
- package/dist/components/label.js +0 -108
- package/dist/components/label.js.map +0 -1
- package/dist/components/label2.js +0 -133
- package/dist/components/label2.js.map +0 -1
- package/dist/components/labelFormats.js +0 -212
- package/dist/components/labelFormats.js.map +0 -1
- package/dist/components/link.js +0 -125
- package/dist/components/link.js.map +0 -1
- package/dist/components/list-item.js +0 -151
- package/dist/components/list-item.js.map +0 -1
- package/dist/components/list.js +0 -85
- package/dist/components/list.js.map +0 -1
- package/dist/components/loadModules.js +0 -30
- package/dist/components/loadModules.js.map +0 -1
- package/dist/components/loader.js +0 -118
- package/dist/components/loader.js.map +0 -1
- package/dist/components/locale.js +0 -414
- package/dist/components/locale.js.map +0 -1
- package/dist/components/locale2.js +0 -415
- package/dist/components/locale2.js.map +0 -1
- package/dist/components/map-draw-tools.d.ts +0 -11
- package/dist/components/map-draw-tools.js +0 -13
- package/dist/components/map-draw-tools.js.map +0 -1
- package/dist/components/map-draw-tools2.js +0 -230
- package/dist/components/map-draw-tools2.js.map +0 -1
- package/dist/components/map-layer-picker.d.ts +0 -11
- package/dist/components/map-layer-picker.js +0 -13
- package/dist/components/map-layer-picker.js.map +0 -1
- package/dist/components/map-layer-picker2.js +0 -190
- package/dist/components/map-layer-picker2.js.map +0 -1
- package/dist/components/map-search.d.ts +0 -11
- package/dist/components/map-search.js +0 -157
- package/dist/components/map-search.js.map +0 -1
- package/dist/components/map-select-tools.d.ts +0 -11
- package/dist/components/map-select-tools.js +0 -13
- package/dist/components/map-select-tools.js.map +0 -1
- package/dist/components/map-select-tools2.js +0 -555
- package/dist/components/map-select-tools2.js.map +0 -1
- package/dist/components/mapViewUtils.js +0 -131
- package/dist/components/mapViewUtils.js.map +0 -1
- package/dist/components/math.js +0 -26
- package/dist/components/math.js.map +0 -1
- package/dist/components/nonChromiumPlatformUtils.js +0 -505
- package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
- package/dist/components/notice.js +0 -194
- package/dist/components/notice.js.map +0 -1
- package/dist/components/observers.js +0 -58
- package/dist/components/observers.js.map +0 -1
- package/dist/components/openCloseComponent.js +0 -58
- package/dist/components/openCloseComponent.js.map +0 -1
- package/dist/components/option.js +0 -111
- package/dist/components/option.js.map +0 -1
- package/dist/components/panel.js +0 -461
- package/dist/components/panel.js.map +0 -1
- package/dist/components/pdf-download.d.ts +0 -11
- package/dist/components/pdf-download.js +0 -13
- package/dist/components/pdf-download.js.map +0 -1
- package/dist/components/pdf-download2.js +0 -243
- package/dist/components/pdf-download2.js.map +0 -1
- package/dist/components/pick-list-item.js +0 -257
- package/dist/components/pick-list-item.js.map +0 -1
- package/dist/components/popover.js +0 -502
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.js +0 -62
- package/dist/components/progress.js.map +0 -1
- package/dist/components/public-notification.d.ts +0 -11
- package/dist/components/public-notification.js +0 -784
- package/dist/components/public-notification.js.map +0 -1
- package/dist/components/publicNotificationStore.js +0 -40
- package/dist/components/publicNotificationStore.js.map +0 -1
- package/dist/components/queryUtils.js +0 -163
- package/dist/components/queryUtils.js.map +0 -1
- package/dist/components/radio-group-item.js +0 -103
- package/dist/components/radio-group-item.js.map +0 -1
- package/dist/components/radio-group.js +0 -237
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/refine-selection-tools.d.ts +0 -11
- package/dist/components/refine-selection-tools.js +0 -13
- package/dist/components/refine-selection-tools.js.map +0 -1
- package/dist/components/refine-selection-tools2.js +0 -500
- package/dist/components/refine-selection-tools2.js.map +0 -1
- package/dist/components/refine-selection.d.ts +0 -11
- package/dist/components/refine-selection.js +0 -13
- package/dist/components/refine-selection.js.map +0 -1
- package/dist/components/refine-selection2.js +0 -369
- package/dist/components/refine-selection2.js.map +0 -1
- package/dist/components/resources.js +0 -26
- package/dist/components/resources.js.map +0 -1
- package/dist/components/resources2.js +0 -23
- package/dist/components/resources2.js.map +0 -1
- package/dist/components/resources3.js +0 -40
- package/dist/components/resources3.js.map +0 -1
- package/dist/components/scrim.js +0 -85
- package/dist/components/scrim.js.map +0 -1
- package/dist/components/select.js +0 -261
- package/dist/components/select.js.map +0 -1
- package/dist/components/shared-list-render.js +0 -321
- package/dist/components/shared-list-render.js.map +0 -1
- package/dist/components/shell-panel.js +0 -283
- package/dist/components/shell-panel.js.map +0 -1
- package/dist/components/shell.js +0 -123
- package/dist/components/shell.js.map +0 -1
- package/dist/components/slider.js +0 -898
- package/dist/components/slider.js.map +0 -1
- package/dist/components/solution-configuration.d.ts +0 -11
- package/dist/components/solution-configuration.js +0 -2225
- package/dist/components/solution-configuration.js.map +0 -1
- package/dist/components/solution-contents.d.ts +0 -11
- package/dist/components/solution-contents.js +0 -13
- package/dist/components/solution-contents.js.map +0 -1
- package/dist/components/solution-contents2.js +0 -130
- package/dist/components/solution-contents2.js.map +0 -1
- package/dist/components/solution-item-details.d.ts +0 -11
- package/dist/components/solution-item-details.js +0 -13
- package/dist/components/solution-item-details.js.map +0 -1
- package/dist/components/solution-item-details2.js +0 -236
- package/dist/components/solution-item-details2.js.map +0 -1
- package/dist/components/solution-item-icon.d.ts +0 -11
- package/dist/components/solution-item-icon.js +0 -13
- package/dist/components/solution-item-icon.js.map +0 -1
- package/dist/components/solution-item-icon2.js +0 -344
- package/dist/components/solution-item-icon2.js.map +0 -1
- package/dist/components/solution-item-sharing.d.ts +0 -11
- package/dist/components/solution-item-sharing.js +0 -13
- package/dist/components/solution-item-sharing.js.map +0 -1
- package/dist/components/solution-item-sharing2.js +0 -169
- package/dist/components/solution-item-sharing2.js.map +0 -1
- package/dist/components/solution-item.d.ts +0 -11
- package/dist/components/solution-item.js +0 -13
- package/dist/components/solution-item.js.map +0 -1
- package/dist/components/solution-item2.js +0 -317
- package/dist/components/solution-item2.js.map +0 -1
- package/dist/components/solution-organization-variables.d.ts +0 -11
- package/dist/components/solution-organization-variables.js +0 -13
- package/dist/components/solution-organization-variables.js.map +0 -1
- package/dist/components/solution-organization-variables2.js +0 -134
- package/dist/components/solution-organization-variables2.js.map +0 -1
- package/dist/components/solution-resource-item.d.ts +0 -11
- package/dist/components/solution-resource-item.js +0 -13
- package/dist/components/solution-resource-item.js.map +0 -1
- package/dist/components/solution-resource-item2.js +0 -358
- package/dist/components/solution-resource-item2.js.map +0 -1
- package/dist/components/solution-spatial-ref.d.ts +0 -11
- package/dist/components/solution-spatial-ref.js +0 -13
- package/dist/components/solution-spatial-ref.js.map +0 -1
- package/dist/components/solution-spatial-ref2.js +0 -21448
- package/dist/components/solution-spatial-ref2.js.map +0 -1
- package/dist/components/solution-store.js +0 -4094
- package/dist/components/solution-store.js.map +0 -1
- package/dist/components/solution-template-data.d.ts +0 -11
- package/dist/components/solution-template-data.js +0 -13
- package/dist/components/solution-template-data.js.map +0 -1
- package/dist/components/solution-template-data2.js +0 -235
- package/dist/components/solution-template-data2.js.map +0 -1
- package/dist/components/solution-variables.d.ts +0 -11
- package/dist/components/solution-variables.js +0 -13
- package/dist/components/solution-variables.js.map +0 -1
- package/dist/components/solution-variables2.js +0 -152
- package/dist/components/solution-variables2.js.map +0 -1
- package/dist/components/sortable.esm.js +0 -3028
- package/dist/components/sortable.esm.js.map +0 -1
- package/dist/components/store-manager.d.ts +0 -11
- package/dist/components/store-manager.js +0 -85
- package/dist/components/store-manager.js.map +0 -1
- package/dist/components/switch.js +0 -141
- package/dist/components/switch.js.map +0 -1
- package/dist/components/tab-nav.js +0 -243
- package/dist/components/tab-nav.js.map +0 -1
- package/dist/components/tab-title.js +0 -278
- package/dist/components/tab-title.js.map +0 -1
- package/dist/components/tab.js +0 -156
- package/dist/components/tab.js.map +0 -1
- package/dist/components/tabs.js +0 -190
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tile.js +0 -131
- package/dist/components/tile.js.map +0 -1
- package/dist/components/time-picker.js +0 -945
- package/dist/components/time-picker.js.map +0 -1
- package/dist/components/tooltip.js +0 -401
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/tree-item.js +0 -296
- package/dist/components/tree-item.js.map +0 -1
- package/dist/components/tree.js +0 -329
- package/dist/components/tree.js.map +0 -1
- package/dist/components/utils.js +0 -121
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js +0 -53
- package/dist/components/utils2.js.map +0 -1
- package/dist/components/value-list-item.js +0 -206
- package/dist/components/value-list-item.js.map +0 -1
- package/dist/components/value-list.js +0 -335
- package/dist/components/value-list.js.map +0 -1
- package/dist/esm/solution-store-b3c65467.js.map +0 -1
- package/dist/solutions-components/p-542189bc.entry.js.map +0 -1
- package/dist/solutions-components/p-638738f2.entry.js.map +0 -1
- package/dist/solutions-components/p-7e8985f2.entry.js.map +0 -1
- package/dist/solutions-components/p-b25f6ebe.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"date-picker.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,YAAY,GAAG,EAAE,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACO,eAAe,aAAa,CAAC,IAAI,EAAE;AAC1C,EAAE,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC1C,EAAE,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;AAChC,IAAI,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACpC,GAAG;AACH,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;AAC7B,IAAI,YAAY,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,yBAAyB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACzF,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;AAClC,OAAO,KAAK,CAAC,MAAM;AACnB,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,MAAM,CAAC,+CAA+C,CAAC,CAAC,CAAC;AAClG,MAAM,OAAO,aAAa,CAAC,IAAI,CA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,QAAQ,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,KAAK,IAAI,aAAa,CAAC,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;GACtG;EAaD,WAAW,UAAU,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/date-picker/utils.js","./node_modules/@esri/calcite-components/dist/collection/components/date-picker/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css?tag=calcite-date-picker&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { getAssetPath } from \"@stencil/core\";\nimport { getSupportedLocale } from \"../../utils/locale\";\nimport { dateFromISO } from \"../../utils/date\";\n/**\n * CLDR cache.\n * Exported for testing purposes.\n *\n * @private\n */\nexport const translationCache = {};\n/**\n * CLDR request cache.\n * Exported for testing purposes.\n *\n * @private\n */\nexport const requestCache = {};\n/**\n * Fetch calendar data for a given locale from list of supported languages\n *\n * @param lang\n * @public\n */\nexport async function getLocaleData(lang) {\n const locale = getSupportedLocale(lang);\n if (translationCache[locale]) {\n return translationCache[locale];\n }\n if (!requestCache[locale]) {\n requestCache[locale] = fetch(getAssetPath(`./assets/date-picker/nls/${locale}.json`))\n .then((resp) => resp.json())\n .catch(() => {\n console.error(`Translations for \"${locale}\" not found or invalid, falling back to english`);\n return getLocaleData(\"en\");\n });\n }\n const data = await requestCache[locale];\n translationCache[locale] = data;\n return data;\n}\n/**\n * Maps value to valueAsDate\n *\n * @param value\n */\nexport function getValueAsDateRange(value) {\n return value.map((v, index) => dateFromISO(v, index === 1));\n}\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const HEADING_LEVEL = 2;\nexport const TEXT = {\n nextMonth: \"Next month\",\n prevMonth: \"Previous month\",\n year: \"Year\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n position: relative;\n display: inline-block;\n inline-size: 100%;\n overflow: visible;\n border-radius: 0px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n background-color: var(--calcite-ui-foreground-1);\n vertical-align: top;\n}\n\n:host([scale=s]) {\n max-inline-size: 216px;\n}\n\n:host([scale=m]) {\n max-inline-size: 286px;\n}\n\n:host([scale=l]) {\n max-inline-size: 398px;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host, Build } from \"@stencil/core\";\nimport { getLocaleData, getValueAsDateRange } from \"./utils\";\nimport { dateFromRange, dateFromISO, dateToISO, getDaysDiff, setEndOfDay } from \"../../utils/date\";\nimport { HEADING_LEVEL, TEXT } from \"./resources\";\nimport { connectLocalized, disconnectLocalized, numberStringFormatter } from \"../../utils/locale\";\nexport class DatePicker {\n constructor() {\n /**\n * Localized string for \"previous month\" (used for aria label)\n *\n * @default \"Previous month\"\n */\n this.intlPrevMonth = TEXT.prevMonth;\n /**\n * Localized string for \"next month\" (used for aria label)\n *\n * @default \"Next month\"\n */\n this.intlNextMonth = TEXT.nextMonth;\n /**\n * Localized string for \"year\" (used for aria label)\n *\n * @default \"Year\"\n */\n this.intlYear = TEXT.year;\n /** specify the scale of the date picker */\n this.scale = \"m\";\n /** Range mode activation */\n this.range = false;\n /** Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range. */\n this.proximitySelectionDisabled = false;\n this.globalAttributes = {};\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n this.effectiveLocale = \"\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.keyDownHandler = (event) => {\n if (event.key === \"Escape\") {\n this.reset();\n }\n };\n this.monthHeaderSelectChange = (event) => {\n const date = new Date(event.detail);\n if (!this.range) {\n this.activeDate = date;\n }\n else {\n if (this.activeRange === \"end\") {\n this.activeEndDate = date;\n }\n else {\n this.activeStartDate = date;\n }\n this.mostRecentRangeValue = date;\n }\n };\n this.monthActiveDateChange = (event) => {\n const date = new Date(event.detail);\n if (!this.range) {\n this.activeDate = date;\n }\n else {\n if (this.activeRange === \"end\") {\n this.activeEndDate = date;\n }\n else {\n this.activeStartDate = date;\n }\n this.mostRecentRangeValue = date;\n }\n };\n this.monthHoverChange = (event) => {\n if (!this.startAsDate) {\n this.hoverRange = undefined;\n return;\n }\n const date = new Date(event.detail);\n this.hoverRange = {\n focused: this.activeRange || \"start\",\n start: this.startAsDate,\n end: this.endAsDate\n };\n if (!this.proximitySelectionDisabled) {\n if (this.endAsDate) {\n const startDiff = getDaysDiff(date, this.startAsDate);\n const endDiff = getDaysDiff(date, this.endAsDate);\n if (endDiff > 0) {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n else if (startDiff < 0) {\n this.hoverRange.start = date;\n this.hoverRange.focused = \"start\";\n }\n else if (startDiff > endDiff) {\n this.hoverRange.start = date;\n this.hoverRange.focused = \"start\";\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n else {\n if (date < this.startAsDate) {\n this.hoverRange = {\n focused: \"start\",\n start: date,\n end: this.startAsDate\n };\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n }\n else {\n if (!this.endAsDate) {\n if (date < this.startAsDate) {\n this.hoverRange = {\n focused: \"start\",\n start: date,\n end: this.startAsDate\n };\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n else {\n this.hoverRange = undefined;\n }\n }\n event.stopPropagation();\n };\n this.monthMouseOutChange = () => {\n if (this.hoverRange) {\n this.hoverRange = undefined;\n }\n };\n /**\n * Reset active date and close\n */\n this.reset = () => {\n var _a, _b, _c, _d, _e, _f;\n if (!Array.isArray(this.valueAsDate) &&\n this.valueAsDate &&\n ((_a = this.valueAsDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== ((_b = this.activeDate) === null || _b === void 0 ? void 0 : _b.getTime())) {\n this.activeDate = new Date(this.valueAsDate);\n }\n if (this.startAsDate && ((_c = this.startAsDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== ((_d = this.activeStartDate) === null || _d === void 0 ? void 0 : _d.getTime())) {\n this.activeStartDate = new Date(this.startAsDate);\n }\n if (this.endAsDate && ((_e = this.endAsDate) === null || _e === void 0 ? void 0 : _e.getTime()) !== ((_f = this.activeEndDate) === null || _f === void 0 ? void 0 : _f.getTime())) {\n this.activeEndDate = new Date(this.endAsDate);\n }\n };\n /**\n * Event handler for when the selected date changes\n *\n * @param event\n */\n this.monthDateChange = (event) => {\n const date = new Date(event.detail);\n if (!this.range) {\n this.value = date ? dateToISO(date) : \"\";\n this.valueAsDate = date || null;\n this.activeDate = date || null;\n this.calciteDatePickerChange.emit(date);\n return;\n }\n if (!this.startAsDate || (!this.endAsDate && date < this.startAsDate)) {\n if (this.startAsDate) {\n this.setEndDate(new Date(this.startAsDate));\n }\n if (this.activeRange == \"end\") {\n this.setEndDate(date);\n }\n else {\n this.setStartDate(date);\n }\n }\n else if (!this.endAsDate) {\n this.setEndDate(date);\n }\n else {\n if (!this.proximitySelectionDisabled) {\n if (this.activeRange) {\n if (this.activeRange == \"end\") {\n this.setEndDate(date);\n }\n else {\n this.setStartDate(date);\n }\n }\n else {\n const startDiff = getDaysDiff(date, this.startAsDate);\n const endDiff = getDaysDiff(date, this.endAsDate);\n if (endDiff === 0 || startDiff < 0) {\n this.setStartDate(date);\n }\n else if (startDiff === 0 || endDiff < 0) {\n this.setEndDate(date);\n }\n else if (startDiff < endDiff) {\n this.setStartDate(date);\n }\n else {\n this.setEndDate(date);\n }\n }\n }\n else {\n this.setStartDate(date);\n this.endAsDate = this.activeEndDate = this.end = undefined;\n }\n }\n this.calciteDatePickerChange.emit(date);\n };\n }\n handleValueAsDate(date) {\n if (!Array.isArray(date) && date && date !== this.activeDate) {\n this.activeDate = date;\n }\n }\n handleRangeChange() {\n const { startAsDate: startDate, endAsDate: endDate } = this;\n this.activeEndDate = endDate;\n this.activeStartDate = startDate;\n }\n onMinChanged(min) {\n if (min) {\n this.minAsDate = dateFromISO(min);\n }\n }\n onMaxChanged(max) {\n if (max) {\n this.maxAsDate = dateFromISO(max);\n }\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n connectLocalized(this);\n if (Array.isArray(this.value)) {\n this.valueAsDate = getValueAsDateRange(this.value);\n this.start = this.value[0];\n this.end = this.value[1];\n }\n else if (this.value) {\n this.valueAsDate = dateFromISO(this.value);\n }\n if (this.start) {\n this.setStartAsDate(dateFromISO(this.start));\n }\n if (this.end) {\n this.setEndAsDate(dateFromISO(this.end));\n }\n if (this.min) {\n this.minAsDate = dateFromISO(this.min);\n }\n if (this.max) {\n this.maxAsDate = dateFromISO(this.max);\n }\n }\n disconnectedCallback() {\n disconnectLocalized(this);\n }\n async componentWillLoad() {\n await this.loadLocaleData();\n this.onMinChanged(this.min);\n this.onMaxChanged(this.max);\n }\n render() {\n var _a;\n const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);\n const activeStartDate = this.range\n ? this.getActiveStartDate(date, this.minAsDate, this.maxAsDate)\n : this.getActiveDate(date, this.minAsDate, this.maxAsDate);\n let activeDate = activeStartDate;\n const endDate = this.range\n ? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)\n : null;\n const activeEndDate = this.getActiveEndDate(endDate, this.minAsDate, this.maxAsDate);\n if ((this.activeRange === \"end\" ||\n (((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === \"end\" && (!this.proximitySelectionDisabled || endDate))) &&\n activeEndDate) {\n activeDate = activeEndDate;\n }\n if (this.range && this.mostRecentRangeValue) {\n activeDate = this.mostRecentRangeValue;\n }\n const minDate = this.range && this.activeRange\n ? this.activeRange === \"start\"\n ? this.minAsDate\n : date || this.minAsDate\n : this.minAsDate;\n const maxDate = this.range && this.activeRange\n ? this.activeRange === \"start\"\n ? endDate || this.maxAsDate\n : this.maxAsDate\n : this.maxAsDate;\n return (h(Host, { onBlur: this.reset, onKeyDown: this.keyDownHandler, role: \"application\" }, this.renderCalendar(activeDate, maxDate, minDate, date, endDate)));\n }\n valueHandler(value) {\n if (Array.isArray(value)) {\n this.valueAsDate = getValueAsDateRange(value);\n this.start = value[0];\n this.end = value[1];\n }\n else if (value) {\n this.valueAsDate = dateFromISO(value);\n this.start = \"\";\n this.end = \"\";\n }\n }\n startWatcher(start) {\n this.setStartAsDate(dateFromISO(start));\n }\n endWatcher(end) {\n this.setEndAsDate(dateFromISO(end));\n }\n async loadLocaleData() {\n if (!Build.isBrowser) {\n return;\n }\n numberStringFormatter.numberFormatOptions = {\n numberingSystem: this.numberingSystem,\n locale: this.effectiveLocale,\n useGrouping: false\n };\n this.localeData = await getLocaleData(this.effectiveLocale);\n }\n /**\n * Render calcite-date-picker-month-header and calcite-date-picker-month\n *\n * @param activeDate\n * @param maxDate\n * @param minDate\n * @param date\n * @param endDate\n */\n renderCalendar(activeDate, maxDate, minDate, date, endDate) {\n return (this.localeData && [\n h(\"calcite-date-picker-month-header\", { activeDate: activeDate, headingLevel: this.headingLevel || HEADING_LEVEL, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === \"end\" ? endDate : date || new Date() }),\n h(\"calcite-date-picker-month\", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerSelect: this.monthDateChange, onCalciteInternalDatePickerHover: this.monthHoverChange, onCalciteInternalDatePickerMouseOut: this.monthMouseOutChange, scale: this.scale, selectedDate: this.activeRange === \"end\" ? endDate : date, startDate: this.range ? date : undefined })\n ]);\n }\n /**\n * Update date instance of start if valid\n *\n * @param startDate\n * @param emit\n */\n setStartAsDate(startDate, emit) {\n this.startAsDate = startDate;\n this.mostRecentRangeValue = this.startAsDate;\n if (emit) {\n this.calciteDatePickerRangeChange.emit({\n startDate,\n endDate: this.endAsDate\n });\n }\n }\n /**\n * Update date instance of end if valid\n *\n * @param endDate\n * @param emit\n */\n setEndAsDate(endDate, emit) {\n this.endAsDate = endDate ? setEndOfDay(endDate) : endDate;\n this.mostRecentRangeValue = this.endAsDate;\n if (emit) {\n this.calciteDatePickerRangeChange.emit({\n startDate: this.startAsDate,\n endDate\n });\n }\n }\n setEndDate(date) {\n this.end = date ? dateToISO(date) : \"\";\n this.setEndAsDate(date, true);\n this.activeEndDate = date || null;\n }\n setStartDate(date) {\n this.start = date ? dateToISO(date) : \"\";\n this.setStartAsDate(date, true);\n this.activeStartDate = date || null;\n }\n /**\n * Get an active date using the value, or current date as default\n *\n * @param value\n * @param min\n * @param max\n */\n getActiveDate(value, min, max) {\n return dateFromRange(this.activeDate, min, max) || value || dateFromRange(new Date(), min, max);\n }\n getActiveStartDate(value, min, max) {\n return (dateFromRange(this.activeStartDate, min, max) || value || dateFromRange(new Date(), min, max));\n }\n getActiveEndDate(value, min, max) {\n return (dateFromRange(this.activeEndDate, min, max) || value || dateFromRange(new Date(), min, max));\n }\n static get is() { return \"calcite-date-picker\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"date-picker.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"date-picker.css\"]\n };\n }\n static get assetsDirs() { return [\"assets\"]; }\n static get properties() {\n return {\n \"activeRange\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"start\\\" | \\\"end\\\"\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Active range\"\n },\n \"attribute\": \"active-range\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string | string[]\",\n \"resolved\": \"string | string[]\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Selected date\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/Heading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": true\n },\n \"valueAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date | Date[]\",\n \"resolved\": \"Date | Date[]\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Selected date as full date object\"\n }\n },\n \"startAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use valueAsDate instead\"\n }],\n \"text\": \"Selected start date as full date object\"\n }\n },\n \"endAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use valueAsDate instead\"\n }],\n \"text\": \"Selected end date as full date object\"\n }\n },\n \"minAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Earliest allowed date as full date object\"\n }\n },\n \"maxAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Latest allowed date as full date object\"\n }\n },\n \"min\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Earliest allowed date (\\\"yyyy-mm-dd\\\")\"\n },\n \"attribute\": \"min\",\n \"reflect\": true\n },\n \"max\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Latest allowed date (\\\"yyyy-mm-dd\\\")\"\n },\n \"attribute\": \"max\",\n \"reflect\": true\n },\n \"intlPrevMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Previous month\\\"\"\n }],\n \"text\": \"Localized string for \\\"previous month\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-prev-month\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.prevMonth\"\n },\n \"intlNextMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Next month\\\"\"\n }],\n \"text\": \"Localized string for \\\"next month\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-next-month\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.nextMonth\"\n },\n \"intlYear\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Year\\\"\"\n }],\n \"text\": \"Localized string for \\\"year\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-year\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.year\"\n },\n \"locale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"set the global `lang` attribute on the element instead.\"\n }, {\n \"name\": \"mdn\",\n \"text\": \"[lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang)\"\n }],\n \"text\": \"Specifies the BCP 47 language tag for the desired language and country format.\"\n },\n \"attribute\": \"locale\",\n \"reflect\": false\n },\n \"numberingSystem\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"NumberingSystem\",\n \"resolved\": \"\\\"arab\\\" | \\\"arabext\\\" | \\\"bali\\\" | \\\"beng\\\" | \\\"deva\\\" | \\\"fullwide\\\" | \\\"gujr\\\" | \\\"guru\\\" | \\\"hanidec\\\" | \\\"khmr\\\" | \\\"knda\\\" | \\\"laoo\\\" | \\\"latn\\\" | \\\"limb\\\" | \\\"mlym\\\" | \\\"mong\\\" | \\\"mymr\\\" | \\\"orya\\\" | \\\"tamldec\\\" | \\\"telu\\\" | \\\"thai\\\" | \\\"tibt\\\"\",\n \"references\": {\n \"NumberingSystem\": {\n \"location\": \"import\",\n \"path\": \"../../utils/locale\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed.\"\n },\n \"attribute\": \"numbering-system\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"s\\\" | \\\"m\\\" | \\\"l\\\"\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the date picker\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"range\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Range mode activation\"\n },\n \"attribute\": \"range\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"start\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use value instead\"\n }],\n \"text\": \"Selected start date\"\n },\n \"attribute\": \"start\",\n \"reflect\": true\n },\n \"end\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use value instead\"\n }],\n \"text\": \"Selected end date\"\n },\n \"attribute\": \"end\",\n \"reflect\": true\n },\n \"proximitySelectionDisabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range.\"\n },\n \"attribute\": \"proximity-selection-disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get states() {\n return {\n \"activeDate\": {},\n \"activeStartDate\": {},\n \"activeEndDate\": {},\n \"globalAttributes\": {},\n \"effectiveLocale\": {},\n \"localeData\": {},\n \"hoverRange\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteDatePickerChange\",\n \"name\": \"calciteDatePickerChange\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Trigger calcite date change when a user changes the date.\"\n },\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteDatePickerRangeChange\",\n \"name\": \"calciteDatePickerRangeChange\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \"[DateRangeChange](https://github.com/Esri/calcite-components/blob/master/src/components/date-picker/interfaces.ts#L1)\"\n }],\n \"text\": \"Trigger calcite date change when a user changes the date range.\"\n },\n \"complexType\": {\n \"original\": \"DateRangeChange\",\n \"resolved\": \"DateRangeChange\",\n \"references\": {\n \"DateRangeChange\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"valueAsDate\",\n \"methodName\": \"handleValueAsDate\"\n }, {\n \"propName\": \"startAsDate\",\n \"methodName\": \"handleRangeChange\"\n }, {\n \"propName\": \"endAsDate\",\n \"methodName\": \"handleRangeChange\"\n }, {\n \"propName\": \"min\",\n \"methodName\": \"onMinChanged\"\n }, {\n \"propName\": \"max\",\n \"methodName\": \"onMaxChanged\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"start\",\n \"methodName\": \"startWatcher\"\n }, {\n \"propName\": \"end\",\n \"methodName\": \"endWatcher\"\n }, {\n \"propName\": \"effectiveLocale\",\n \"methodName\": \"loadLocaleData\"\n }];\n }\n}\n"],"version":3}
|
package/dist/components/date.js
DELETED
@@ -1,182 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { 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 };
|
181
|
-
|
182
|
-
//# sourceMappingURL=date.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"date.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE;AACxC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;AAC9B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O,EAAE,CAAC;AAC9B,EAAE,OAAO,CAAC,GAAG,GAAG,GAAG,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;AAC1C,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE;AAClC,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AACjC,EAAE,OAAO,IAAI,CAAC;AACd;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/date.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { numberStringFormatter } from \"./locale\";\n/**\n * Check if date is within a min and max\n *\n * @param date\n * @param min\n * @param max\n */\nexport function inRange(date, min, max) {\n const time = date.getTime();\n const afterMin = !(min instanceof Date) || time >= min.getTime();\n const beforeMax = !(max instanceof Date) || time <= max.getTime();\n return afterMin && beforeMax;\n}\n/**\n * Ensures date is within range,\n * returns min or max if out of bounds\n *\n * @param date\n * @param min\n * @param max\n */\nexport function dateFromRange(date, min, max) {\n if (!(date instanceof Date)) {\n return null;\n }\n const time = date.getTime();\n const beforeMin = min instanceof Date && time < min.getTime();\n const afterMax = max instanceof Date && time > max.getTime();\n if (beforeMin) {\n return min;\n }\n if (afterMax) {\n return max;\n }\n return date;\n}\n/**\n * Parse an iso8601 string (YYYY-mm-dd) into a valid date.\n * TODO: handle time when time of day UI is added\n *\n * @param iso8601\n * @param isEndDate\n */\nexport function dateFromISO(iso8601, isEndDate = false) {\n if (iso8601 instanceof Date) {\n return iso8601;\n }\n if (!iso8601 || typeof iso8601 !== \"string\") {\n return null;\n }\n const d = iso8601.split(/[: T-]/).map(parseFloat);\n const date = new Date(d[0], (d[1] || 1) - 1, d[2] || 1);\n date.setFullYear(d[0]);\n if (isNaN(date.getTime())) {\n throw new Error(`Invalid ISO 8601 date: \"${iso8601}\"`);\n }\n if (isEndDate) {\n return setEndOfDay(date);\n }\n return date;\n}\n/**\n * Return first portion of ISO string (YYYY-mm-dd)\n *\n * @param date\n */\nexport function dateToISO(date) {\n if (typeof date === \"string\") {\n return date;\n }\n if (date instanceof Date) {\n return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().split(\"T\")[0];\n }\n return \"\";\n}\n/**\n * Check if two dates are the same day, month, year\n *\n * @param d1\n * @param d2\n */\nexport function sameDate(d1, d2) {\n return (d1 instanceof Date &&\n d2 instanceof Date &&\n d1.getDate() === d2.getDate() &&\n d1.getMonth() === d2.getMonth() &&\n d1.getFullYear() === d2.getFullYear());\n}\n/**\n * Get a date one month in the past\n *\n * @param date\n */\nexport function prevMonth(date) {\n const month = date.getMonth();\n const nextDate = new Date(date);\n nextDate.setMonth(month - 1);\n // date doesn't exist in new month, use last day\n if (month === nextDate.getMonth()) {\n return new Date(date.getFullYear(), month, 0);\n }\n return nextDate;\n}\n/**\n * Get a date one month in the future\n *\n * @param date\n */\nexport function nextMonth(date) {\n const month = date.getMonth();\n const nextDate = new Date(date);\n nextDate.setMonth(month + 1);\n // date doesn't exist in new month, use last day\n if ((month + 2) % 7 === nextDate.getMonth() % 7) {\n return new Date(date.getFullYear(), month + 2, 0);\n }\n return nextDate;\n}\n/**\n * Parse numeric units for day, month, and year from a localized string\n * month starts at 0 (can pass to date constructor)\n *\n * @param str\n * @param localeData\n */\nexport function parseDateString(str, localeData) {\n const { separator, unitOrder } = localeData;\n const order = getOrder(unitOrder);\n const values = str.split(separator).map((part) => numberStringFormatter.delocalize(part));\n return {\n day: parseInt(values[order.indexOf(\"d\")]),\n month: parseInt(values[order.indexOf(\"m\")]) - 1,\n year: parseInt(values[order.indexOf(\"y\")])\n };\n}\n/**\n * Based on the unitOrder string, find order of month, day, and year for locale\n *\n * @param unitOrder\n */\nexport function getOrder(unitOrder) {\n const signifiers = [\"d\", \"m\", \"y\"];\n const order = unitOrder.toLowerCase();\n return signifiers.sort((a, b) => order.indexOf(a) - order.indexOf(b));\n}\n/**\n * Get number of days between two dates\n *\n * @param date1\n * @param date2\n */\nexport function getDaysDiff(date1, date2) {\n const ts1 = date1.getTime();\n const ts2 = date2.getTime();\n return (ts1 - ts2) / (1000 * 3600 * 24);\n}\n/**\n * Set time of the day to the end.\n *\n * @param {Date} date Date.\n * @returns {Date} Date with time set to end of day .\n */\nexport function setEndOfDay(date) {\n date.setHours(23, 59, 59, 999);\n return date;\n}\n"],"version":3}
|