@esri/solutions-components 0.2.0 → 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 +1095 -4
- 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-f0547fe7.js → solution-store-893499a5.js} +8 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +14 -11
- 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 +1095 -4
- 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-c1f6173a.js → solution-store-0c58c852.js} +4 -2
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-065830b8.js → p-659edb14.js} +4 -2
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-ee9be0ef.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/p-90629c1d.entry.js +1986 -0
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-0e7a0839.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 -7
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-f0547fe7.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 -1141
- 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-c1f6173a.js.map +0 -1
- package/dist/solutions-components/p-065830b8.js.map +0 -1
- package/dist/solutions-components/p-0e7a0839.entry.js.map +0 -1
- package/dist/solutions-components/p-401541a5.entry.js +0 -895
- package/dist/solutions-components/p-401541a5.entry.js.map +0 -1
- package/dist/solutions-components/p-ee9be0ef.entry.js.map +0 -1
@@ -1,226 +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 { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
7
|
-
import { e as getOrder, b as dateFromRange, n as nextMonth, f as prevMonth } from './date.js';
|
8
|
-
import { H as Heading } from './Heading.js';
|
9
|
-
import { i as isActivationKey } from './key.js';
|
10
|
-
import { n as numberStringFormatter } from './locale2.js';
|
11
|
-
import { k as closestElementCrossShadowBoundary } from './dom.js';
|
12
|
-
import { d as defineCustomElement$1 } from './icon.js';
|
13
|
-
|
14
|
-
/*!
|
15
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
16
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
17
|
-
* v1.0.0-beta.97
|
18
|
-
*/
|
19
|
-
const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
20
|
-
|
21
|
-
const datePickerMonthHeaderCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";
|
22
|
-
|
23
|
-
const DatePickerMonthHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
24
|
-
constructor() {
|
25
|
-
super();
|
26
|
-
this.__registerHost();
|
27
|
-
this.__attachShadow();
|
28
|
-
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 6);
|
29
|
-
//--------------------------------------------------------------------------
|
30
|
-
//
|
31
|
-
// Private State/Props
|
32
|
-
//
|
33
|
-
//--------------------------------------------------------------------------
|
34
|
-
this.globalAttributes = {};
|
35
|
-
//--------------------------------------------------------------------------
|
36
|
-
//
|
37
|
-
// Private Methods
|
38
|
-
//
|
39
|
-
//--------------------------------------------------------------------------
|
40
|
-
/**
|
41
|
-
* Increment year on UP/DOWN keys
|
42
|
-
*
|
43
|
-
* @param event
|
44
|
-
*/
|
45
|
-
this.onYearKey = (event) => {
|
46
|
-
const localizedYear = this.parseCalendarYear(event.target.value);
|
47
|
-
switch (event.key) {
|
48
|
-
case "ArrowDown":
|
49
|
-
event.preventDefault();
|
50
|
-
this.setYear({ localizedYear, offset: -1 });
|
51
|
-
break;
|
52
|
-
case "ArrowUp":
|
53
|
-
event.preventDefault();
|
54
|
-
this.setYear({ localizedYear, offset: 1 });
|
55
|
-
break;
|
56
|
-
}
|
57
|
-
};
|
58
|
-
this.onYearChange = (event) => {
|
59
|
-
this.setYear({
|
60
|
-
localizedYear: this.parseCalendarYear(event.target.value)
|
61
|
-
});
|
62
|
-
};
|
63
|
-
this.onYearInput = (event) => {
|
64
|
-
this.setYear({
|
65
|
-
localizedYear: this.parseCalendarYear(event.target.value),
|
66
|
-
commit: false
|
67
|
-
});
|
68
|
-
};
|
69
|
-
this.prevMonthClick = (event) => {
|
70
|
-
this.handleArrowClick(event, this.prevMonthDate);
|
71
|
-
};
|
72
|
-
this.prevMonthKeydown = (event) => {
|
73
|
-
if (isActivationKey(event.key)) {
|
74
|
-
this.prevMonthClick(event);
|
75
|
-
}
|
76
|
-
};
|
77
|
-
this.nextMonthClick = (event) => {
|
78
|
-
this.handleArrowClick(event, this.nextMonthDate);
|
79
|
-
};
|
80
|
-
this.nextMonthKeydown = (event) => {
|
81
|
-
if (isActivationKey(event.key)) {
|
82
|
-
this.nextMonthClick(event);
|
83
|
-
}
|
84
|
-
};
|
85
|
-
/*
|
86
|
-
* Update active month on clicks of left/right arrows
|
87
|
-
*/
|
88
|
-
this.handleArrowClick = (event, date) => {
|
89
|
-
event.preventDefault();
|
90
|
-
this.calciteDatePickerSelect.emit(date);
|
91
|
-
};
|
92
|
-
}
|
93
|
-
//--------------------------------------------------------------------------
|
94
|
-
//
|
95
|
-
// Lifecycle
|
96
|
-
//
|
97
|
-
//--------------------------------------------------------------------------
|
98
|
-
componentWillLoad() {
|
99
|
-
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker");
|
100
|
-
}
|
101
|
-
connectedCallback() {
|
102
|
-
this.setNextPrevMonthDates();
|
103
|
-
}
|
104
|
-
render() {
|
105
|
-
return h("div", { class: "header" }, this.renderContent());
|
106
|
-
}
|
107
|
-
renderContent() {
|
108
|
-
var _a;
|
109
|
-
if (!this.activeDate || !this.localeData) {
|
110
|
-
return null;
|
111
|
-
}
|
112
|
-
if (this.parentDatePickerEl) {
|
113
|
-
const { numberingSystem, lang: locale } = this.parentDatePickerEl;
|
114
|
-
numberStringFormatter.numberFormatOptions = Object.assign(Object.assign({ useGrouping: false }, (numberingSystem && { numberingSystem })), (locale && { locale }));
|
115
|
-
}
|
116
|
-
const activeMonth = this.activeDate.getMonth();
|
117
|
-
const { months, unitOrder } = this.localeData;
|
118
|
-
const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];
|
119
|
-
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear());
|
120
|
-
const iconScale = this.scale === "l" ? "m" : "s";
|
121
|
-
const order = getOrder(unitOrder);
|
122
|
-
const reverse = order.indexOf("y") < order.indexOf("m");
|
123
|
-
const suffix = (_a = this.localeData.year) === null || _a === void 0 ? void 0 : _a.suffix;
|
124
|
-
return (h(Fragment, null, h("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), h("div", { class: { text: true, "text--reverse": reverse } }, h(Heading, { class: "month", level: this.headingLevel }, localizedMonth), h("span", { class: "year-wrap" }, h("input", { "aria-label": this.intlYear, class: {
|
125
|
-
year: true,
|
126
|
-
"year--suffix": !!suffix
|
127
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && h("span", { class: "suffix" }, suffix))), h("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlNextMonth, class: "chevron", href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
128
|
-
}
|
129
|
-
setNextPrevMonthDates() {
|
130
|
-
if (!this.activeDate) {
|
131
|
-
return;
|
132
|
-
}
|
133
|
-
this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);
|
134
|
-
this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);
|
135
|
-
}
|
136
|
-
formatCalendarYear(year) {
|
137
|
-
const { localeData } = this;
|
138
|
-
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
139
|
-
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
140
|
-
return numberStringFormatter.localize(`${year + yearOffset}`);
|
141
|
-
}
|
142
|
-
parseCalendarYear(year) {
|
143
|
-
const { localeData } = this;
|
144
|
-
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
145
|
-
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
146
|
-
const parsedYear = Number(numberStringFormatter.delocalize(year)) - yearOffset;
|
147
|
-
return numberStringFormatter.localize(`${parsedYear}`);
|
148
|
-
}
|
149
|
-
getInRangeDate({ localizedYear, offset = 0 }) {
|
150
|
-
const { min, max, activeDate } = this;
|
151
|
-
const parsedYear = Number(numberStringFormatter.delocalize(localizedYear));
|
152
|
-
const length = parsedYear.toString().length;
|
153
|
-
const year = isNaN(parsedYear) ? false : parsedYear + offset;
|
154
|
-
const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);
|
155
|
-
// if you've supplied a year and it's in range
|
156
|
-
if (year && inRange && length === localizedYear.length) {
|
157
|
-
const nextDate = new Date(activeDate);
|
158
|
-
nextDate.setFullYear(year);
|
159
|
-
return dateFromRange(nextDate, min, max);
|
160
|
-
}
|
161
|
-
}
|
162
|
-
/**
|
163
|
-
* Parse localized year string from input,
|
164
|
-
* set to active if in range
|
165
|
-
*
|
166
|
-
* @param root0
|
167
|
-
* @param root0.localizedYear
|
168
|
-
* @param root0.commit
|
169
|
-
* @param root0.offset
|
170
|
-
*/
|
171
|
-
setYear({ localizedYear, commit = true, offset = 0 }) {
|
172
|
-
const { yearInput, activeDate } = this;
|
173
|
-
const inRangeDate = this.getInRangeDate({ localizedYear, offset });
|
174
|
-
// if you've supplied a year and it's in range, update active date
|
175
|
-
if (inRangeDate) {
|
176
|
-
this.calciteDatePickerSelect.emit(inRangeDate);
|
177
|
-
}
|
178
|
-
if (commit) {
|
179
|
-
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear());
|
180
|
-
}
|
181
|
-
}
|
182
|
-
get el() { return this; }
|
183
|
-
static get watchers() { return {
|
184
|
-
"min": ["setNextPrevMonthDates"],
|
185
|
-
"max": ["setNextPrevMonthDates"],
|
186
|
-
"activeDate": ["setNextPrevMonthDates"]
|
187
|
-
}; }
|
188
|
-
static get style() { return datePickerMonthHeaderCss; }
|
189
|
-
}, [1, "calcite-date-picker-month-header", {
|
190
|
-
"selectedDate": [16],
|
191
|
-
"activeDate": [16],
|
192
|
-
"headingLevel": [2, "heading-level"],
|
193
|
-
"min": [16],
|
194
|
-
"max": [16],
|
195
|
-
"intlPrevMonth": [1, "intl-prev-month"],
|
196
|
-
"intlNextMonth": [1, "intl-next-month"],
|
197
|
-
"intlYear": [1, "intl-year"],
|
198
|
-
"scale": [513],
|
199
|
-
"localeData": [16],
|
200
|
-
"globalAttributes": [32],
|
201
|
-
"nextMonthDate": [32],
|
202
|
-
"prevMonthDate": [32]
|
203
|
-
}]);
|
204
|
-
function defineCustomElement() {
|
205
|
-
if (typeof customElements === "undefined") {
|
206
|
-
return;
|
207
|
-
}
|
208
|
-
const components = ["calcite-date-picker-month-header", "calcite-icon"];
|
209
|
-
components.forEach(tagName => { switch (tagName) {
|
210
|
-
case "calcite-date-picker-month-header":
|
211
|
-
if (!customElements.get(tagName)) {
|
212
|
-
customElements.define(tagName, DatePickerMonthHeader);
|
213
|
-
}
|
214
|
-
break;
|
215
|
-
case "calcite-icon":
|
216
|
-
if (!customElements.get(tagName)) {
|
217
|
-
defineCustomElement$1();
|
218
|
-
}
|
219
|
-
break;
|
220
|
-
} });
|
221
|
-
}
|
222
|
-
defineCustomElement();
|
223
|
-
|
224
|
-
export { DatePickerMonthHeader as D, defineCustomElement as d };
|
225
|
-
|
226
|
-
//# sourceMappingURL=date-picker-month-header.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"date-picker-month-header.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,6BAA6B,GAAG,GAAG;;ACLhD,MAAM,wBAAwB,GAAG,giHAAgiH;;MCYpjH,qBAAqB;EAChC;;;;;;;;;;IAME,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;;;;;;;;;;;IAW3B,IAAI,CAAC,SAAS,GAAG,CAAC,KAAK;MACrB,MAAM,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;MACjE,QAAQ,KAAK,CAAC,GAAG;QACf,KAAK,WAAW;UACd,KAAK,CAAC,cAAc,EAAE,CAAC;UACvB,IAAI,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;UAC5C,MAAM;QACR,KAAK,SAAS;UACZ,KAAK,CAAC,cAAc,EAAE,CAAC;UACvB,IAAI,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;UAC3C,MAAM;OACT;KACF,CAAC;IACF,IAAI,CAAC,YAAY,GAAG,CAAC,KAAK;MACxB,IAAI,CAAC,OAAO,CAAC;QACX,aAAa,EAAE,IAAI,CAA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,EAAE;MACtD,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;MACtC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;MAC3B,OAAO,aAAa,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;KAC1C;GACF;;;;;;;;;;EAUD,OAAO,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE;IAClD,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC;;IAEnE,IAAI,WAAW,EAAE;MACf,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAChD;IACD,IAAI,MAAM,EAAE;MACV,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,WAAW,IAAI,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;KACtF;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css?tag=calcite-date-picker-month-header&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.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 */\nexport const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;\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 display: block;\n}\n\n.header {\n display: flex;\n justify-content: space-between;\n padding-block: 0px;\n padding-inline: 0.25rem;\n}\n\n:host([scale=s]) .text {\n margin-block: 0.5rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n:host([scale=s]) .chevron {\n block-size: 2.25rem;\n}\n\n:host([scale=m]) .text {\n margin-block: 0.75rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n:host([scale=m]) .chevron {\n block-size: 3rem;\n}\n\n:host([scale=l]) .text {\n margin-block: 1rem;\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n}\n:host([scale=l]) .chevron {\n block-size: 3.5rem;\n}\n\n.chevron {\n margin-inline: -0.25rem;\n box-sizing: content-box;\n display: flex;\n flex-grow: 0;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n border-style: none;\n background-color: var(--calcite-ui-foreground-1);\n padding-inline: 0.25rem;\n color: var(--calcite-ui-text-3);\n outline: 2px solid transparent;\n outline-offset: 2px;\n outline-color: transparent;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n inline-size: 14.2857142857%;\n}\n.chevron:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n.chevron:hover, .chevron:focus {\n background-color: var(--calcite-ui-foreground-2);\n fill: var(--calcite-ui-text-1);\n color: var(--calcite-ui-text-1);\n}\n.chevron:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n.chevron[aria-disabled=true] {\n pointer-events: none;\n opacity: 0;\n}\n\n.text {\n margin-block: auto;\n display: flex;\n inline-size: 100%;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n text-align: center;\n line-height: 1;\n}\n\n.text--reverse {\n flex-direction: row-reverse;\n}\n\n.month, \n.year, \n.suffix {\n margin-inline: 0.25rem;\n margin-block: auto;\n display: inline-block;\n background-color: var(--calcite-ui-foreground-1);\n font-weight: var(--calcite-font-weight-medium);\n line-height: 1.25;\n color: var(--calcite-ui-text-1);\n font-size: inherit;\n}\n\n.year {\n position: relative;\n inline-size: 2.5rem;\n border-style: none;\n background-color: transparent;\n text-align: center;\n font-family: inherit;\n outline-color: transparent;\n}\n.year:hover {\n transition-duration: 100ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-property: outline-color;\n outline: 2px solid var(--calcite-ui-border-2);\n outline-offset: 2px;\n}\n.year:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.year--suffix {\n text-align: start;\n}\n\n.year-wrap {\n position: relative;\n}\n\n.suffix {\n inset-block-start: 0px;\n white-space: nowrap;\n text-align: start;\n inset-inline-start: 0;\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, Fragment } from \"@stencil/core\";\nimport { dateFromRange, nextMonth, prevMonth, getOrder } from \"../../utils/date\";\nimport { Heading } from \"../functional/Heading\";\nimport { BUDDHIST_CALENDAR_YEAR_OFFSET } from \"./resources\";\nimport { isActivationKey } from \"../../utils/key\";\nimport { numberStringFormatter } from \"../../utils/locale\";\nimport { closestElementCrossShadowBoundary } from \"../../utils/dom\";\nexport class DatePickerMonthHeader {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n this.globalAttributes = {};\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Increment year on UP/DOWN keys\n *\n * @param event\n */\n this.onYearKey = (event) => {\n const localizedYear = this.parseCalendarYear(event.target.value);\n switch (event.key) {\n case \"ArrowDown\":\n event.preventDefault();\n this.setYear({ localizedYear, offset: -1 });\n break;\n case \"ArrowUp\":\n event.preventDefault();\n this.setYear({ localizedYear, offset: 1 });\n break;\n }\n };\n this.onYearChange = (event) => {\n this.setYear({\n localizedYear: this.parseCalendarYear(event.target.value)\n });\n };\n this.onYearInput = (event) => {\n this.setYear({\n localizedYear: this.parseCalendarYear(event.target.value),\n commit: false\n });\n };\n this.prevMonthClick = (event) => {\n this.handleArrowClick(event, this.prevMonthDate);\n };\n this.prevMonthKeydown = (event) => {\n if (isActivationKey(event.key)) {\n this.prevMonthClick(event);\n }\n };\n this.nextMonthClick = (event) => {\n this.handleArrowClick(event, this.nextMonthDate);\n };\n this.nextMonthKeydown = (event) => {\n if (isActivationKey(event.key)) {\n this.nextMonthClick(event);\n }\n };\n /*\n * Update active month on clicks of left/right arrows\n */\n this.handleArrowClick = (event, date) => {\n event.preventDefault();\n this.calciteDatePickerSelect.emit(date);\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, \"calcite-date-picker\");\n }\n connectedCallback() {\n this.setNextPrevMonthDates();\n }\n render() {\n return h(\"div\", { class: \"header\" }, this.renderContent());\n }\n renderContent() {\n var _a;\n if (!this.activeDate || !this.localeData) {\n return null;\n }\n if (this.parentDatePickerEl) {\n const { numberingSystem, lang: locale } = this.parentDatePickerEl;\n numberStringFormatter.numberFormatOptions = {\n useGrouping: false,\n ...(numberingSystem && { numberingSystem }),\n ...(locale && { locale })\n };\n }\n const activeMonth = this.activeDate.getMonth();\n const { months, unitOrder } = this.localeData;\n const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];\n const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear());\n const iconScale = this.scale === \"l\" ? \"m\" : \"s\";\n const order = getOrder(unitOrder);\n const reverse = order.indexOf(\"y\") < order.indexOf(\"m\");\n const suffix = (_a = this.localeData.year) === null || _a === void 0 ? void 0 : _a.suffix;\n return (h(Fragment, null, h(\"a\", { \"aria-disabled\": `${this.prevMonthDate.getMonth() === activeMonth}`, \"aria-label\": this.intlPrevMonth, class: \"chevron\", href: \"#\", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: \"button\", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, h(\"calcite-icon\", { \"flip-rtl\": true, icon: \"chevron-left\", scale: iconScale })), h(\"div\", { class: { text: true, \"text--reverse\": reverse } }, h(Heading, { class: \"month\", level: this.headingLevel }, localizedMonth), h(\"span\", { class: \"year-wrap\" }, h(\"input\", { \"aria-label\": this.intlYear, class: {\n year: true,\n \"year--suffix\": !!suffix\n }, inputmode: \"numeric\", maxlength: \"4\", minlength: \"1\", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: \"\\\\d*\", ref: (el) => (this.yearInput = el), type: \"text\", value: localizedYear }), suffix && h(\"span\", { class: \"suffix\" }, suffix))), h(\"a\", { \"aria-disabled\": `${this.nextMonthDate.getMonth() === activeMonth}`, \"aria-label\": this.intlNextMonth, class: \"chevron\", href: \"#\", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: \"button\", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, h(\"calcite-icon\", { \"flip-rtl\": true, icon: \"chevron-right\", scale: iconScale }))));\n }\n setNextPrevMonthDates() {\n if (!this.activeDate) {\n return;\n }\n this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);\n this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);\n }\n formatCalendarYear(year) {\n const { localeData } = this;\n const buddhistCalendar = localeData[\"default-calendar\"] === \"buddhist\";\n const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;\n return numberStringFormatter.localize(`${year + yearOffset}`);\n }\n parseCalendarYear(year) {\n const { localeData } = this;\n const buddhistCalendar = localeData[\"default-calendar\"] === \"buddhist\";\n const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;\n const parsedYear = Number(numberStringFormatter.delocalize(year)) - yearOffset;\n return numberStringFormatter.localize(`${parsedYear}`);\n }\n getInRangeDate({ localizedYear, offset = 0 }) {\n const { min, max, activeDate } = this;\n const parsedYear = Number(numberStringFormatter.delocalize(localizedYear));\n const length = parsedYear.toString().length;\n const year = isNaN(parsedYear) ? false : parsedYear + offset;\n const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);\n // if you've supplied a year and it's in range\n if (year && inRange && length === localizedYear.length) {\n const nextDate = new Date(activeDate);\n nextDate.setFullYear(year);\n return dateFromRange(nextDate, min, max);\n }\n }\n /**\n * Parse localized year string from input,\n * set to active if in range\n *\n * @param root0\n * @param root0.localizedYear\n * @param root0.commit\n * @param root0.offset\n */\n setYear({ localizedYear, commit = true, offset = 0 }) {\n const { yearInput, activeDate } = this;\n const inRangeDate = this.getInRangeDate({ localizedYear, offset });\n // if you've supplied a year and it's in range, update active date\n if (inRangeDate) {\n this.calciteDatePickerSelect.emit(inRangeDate);\n }\n if (commit) {\n yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear());\n }\n }\n static get is() { return \"calcite-date-picker-month-header\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"date-picker-month-header.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"date-picker-month-header.css\"]\n };\n }\n static get properties() {\n return {\n \"selectedDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Already selected date.\"\n }\n },\n \"activeDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Focused date with indicator (will become selected date if user proceeds)\"\n }\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\": false\n },\n \"min\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Minimum date of the calendar below which is disabled.\"\n }\n },\n \"max\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Maximum date of the calendar above which is disabled.\"\n }\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\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Localized string for previous month.\"\n },\n \"attribute\": \"intl-prev-month\",\n \"reflect\": false\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\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Localized string for next month.\"\n },\n \"attribute\": \"intl-next-month\",\n \"reflect\": false\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\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Localized string for year.\"\n },\n \"attribute\": \"intl-year\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\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 },\n \"localeData\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DateLocaleData\",\n \"resolved\": \"DateLocaleData\",\n \"references\": {\n \"DateLocaleData\": {\n \"location\": \"import\",\n \"path\": \"../date-picker/utils\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"CLDR locale data for translated calendar info\"\n }\n }\n };\n }\n static get states() {\n return {\n \"globalAttributes\": {},\n \"nextMonthDate\": {},\n \"prevMonthDate\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteDatePickerSelect\",\n \"name\": \"calciteDatePickerSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Changes to active date\"\n },\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"min\",\n \"methodName\": \"setNextPrevMonthDates\"\n }, {\n \"propName\": \"max\",\n \"methodName\": \"setNextPrevMonthDates\"\n }, {\n \"propName\": \"activeDate\",\n \"methodName\": \"setNextPrevMonthDates\"\n }];\n }\n}\n"],"version":3}
|
@@ -1,346 +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 { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { c as sameDate, b as dateFromRange, i as inRange } from './date.js';
|
8
|
-
import { d as defineCustomElement$1 } from './date-picker-day.js';
|
9
|
-
|
10
|
-
const datePickerMonthCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{-webkit-margin-after:0.25rem;margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";
|
11
|
-
|
12
|
-
const DatePickerMonth = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
13
|
-
constructor() {
|
14
|
-
super();
|
15
|
-
this.__registerHost();
|
16
|
-
this.__attachShadow();
|
17
|
-
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 6);
|
18
|
-
this.calciteInternalDatePickerHover = createEvent(this, "calciteInternalDatePickerHover", 6);
|
19
|
-
this.calciteDatePickerActiveDateChange = createEvent(this, "calciteDatePickerActiveDateChange", 6);
|
20
|
-
this.calciteInternalDatePickerMouseOut = createEvent(this, "calciteInternalDatePickerMouseOut", 6);
|
21
|
-
/** Date currently active.*/
|
22
|
-
this.activeDate = new Date();
|
23
|
-
//--------------------------------------------------------------------------
|
24
|
-
//
|
25
|
-
// Event Listeners
|
26
|
-
//
|
27
|
-
//--------------------------------------------------------------------------
|
28
|
-
this.keyDownHandler = (event) => {
|
29
|
-
if (event.defaultPrevented) {
|
30
|
-
return;
|
31
|
-
}
|
32
|
-
const isRTL = this.el.dir === "rtl";
|
33
|
-
switch (event.key) {
|
34
|
-
case "ArrowUp":
|
35
|
-
event.preventDefault();
|
36
|
-
this.addDays(-7);
|
37
|
-
break;
|
38
|
-
case "ArrowRight":
|
39
|
-
event.preventDefault();
|
40
|
-
this.addDays(isRTL ? -1 : 1);
|
41
|
-
break;
|
42
|
-
case "ArrowDown":
|
43
|
-
event.preventDefault();
|
44
|
-
this.addDays(7);
|
45
|
-
break;
|
46
|
-
case "ArrowLeft":
|
47
|
-
event.preventDefault();
|
48
|
-
this.addDays(isRTL ? 1 : -1);
|
49
|
-
break;
|
50
|
-
case "PageUp":
|
51
|
-
event.preventDefault();
|
52
|
-
this.addMonths(-1);
|
53
|
-
break;
|
54
|
-
case "PageDown":
|
55
|
-
event.preventDefault();
|
56
|
-
this.addMonths(1);
|
57
|
-
break;
|
58
|
-
case "Home":
|
59
|
-
event.preventDefault();
|
60
|
-
this.activeDate.setDate(1);
|
61
|
-
this.addDays();
|
62
|
-
break;
|
63
|
-
case "End":
|
64
|
-
event.preventDefault();
|
65
|
-
this.activeDate.setDate(new Date(this.activeDate.getFullYear(), this.activeDate.getMonth() + 1, 0).getDate());
|
66
|
-
this.addDays();
|
67
|
-
break;
|
68
|
-
case "Enter":
|
69
|
-
case " ":
|
70
|
-
event.preventDefault();
|
71
|
-
break;
|
72
|
-
case "Tab":
|
73
|
-
this.activeFocus = false;
|
74
|
-
}
|
75
|
-
};
|
76
|
-
/**
|
77
|
-
* Once user is not interacting via keyboard,
|
78
|
-
* disable auto focusing of active date
|
79
|
-
*/
|
80
|
-
this.disableActiveFocus = () => {
|
81
|
-
this.activeFocus = false;
|
82
|
-
};
|
83
|
-
this.dayHover = (event) => {
|
84
|
-
const target = event.target;
|
85
|
-
if (target.disabled) {
|
86
|
-
this.calciteInternalDatePickerMouseOut.emit();
|
87
|
-
}
|
88
|
-
else {
|
89
|
-
this.calciteInternalDatePickerHover.emit(target.value);
|
90
|
-
}
|
91
|
-
event.stopPropagation();
|
92
|
-
};
|
93
|
-
this.daySelect = (event) => {
|
94
|
-
const target = event.target;
|
95
|
-
this.calciteDatePickerSelect.emit(target.value);
|
96
|
-
};
|
97
|
-
}
|
98
|
-
mouseoutHandler() {
|
99
|
-
this.calciteInternalDatePickerMouseOut.emit();
|
100
|
-
}
|
101
|
-
//--------------------------------------------------------------------------
|
102
|
-
//
|
103
|
-
// Lifecycle
|
104
|
-
//
|
105
|
-
//--------------------------------------------------------------------------
|
106
|
-
render() {
|
107
|
-
const month = this.activeDate.getMonth();
|
108
|
-
const year = this.activeDate.getFullYear();
|
109
|
-
const startOfWeek = this.localeData.weekStart % 7;
|
110
|
-
const { abbreviated, short, narrow } = this.localeData.days;
|
111
|
-
const weekDays = this.scale === "s" ? narrow || short || abbreviated : short || abbreviated || narrow;
|
112
|
-
const adjustedWeekDays = [...weekDays.slice(startOfWeek, 7), ...weekDays.slice(0, startOfWeek)];
|
113
|
-
const curMonDays = this.getCurrentMonthDays(month, year);
|
114
|
-
const prevMonDays = this.getPrevMonthdays(month, year, startOfWeek);
|
115
|
-
const nextMonDays = this.getNextMonthDays(month, year, startOfWeek);
|
116
|
-
const days = [
|
117
|
-
...prevMonDays.map((day) => {
|
118
|
-
const date = new Date(year, month - 1, day);
|
119
|
-
return this.renderDateDay(false, day, date);
|
120
|
-
}),
|
121
|
-
...curMonDays.map((day) => {
|
122
|
-
const date = new Date(year, month, day);
|
123
|
-
const active = sameDate(date, this.activeDate);
|
124
|
-
return this.renderDateDay(active, day, date, true, true);
|
125
|
-
}),
|
126
|
-
...nextMonDays.map((day) => {
|
127
|
-
const date = new Date(year, month + 1, day);
|
128
|
-
return this.renderDateDay(false, day, date);
|
129
|
-
})
|
130
|
-
];
|
131
|
-
const weeks = [];
|
132
|
-
for (let i = 0; i < days.length; i += 7) {
|
133
|
-
weeks.push(days.slice(i, i + 7));
|
134
|
-
}
|
135
|
-
return (h(Host, { onFocusOut: this.disableActiveFocus, onKeyDown: this.keyDownHandler }, h("div", { class: "calender", role: "grid" }, h("div", { class: "week-headers", role: "row" }, adjustedWeekDays.map((weekday) => (h("span", { class: "week-header", role: "columnheader" }, weekday)))), weeks.map((days) => (h("div", { class: "week-days", role: "row" }, days))))));
|
136
|
-
}
|
137
|
-
//--------------------------------------------------------------------------
|
138
|
-
//
|
139
|
-
// Private Methods
|
140
|
-
//
|
141
|
-
//--------------------------------------------------------------------------
|
142
|
-
/**
|
143
|
-
* Add n months to the current month
|
144
|
-
*
|
145
|
-
* @param step
|
146
|
-
*/
|
147
|
-
addMonths(step) {
|
148
|
-
const nextDate = new Date(this.activeDate);
|
149
|
-
nextDate.setMonth(this.activeDate.getMonth() + step);
|
150
|
-
this.calciteDatePickerActiveDateChange.emit(dateFromRange(nextDate, this.min, this.max));
|
151
|
-
this.activeFocus = true;
|
152
|
-
}
|
153
|
-
/**
|
154
|
-
* Add n days to the current date
|
155
|
-
*
|
156
|
-
* @param step
|
157
|
-
*/
|
158
|
-
addDays(step = 0) {
|
159
|
-
const nextDate = new Date(this.activeDate);
|
160
|
-
nextDate.setDate(this.activeDate.getDate() + step);
|
161
|
-
this.calciteDatePickerActiveDateChange.emit(dateFromRange(nextDate, this.min, this.max));
|
162
|
-
this.activeFocus = true;
|
163
|
-
}
|
164
|
-
/**
|
165
|
-
* Get dates for last days of the previous month
|
166
|
-
*
|
167
|
-
* @param month
|
168
|
-
* @param year
|
169
|
-
* @param startOfWeek
|
170
|
-
*/
|
171
|
-
getPrevMonthdays(month, year, startOfWeek) {
|
172
|
-
const lastDate = new Date(year, month, 0);
|
173
|
-
const date = lastDate.getDate();
|
174
|
-
const day = lastDate.getDay();
|
175
|
-
const days = [];
|
176
|
-
if (day - 6 === startOfWeek) {
|
177
|
-
return days;
|
178
|
-
}
|
179
|
-
for (let i = lastDate.getDay() - startOfWeek; i >= 0; i--) {
|
180
|
-
days.push(date - i);
|
181
|
-
}
|
182
|
-
return days;
|
183
|
-
}
|
184
|
-
/**
|
185
|
-
* Get dates for the current month
|
186
|
-
*
|
187
|
-
* @param month
|
188
|
-
* @param year
|
189
|
-
*/
|
190
|
-
getCurrentMonthDays(month, year) {
|
191
|
-
const num = new Date(year, month + 1, 0).getDate();
|
192
|
-
const days = [];
|
193
|
-
for (let i = 0; i < num; i++) {
|
194
|
-
days.push(i + 1);
|
195
|
-
}
|
196
|
-
return days;
|
197
|
-
}
|
198
|
-
/**
|
199
|
-
* Get dates for first days of the next month
|
200
|
-
*
|
201
|
-
* @param month
|
202
|
-
* @param year
|
203
|
-
* @param startOfWeek
|
204
|
-
*/
|
205
|
-
getNextMonthDays(month, year, startOfWeek) {
|
206
|
-
const endDay = new Date(year, month + 1, 0).getDay();
|
207
|
-
const days = [];
|
208
|
-
if (endDay === (startOfWeek + 6) % 7) {
|
209
|
-
return days;
|
210
|
-
}
|
211
|
-
for (let i = 0; i < (6 - (endDay - startOfWeek)) % 7; i++) {
|
212
|
-
days.push(i + 1);
|
213
|
-
}
|
214
|
-
return days;
|
215
|
-
}
|
216
|
-
/**
|
217
|
-
* Determine if the date is in between the start and end dates
|
218
|
-
*
|
219
|
-
* @param date
|
220
|
-
*/
|
221
|
-
betweenSelectedRange(date) {
|
222
|
-
return !!(this.startDate &&
|
223
|
-
this.endDate &&
|
224
|
-
date > this.startDate &&
|
225
|
-
date < this.endDate &&
|
226
|
-
!this.isRangeHover(date));
|
227
|
-
}
|
228
|
-
/**
|
229
|
-
* Determine if the date should be in selected state
|
230
|
-
*
|
231
|
-
* @param date
|
232
|
-
*/
|
233
|
-
isSelected(date) {
|
234
|
-
return !!(sameDate(date, this.selectedDate) ||
|
235
|
-
(this.startDate && sameDate(date, this.startDate)) ||
|
236
|
-
(this.endDate && sameDate(date, this.endDate)));
|
237
|
-
}
|
238
|
-
/**
|
239
|
-
* Determine if the date is the start of the date range
|
240
|
-
*
|
241
|
-
* @param date
|
242
|
-
*/
|
243
|
-
isStartOfRange(date) {
|
244
|
-
return !!(this.startDate &&
|
245
|
-
!sameDate(this.startDate, this.endDate) &&
|
246
|
-
sameDate(this.startDate, date) &&
|
247
|
-
!this.isEndOfRange(date));
|
248
|
-
}
|
249
|
-
isEndOfRange(date) {
|
250
|
-
return !!((this.endDate && !sameDate(this.startDate, this.endDate) && sameDate(this.endDate, date)) ||
|
251
|
-
(!this.endDate &&
|
252
|
-
this.hoverRange &&
|
253
|
-
sameDate(this.startDate, this.hoverRange.end) &&
|
254
|
-
sameDate(date, this.hoverRange.end)));
|
255
|
-
}
|
256
|
-
/**
|
257
|
-
* Render calcite-date-picker-day
|
258
|
-
*
|
259
|
-
* @param active
|
260
|
-
* @param day
|
261
|
-
* @param date
|
262
|
-
* @param currentMonth
|
263
|
-
* @param ref
|
264
|
-
*/
|
265
|
-
renderDateDay(active, day, date, currentMonth, ref) {
|
266
|
-
var _a;
|
267
|
-
const isFocusedOnStart = this.isFocusedOnStart();
|
268
|
-
const isHoverInRange = this.isHoverInRange() ||
|
269
|
-
(!this.endDate && this.hoverRange && sameDate((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.end, this.startDate));
|
270
|
-
return (h("calcite-date-picker-day", { active: active, class: {
|
271
|
-
"hover--inside-range": this.startDate && isHoverInRange,
|
272
|
-
"hover--outside-range": this.startDate && !isHoverInRange,
|
273
|
-
"focused--start": isFocusedOnStart,
|
274
|
-
"focused--end": !isFocusedOnStart
|
275
|
-
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
|
276
|
-
// when moving via keyboard, focus must be updated on active date
|
277
|
-
if (ref && active && this.activeFocus) {
|
278
|
-
el === null || el === void 0 ? void 0 : el.focus();
|
279
|
-
}
|
280
|
-
}, scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date }));
|
281
|
-
}
|
282
|
-
isFocusedOnStart() {
|
283
|
-
var _a;
|
284
|
-
return ((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === "start";
|
285
|
-
}
|
286
|
-
isHoverInRange() {
|
287
|
-
if (!this.hoverRange) {
|
288
|
-
return false;
|
289
|
-
}
|
290
|
-
const { start, end } = this.hoverRange;
|
291
|
-
return !!((!this.isFocusedOnStart() && this.startDate && (!this.endDate || end < this.endDate)) ||
|
292
|
-
(this.isFocusedOnStart() && this.startDate && start > this.startDate));
|
293
|
-
}
|
294
|
-
isRangeHover(date) {
|
295
|
-
if (!this.hoverRange) {
|
296
|
-
return false;
|
297
|
-
}
|
298
|
-
const { start, end } = this.hoverRange;
|
299
|
-
const isStart = this.isFocusedOnStart();
|
300
|
-
const insideRange = this.isHoverInRange();
|
301
|
-
const cond1 = insideRange &&
|
302
|
-
((!isStart && date > this.startDate && (date < end || sameDate(date, end))) ||
|
303
|
-
(isStart && date < this.endDate && (date > start || sameDate(date, start))));
|
304
|
-
const cond2 = !insideRange &&
|
305
|
-
((!isStart && date >= this.endDate && (date < end || sameDate(date, end))) ||
|
306
|
-
(isStart &&
|
307
|
-
(date < this.startDate || (this.endDate && sameDate(date, this.startDate))) &&
|
308
|
-
(date > start || sameDate(date, start))));
|
309
|
-
return cond1 || cond2;
|
310
|
-
}
|
311
|
-
get el() { return this; }
|
312
|
-
static get style() { return datePickerMonthCss; }
|
313
|
-
}, [1, "calcite-date-picker-month", {
|
314
|
-
"selectedDate": [16],
|
315
|
-
"activeDate": [16],
|
316
|
-
"startDate": [16],
|
317
|
-
"endDate": [16],
|
318
|
-
"min": [16],
|
319
|
-
"max": [16],
|
320
|
-
"scale": [513],
|
321
|
-
"localeData": [16],
|
322
|
-
"hoverRange": [16]
|
323
|
-
}, [[1, "pointerout", "mouseoutHandler"]]]);
|
324
|
-
function defineCustomElement() {
|
325
|
-
if (typeof customElements === "undefined") {
|
326
|
-
return;
|
327
|
-
}
|
328
|
-
const components = ["calcite-date-picker-month", "calcite-date-picker-day"];
|
329
|
-
components.forEach(tagName => { switch (tagName) {
|
330
|
-
case "calcite-date-picker-month":
|
331
|
-
if (!customElements.get(tagName)) {
|
332
|
-
customElements.define(tagName, DatePickerMonth);
|
333
|
-
}
|
334
|
-
break;
|
335
|
-
case "calcite-date-picker-day":
|
336
|
-
if (!customElements.get(tagName)) {
|
337
|
-
defineCustomElement$1();
|
338
|
-
}
|
339
|
-
break;
|
340
|
-
} });
|
341
|
-
}
|
342
|
-
defineCustomElement();
|
343
|
-
|
344
|
-
export { DatePickerMonth as D, defineCustomElement as d };
|
345
|
-
|
346
|
-
//# sourceMappingURL=date-picker-month.js.map
|