@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":"config-draw-tools.js","mappings":";;;;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,yNAAyN;;MCyBvOA,iBAAe;;;;;0BAkBc,IAAI;;;;;;;;;;;;;;;;;;EAqC5C,MAAM,aAAa;IACjB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;GACxC;;;;;;;;;;;;;;;;EAmBD,MAAM,iBAAiB;IACrB,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;GAC/B;;;;EAKD,MAAM;;IACJ,MAAM,QAAQ,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,KAAK,KAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1D,QACE,EAAC,IAAI,QACH,eACE,WAAK,KAAK,EAAC,qBAAqB,IAC9B,qBAAe,KAAK,EAAC,eAAe,IACjC,MAAA,IAAI,CAAC,aAAa,0CAAE,SAAS,CAChB,CACZ,EACN,WAAK,KAAK,EAAC,wBAAwB,IACjC,kBACE,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,GAAG,EAAE,CAAC,EAAE,OAAO,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,EAAE,EACtC,MAAM,EAAE,KAAK,GACb,CACE,CACF,CACD,EACP;GACH;;;;;;;;;;;;EAcS,MAAM,gBAAgB;IAC9B,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,CAAC,CAA+B,CAAC;GAChE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ConfigDrawTools"],"sources":["./src/components/config-draw-tools/config-draw-tools.css?tag=config-draw-tools&encapsulation=shadow","./src/components/config-draw-tools/config-draw-tools.tsx"],"sourcesContent":[":host {\r\n display: block;\r\n}\r\n\r\n.label-spacing {\r\n --calcite-label-margin-bottom: 0;\r\n}\r\n\r\n.padding-block-end-1 {\r\n padding-block-end: 1rem;\r\n}\r\n\r\n.padding-inline-start-1 {\r\n padding-inline-start: 1rem;\r\n}\r\n","/** @license\r\n * Copyright 2022 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, Host, h, Method, Prop, State } from '@stencil/core';\r\nimport ConfigDrawTools_T9n from \"../../assets/t9n/config-draw-tools/resources.json\";\r\nimport { getLocaleComponentStrings } from \"../../utils/locale\";\r\n\r\n@Component({\r\n tag: 'config-draw-tools',\r\n styleUrl: 'config-draw-tools.css',\r\n shadow: true,\r\n})\r\nexport class ConfigDrawTools {\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLConfigDrawToolsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * boolean: All checkboxes checked state will be set with this value on first render.\r\n * Default is true\r\n */\r\n @Prop({reflect: true}) defaultChecked = true;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n * All UI strings should be defined here.\r\n */\r\n @State() _translations: typeof ConfigDrawTools_T9n;\r\n\r\n /**\r\n * HTMLCheckListElement: The check list element\r\n */\r\n protected _checkList: HTMLCheckListElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Watch handlers\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Methods (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Returns a key/value pair that represents the checkbox value and checked state\r\n *\r\n * @returns Promise with the state of the checkboxes\r\n */\r\n @Method()\r\n async getConfigInfo(): Promise<{ [key: string]: boolean }> {\r\n return this._checkList.getConfigInfo();\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (lifecycle)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * StencilJS: Called once just after the component is first connected to the DOM.\r\n *\r\n * @returns Promise when complete\r\n */\r\n async componentWillLoad(): Promise<void> {\r\n await this._getTranslations();\r\n }\r\n\r\n /**\r\n * Renders the component.\r\n */\r\n render() {\r\n const nlsTypes = this._translations?.types || {};\r\n const types = Object.keys(nlsTypes).map(k => nlsTypes[k]);\r\n return (\r\n <Host>\r\n <div>\r\n <div class=\"padding-block-end-1\">\r\n <calcite-label class=\"label-spacing\">\r\n {this._translations?.drawTools}\r\n </calcite-label>\r\n </div>\r\n <div class=\"padding-inline-start-1\">\r\n <check-list\r\n defaultChecked={this.defaultChecked}\r\n ref={(el) => { this._checkList = el; }}\r\n values={types}\r\n />\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Fetches the component's translations\r\n *\r\n * @returns Promise when complete\r\n * @protected\r\n */\r\n protected async _getTranslations(): Promise<void> {\r\n const messages = await getLocaleComponentStrings(this.el);\r\n this._translations = messages[0] as typeof ConfigDrawTools_T9n;\r\n }\r\n}\r\n"],"version":3}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface ConfigLayerPicker extends Components.ConfigLayerPicker, HTMLElement {}
|
4
|
-
export const ConfigLayerPicker: {
|
5
|
-
prototype: ConfigLayerPicker;
|
6
|
-
new (): ConfigLayerPicker;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,148 +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, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
-
import { g as getMapLayerNames } from './mapViewUtils.js';
|
9
|
-
import { d as defineCustomElement$4 } from './checkbox.js';
|
10
|
-
import { d as defineCustomElement$3 } from './label.js';
|
11
|
-
import { d as defineCustomElement$2 } from './check-list2.js';
|
12
|
-
|
13
|
-
const configLayerPickerCss = ":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";
|
14
|
-
|
15
|
-
const ConfigLayerPicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
16
|
-
constructor() {
|
17
|
-
super();
|
18
|
-
this.__registerHost();
|
19
|
-
this.__attachShadow();
|
20
|
-
this.defaultChecked = true;
|
21
|
-
this.mapView = undefined;
|
22
|
-
this._layerNames = [];
|
23
|
-
this._translations = undefined;
|
24
|
-
}
|
25
|
-
//--------------------------------------------------------------------------
|
26
|
-
//
|
27
|
-
// Watch handlers
|
28
|
-
//
|
29
|
-
//--------------------------------------------------------------------------
|
30
|
-
/**
|
31
|
-
* Called each time the mapView prop is changed.
|
32
|
-
*
|
33
|
-
*/
|
34
|
-
async watchStateHandler() {
|
35
|
-
await this._setLayers();
|
36
|
-
}
|
37
|
-
//--------------------------------------------------------------------------
|
38
|
-
//
|
39
|
-
// Methods (public)
|
40
|
-
//
|
41
|
-
//--------------------------------------------------------------------------
|
42
|
-
/**
|
43
|
-
* Returns a key/value pair that represents the checkbox value and checked state
|
44
|
-
*
|
45
|
-
* @returns Promise with the state of the checkboxes
|
46
|
-
*/
|
47
|
-
async getConfigInfo() {
|
48
|
-
return this._checkList.getConfigInfo();
|
49
|
-
}
|
50
|
-
//--------------------------------------------------------------------------
|
51
|
-
//
|
52
|
-
// Events (public)
|
53
|
-
//
|
54
|
-
//--------------------------------------------------------------------------
|
55
|
-
//--------------------------------------------------------------------------
|
56
|
-
//
|
57
|
-
// Functions (lifecycle)
|
58
|
-
//
|
59
|
-
//--------------------------------------------------------------------------
|
60
|
-
/**
|
61
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
62
|
-
*
|
63
|
-
* @returns Promise when complete
|
64
|
-
*/
|
65
|
-
async componentWillLoad() {
|
66
|
-
await this._setLayers();
|
67
|
-
await this._getTranslations();
|
68
|
-
}
|
69
|
-
/**
|
70
|
-
* Renders the component.
|
71
|
-
*/
|
72
|
-
render() {
|
73
|
-
var _a;
|
74
|
-
return (h(Host, null, h("div", null, h("div", { class: "padding-block-end-1" }, h("calcite-label", { class: "label-spacing" }, (_a = this._translations) === null || _a === void 0 ? void 0 : _a.addresseeLayers)), h("div", { class: "padding-inline-start-1" }, h("check-list", { defaultChecked: this.defaultChecked, ref: (el) => { this._checkList = el; }, values: this._layerNames })))));
|
75
|
-
}
|
76
|
-
//--------------------------------------------------------------------------
|
77
|
-
//
|
78
|
-
// Functions (protected)
|
79
|
-
//
|
80
|
-
//--------------------------------------------------------------------------
|
81
|
-
/**
|
82
|
-
* Fetch the names of the layers from the map
|
83
|
-
*
|
84
|
-
* @returns Promise when the operation has completed
|
85
|
-
*/
|
86
|
-
async _setLayers() {
|
87
|
-
if (this.mapView) {
|
88
|
-
this._layerNames = await getMapLayerNames(this.mapView);
|
89
|
-
}
|
90
|
-
}
|
91
|
-
/**
|
92
|
-
* Fetches the component's translations
|
93
|
-
*
|
94
|
-
* @returns Promise when complete
|
95
|
-
* @protected
|
96
|
-
*/
|
97
|
-
async _getTranslations() {
|
98
|
-
const messages = await getLocaleComponentStrings(this.el);
|
99
|
-
this._translations = messages[0];
|
100
|
-
}
|
101
|
-
get el() { return this; }
|
102
|
-
static get watchers() { return {
|
103
|
-
"mapView": ["watchStateHandler"]
|
104
|
-
}; }
|
105
|
-
static get style() { return configLayerPickerCss; }
|
106
|
-
}, [1, "config-layer-picker", {
|
107
|
-
"defaultChecked": [516, "default-checked"],
|
108
|
-
"mapView": [16],
|
109
|
-
"_layerNames": [32],
|
110
|
-
"_translations": [32],
|
111
|
-
"getConfigInfo": [64]
|
112
|
-
}]);
|
113
|
-
function defineCustomElement$1() {
|
114
|
-
if (typeof customElements === "undefined") {
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
const components = ["config-layer-picker", "calcite-checkbox", "calcite-label", "check-list"];
|
118
|
-
components.forEach(tagName => { switch (tagName) {
|
119
|
-
case "config-layer-picker":
|
120
|
-
if (!customElements.get(tagName)) {
|
121
|
-
customElements.define(tagName, ConfigLayerPicker$1);
|
122
|
-
}
|
123
|
-
break;
|
124
|
-
case "calcite-checkbox":
|
125
|
-
if (!customElements.get(tagName)) {
|
126
|
-
defineCustomElement$4();
|
127
|
-
}
|
128
|
-
break;
|
129
|
-
case "calcite-label":
|
130
|
-
if (!customElements.get(tagName)) {
|
131
|
-
defineCustomElement$3();
|
132
|
-
}
|
133
|
-
break;
|
134
|
-
case "check-list":
|
135
|
-
if (!customElements.get(tagName)) {
|
136
|
-
defineCustomElement$2();
|
137
|
-
}
|
138
|
-
break;
|
139
|
-
} });
|
140
|
-
}
|
141
|
-
defineCustomElement$1();
|
142
|
-
|
143
|
-
const ConfigLayerPicker = ConfigLayerPicker$1;
|
144
|
-
const defineCustomElement = defineCustomElement$1;
|
145
|
-
|
146
|
-
export { ConfigLayerPicker, defineCustomElement };
|
147
|
-
|
148
|
-
//# sourceMappingURL=config-layer-picker.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"config-layer-picker.js","mappings":";;;;;;;;;;;;AAAA,MAAM,oBAAoB,GAAG,yNAAyN;;MC0BzOA,mBAAiB;;;;;0BAkBc,IAAI;;uBAkBb,EAAE;;;;;;;;;;;;EAwBnC,MAAM,iBAAiB;IACrB,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;GACzB;;;;;;;;;;;EAcD,MAAM,aAAa;IACjB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;GACxC;;;;;;;;;;;;;;;;EAmBD,MAAM,iBAAiB;IACrB,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;IACxB,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;GAC/B;;;;EAKD,MAAM;;IACJ,QACE,EAAC,IAAI,QACH,eACE,WAAK,KAAK,EAAC,qBAAqB,IAC9B,qBAAe,KAAK,EAAC,eAAe,IACjC,MAAA,IAAI,CAAC,aAAa,0CAAE,eAAe,CACtB,CACZ,EACN,WAAK,KAAK,EAAC,wBAAwB,IACjC,kBACE,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,GAAG,EAAE,CAAC,EAAE,OAAO,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,EAAE,EACtC,MAAM,EAAE,IAAI,CAAC,WAAW,GACxB,CACE,CACF,CACD,EACP;GACH;;;;;;;;;;;EAaD,MAAM,UAAU;IACd,IAAI,IAAI,CAAC,OAAO,EAAE;MAChB,IAAI,CAAC,WAAW,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACzD;GACF;;;;;;;EAQS,MAAM,gBAAgB;IAC9B,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAiC,CAAC;GAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ConfigLayerPicker"],"sources":["./src/components/config-layer-picker/config-layer-picker.css?tag=config-layer-picker&encapsulation=shadow","./src/components/config-layer-picker/config-layer-picker.tsx"],"sourcesContent":[":host {\r\n display: block;\r\n}\r\n\r\n.label-spacing {\r\n --calcite-label-margin-bottom: 0;\r\n}\r\n\r\n.padding-block-end-1 {\r\n padding-block-end: 1rem;\r\n}\r\n\r\n.padding-inline-start-1 {\r\n padding-inline-start: 1rem;\r\n}\r\n","/** @license\r\n * Copyright 2022 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, Host, h, Method, Prop, State, Watch } from '@stencil/core';\r\nimport ConfigLayerPicker_T9n from \"../../assets/t9n/config-layer-picker/resources.json\";\r\nimport { getLocaleComponentStrings } from \"../../utils/locale\";\r\nimport { getMapLayerNames } from \"../../utils/mapViewUtils\";\r\n\r\n@Component({\r\n tag: 'config-layer-picker',\r\n styleUrl: 'config-layer-picker.css',\r\n shadow: true,\r\n})\r\nexport class ConfigLayerPicker {\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLConfigLayerPickerElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * boolean: All checkboxes checked state will be set with this value on first render.\r\n * Default is true\r\n */\r\n @Prop({ reflect: true }) defaultChecked = true;\r\n\r\n /**\r\n * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html\r\n */\r\n @Prop() mapView: __esri.MapView;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * string[]: list of layer names from the map\r\n *\r\n * @protected\r\n */\r\n @State() _layerNames: string[] = [];\r\n\r\n /**\r\n * Contains the translations for this component.\r\n * All UI strings should be defined here.\r\n */\r\n @State() _translations: typeof ConfigLayerPicker_T9n;\r\n\r\n /**\r\n * HTMLCheckListElement: The check list element\r\n */\r\n protected _checkList: HTMLCheckListElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Watch handlers\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Called each time the mapView prop is changed.\r\n *\r\n */\r\n @Watch(\"mapView\")\r\n async watchStateHandler(): Promise<void> {\r\n await this._setLayers();\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Methods (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Returns a key/value pair that represents the checkbox value and checked state\r\n *\r\n * @returns Promise with the state of the checkboxes\r\n */\r\n @Method()\r\n async getConfigInfo(): Promise<{ [key: string]: boolean }> {\r\n return this._checkList.getConfigInfo();\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (lifecycle)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * StencilJS: Called once just after the component is first connected to the DOM.\r\n *\r\n * @returns Promise when complete\r\n */\r\n async componentWillLoad(): Promise<void> {\r\n await this._setLayers();\r\n await this._getTranslations();\r\n }\r\n\r\n /**\r\n * Renders the component.\r\n */\r\n render() {\r\n return (\r\n <Host>\r\n <div>\r\n <div class=\"padding-block-end-1\">\r\n <calcite-label class=\"label-spacing\">\r\n {this._translations?.addresseeLayers}\r\n </calcite-label>\r\n </div>\r\n <div class=\"padding-inline-start-1\">\r\n <check-list\r\n defaultChecked={this.defaultChecked}\r\n ref={(el) => { this._checkList = el; }}\r\n values={this._layerNames}\r\n />\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Fetch the names of the layers from the map\r\n *\r\n * @returns Promise when the operation has completed\r\n */\r\n async _setLayers(): Promise<void> {\r\n if (this.mapView) {\r\n this._layerNames = await getMapLayerNames(this.mapView);\r\n }\r\n }\r\n\r\n /**\r\n * Fetches the component's translations\r\n *\r\n * @returns Promise when complete\r\n * @protected\r\n */\r\n protected async _getTranslations(): Promise<void> {\r\n const messages = await getLocaleComponentStrings(this.el);\r\n this._translations = messages[0] as typeof ConfigLayerPicker_T9n;\r\n }\r\n}\r\n"],"version":3}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface ConfigPdfDownload extends Components.ConfigPdfDownload, HTMLElement {}
|
4
|
-
export const ConfigPdfDownload: {
|
5
|
-
prototype: ConfigPdfDownload;
|
6
|
-
new (): ConfigPdfDownload;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,157 +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, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
-
import { p as pdfUtils } from './labelFormats.js';
|
9
|
-
import { d as defineCustomElement$4 } from './checkbox.js';
|
10
|
-
import { d as defineCustomElement$3 } from './label.js';
|
11
|
-
import { d as defineCustomElement$2 } from './check-list2.js';
|
12
|
-
|
13
|
-
const configPdfDownloadCss = ":host{display:block}.label-spacing{--calcite-label-margin-bottom:0}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}";
|
14
|
-
|
15
|
-
const ConfigPdfDownload$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
16
|
-
constructor() {
|
17
|
-
super();
|
18
|
-
this.__registerHost();
|
19
|
-
this.__attachShadow();
|
20
|
-
this.defaultChecked = true;
|
21
|
-
this._formatOptions = [];
|
22
|
-
this._translations = undefined;
|
23
|
-
}
|
24
|
-
//--------------------------------------------------------------------------
|
25
|
-
//
|
26
|
-
// Watch handlers
|
27
|
-
//
|
28
|
-
//--------------------------------------------------------------------------
|
29
|
-
//--------------------------------------------------------------------------
|
30
|
-
//
|
31
|
-
// Methods (public)
|
32
|
-
//
|
33
|
-
//--------------------------------------------------------------------------
|
34
|
-
/**
|
35
|
-
* Returns a key/value pair that represents the checkbox value and checked state
|
36
|
-
*
|
37
|
-
* @returns Promise with the state of the checkboxes
|
38
|
-
*/
|
39
|
-
async getConfigInfo() {
|
40
|
-
const formatOptions = await this._formatOptionsCheckList.getConfigInfo();
|
41
|
-
const csvOptions = await this._csvOptionsCheckList.getConfigInfo();
|
42
|
-
return Object.assign(Object.assign({}, formatOptions), csvOptions);
|
43
|
-
}
|
44
|
-
//--------------------------------------------------------------------------
|
45
|
-
//
|
46
|
-
// Events (public)
|
47
|
-
//
|
48
|
-
//--------------------------------------------------------------------------
|
49
|
-
//--------------------------------------------------------------------------
|
50
|
-
//
|
51
|
-
// Functions (lifecycle)
|
52
|
-
//
|
53
|
-
//--------------------------------------------------------------------------
|
54
|
-
/**
|
55
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
56
|
-
*
|
57
|
-
* @returns Promise when complete
|
58
|
-
*/
|
59
|
-
async componentWillLoad() {
|
60
|
-
await this._getTranslations();
|
61
|
-
await this._setFormatOptions();
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* Renders the component.
|
65
|
-
*/
|
66
|
-
render() {
|
67
|
-
var _c, _d, _e;
|
68
|
-
return (h(Host, null, h("div", null, h("div", { class: "padding-block-end-1" }, h("calcite-label", { class: "label-spacing" }, (_c = this._translations) === null || _c === void 0 ? void 0 : _c.availableLabelFormats)), h("div", { class: "padding-block-end-1 padding-inline-start-1" }, h("check-list", { defaultChecked: this.defaultChecked, ref: (el) => { this._formatOptionsCheckList = el; }, values: this._formatOptions })), h("div", { class: "padding-block-end-1" }, h("calcite-label", { class: "label-spacing" }, (_d = this._translations) === null || _d === void 0 ? void 0 : _d.csvOptions)), h("div", { class: "padding-block-end-1 padding-inline-start-1" }, h("check-list", { defaultChecked: this.defaultChecked, ref: (el) => { this._csvOptionsCheckList = el; }, values: [(_e = this._translations) === null || _e === void 0 ? void 0 : _e.csvColumnTitle] })))));
|
69
|
-
}
|
70
|
-
//--------------------------------------------------------------------------
|
71
|
-
//
|
72
|
-
// Functions (protected)
|
73
|
-
//
|
74
|
-
//--------------------------------------------------------------------------
|
75
|
-
/**
|
76
|
-
* Fetch the names of the layers from the map
|
77
|
-
*
|
78
|
-
* @returns Promise when the operation has completed
|
79
|
-
*/
|
80
|
-
async _setFormatOptions() {
|
81
|
-
const s = pdfUtils;
|
82
|
-
const sortedPdfIndo = (s.default || s).sort((a, b) => {
|
83
|
-
const _a = parseInt(a.descriptionPDF.labelsPerPageDisplay, 10);
|
84
|
-
const _b = parseInt(b.descriptionPDF.labelsPerPageDisplay, 10);
|
85
|
-
return _a < _b ? -1 : _a > _b ? 1 : 0;
|
86
|
-
});
|
87
|
-
this._formatOptions = sortedPdfIndo.map(l => {
|
88
|
-
return this._getLabelSizeText(l);
|
89
|
-
});
|
90
|
-
}
|
91
|
-
/**
|
92
|
-
* Gets the formatted pdf export size text
|
93
|
-
*
|
94
|
-
* @param labelInfo current user selected label info
|
95
|
-
*
|
96
|
-
* @returns the pdf label as a string
|
97
|
-
* @protected
|
98
|
-
*/
|
99
|
-
_getLabelSizeText(labelInfo) {
|
100
|
-
const lNum = labelInfo.descriptionPDF.labelsPerPageDisplay;
|
101
|
-
const lSize = `${labelInfo.descriptionPDF.labelWidthDisplay} x ${labelInfo.descriptionPDF.labelHeightDisplay}`;
|
102
|
-
return this._translations.pdfLabel.replace("{{n}}", lNum).replace("{{labelSize}}", lSize);
|
103
|
-
}
|
104
|
-
/**
|
105
|
-
* Fetches the component's translations
|
106
|
-
*
|
107
|
-
* @returns Promise when complete
|
108
|
-
* @protected
|
109
|
-
*/
|
110
|
-
async _getTranslations() {
|
111
|
-
const messages = await getLocaleComponentStrings(this.el);
|
112
|
-
this._translations = messages[0];
|
113
|
-
}
|
114
|
-
get el() { return this; }
|
115
|
-
static get style() { return configPdfDownloadCss; }
|
116
|
-
}, [1, "config-pdf-download", {
|
117
|
-
"defaultChecked": [516, "default-checked"],
|
118
|
-
"_formatOptions": [32],
|
119
|
-
"_translations": [32],
|
120
|
-
"getConfigInfo": [64]
|
121
|
-
}]);
|
122
|
-
function defineCustomElement$1() {
|
123
|
-
if (typeof customElements === "undefined") {
|
124
|
-
return;
|
125
|
-
}
|
126
|
-
const components = ["config-pdf-download", "calcite-checkbox", "calcite-label", "check-list"];
|
127
|
-
components.forEach(tagName => { switch (tagName) {
|
128
|
-
case "config-pdf-download":
|
129
|
-
if (!customElements.get(tagName)) {
|
130
|
-
customElements.define(tagName, ConfigPdfDownload$1);
|
131
|
-
}
|
132
|
-
break;
|
133
|
-
case "calcite-checkbox":
|
134
|
-
if (!customElements.get(tagName)) {
|
135
|
-
defineCustomElement$4();
|
136
|
-
}
|
137
|
-
break;
|
138
|
-
case "calcite-label":
|
139
|
-
if (!customElements.get(tagName)) {
|
140
|
-
defineCustomElement$3();
|
141
|
-
}
|
142
|
-
break;
|
143
|
-
case "check-list":
|
144
|
-
if (!customElements.get(tagName)) {
|
145
|
-
defineCustomElement$2();
|
146
|
-
}
|
147
|
-
break;
|
148
|
-
} });
|
149
|
-
}
|
150
|
-
defineCustomElement$1();
|
151
|
-
|
152
|
-
const ConfigPdfDownload = ConfigPdfDownload$1;
|
153
|
-
const defineCustomElement = defineCustomElement$1;
|
154
|
-
|
155
|
-
export { ConfigPdfDownload, defineCustomElement };
|
156
|
-
|
157
|
-
//# sourceMappingURL=config-pdf-download.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"config-pdf-download.js","mappings":";;;;;;;;;;;;AAAA,MAAM,oBAAoB,GAAG,yNAAyN;;MC0BzOA,mBAAiB;;;;;0BAkBc,IAAI;0BAWV,EAAE;;;;;;;;;;;;;;;;;;EAoCtC,MAAM,aAAa;IACjB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,EAAE,CAAC;IACzE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,aAAa,EAAE,CAAC;IACnE,uCACK,aAAa,GACb,UAAU,EACb;GACH;;;;;;;;;;;;;;;;EAmBD,MAAM,iBAAiB;IACrB,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC9B,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;GAChC;;;;EAKD,MAAM;;IACJ,QACE,EAAC,IAAI,QACH,eACE,WAAK,KAAK,EAAC,qBAAqB,IAC9B,qBAAe,KAAK,EAAC,eAAe,IACjC,MAAA,IAAI,CAAC,aAAa,0CAAE,qBAAqB,CAC5B,CACZ,EACN,WAAK,KAAK,EAAC,4CAA4C,IACrD,kBACE,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,GAAG,EAAE,CAAC,EAAE,OAAO,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC,EAAE,EACnD,MAAM,EAAE,IAAI,CAAC,cAAc,GAC3B,CACE,EACN,WAAK,KAAK,EAAC,qBAAqB,IAC9B,qBAAe,KAAK,EAAC,eAAe,IACjC,MAAA,IAAI,CAAC,aAAa,0CAAE,UAAU,CACjB,CACZ,EACN,WAAK,KAAK,EAAC,4CAA4C,IACrD,kBACE,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,GAAG,EAAE,CAAC,EAAE,OAAO,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAC,EAAE,EAChD,MAAM,EAAE,CAAC,MAAA,IAAI,CAAC,aAAa,0CAAE,cAAc,CAAC,GAC5C,CACE,CACF,CACD,EACP;GACH;;;;;;;;;;;EAaD,MAAM,iBAAiB;IACrB,MAAM,CAAC,GAAQ,QAAQ,CAAC;IACxB,MAAM,aAAa,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;MAC/C,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;MAC/D,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;MAC/D,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAA;KACtC,CAAC,CAAC;IACH,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;MACvC,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC,CAAC;GACJ;;;;;;;;;EAUU,iBAAiB,CAC1B,SAAc;IAEd,MAAM,IAAI,GAAG,SAAS,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAC3D,MAAM,KAAK,GAAG,GAAG,SAAS,CAAC,cAAc,CAAC,iBAAiB,MAAM,SAAS,CAAC,cAAc,CAAC,kBAAkB,EAAE,CAAC;IAC/G,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;GAC3F;;;;;;;EAQS,MAAM,gBAAgB;IAC9B,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAiC,CAAC;GAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ConfigPdfDownload"],"sources":["./src/components/config-pdf-download/config-pdf-download.css?tag=config-pdf-download&encapsulation=shadow","./src/components/config-pdf-download/config-pdf-download.tsx"],"sourcesContent":[":host {\r\n display: block;\r\n}\r\n\r\n.label-spacing {\r\n --calcite-label-margin-bottom: 0;\r\n}\r\n\r\n.padding-block-end-1 {\r\n padding-block-end: 1rem;\r\n}\r\n\r\n.padding-inline-start-1 {\r\n padding-inline-start: 1rem;\r\n}\r\n","/** @license\r\n * Copyright 2022 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, Host, h, Method, Prop, State } from '@stencil/core';\r\nimport ConfigPdfDownload_T9n from \"../../assets/t9n/config-pdf-download/resources.json\";\r\nimport { getLocaleComponentStrings } from \"../../utils/locale\";\r\nimport * as pdfUtils from \"../../assets/data/labelFormats.json\";\r\n\r\n@Component({\r\n tag: 'config-pdf-download',\r\n styleUrl: 'config-pdf-download.css',\r\n shadow: true,\r\n})\r\nexport class ConfigPdfDownload {\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLConfigPdfDownloadElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * boolean: All checkboxes checked state will be set with this value on first render.\r\n * Default is true\r\n */\r\n @Prop({ reflect: true }) defaultChecked = true;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * string[]: list of layer names from the map\r\n */\r\n @State() _formatOptions: string[] = [];\r\n\r\n /**\r\n * Contains the translations for this component.\r\n * All UI strings should be defined here.\r\n */\r\n @State() _translations: typeof ConfigPdfDownload_T9n;\r\n\r\n /**\r\n * HTMLCheckListElement: The format options check list element\r\n */\r\n protected _formatOptionsCheckList: HTMLCheckListElement;\r\n\r\n /**\r\n * HTMLCheckListElement: The CSV options check list element\r\n */\r\n protected _csvOptionsCheckList: HTMLCheckListElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Watch handlers\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Methods (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Returns a key/value pair that represents the checkbox value and checked state\r\n *\r\n * @returns Promise with the state of the checkboxes\r\n */\r\n @Method()\r\n async getConfigInfo(): Promise<{ [key: string]: boolean }> {\r\n const formatOptions = await this._formatOptionsCheckList.getConfigInfo();\r\n const csvOptions = await this._csvOptionsCheckList.getConfigInfo();\r\n return {\r\n ...formatOptions,\r\n ...csvOptions\r\n };\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (lifecycle)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * StencilJS: Called once just after the component is first connected to the DOM.\r\n *\r\n * @returns Promise when complete\r\n */\r\n async componentWillLoad(): Promise<void> {\r\n await this._getTranslations();\r\n await this._setFormatOptions();\r\n }\r\n\r\n /**\r\n * Renders the component.\r\n */\r\n render() {\r\n return (\r\n <Host>\r\n <div>\r\n <div class=\"padding-block-end-1\">\r\n <calcite-label class=\"label-spacing\">\r\n {this._translations?.availableLabelFormats}\r\n </calcite-label>\r\n </div>\r\n <div class=\"padding-block-end-1 padding-inline-start-1\">\r\n <check-list\r\n defaultChecked={this.defaultChecked}\r\n ref={(el) => { this._formatOptionsCheckList = el; }}\r\n values={this._formatOptions}\r\n />\r\n </div>\r\n <div class=\"padding-block-end-1\">\r\n <calcite-label class=\"label-spacing\">\r\n {this._translations?.csvOptions}\r\n </calcite-label>\r\n </div>\r\n <div class=\"padding-block-end-1 padding-inline-start-1\">\r\n <check-list\r\n defaultChecked={this.defaultChecked}\r\n ref={(el) => { this._csvOptionsCheckList = el; }}\r\n values={[this._translations?.csvColumnTitle]}\r\n />\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Fetch the names of the layers from the map\r\n *\r\n * @returns Promise when the operation has completed\r\n */\r\n async _setFormatOptions(): Promise<void> {\r\n const s: any = pdfUtils;\r\n const sortedPdfIndo = (s.default || s).sort((a, b) => {\r\n const _a = parseInt(a.descriptionPDF.labelsPerPageDisplay, 10);\r\n const _b = parseInt(b.descriptionPDF.labelsPerPageDisplay, 10);\r\n return _a < _b ? -1 : _a > _b ? 1 : 0\r\n });\r\n this._formatOptions = sortedPdfIndo.map(l => {\r\n return this._getLabelSizeText(l);\r\n });\r\n }\r\n\r\n /**\r\n * Gets the formatted pdf export size text\r\n *\r\n * @param labelInfo current user selected label info\r\n *\r\n * @returns the pdf label as a string\r\n * @protected\r\n */\r\n protected _getLabelSizeText(\r\n labelInfo: any\r\n ): string {\r\n const lNum = labelInfo.descriptionPDF.labelsPerPageDisplay;\r\n const lSize = `${labelInfo.descriptionPDF.labelWidthDisplay} x ${labelInfo.descriptionPDF.labelHeightDisplay}`;\r\n return this._translations.pdfLabel.replace(\"{{n}}\", lNum).replace(\"{{labelSize}}\", lSize);\r\n }\r\n\r\n /**\r\n * Fetches the component's translations\r\n *\r\n * @returns Promise when complete\r\n * @protected\r\n */\r\n protected async _getTranslations(): Promise<void> {\r\n const messages = await getLocaleComponentStrings(this.el);\r\n this._translations = messages[0] as typeof ConfigPdfDownload_T9n;\r\n }\r\n}\r\n"],"version":3}
|
@@ -1,113 +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 { k as closestElementCrossShadowBoundary, c as getElementDir, C as CSS_UTILITY } from './dom.js';
|
8
|
-
import { u as updateHostInteraction } from './interactive.js';
|
9
|
-
import { i as isActivationKey } from './key.js';
|
10
|
-
import { n as numberStringFormatter } from './locale2.js';
|
11
|
-
|
12
|
-
const datePickerDayCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;min-inline-size:0px;cursor:pointer;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;-webkit-margin-start:0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--end) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";
|
13
|
-
|
14
|
-
const DatePickerDay = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
15
|
-
constructor() {
|
16
|
-
super();
|
17
|
-
this.__registerHost();
|
18
|
-
this.__attachShadow();
|
19
|
-
this.calciteDaySelect = createEvent(this, "calciteDaySelect", 6);
|
20
|
-
this.calciteInternalDayHover = createEvent(this, "calciteInternalDayHover", 6);
|
21
|
-
/** Date is outside of range and can't be selected */
|
22
|
-
this.disabled = false;
|
23
|
-
/** Date is in the current month. */
|
24
|
-
this.currentMonth = false;
|
25
|
-
/** Date is the current selected date of the picker */
|
26
|
-
this.selected = false;
|
27
|
-
/** Date is currently highlighted as part of the range */
|
28
|
-
this.highlighted = false;
|
29
|
-
/** Showing date range */
|
30
|
-
this.range = false;
|
31
|
-
/** Date is the start of date range */
|
32
|
-
this.startOfRange = false;
|
33
|
-
/** Date is the end of date range */
|
34
|
-
this.endOfRange = false;
|
35
|
-
/** Date is being hovered and within the set range */
|
36
|
-
this.rangeHover = false;
|
37
|
-
/** Date is actively in focus for keyboard navigation */
|
38
|
-
this.active = false;
|
39
|
-
//--------------------------------------------------------------------------
|
40
|
-
//
|
41
|
-
// Event Listeners
|
42
|
-
//
|
43
|
-
//--------------------------------------------------------------------------
|
44
|
-
this.onClick = () => {
|
45
|
-
!this.disabled && this.calciteDaySelect.emit();
|
46
|
-
};
|
47
|
-
this.keyDownHandler = (event) => {
|
48
|
-
if (isActivationKey(event.key)) {
|
49
|
-
!this.disabled && this.calciteDaySelect.emit();
|
50
|
-
event.preventDefault();
|
51
|
-
}
|
52
|
-
};
|
53
|
-
}
|
54
|
-
mouseoverHandler() {
|
55
|
-
this.calciteInternalDayHover.emit();
|
56
|
-
}
|
57
|
-
//--------------------------------------------------------------------------
|
58
|
-
//
|
59
|
-
// Lifecycle
|
60
|
-
//
|
61
|
-
//--------------------------------------------------------------------------
|
62
|
-
componentWillLoad() {
|
63
|
-
this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, "calcite-date-picker");
|
64
|
-
}
|
65
|
-
render() {
|
66
|
-
if (this.parentDatePickerEl) {
|
67
|
-
const { numberingSystem, lang: locale } = this.parentDatePickerEl;
|
68
|
-
numberStringFormatter.numberFormatOptions = Object.assign(Object.assign({ useGrouping: false }, (numberingSystem && { numberingSystem })), (locale && { locale }));
|
69
|
-
}
|
70
|
-
const formattedDay = numberStringFormatter.localize(String(this.day));
|
71
|
-
const dir = getElementDir(this.el);
|
72
|
-
return (h(Host, { onClick: this.onClick, onKeyDown: this.keyDownHandler, role: "gridcell" }, h("div", { class: { "day-v-wrapper": true, [CSS_UTILITY.rtl]: dir === "rtl" } }, h("div", { class: "day-wrapper" }, h("span", { class: "day" }, h("span", { class: "text" }, formattedDay))))));
|
73
|
-
}
|
74
|
-
componentDidRender() {
|
75
|
-
updateHostInteraction(this, this.isTabbable);
|
76
|
-
}
|
77
|
-
isTabbable() {
|
78
|
-
return this.active;
|
79
|
-
}
|
80
|
-
get el() { return this; }
|
81
|
-
static get style() { return datePickerDayCss; }
|
82
|
-
}, [1, "calcite-date-picker-day", {
|
83
|
-
"day": [2],
|
84
|
-
"disabled": [516],
|
85
|
-
"currentMonth": [516, "current-month"],
|
86
|
-
"selected": [516],
|
87
|
-
"highlighted": [516],
|
88
|
-
"range": [516],
|
89
|
-
"startOfRange": [516, "start-of-range"],
|
90
|
-
"endOfRange": [516, "end-of-range"],
|
91
|
-
"rangeHover": [516, "range-hover"],
|
92
|
-
"active": [516],
|
93
|
-
"scale": [513],
|
94
|
-
"value": [16]
|
95
|
-
}, [[1, "pointerover", "mouseoverHandler"]]]);
|
96
|
-
function defineCustomElement() {
|
97
|
-
if (typeof customElements === "undefined") {
|
98
|
-
return;
|
99
|
-
}
|
100
|
-
const components = ["calcite-date-picker-day"];
|
101
|
-
components.forEach(tagName => { switch (tagName) {
|
102
|
-
case "calcite-date-picker-day":
|
103
|
-
if (!customElements.get(tagName)) {
|
104
|
-
customElements.define(tagName, DatePickerDay);
|
105
|
-
}
|
106
|
-
break;
|
107
|
-
} });
|
108
|
-
}
|
109
|
-
defineCustomElement();
|
110
|
-
|
111
|
-
export { DatePickerDay as D, defineCustomElement as d };
|
112
|
-
|
113
|
-
//# sourceMappingURL=date-picker-day.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"date-picker-day.js","mappings":";;;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,mzbAAmzb;;MCW/zb,aAAa;EACxB;;;;;;;IAEE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;;IAE1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;;IAEzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IAEnB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;;IAE1B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;;IAExB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;;IAExB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;;;;;IAMpB,IAAI,CAAC,OAAO,GAAG;MACb,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;KAChD,CAAC;IACF,IAAI,CAAC,cAAc,GAAG,CAAC,KAAK;MAC1B,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QAC9B,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAC/C,KAAK,CAAC,cAAc,EAAE,CAAC;OACxB;KACF,CAAC;GACH;EACD,gBAAgB;IACd,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;GACrC;;;;;;EAMD,iBAAiB;IACf,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC,IAAI,CAAC,EAAE,EAAE,qBAAqB,CAAC,CAAC;GAC7F;EACD,MAAM;IACJ,IAAI,IAAI,CAAC,kBAAkB,EAAE;MAC3B,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,kBAAkB,CAAC;MAClE,qBAAqB,CAAC,mBAAmB,iCACvC,WAAW,EAAE,KAAK,KACd,eAAe,IAAI,EAAE,eAAe,EAAE,KACtC,MAAM,IAAI,EAAE,MAAM,EAAE,EACzB,CAAC;KACH;IACD,MAAM,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,GAAG,GAAG,GAAG,KAAK,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;GAC9R;EACD,kBAAkB;IAChB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;GAC9C;EACD,UAAU;IACR,OAAO,IAAI,CAAC,MAAM,CAAC;GACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css?tag=calcite-date-picker-day&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.js"],"sourcesContent":["/* 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([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host {\n display: flex;\n min-inline-size: 0px;\n cursor: pointer;\n justify-content: center;\n color: var(--calcite-ui-text-3);\n inline-size: 14.2857142857%;\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n.day-v-wrapper {\n flex: 1 1 auto;\n}\n\n.day-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.day {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 9999px;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n line-height: 1;\n color: var(--calcite-ui-text-3);\n opacity: var(--calcite-ui-opacity-disabled);\n outline-color: transparent;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n background: none;\n box-shadow: 0 0 0 2px transparent;\n}\n\n.text {\n margin-block: 1px 0px;\n margin-inline-start: 0px;\n}\n\n:host([scale=s]) .day-v-wrapper {\n padding-block: 0.125rem;\n}\n:host([scale=s]) .day-wrapper {\n padding: 0px;\n}\n:host([scale=s]) .day {\n block-size: 27px;\n inline-size: 27px;\n font-size: var(--calcite-font-size--2);\n}\n\n:host([scale=m]) .day-v-wrapper {\n padding-block: 0.25rem;\n}\n:host([scale=m]) .day-wrapper {\n padding-inline: 0.25rem;\n}\n:host([scale=m]) .day {\n block-size: 33px;\n inline-size: 33px;\n font-size: var(--calcite-font-size--1);\n}\n\n:host([scale=l]) .day-v-wrapper {\n padding-block: 0.25rem;\n}\n:host([scale=l]) .day-wrapper {\n padding-inline: 0.25rem;\n}\n:host([scale=l]) .day {\n block-size: 43px;\n inline-size: 43px;\n font-size: var(--calcite-font-size-0);\n}\n\n:host([current-month]) .day {\n opacity: 1;\n}\n\n:host(:hover:not([disabled])) .day, \n:host([active]:not([range])) .day {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n:host(:focus), \n:host([active]) {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n:host(:focus:not([disabled])) .day {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host([selected]) .day {\n font-weight: var(--calcite-font-weight-medium);\n background-color: var(--calcite-ui-brand) !important;\n color: var(--calcite-ui-foreground-1) !important;\n}\n\n:host([range][selected]) .day-wrapper {\n background-color: var(--calcite-ui-foreground-current);\n}\n\n:host([start-of-range]) .day-wrapper {\n border-start-start-radius: 40%;\n border-end-start-radius: 40%;\n}\n\n:host([end-of-range]) .day-wrapper {\n border-start-end-radius: 40%;\n border-end-end-radius: 40%;\n}\n\n:host([start-of-range]) :not(.calcite--rtl) .day-wrapper {\n box-shadow: inset 4px 0 var(--calcite-ui-foreground-1);\n}\n:host([start-of-range]) .calcite--rtl .day-wrapper {\n box-shadow: inset -4px 0 var(--calcite-ui-foreground-1);\n}\n:host([start-of-range]) .day {\n opacity: 1;\n}\n\n:host([end-of-range]) :not(.calcite--rtl) .day-wrapper {\n box-shadow: inset -4px 0 var(--calcite-ui-foreground-1);\n}\n:host([end-of-range]) .calcite--rtl .day-wrapper {\n box-shadow: inset 4px 0 var(--calcite-ui-foreground-1);\n}\n:host([end-of-range]) .day {\n opacity: 1;\n}\n\n:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day {\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n:host([start-of-range]:not(:focus)) .calcite--rtl .day {\n box-shadow: 0 0 0 -2px var(--calcite-ui-foreground-1);\n}\n\n:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day {\n box-shadow: 0 0 0 -2px var(--calcite-ui-foreground-1);\n}\n:host([end-of-range]:not(:focus)) .calcite--rtl .day {\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper {\n box-shadow: inset 8px 0 var(--calcite-ui-foreground-1);\n}\n:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper {\n box-shadow: inset -8px 0 var(--calcite-ui-foreground-1);\n}\n\n:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper {\n box-shadow: inset -8px 0 var(--calcite-ui-foreground-1);\n}\n:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper {\n box-shadow: inset 8px 0 var(--calcite-ui-foreground-1);\n}\n\n:host([highlighted]) .day-wrapper {\n background-color: var(--calcite-ui-foreground-current);\n}\n:host([highlighted]) .day-wrapper .day {\n color: var(--calcite-ui-text-1);\n}\n\n:host([highlighted]:not([active]:focus)) .day {\n border-radius: 0px;\n color: var(--calcite-ui-text-1);\n}\n\n:host([range-hover]:not([selected])) .day-wrapper {\n background-color: var(--calcite-ui-foreground-2);\n}\n:host([range-hover]:not([selected])) .day {\n border-radius: 0px;\n}\n\n:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper {\n background-image: linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,\n:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,\n:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));\n border-radius: 0px;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n}\n:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current));\n}\n:host(:hover[range-hover]:not([selected]).focused--start) .day {\n border-radius: 9999px;\n opacity: 1;\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current));\n}\n:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n}\n:host(:hover[range-hover]:not([selected]).focused--end) .day {\n border-radius: 9999px;\n opacity: 1;\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,\n:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));\n}\n:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day, \n:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day {\n border-radius: 9999px;\n opacity: 1;\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,\n:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper {\n background-image: linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));\n}\n:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day, \n:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day {\n border-radius: 9999px;\n opacity: 1;\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1);\n}\n\n:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper, \n:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper {\n background-image: none;\n}\n\n:host([start-of-range].hover--inside-range.focused--end) .day-wrapper, \n:host([end-of-range].hover--inside-range.focused--start) .day-wrapper {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([highlighted]:first-child) .calcite--rtl .day-wrapper,\n:host([range-hover]:first-child) .calcite--rtl .day-wrapper {\n box-shadow: inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([highlighted]:last-child) .calcite--rtl .day-wrapper,\n:host([range-hover]:last-child) .calcite--rtl .day-wrapper {\n box-shadow: inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,\n:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper {\n box-shadow: inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,\n:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper {\n box-shadow: inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,\n:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper {\n box-shadow: inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n:host([highlighted]:first-child) .day-wrapper,\n:host([range-hover]:first-child) .day-wrapper {\n border-start-start-radius: 45%;\n border-end-start-radius: 45%;\n}\n\n:host([highlighted]:last-child) .day-wrapper,\n:host([range-hover]:last-child) .day-wrapper {\n border-start-end-radius: 45%;\n border-end-end-radius: 45%;\n}\n\n:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,\n:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,\n:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper {\n box-shadow: inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);\n}\n\n@media (forced-colors: active) {\n :host(:hover:not([disabled])) .day, \n:host([active]:not([range])) .day {\n border-radius: 0px;\n }\n\n :host([selected]) {\n outline: 2px solid canvasText;\n }\n :host([selected]) .day {\n border-radius: 0px;\n background-color: highlight;\n }\n\n :host([range][selected]) .day-wrapper,\n:host([highlighted]) .day-wrapper,\n:host([range-hover]:not([selected])) .day-wrapper {\n background-color: highlight;\n }\n\n :host([range][selected][start-of-range]) .day-wrapper,\n:host([range][selected][end-of-range]) .day-wrapper {\n background-color: canvas;\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 */\nimport { Host, h } from \"@stencil/core\";\nimport { closestElementCrossShadowBoundary, getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nimport { isActivationKey } from \"../../utils/key\";\nimport { numberStringFormatter } from \"../../utils/locale\";\nexport class DatePickerDay {\n constructor() {\n /** Date is outside of range and can't be selected */\n this.disabled = false;\n /** Date is in the current month. */\n this.currentMonth = false;\n /** Date is the current selected date of the picker */\n this.selected = false;\n /** Date is currently highlighted as part of the range */\n this.highlighted = false;\n /** Showing date range */\n this.range = false;\n /** Date is the start of date range */\n this.startOfRange = false;\n /** Date is the end of date range */\n this.endOfRange = false;\n /** Date is being hovered and within the set range */\n this.rangeHover = false;\n /** Date is actively in focus for keyboard navigation */\n this.active = false;\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.onClick = () => {\n !this.disabled && this.calciteDaySelect.emit();\n };\n this.keyDownHandler = (event) => {\n if (isActivationKey(event.key)) {\n !this.disabled && this.calciteDaySelect.emit();\n event.preventDefault();\n }\n };\n }\n mouseoverHandler() {\n this.calciteInternalDayHover.emit();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n this.parentDatePickerEl = closestElementCrossShadowBoundary(this.el, \"calcite-date-picker\");\n }\n render() {\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 formattedDay = numberStringFormatter.localize(String(this.day));\n const dir = getElementDir(this.el);\n return (h(Host, { onClick: this.onClick, onKeyDown: this.keyDownHandler, role: \"gridcell\" }, h(\"div\", { class: { \"day-v-wrapper\": true, [CSS_UTILITY.rtl]: dir === \"rtl\" } }, h(\"div\", { class: \"day-wrapper\" }, h(\"span\", { class: \"day\" }, h(\"span\", { class: \"text\" }, formattedDay))))));\n }\n componentDidRender() {\n updateHostInteraction(this, this.isTabbable);\n }\n isTabbable() {\n return this.active;\n }\n static get is() { return \"calcite-date-picker-day\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"date-picker-day.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"date-picker-day.css\"]\n };\n }\n static get properties() {\n return {\n \"day\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Day of the month to be shown.\"\n },\n \"attribute\": \"day\",\n \"reflect\": false\n },\n \"disabled\": {\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\": \"Date is outside of range and can't be selected\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"currentMonth\": {\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\": \"Date is in the current month.\"\n },\n \"attribute\": \"current-month\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\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\": \"Date is the current selected date of the picker\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"highlighted\": {\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\": \"Date is currently highlighted as part of the range\"\n },\n \"attribute\": \"highlighted\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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\": \"Showing date range\"\n },\n \"attribute\": \"range\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"startOfRange\": {\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\": \"Date is the start of date range\"\n },\n \"attribute\": \"start-of-range\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"endOfRange\": {\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\": \"Date is the end of date range\"\n },\n \"attribute\": \"end-of-range\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"rangeHover\": {\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\": \"Date is being hovered and within the set range\"\n },\n \"attribute\": \"range-hover\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"active\": {\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\": \"Date is actively in focus for keyboard navigation\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"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 \"value\": {\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\": \"Date value for the day.\"\n }\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteDaySelect\",\n \"name\": \"calciteDaySelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when user selects day\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInternalDayHover\",\n \"name\": \"calciteInternalDayHover\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted when user hovers over a day\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"pointerover\",\n \"method\": \"mouseoverHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }];\n }\n}\n"],"version":3}
|