@esri/solutions-components 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@stencil/store/dist/index.mjs","src/utils/editStore.ts"],"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","clearTimeout","setTimeout","isConnected","maybeElement","cleanupElements","key","keys","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","createObservableMap","defaultState","shouldUpdate","a","b","states","Object","entries","handlers","cb","oldValue","state","Proxy","[object Object]","_","Array","from","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","length","createStore","models","featureServices","spatialReferenceInfo","modelsChangedEvent","CustomEvent","bubbles","cancelable","composed","dispatchEvent"],"mappings":";;;;;2C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AAa7D,IAAK,CAClB2D,EAAOxD,KAAK8C,EAAG,MAAOY,EAAa7D,MAEvC,GAAI6D,EAAanC,MAAO,CACpBiC,EAAOxD,KAAK8C,EAAG,QAASY,EAAanC,QAEzC,GAAImC,EAAaxC,QAAS,CACtBsC,EAAOxD,KAAK8C,EAAG,UAAWY,EAAaxC,UAE3C,OAAOsC,IACR,IACH,MAAO,IAAMA,EAAOhC,SAASmC,GAAUA,OAE3C,MAAMrC,EAAeX,IACjB,MAAMyB,EAAWL,EAAOlC,IAAIc,GAC5BuB,EAASpC,IAAI0B,SAASW,GAAOA,EAAGxB,EAAKyB,EAAUA,MAEnD,MAAO,CACHC,MAAAA,EACAxC,IAAAA,EACAC,IAAAA,EACAgD,GAAAA,EACAI,SAAAA,EACAI,IAAAA,EACApC,QAAAA,EACAK,MAAAA,EACAD,YAAAA,IAGR,MAAM2B,EAAkB,CAACW,EAAOC,KAC5B,MAAMC,EAAQF,EAAMG,QAAQF,GAC5B,GAAIC,GAAS,EAAG,CACZF,EAAME,GAASF,EAAMA,EAAMI,OAAS,GACpCJ,EAAMI,WAId,MAAMC,EAAc,CAACtC,EAAcC,KAC/B,MAAMnC,EAAMiC,EAAoBC,EAAcC,GAC9CnC,EAAI6D,IAAIxC,KACR,OAAOrB;;;;;;;;;;;;;;;SCpKL4C,MAAEA,EAAKa,SAAEA,EAAQhC,QAAEA,GAAY+C,EAAY,CAC/CC,OAAQ,GACRC,gBAAiB,GACjBC,qBAAsB,GACtBlD,QAAS,IAAMA,MAGjB,MAAMmD,EAAqB,IAAIC,YAAY,gBAAiB,CAC1DC,QAAS,KACTC,WAAY,MACZC,SAAU,OAGZvB,EAAS,UAAU,KACjBwB,cAAcL","sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(defaultState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n const unReset = on('reset', () => cb(defaultState[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","/** @license\r\n * Copyright 2021 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 { createStore } from \"@stencil/store\";\r\n\r\n// eslint-disable-next-line @typescript-eslint/unbound-method\r\nconst { state, onChange, dispose } = createStore({\r\n models: {},\r\n featureServices: [],\r\n spatialReferenceInfo: {},\r\n dispose: () => dispose()\r\n});\r\n\r\nconst modelsChangedEvent = new CustomEvent(\"modelsChanged\", {\r\n bubbles: true,\r\n cancelable: false,\r\n composed: true\r\n});\r\n\r\nonChange('models', () => {\r\n dispatchEvent(modelsChangedEvent);\r\n});\r\n\r\nexport default state;\r\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as s,H as e,g as a}from"./p-2e1cd889.js";import{T as h,g as n,H as r}from"./p-fbdf3e06.js";import{a as o}from"./p-e762b2d1.js";import{g as l,d as c,a as d,b as f}from"./p-f187755e.js";import{g as m}from"./p-7df393df.js";import"./p-c34e0641.js";import"./p-946521e1.js";import"./p-ec178ea9.js";const D="@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible;border-radius:0;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1)}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";let p=class{constructor(s){t(this,s);this.calciteDatePickerChange=i(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=i(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=h.prevMonth;this.intlNextMonth=h.nextMonth;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=t=>{if(m(t.key)==="Escape"){this.reset()}};this.monthHeaderSelectChange=t=>{const i=new Date(t.detail);if(!this.range){this.activeDate=i}else{if(this.activeRange==="end"){this.activeEndDate=i}else{this.activeStartDate=i}this.mostRecentRangeValue=i}};this.monthActiveDateChange=t=>{const i=new Date(t.detail);if(!this.range){this.activeDate=i}else{if(this.activeRange==="end"){this.activeEndDate=i}else{this.activeStartDate=i}this.mostRecentRangeValue=i}};this.monthHoverChange=t=>{if(!this.startAsDate){this.hoverRange=undefined;return}const i=new Date(t.detail);this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate};if(!this.proximitySelectionDisabled){if(this.endAsDate){const t=l(i,this.startAsDate);const s=l(i,this.endAsDate);if(s>0){this.hoverRange.end=i;this.hoverRange.focused="end"}else if(t<0){this.hoverRange.start=i;this.hoverRange.focused="start"}else if(t>s){this.hoverRange.start=i;this.hoverRange.focused="start"}else{this.hoverRange.end=i;this.hoverRange.focused="end"}}else{if(i<this.startAsDate){this.hoverRange={focused:"start",start:i,end:this.startAsDate}}else{this.hoverRange.end=i;this.hoverRange.focused="end"}}}else{if(!this.endAsDate){if(i<this.startAsDate){this.hoverRange={focused:"start",start:i,end:this.startAsDate}}else{this.hoverRange.end=i;this.hoverRange.focused="end"}}else{this.hoverRange=undefined}}};this.monthMouseOutChange=()=>{if(this.hoverRange){this.hoverRange=undefined}};this.reset=()=>{var t,i,s,e,a,h;if(!Array.isArray(this.valueAsDate)&&this.valueAsDate&&((t=this.valueAsDate)===null||t===void 0?void 0:t.getTime())!==((i=this.activeDate)===null||i===void 0?void 0:i.getTime())){this.activeDate=new Date(this.valueAsDate)}if(this.startAsDate&&((s=this.startAsDate)===null||s===void 0?void 0:s.getTime())!==((e=this.activeStartDate)===null||e===void 0?void 0:e.getTime())){this.activeStartDate=new Date(this.startAsDate)}if(this.endAsDate&&((a=this.endAsDate)===null||a===void 0?void 0:a.getTime())!==((h=this.activeEndDate)===null||h===void 0?void 0:h.getTime())){this.activeEndDate=new Date(this.endAsDate)}};this.monthDateChange=t=>{const i=new Date(t.detail);if(!this.range){this.value=c(i);this.activeDate=i;return}if(!this.startAsDate||!this.endAsDate&&i<this.startAsDate){if(this.startAsDate){this.setEndDate(new Date(this.startAsDate))}if(this.activeRange=="end"){this.setEndDate(i)}else{this.setStartDate(i)}}else if(!this.endAsDate){this.setEndDate(i)}else{if(!this.proximitySelectionDisabled){if(this.activeRange){if(this.activeRange=="end"){this.setEndDate(i)}else{this.setStartDate(i)}}else{const t=l(i,this.startAsDate);const s=l(i,this.endAsDate);if(s===0||t<0){this.setStartDate(i)}else if(t===0||s<0){this.setEndDate(i)}else if(t<s){this.setStartDate(i)}else{this.setEndDate(i)}}}else{this.setStartDate(i);this.endAsDate=this.activeEndDate=this.end=undefined}}}}handleValueAsDate(t){if(!Array.isArray(t)&&t&&t!==this.activeDate){this.activeDate=t;this.calciteDatePickerChange.emit(t)}}handleRangeChange(){const{startAsDate:t,endAsDate:i}=this;this.activeEndDate=i;this.activeStartDate=t}connectedCallback(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((t=>d(t)));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=d(this.value)}if(this.start){this.setStartAsDate(d(this.start))}if(this.end){this.setEndAsDate(d(this.end))}if(this.min){this.minAsDate=d(this.min)}if(this.max){this.maxAsDate=d(this.max)}}async componentWillLoad(){await this.loadLocaleData()}render(){var t;const i=f(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);const a=this.range?this.getActiveStartDate(i,this.minAsDate,this.maxAsDate):this.getActiveDate(i,this.minAsDate,this.maxAsDate);let h=a;const n=this.range?f(this.endAsDate,this.minAsDate,this.maxAsDate):null;const r=this.getActiveEndDate(n,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((t=this.hoverRange)===null||t===void 0?void 0:t.focused)==="end"&&(!this.proximitySelectionDisabled||n))&&r){h=r}if(this.range&&this.mostRecentRangeValue){h=this.mostRecentRangeValue}const l=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:i||this.minAsDate:this.minAsDate;const c=this.range&&this.activeRange?this.activeRange==="start"?n||this.maxAsDate:this.maxAsDate:this.maxAsDate;const d=o(this.el);return s(e,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(h,d,c,l,i,n))}valueHandler(t){if(Array.isArray(t)){this.valueAsDate=t.map((t=>d(t)));this.start=t[0];this.end=t[1]}else if(t){this.valueAsDate=d(t);this.start="";this.end=""}}startWatcher(t){this.setStartAsDate(d(t))}endWatcher(t){this.setEndAsDate(d(t))}async loadLocaleData(){const{locale:t}=this;this.localeData=await n(t)}renderCalendar(t,i,e,a,h,n){return this.localeData&&[s("calcite-date-picker-month-header",{activeDate:t,dir:i,headingLevel:this.headingLevel||r,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,localeData:this.localeData,max:e,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:h||new Date}),s("calcite-date-picker-month",{activeDate:t,dir:i,endDate:this.range?n:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:h,startDate:this.range?h:undefined})]}setStartAsDate(t,i){this.startAsDate=t;this.mostRecentRangeValue=this.startAsDate;if(i){this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}}setEndAsDate(t,i){this.endAsDate=t;this.mostRecentRangeValue=this.endAsDate;if(i){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}}setEndDate(t){this.end=c(t);this.setEndAsDate(t,true);this.activeEndDate=t}setStartDate(t){this.start=c(t);this.setStartAsDate(t,true);this.activeStartDate=t}getActiveDate(t,i,s){return f(this.activeDate,i,s)||t||f(new Date,i,s)}getActiveStartDate(t,i,s){return f(this.activeStartDate,i,s)||t||f(new Date,i,s)}getActiveEndDate(t,i,s){return f(this.activeEndDate,i,s)||t||f(new Date,i,s)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}}};p.style=D;export{p as calcite_date_picker};
|
7
|
-
//# sourceMappingURL=p-ede2beab.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker/calcite-date-picker.css?tag=calcite-date-picker&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker/calcite-date-picker.js"],"names":["calciteDatePickerCss","CalciteDatePicker","[object Object]","hostRef","this","intlPrevMonth","TEXT","prevMonth","intlNextMonth","nextMonth","locale","document","documentElement","lang","scale","range","proximitySelectionDisabled","keyUpHandler","e","getKey","key","reset","monthHeaderSelectChange","date","Date","detail","activeDate","activeRange","activeEndDate","activeStartDate","mostRecentRangeValue","monthActiveDateChange","monthHoverChange","startAsDate","hoverRange","undefined","focused","start","end","endAsDate","startDiff","getDaysDiff","endDiff","monthMouseOutChange","_a","_b","_c","_d","_e","_f","Array","isArray","valueAsDate","getTime","monthDateChange","value","dateToISO","setEndDate","setStartDate","calciteDatePickerChange","emit","startDate","endDate","map","v","dateFromISO","setStartAsDate","setEndAsDate","min","minAsDate","max","maxAsDate","loadLocaleData","dateFromRange","getActiveStartDate","getActiveDate","getActiveEndDate","minDate","maxDate","dir","getElementDir","el","h","Host","onBlur","onKeyUp","role","renderCalendar","localeData","getLocaleData","headingLevel","HEADING_LEVEL","onCalciteDatePickerSelect","selectedDate","onCalciteDatePickerActiveDateChange","onCalciteDatePickerHover","onCalciteDatePickerMouseOut","calciteDatePickerRangeChange","assetsDirs"],"mappings":";;;;;2TAAA,MAAMA,EAAuB,gmCCUhBC,EAAiB,MAC5BC,YAAAC,yJAIEC,KAAKC,cAAgBC,EAAKC,UAI1BH,KAAKI,cAAgBF,EAAKG,UAE1BL,KAAKM,OAASC,SAASC,gBAAgBC,MAAQ,KAE/CT,KAAKU,MAAQ,IAEbV,KAAKW,MAAQ,MAEbX,KAAKY,2BAA6B,MAMlCZ,KAAKa,aAAgBC,IACnB,GAAIC,EAAOD,EAAEE,OAAS,SAAU,CAC9BhB,KAAKiB,UAGTjB,KAAKkB,wBAA2BJ,IAC9B,MAAMK,EAAO,IAAIC,KAAKN,EAAEO,QACxB,IAAKrB,KAAKW,MAAO,CACfX,KAAKsB,WAAaH,MAEf,CACH,GAAInB,KAAKuB,cAAgB,MAAO,CAC9BvB,KAAKwB,cAAgBL,MAElB,CACHnB,KAAKyB,gBAAkBN,EAEzBnB,KAAK0B,qBAAuBP,IAGhCnB,KAAK2B,sBAAyBb,IAC5B,MAAMK,EAAO,IAAIC,KAAKN,EAAEO,QACxB,IAAKrB,KAAKW,MAAO,CACfX,KAAKsB,WAAaH,MAEf,CACH,GAAInB,KAAKuB,cAAgB,MAAO,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uB,cAAgB,MAAQmC,EAAUvC,EAAMsC,UAAWzD,KAAKW,MAAQQ,EAAOY,aAM/gBjC,eAAe2D,EAAWD,GACxBxD,KAAK6B,YAAc4B,EACnBzD,KAAK0B,qBAAuB1B,KAAK6B,YACjC,GAAI2B,EAAM,CACRxD,KAAK6F,6BAA6BrC,KAAK,CACrCC,UAAAA,EACAC,QAAS1D,KAAKmC,aAOpBrC,aAAa4D,EAASF,GACpBxD,KAAKmC,UAAYuB,EACjB1D,KAAK0B,qBAAuB1B,KAAKmC,UACjC,GAAIqB,EAAM,CACRxD,KAAK6F,6BAA6BrC,KAAK,CACrCC,UAAWzD,KAAK6B,YAChB6B,QAAAA,KAIN5D,WAAWqB,GACTnB,KAAKkC,IAAMkB,EAAUjC,GACrBnB,KAAK+D,aAAa5C,EAAM,MACxBnB,KAAKwB,cAAgBL,EAEvBrB,aAAaqB,GACXnB,KAAKiC,MAAQmB,EAAUjC,GACvBnB,KAAK8D,eAAe3C,EAAM,MAC1BnB,KAAKyB,gBAAkBN,EAKzBrB,cAAcqD,EAAOa,EAAKE,GACxB,OAAOG,EAAcrE,KAAKsB,WAAY0C,EAAKE,IAAQf,GAASkB,EAAc,IAAIjD,KAAQ4C,EAAKE,GAE7FpE,mBAAmBqD,EAAOa,EAAKE,GAC7B,OAAQG,EAAcrE,KAAKyB,gBAAiBuC,EAAKE,IAAQf,GAASkB,EAAc,IAAIjD,KAAQ4C,EAAKE,GAEnGpE,iBAAiBqD,EAAOa,EAAKE,GAC3B,OAAQG,EAAcrE,KAAKwB,cAAewC,EAAKE,IAAQf,GAASkB,EAAc,IAAIjD,KAAQ4C,EAAKE,GAUjG4B,wBAA0B,MAAO,CAAC","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\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/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: inline-block;\n vertical-align: top;\n width: 100%;\n position: relative;\n overflow: visible;\n border-radius: 0;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n background-color: var(--calcite-ui-foreground-1);\n}\n\n:host([scale=s]) {\n max-width: 216px;\n}\n\n:host([scale=m]) {\n max-width: 286px;\n}\n\n:host([scale=l]) {\n max-width: 398px;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, h, Prop, Event, Element, Host, State, Watch, Build } from \"@stencil/core\";\nimport { getLocaleData } from \"./utils\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { dateFromRange, dateFromISO, dateToISO, getDaysDiff } from \"../../utils/date\";\nimport { getKey } from \"../../utils/key\";\nimport { HEADING_LEVEL, TEXT } from \"./resources\";\nexport class CalciteDatePicker {\n constructor() {\n /** Localized string for \"previous month\" (used for aria label)\n * @default \"Previous month\"\n */\n this.intlPrevMonth = TEXT.prevMonth;\n /** Localized string for \"next month\" (used for aria label)\n * @default \"Next month\"\n */\n this.intlNextMonth = TEXT.nextMonth;\n /** BCP 47 language tag for desired language and country format */\n this.locale = document.documentElement.lang || \"en\";\n /** specify the scale of the date picker */\n this.scale = \"m\";\n /** Range mode activation */\n this.range = false;\n /** Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range. */\n this.proximitySelectionDisabled = false;\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.keyUpHandler = (e) => {\n if (getKey(e.key) === \"Escape\") {\n this.reset();\n }\n };\n this.monthHeaderSelectChange = (e) => {\n const date = new Date(e.detail);\n if (!this.range) {\n this.activeDate = date;\n }\n else {\n if (this.activeRange === \"end\") {\n this.activeEndDate = date;\n }\n else {\n this.activeStartDate = date;\n }\n this.mostRecentRangeValue = date;\n }\n };\n this.monthActiveDateChange = (e) => {\n const date = new Date(e.detail);\n if (!this.range) {\n this.activeDate = date;\n }\n else {\n if (this.activeRange === \"end\") {\n this.activeEndDate = date;\n }\n else {\n this.activeStartDate = date;\n }\n this.mostRecentRangeValue = date;\n }\n };\n this.monthHoverChange = (e) => {\n if (!this.startAsDate) {\n this.hoverRange = undefined;\n return;\n }\n const date = new Date(e.detail);\n this.hoverRange = {\n focused: this.activeRange || \"start\",\n start: this.startAsDate,\n end: this.endAsDate\n };\n if (!this.proximitySelectionDisabled) {\n if (this.endAsDate) {\n const startDiff = getDaysDiff(date, this.startAsDate);\n const endDiff = getDaysDiff(date, this.endAsDate);\n if (endDiff > 0) {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n else if (startDiff < 0) {\n this.hoverRange.start = date;\n this.hoverRange.focused = \"start\";\n }\n else if (startDiff > endDiff) {\n this.hoverRange.start = date;\n this.hoverRange.focused = \"start\";\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n else {\n if (date < this.startAsDate) {\n this.hoverRange = {\n focused: \"start\",\n start: date,\n end: this.startAsDate\n };\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n }\n else {\n if (!this.endAsDate) {\n if (date < this.startAsDate) {\n this.hoverRange = {\n focused: \"start\",\n start: date,\n end: this.startAsDate\n };\n }\n else {\n this.hoverRange.end = date;\n this.hoverRange.focused = \"end\";\n }\n }\n else {\n this.hoverRange = undefined;\n }\n }\n };\n this.monthMouseOutChange = () => {\n if (this.hoverRange) {\n this.hoverRange = undefined;\n }\n };\n /**\n * Reset active date and close\n */\n this.reset = () => {\n var _a, _b, _c, _d, _e, _f;\n if (!Array.isArray(this.valueAsDate) &&\n this.valueAsDate &&\n ((_a = this.valueAsDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== ((_b = this.activeDate) === null || _b === void 0 ? void 0 : _b.getTime())) {\n this.activeDate = new Date(this.valueAsDate);\n }\n if (this.startAsDate && ((_c = this.startAsDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== ((_d = this.activeStartDate) === null || _d === void 0 ? void 0 : _d.getTime())) {\n this.activeStartDate = new Date(this.startAsDate);\n }\n if (this.endAsDate && ((_e = this.endAsDate) === null || _e === void 0 ? void 0 : _e.getTime()) !== ((_f = this.activeEndDate) === null || _f === void 0 ? void 0 : _f.getTime())) {\n this.activeEndDate = new Date(this.endAsDate);\n }\n };\n /**\n * Event handler for when the selected date changes\n */\n this.monthDateChange = (e) => {\n const date = new Date(e.detail);\n if (!this.range) {\n this.value = dateToISO(date);\n this.activeDate = date;\n return;\n }\n if (!this.startAsDate || (!this.endAsDate && date < this.startAsDate)) {\n if (this.startAsDate) {\n this.setEndDate(new Date(this.startAsDate));\n }\n if (this.activeRange == \"end\") {\n this.setEndDate(date);\n }\n else {\n this.setStartDate(date);\n }\n }\n else if (!this.endAsDate) {\n this.setEndDate(date);\n }\n else {\n if (!this.proximitySelectionDisabled) {\n if (this.activeRange) {\n if (this.activeRange == \"end\") {\n this.setEndDate(date);\n }\n else {\n this.setStartDate(date);\n }\n }\n else {\n const startDiff = getDaysDiff(date, this.startAsDate);\n const endDiff = getDaysDiff(date, this.endAsDate);\n if (endDiff === 0 || startDiff < 0) {\n this.setStartDate(date);\n }\n else if (startDiff === 0 || endDiff < 0) {\n this.setEndDate(date);\n }\n else if (startDiff < endDiff) {\n this.setStartDate(date);\n }\n else {\n this.setEndDate(date);\n }\n }\n }\n else {\n this.setStartDate(date);\n this.endAsDate = this.activeEndDate = this.end = undefined;\n }\n }\n };\n }\n handleValueAsDate(date) {\n if (!Array.isArray(date) && date && date !== this.activeDate) {\n this.activeDate = date;\n this.calciteDatePickerChange.emit(date);\n }\n }\n handleRangeChange() {\n const { startAsDate: startDate, endAsDate: endDate } = this;\n this.activeEndDate = endDate;\n this.activeStartDate = startDate;\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n if (Array.isArray(this.value)) {\n this.valueAsDate = this.value.map((v) => dateFromISO(v));\n this.start = this.value[0];\n this.end = this.value[1];\n }\n else if (this.value) {\n this.valueAsDate = dateFromISO(this.value);\n }\n if (this.start) {\n this.setStartAsDate(dateFromISO(this.start));\n }\n if (this.end) {\n this.setEndAsDate(dateFromISO(this.end));\n }\n if (this.min) {\n this.minAsDate = dateFromISO(this.min);\n }\n if (this.max) {\n this.maxAsDate = dateFromISO(this.max);\n }\n }\n async componentWillLoad() {\n await this.loadLocaleData();\n }\n render() {\n var _a;\n const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);\n const activeStartDate = this.range\n ? this.getActiveStartDate(date, this.minAsDate, this.maxAsDate)\n : this.getActiveDate(date, this.minAsDate, this.maxAsDate);\n let activeDate = activeStartDate;\n const endDate = this.range\n ? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)\n : null;\n const activeEndDate = this.getActiveEndDate(endDate, this.minAsDate, this.maxAsDate);\n if ((this.activeRange === \"end\" ||\n (((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === \"end\" && (!this.proximitySelectionDisabled || endDate))) &&\n activeEndDate) {\n activeDate = activeEndDate;\n }\n if (this.range && this.mostRecentRangeValue) {\n activeDate = this.mostRecentRangeValue;\n }\n const minDate = this.range && this.activeRange\n ? this.activeRange === \"start\"\n ? this.minAsDate\n : date || this.minAsDate\n : this.minAsDate;\n const maxDate = this.range && this.activeRange\n ? this.activeRange === \"start\"\n ? endDate || this.maxAsDate\n : this.maxAsDate\n : this.maxAsDate;\n const dir = getElementDir(this.el);\n return (h(Host, { onBlur: this.reset, onKeyUp: this.keyUpHandler, role: \"application\" }, this.renderCalendar(activeDate, dir, maxDate, minDate, date, endDate)));\n }\n valueHandler(value) {\n if (Array.isArray(value)) {\n this.valueAsDate = value.map((v) => dateFromISO(v));\n this.start = value[0];\n this.end = value[1];\n }\n else if (value) {\n this.valueAsDate = dateFromISO(value);\n this.start = \"\";\n this.end = \"\";\n }\n }\n startWatcher(start) {\n this.setStartAsDate(dateFromISO(start));\n }\n endWatcher(end) {\n this.setEndAsDate(dateFromISO(end));\n }\n async loadLocaleData() {\n if (!Build.isBrowser) {\n return;\n }\n const { locale } = this;\n this.localeData = await getLocaleData(locale);\n }\n /**\n * Render calcite-date-picker-month-header and calcite-date-picker-month\n */\n renderCalendar(activeDate, dir, maxDate, minDate, date, endDate) {\n return (this.localeData && [\n h(\"calcite-date-picker-month-header\", { activeDate: activeDate, dir: dir, headingLevel: this.headingLevel || HEADING_LEVEL, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === \"end\" ? endDate : date || new Date() }),\n h(\"calcite-date-picker-month\", { activeDate: activeDate, dir: dir, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerHover: this.monthHoverChange, onCalciteDatePickerMouseOut: this.monthMouseOutChange, onCalciteDatePickerSelect: this.monthDateChange, scale: this.scale, selectedDate: this.activeRange === \"end\" ? endDate : date, startDate: this.range ? date : undefined })\n ]);\n }\n /**\n * Update date instance of start if valid\n */\n setStartAsDate(startDate, emit) {\n this.startAsDate = startDate;\n this.mostRecentRangeValue = this.startAsDate;\n if (emit) {\n this.calciteDatePickerRangeChange.emit({\n startDate,\n endDate: this.endAsDate\n });\n }\n }\n /**\n * Update date instance of end if valid\n */\n setEndAsDate(endDate, emit) {\n this.endAsDate = endDate;\n this.mostRecentRangeValue = this.endAsDate;\n if (emit) {\n this.calciteDatePickerRangeChange.emit({\n startDate: this.startAsDate,\n endDate\n });\n }\n }\n setEndDate(date) {\n this.end = dateToISO(date);\n this.setEndAsDate(date, true);\n this.activeEndDate = date;\n }\n setStartDate(date) {\n this.start = dateToISO(date);\n this.setStartAsDate(date, true);\n this.activeStartDate = date;\n }\n /**\n * Get an active date using the value, or current date as default\n */\n getActiveDate(value, min, max) {\n return dateFromRange(this.activeDate, min, max) || value || dateFromRange(new Date(), min, max);\n }\n getActiveStartDate(value, min, max) {\n return (dateFromRange(this.activeStartDate, min, max) || value || dateFromRange(new Date(), min, max));\n }\n getActiveEndDate(value, min, max) {\n return (dateFromRange(this.activeEndDate, min, max) || value || dateFromRange(new Date(), min, max));\n }\n static get is() { return \"calcite-date-picker\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-date-picker.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-date-picker.css\"]\n }; }\n static get assetsDirs() { return [\"assets\"]; }\n static get properties() { return {\n \"activeRange\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"start\\\" | \\\"end\\\"\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Active range\"\n },\n \"attribute\": \"active-range\",\n \"reflect\": false\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string | string[]\",\n \"resolved\": \"string | string[]\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Selected date\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"valueAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date | Date[]\",\n \"resolved\": \"Date | Date[]\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Selected date as full date object\"\n }\n },\n \"startAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use valueAsDate instead\"\n }],\n \"text\": \"Selected start date as full date object\"\n }\n },\n \"endAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use valueAsDate instead\"\n }],\n \"text\": \"Selected end date as full date object\"\n }\n },\n \"minAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Earliest allowed date as full date object\"\n }\n },\n \"maxAsDate\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Latest allowed date as full date object\"\n }\n },\n \"min\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Earliest allowed date (\\\"yyyy-mm-dd\\\")\"\n },\n \"attribute\": \"min\",\n \"reflect\": false\n },\n \"max\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Latest allowed date (\\\"yyyy-mm-dd\\\")\"\n },\n \"attribute\": \"max\",\n \"reflect\": false\n },\n \"intlPrevMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Previous month\\\"\"\n }],\n \"text\": \"Localized string for \\\"previous month\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-prev-month\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.prevMonth\"\n },\n \"intlNextMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Next month\\\"\"\n }],\n \"text\": \"Localized string for \\\"next month\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-next-month\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.nextMonth\"\n },\n \"locale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"BCP 47 language tag for desired language and country format\"\n },\n \"attribute\": \"locale\",\n \"reflect\": false,\n \"defaultValue\": \"document.documentElement.lang || \\\"en\\\"\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"s\\\" | \\\"m\\\" | \\\"l\\\"\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the date picker\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"range\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Range mode activation\"\n },\n \"attribute\": \"range\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"start\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use value instead\"\n }],\n \"text\": \"Selected start date\"\n },\n \"attribute\": \"start\",\n \"reflect\": false\n },\n \"end\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use value instead\"\n }],\n \"text\": \"Selected end date\"\n },\n \"attribute\": \"end\",\n \"reflect\": false\n },\n \"proximitySelectionDisabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range.\"\n },\n \"attribute\": \"proximity-selection-disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n }\n }; }\n static get states() { return {\n \"activeDate\": {},\n \"activeStartDate\": {},\n \"activeEndDate\": {},\n \"localeData\": {},\n \"hoverRange\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteDatePickerChange\",\n \"name\": \"calciteDatePickerChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Trigger calcite date change when a user changes the date.\"\n },\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteDatePickerRangeChange\",\n \"name\": \"calciteDatePickerRangeChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [DateRangeChange](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-date-picker/interfaces.ts#L1)\"\n }],\n \"text\": \"Trigger calcite date change when a user changes the date range.\"\n },\n \"complexType\": {\n \"original\": \"DateRangeChange\",\n \"resolved\": \"DateRangeChange\",\n \"references\": {\n \"DateRangeChange\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"valueAsDate\",\n \"methodName\": \"handleValueAsDate\"\n }, {\n \"propName\": \"startAsDate\",\n \"methodName\": \"handleRangeChange\"\n }, {\n \"propName\": \"endAsDate\",\n \"methodName\": \"handleRangeChange\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"start\",\n \"methodName\": \"startWatcher\"\n }, {\n \"propName\": \"end\",\n \"methodName\": \"endWatcher\"\n }, {\n \"propName\": \"locale\",\n \"methodName\": \"loadLocaleData\"\n }]; }\n}\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,h as n,H as e,g as o}from"./p-2e1cd889.js";import{b as i}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const a={container:"container",contentContainer:"content-container",nestedContainer:"nested-container",contentContainerButton:"content-container--button",content:"content",actionsStart:"actions-start",contentStart:"content-start",label:"label",description:"description",contentEnd:"content-end",actionsEnd:"actions-end"};const r={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"};const c="@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default}.container{background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;font-family:var(--calcite-sans-family);display:flex;flex:1 1 0%}.container *{box-sizing:border-box}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:flex;flex:1 1 auto;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;align-items:stretch;padding:0;color:var(--calcite-ui-text-2)}.content-container--button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content{justify-content:center;display:flex;flex:1 1 auto;flex-direction:column;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}.label,.description{font-weight:var(--calcite-font-weight-normal);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{padding-top:0.25rem;padding-bottom:0.25rem;margin:0}.label{color:var(--calcite-ui-text-1)}.description{color:var(--calcite-ui-text-3);margin-top:0.125rem}.content-start,.content-end{flex:0 1 auto;pointer-events:none}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){align-self:center;padding-left:0.75rem;padding-right:0.75rem}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-left:0.5rem}";let s=class{constructor(n){t(this,n);this.nonInteractive=false;this.disabled=false}async setFocus(){var t;(t=this.focusEl)===null||t===void 0?void 0:t.focus()}renderActionsStart(){const{el:t}=this;return i(t,r.actionsStart)?n("div",{class:a.actionsStart},n("slot",{name:r.actionsStart})):null}renderActionsEnd(){const{el:t}=this;return i(t,r.actionsEnd)?n("div",{class:a.actionsEnd},n("slot",{name:r.actionsEnd})):null}renderContentStart(){const{el:t}=this;return i(t,r.contentStart)?n("div",{class:a.contentStart},n("slot",{name:r.contentStart})):null}renderContentEnd(){const{el:t}=this;return i(t,r.contentEnd)?n("div",{class:a.contentEnd},n("slot",{name:r.contentEnd})):null}renderContent(){const{label:t,description:e}=this;return!!t||!!e?n("div",{class:a.content},t?n("div",{class:a.label},t):null,e?n("div",{class:a.description},e):null):null}renderContentContainer(){const{disabled:t,nonInteractive:e}=this;const o=[this.renderContentStart(),this.renderContent(),this.renderContentEnd()];return!e?n("button",{class:{[a.contentContainer]:true,[a.contentContainerButton]:true},disabled:t,ref:t=>this.focusEl=t},o):n("div",{class:a.contentContainer,ref:()=>this.focusEl=null},o)}render(){return n(e,{role:"listitem"},n("div",{class:a.container},this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),n("div",{class:a.nestedContainer},n("slot",null)))}get el(){return o(this)}};s.style=c;export{s as calcite_list_item};
|
11
|
-
//# sourceMappingURL=p-f0a6135d.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item/calcite-list-item.css?tag=calcite-list-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item/calcite-list-item.js"],"names":["CSS","container","contentContainer","nestedContainer","contentContainerButton","content","actionsStart","contentStart","label","description","contentEnd","actionsEnd","SLOTS","calciteListItemCss","CalciteListItem","[object Object]","hostRef","this","nonInteractive","disabled","_a","focusEl","focus","el","getSlotted","h","class","name","renderContentStart","renderContent","renderContentEnd","ref","Host","role","renderActionsStart","renderContentContainer","renderActionsEnd"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,UAAW,YACXC,iBAAkB,oBAClBC,gBAAiB,mBACjBC,uBAAwB,4BACxBC,QAAS,UACTC,aAAc,gBACdC,aAAc,gBACdC,MAAO,QACPC,YAAa,cACbC,WAAY,cACZC,WAAY,eAEP,MAAMC,EAAQ,CACnBN,aAAc,gBACdC,aAAc,gBACdG,WAAY,cACZC,WAAY,eCrBd,MAAME,EAAqB,k5FCcdC,EAAe,MAC1BC,YAAAC,aASEC,KAAKC,eAAiB,MAItBD,KAAKE,SAAW,MAQlBJ,iBACE,IAAIK,GACHA,EAAKH,KAAKI,WAAa,MAAQD,SAAY,OAAS,EAAIA,EAAGE,QAO9DP,qBACE,MAAMQ,GAAEA,GAAON,KACf,OAAOO,EAAWD,EAAIX,EAAMN,cAAiBmB,EAAE,MAAO,CAAEC,MAAO1B,EAAIM,cACjEmB,EAAE,OAAQ,CAAEE,KAAMf,EAAMN,gBAAoB,KAEhDS,mBACE,MAAMQ,GAAEA,GAAON,KACf,OAAOO,EAAWD,EAAIX,EAAMD,YAAec,EAAE,MAAO,CAAEC,MAAO1B,EAAIW,YAC/Dc,EAAE,OAAQ,CAAEE,KAAMf,EAAMD,cAAkB,KAE9CI,qBACE,MAAMQ,GAAEA,GAAON,KACf,OAAOO,EAAWD,EAAIX,EAAML,cAAiBkB,EAAE,MAAO,CAAEC,MAAO1B,EAAIO,cACjEkB,EAAE,OAAQ,CAAEE,KAAMf,EAAML,gBAAoB,KAEhDQ,mBACE,MAAMQ,GAAEA,GAAON,KACf,OAAOO,EAAWD,EAAIX,EAAMF,YAAee,EAAE,MAAO,CAAEC,MAAO1B,EAAIU,YAC/De,EAAE,OAAQ,CAAEE,KAAMf,EAAMF,cAAkB,KAE9CK,gBACE,MAAMP,MAAEA,EAAKC,YAAEA,GAAgBQ,KAC/B,QAAST,KAAWC,EAAegB,EAAE,MAAO,CAAEC,MAAO1B,EAAIK,SACvDG,EAAQiB,EAAE,MAAO,CAAEC,MAAO1B,EAAIQ,OAASA,GAAS,KAChDC,EAAcgB,EAAE,MAAO,CAAEC,MAAO1B,EAAIS,aAAeA,GAAe,MAAS,KAE/EM,yBACE,MAAMI,SAAEA,EAAQD,eAAEA,GAAmBD,KACrC,MAAMZ,EAAU,CAACY,KAAKW,qBAAsBX,KAAKY,gBAAiBZ,KAAKa,oBACvE,OAAQZ,EAAkBO,EAAE,SAAU,CAAEC,MAAO,CAAEX,CAACf,EAAIE,kBAAmB,KAAMa,CAACf,EAAII,wBAAyB,MAAQe,SAAUA,EAAUY,IAAMV,GAAaJ,KAAKI,QAAUA,GAAYhB,GAAaoB,EAAE,MAAO,CAAEC,MAAO1B,EAAIE,iBAAkB6B,IAAK,IAAOd,KAAKI,QAAU,MAAShB,GAElRU,SACE,OAAQU,EAAEO,EAAM,CAAEC,KAAM,YACtBR,EAAE,MAAO,CAAEC,MAAO1B,EAAIC,WACpBgB,KAAKiB,qBACLjB,KAAKkB,yBACLlB,KAAKmB,oBACPX,EAAE,MAAO,CAAEC,MAAO1B,EAAIG,iBACpBsB,EAAE,OAAQ","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n container: \"container\",\n contentContainer: \"content-container\",\n nestedContainer: \"nested-container\",\n contentContainerButton: \"content-container--button\",\n content: \"content\",\n actionsStart: \"actions-start\",\n contentStart: \"content-start\",\n label: \"label\",\n description: \"description\",\n contentEnd: \"content-end\",\n actionsEnd: \"actions-end\"\n};\nexport const SLOTS = {\n actionsStart: \"actions-start\",\n contentStart: \"content-start\",\n contentEnd: \"content-end\",\n actionsEnd: \"actions-end\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\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/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n}\n\n:host([disabled]) {\n pointer-events: none;\n cursor: default;\n}\n\n.container {\n background-color: var(--calcite-ui-foreground-1);\n box-sizing: border-box;\n font-family: var(--calcite-sans-family);\n display: flex;\n flex: 1 1 0%;\n}\n\n.container * {\n box-sizing: border-box;\n}\n\n.nested-container {\n display: flex;\n flex-direction: column;\n background-color: var(--calcite-ui-foreground-1);\n}\n\n.content-container {\n display: flex;\n flex: 1 1 auto;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n align-items: stretch;\n padding: 0;\n color: var(--calcite-ui-text-2);\n}\n\n.content-container--button {\n background-color: var(--calcite-ui-foreground-1);\n border-style: none;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n text-align: initial;\n}\n\n.content-container--button:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.content-container--button:hover .label,\n.content-container--button:hover .description {\n color: var(--calcite-ui-text-1);\n}\n\n.content-container--button:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.content {\n justify-content: center;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.label,\n.description {\n font-weight: var(--calcite-font-weight-normal);\n font-family: var(--calcite-sans-family);\n font-size: var(--calcite-font-size--2);\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.label:only-child,\n.description:only-child {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n margin: 0;\n}\n\n.label {\n color: var(--calcite-ui-text-1);\n}\n\n.description {\n color: var(--calcite-ui-text-3);\n margin-top: 0.125rem;\n}\n\n.content-start,\n.content-end {\n flex: 0 1 auto;\n pointer-events: none;\n}\n\n.actions-start,\n.actions-end,\n.content-start,\n.content-end {\n display: flex;\n align-items: center;\n}\n\n.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon) {\n align-self: center;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.actions-start ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action) {\n align-self: stretch;\n color: inherit;\n}\n\n::slotted(calcite-list-item-group),\n::slotted(calcite-list-item) {\n padding-left: 0.5rem;\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 */\nimport { Component, Element, Prop, h, Host, Method } from \"@stencil/core\";\nimport { SLOTS, CSS } from \"./resources\";\nimport { getSlotted } from \"../../utils/dom\";\n/**\n * @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.\n * @slot actions-start - A slot for adding actionable `calcite-action` elements before the content of the list item.\n * @slot content-start - A slot for adding non-actionable elements before the label and description of the list item.\n * @slot content-end - A slot for adding non-actionable elements after the label and description of the list item.\n * @slot actions-end - A slot for adding actionable `calcite-action` elements after the content of the list item.\n */\nexport class CalciteListItem {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When true, prevents the content of the list item from user interaction.\n */\n this.nonInteractive = false;\n /**\n * When true, disabled prevents interaction.\n */\n this.disabled = false;\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderActionsStart() {\n const { el } = this;\n return getSlotted(el, SLOTS.actionsStart) ? (h(\"div\", { class: CSS.actionsStart },\n h(\"slot\", { name: SLOTS.actionsStart }))) : null;\n }\n renderActionsEnd() {\n const { el } = this;\n return getSlotted(el, SLOTS.actionsEnd) ? (h(\"div\", { class: CSS.actionsEnd },\n h(\"slot\", { name: SLOTS.actionsEnd }))) : null;\n }\n renderContentStart() {\n const { el } = this;\n return getSlotted(el, SLOTS.contentStart) ? (h(\"div\", { class: CSS.contentStart },\n h(\"slot\", { name: SLOTS.contentStart }))) : null;\n }\n renderContentEnd() {\n const { el } = this;\n return getSlotted(el, SLOTS.contentEnd) ? (h(\"div\", { class: CSS.contentEnd },\n h(\"slot\", { name: SLOTS.contentEnd }))) : null;\n }\n renderContent() {\n const { label, description } = this;\n return !!label || !!description ? (h(\"div\", { class: CSS.content },\n label ? h(\"div\", { class: CSS.label }, label) : null,\n description ? h(\"div\", { class: CSS.description }, description) : null)) : null;\n }\n renderContentContainer() {\n const { disabled, nonInteractive } = this;\n const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];\n return !nonInteractive ? (h(\"button\", { class: { [CSS.contentContainer]: true, [CSS.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h(\"div\", { class: CSS.contentContainer, ref: () => (this.focusEl = null) }, content));\n }\n render() {\n return (h(Host, { role: \"listitem\" },\n h(\"div\", { class: CSS.container },\n this.renderActionsStart(),\n this.renderContentContainer(),\n this.renderActionsEnd()),\n h(\"div\", { class: CSS.nestedContainer },\n h(\"slot\", null))));\n }\n static get is() { return \"calcite-list-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-list-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-list-item.css\"]\n }; }\n static get properties() { return {\n \"nonInteractive\": {\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\": \"When true, prevents the content of the list item from user interaction.\"\n },\n \"attribute\": \"non-interactive\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An optional description for this item. This will appear below the label text.\"\n },\n \"attribute\": \"description\",\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\": \"When true, disabled prevents interaction.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The label text of the list item. This will appear above the description text.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n }\n }; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/date.js"],"names":["inRange","date","min","max","time","getTime","afterMin","Date","beforeMax","dateFromRange","beforeMin","afterMax","dateFromISO","iso8601","d","split","map","parseFloat","setFullYear","isNaN","Error","dateToISO","getTimezoneOffset","toISOString","sameDate","d1","d2","getDate","getMonth","getFullYear","prevMonth","month","nextDate","setMonth","nextMonth","localizeNumber","num","localeData","String","i","numerals","join","parseNumber","str","parseInt","indexOf","filter","parseDateString","separator","unitOrder","order","getOrder","values","replaceArabicNumerals","day","year","replace","c","charCodeAt","signifiers","toLowerCase","sort","a","b","getDaysDiff","date1","date2","ts1","ts2"],"mappings":";;;;;;;;;AAOO,SAASA,EAAQC,EAAMC,EAAKC,GACjC,MAAMC,EAAOH,EAAKI,UAClB,MAAMC,IAAaJ,aAAeK,OAASH,GAAQF,EAAIG,UACvD,MAAMG,IAAcL,aAAeI,OAASH,GAAQD,EAAIE,UACxD,OAAOC,GAAYE,EAMd,SAASC,EAAcR,EAAMC,EAAKC,GACvC,KAAMF,aAAgBM,MAAO,CAC3B,OAAO,KAET,MAAMH,EAAO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GAAK,IAAMC,EAASJ,WAAa,EAAG,CAC/C,OAAO,IAAIrB,KAAKN,EAAK4B,cAAeE,EAAQ,EAAG,GAEjD,OAAOC,EAKF,SAASG,EAAeC,EAAKC,GAClC,OAAOC,OAAOF,GACXrB,MAAM,IACNC,KAAKuB,GAAMF,EAAWG,SAASD,KAC/BE,KAAK,IAKH,SAASC,EAAYC,EAAKN,GAC/B,MAAMG,EAAW,aACjB,OAAOI,SAASD,EACb5B,MAAM,IACNC,KAAKuB,GAAMC,EAASH,EAAWG,SAASK,QAAQN,MAChDO,QAAQV,GAAQA,IAChBK,KAAK,KAMH,SAASM,EAAgBJ,EAAKN,GACnC,MAAMW,UAAEA,EAASC,UAAEA,GAAcZ,EACjC,MAAMa,EAAQC,EAASF,GACvB,MAAMG,EAASC,EAAsBV,GAAK5B,MAAMiC,GAChD,MAAO,CACLM,IAAKV,SAASQ,EAAOF,EAAML,QAAQ,OACnCd,MAAOa,SAASQ,EAAOF,EAAML,QAAQ,OAAS,EAC9CU,KAAMX,SAASQ,EAAOF,EAAML,QAAQ,QAMjC,SAASQ,EAAsBV,EAAM,IAC1C,OAAOA,EACJa,QAAQ,oBAAqBC,GAAOA,EAAEC,WAAW,GAAK,OACtDF,QAAQ,oBAAqBC,GAAOA,EAAEC,WAAW,GAAK,OAKpD,SAASP,EAASF,GACvB,MAAMU,EAAa,CAAC,IAAK,IAAK,KAC9B,MAAMT,EAAQD,EAAUW,cACxB,OAAOD,EAAWE,MAAK,CAACC,EAAGC,IAAMb,EAAML,QAAQiB,GAAKZ,EAAML,QAAQkB,KAK7D,SAASC,EAAYC,EAAOC,GACjC,MAAMC,EAAMF,EAAM5D,UAClB,MAAM+D,EAAMF,EAAM7D,UAClB,OAAQ8D,EAAMC,IAAQ,IAAO,KAAO","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\n/**\n * Check if date is within a min and max\n */\nexport function inRange(date, min, max) {\n const time = date.getTime();\n const afterMin = !(min instanceof Date) || time >= min.getTime();\n const beforeMax = !(max instanceof Date) || time <= max.getTime();\n return afterMin && beforeMax;\n}\n/**\n * Ensures date is within range,\n * returns min or max if out of bounds\n */\nexport function dateFromRange(date, min, max) {\n if (!(date instanceof Date)) {\n return null;\n }\n const time = date.getTime();\n const beforeMin = min instanceof Date && time < min.getTime();\n const afterMax = max instanceof Date && time > max.getTime();\n if (beforeMin) {\n return min;\n }\n if (afterMax) {\n return max;\n }\n return date;\n}\n/**\n * Parse an iso8601 string (YYYY-mm-dd) into a valid date.\n * TODO: handle time when time of day UI is added\n */\nexport function dateFromISO(iso8601) {\n if (iso8601 instanceof Date) {\n return iso8601;\n }\n if (!iso8601 || typeof iso8601 !== \"string\") {\n return null;\n }\n const d = iso8601.split(/[: T-]/).map(parseFloat);\n const date = new Date(d[0], (d[1] || 1) - 1, d[2] || 1);\n date.setFullYear(d[0]);\n if (isNaN(date.getTime())) {\n throw new Error(`Invalid ISO 8601 date: \"${iso8601}\"`);\n }\n return date;\n}\n/**\n * Return first portion of ISO string (YYYY-mm-dd)\n */\nexport function dateToISO(date) {\n if (typeof date === \"string\") {\n return date;\n }\n if (date instanceof Date) {\n return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().split(\"T\")[0];\n }\n return \"\";\n}\n/**\n * Check if two dates are the same day, month, year\n */\nexport function sameDate(d1, d2) {\n return (d1 instanceof Date &&\n d2 instanceof Date &&\n d1.getDate() === d2.getDate() &&\n d1.getMonth() === d2.getMonth() &&\n d1.getFullYear() === d2.getFullYear());\n}\n/**\n * Get a date one month in the past\n */\nexport function prevMonth(date) {\n const month = date.getMonth();\n const nextDate = new Date(date);\n nextDate.setMonth(month - 1);\n // date doesn't exist in new month, use last day\n if (month === nextDate.getMonth()) {\n return new Date(date.getFullYear(), month, 0);\n }\n return nextDate;\n}\n/**\n * Get a date one month in the future\n */\nexport function nextMonth(date) {\n const month = date.getMonth();\n const nextDate = new Date(date);\n nextDate.setMonth(month + 1);\n // date doesn't exist in new month, use last day\n if ((month + 2) % 7 === nextDate.getMonth() % 7) {\n return new Date(date.getFullYear(), month + 2, 0);\n }\n return nextDate;\n}\n/**\n * Translate a number into a given locals numeral system\n */\nexport function localizeNumber(num, localeData) {\n return String(num)\n .split(\"\")\n .map((i) => localeData.numerals[i])\n .join(\"\");\n}\n/**\n * Calculate actual number from localized string\n */\nexport function parseNumber(str, localeData) {\n const numerals = \"0123456789\";\n return parseInt(str\n .split(\"\")\n .map((i) => numerals[localeData.numerals.indexOf(i)])\n .filter((num) => num)\n .join(\"\"));\n}\n/**\n * Parse numeric units for day, month, and year from a localized string\n * month starts at 0 (can pass to date constructor)\n */\nexport function parseDateString(str, localeData) {\n const { separator, unitOrder } = localeData;\n const order = getOrder(unitOrder);\n const values = replaceArabicNumerals(str).split(separator);\n return {\n day: parseInt(values[order.indexOf(\"d\")]),\n month: parseInt(values[order.indexOf(\"m\")]) - 1,\n year: parseInt(values[order.indexOf(\"y\")])\n };\n}\n/**\n * Convert eastern arbic numerals\n */\nexport function replaceArabicNumerals(str = \"\") {\n return str\n .replace(/[\\u0660-\\u0669]/g, (c) => (c.charCodeAt(0) - 0x0660))\n .replace(/[\\u06f0-\\u06f9]/g, (c) => (c.charCodeAt(0) - 0x06f0));\n}\n/**\n * Based on the unitOrder string, find order of month, day, and year for locale\n */\nexport function getOrder(unitOrder) {\n const signifiers = [\"d\", \"m\", \"y\"];\n const order = unitOrder.toLowerCase();\n return signifiers.sort((a, b) => order.indexOf(a) - order.indexOf(b));\n}\n/**\n * Get number of days between two dates\n */\nexport function getDaysDiff(date1, date2) {\n const ts1 = date1.getTime();\n const ts2 = date2.getTime();\n return (ts1 - ts2) / (1000 * 3600 * 24);\n}\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as e,h as a,H as r,g as i,F as o}from"./p-2e1cd889.js";import{g as s}from"./p-7df393df.js";import{a as n,C as c}from"./p-e762b2d1.js";import{s as l,b as h,i as d,l as p,c as u,n as g,e as f,f as m}from"./p-f187755e.js";import{C as v}from"./p-73e2d13f.js";import"./p-ec178ea9.js";const y="@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;justify-content:center;outline:2px solid transparent;outline-offset:2px;color:var(--calcite-ui-text-3);cursor:pointer;min-width:0;width:14.2857142857%}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;justify-content:center;align-items:center;line-height:1;color:var(--calcite-ui-text-3);transition-property:all;opacity:var(--calcite-ui-opacity-disabled);background:none;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}: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]){z-index:1}:host(:focus:not([disabled])) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{border-top-left-radius:40%;border-bottom-left-radius:40%;box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{border-top-right-radius:40%;border-bottom-right-radius:40%;box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,: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:0;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:0}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,: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:0;box-shadow:none}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,: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:0;box-shadow:none}: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:0;box-shadow:none}: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:0;box-shadow:none}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,: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--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .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--start) :not(.calcite--rtl) .day-wrapper,: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--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .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--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{border-top-right-radius:45%;border-bottom-right-radius:45%;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{border-top-left-radius:45%;border-bottom-left-radius:45%;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([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)}";let w=class{constructor(a){t(this,a);this.calciteDaySelect=e(this,"calciteDaySelect",7);this.calciteDayHover=e(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()};this.keyDownHandler=t=>{const e=s(t.key);if(e===" "||e==="Enter"){!this.disabled&&this.calciteDaySelect.emit()}}}mouseoverHandler(){this.calciteDayHover.emit({disabled:this.disabled})}render(){const t=String(this.day).split("").map((t=>this.localeData.numerals[t])).join("");const e=n(this.el);return a(r,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},a("div",{class:{"day-v-wrapper":true,[c.rtl]:e==="rtl"}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}get el(){return i(this)}};w.style=y;const x="@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:flex;border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}.week-header{color:var(--calcite-ui-text-3);text-align:center;font-weight:var(--calcite-font-weight-bold);width:14.2857142857%}:host([scale=s]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.5rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}:host([scale=m]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.75rem;padding-bottom:1rem;padding-left:0;padding-right:0}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:1rem;padding-bottom:1.25rem;padding-left:0;padding-right:0}.week-days{outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:row;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px}";let b=class{constructor(a){t(this,a);this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=e(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=e(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=t=>{const e=this.el.dir==="rtl";switch(s(t.key)){case"ArrowUp":t.preventDefault();this.addDays(-7);break;case"ArrowRight":t.preventDefault();this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault();this.addDays(7);break;case"ArrowLeft":t.preventDefault();this.addDays(e?1:-1);break;case"PageUp":t.preventDefault();this.addMonths(-1);break;case"PageDown":t.preventDefault();this.addMonths(1);break;case"Home":t.preventDefault();this.activeDate.setDate(1);this.addDays();break;case"End":t.preventDefault();this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate());this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=false}};this.disableActiveFocus=()=>{this.activeFocus=false};this.dayHover=t=>{const e=t.target;if(t.detail.disabled){this.calciteDatePickerMouseOut.emit()}else{this.calciteDatePickerHover.emit(e.value)}};this.daySelect=t=>{const e=t.target;this.calciteDatePickerSelect.emit(e.value)}}mouseoutHandler(){this.calciteDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth();const e=this.activeDate.getFullYear();const i=this.localeData.weekStart%7;const{abbreviated:o,short:s,narrow:c}=this.localeData.days;const h=this.scale==="s"?c||s||o:s||o||c;const d=[...h.slice(i,7),...h.slice(0,i)];const p=this.getCurrentMonthDays(t,e);const u=this.getPrevMonthdays(t,e,i);const g=this.getNextMonthDays(t,e,i);const f=n(this.el);const m=[...u.map((a=>{const r=new Date(e,t-1,a);return this.renderDateDay(false,a,f,r)})),...p.map((a=>{const r=new Date(e,t,a);const i=l(r,this.activeDate);return this.renderDateDay(i,a,f,r,true,true)})),...g.map((a=>{const r=new Date(e,t+1,a);return this.renderDateDay(false,a,f,r)}))];const v=[];for(let t=0;t<m.length;t+=7){v.push(m.slice(t,t+7))}return a(r,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},d.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),v.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t);this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max));this.activeFocus=true}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t);this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max));this.activeFocus=true}getPrevMonthdays(t,e,a){const r=new Date(e,t,0);const i=r.getDate();const o=r.getDay();const s=[];if(o-6===a){return s}for(let t=r.getDay();t>=a;t--){s.push(i-t)}return s}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate();const r=[];for(let t=0;t<a;t++){r.push(t+1)}return r}getNextMonthDays(t,e,a){const r=new Date(e,t+1,0).getDay();const i=[];if(r===(a+6)%7){return i}for(let t=0;t<(6-(r-a))%7;t++){i.push(t+1)}return i}betweenSelectedRange(t){return!!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate&&!this.isRangeHover(t))}isSelected(t){return!!(l(t,this.selectedDate)||this.startDate&&l(t,this.startDate)||this.endDate&&l(t,this.endDate))}isStartOfRange(t){return!!(this.startDate&&!l(this.startDate,this.endDate)&&l(this.startDate,t)&&!this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!l(this.startDate,this.endDate)&&l(this.endDate,t)||!this.endDate&&this.hoverRange&&l(this.startDate,this.hoverRange.end)&&l(t,this.hoverRange.end))}renderDateDay(t,e,r,i,o,s){var n;const c=this.isFocusedOnStart();const h=this.isHoverInRange()||!this.endDate&&this.hoverRange&&l((n=this.hoverRange)===null||n===void 0?void 0:n.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&h,"hover--outside-range":this.startDate&&!h,"focused--start":c,"focused--end":!c},currentMonth:o,day:e,dir:r,disabled:!d(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!l(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{if(s&&t&&this.activeFocus){e===null||e===void 0?void 0:e.focus()}},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return((t=this.hoverRange)===null||t===void 0?void 0:t.focused)==="start"}isHoverInRange(){if(!this.hoverRange){return false}const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange){return false}const{start:e,end:a}=this.hoverRange;const r=this.isFocusedOnStart();const i=this.isHoverInRange();const o=i&&(!r&&t>this.startDate&&(t<a||l(t,a))||r&&t<this.endDate&&(t>e||l(t,e)));const s=!i&&(!r&&t>=this.endDate&&(t<a||l(t,a))||r&&(t<this.startDate||this.endDate&&l(t,this.startDate))&&(t>e||l(t,e)));return o||s}get el(){return i(this)}};b.style=x;const k="@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.header{display:flex;justify-content:space-between;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{font-size:var(--calcite-font-size--1);line-height:1rem;margin-top:0.5rem;margin-bottom:0.5rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-top:0.75rem;margin-bottom:0.75rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-top:1rem;margin-bottom:1rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{color:var(--calcite-ui-text-3);flex-grow:0;box-sizing:content-box;outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem;border-style:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);cursor:pointer;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{flex:1 1 auto;align-items:center;justify-content:center;line-height:1;margin-top:auto;margin-bottom:auto;text-align:center;width:100%}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;font-size:inherit}.year{font-family:inherit;text-align:center;border-style:none;width:3rem;background-color:transparent;position:relative;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;width:4rem;white-space:nowrap;text-align:left;top:0;left:0}.suffix__invisible{visibility:hidden}";let D=class{constructor(a){t(this,a);this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7);this.onYearKey=t=>{const e=t.target.value;switch(s(t.key)){case"ArrowDown":t.preventDefault();this.setYear(e,-1);break;case"ArrowUp":t.preventDefault();this.setYear(e,1);break}};this.yearChanged=t=>{this.setYear(t.target.value)};this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)};this.prevMonthKeydown=t=>{const e=s(t.key);if(e===" "||e==="Enter"){this.prevMonthClick(t)}};this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)};this.nextMonthKeydown=t=>{const e=s(t.key);if(e===" "||e==="Enter"){this.nextMonthClick(t)}};this.handleArrowClick=(t,e)=>{t===null||t===void 0?void 0:t.preventDefault();t.stopPropagation();this.calciteDatePickerSelect.emit(e)}}connectedCallback(){this.setNextPrevMonthDates()}render(){const t=n(this.el);return a("div",{class:"header",dir:t},this.renderContent(t))}renderContent(t){var e;if(!this.activeDate||!this.localeData){return null}const r=this.activeDate.getMonth();const{months:i,unitOrder:s}=this.localeData;const n=(i.wide||i.narrow||i.abbreviated)[r];const c=p(this.activeDate.getFullYear(),this.localeData);const l=this.scale==="l"?"m":"s";const h=u(s);const d=h.indexOf("y")<h.indexOf("m");const g=(e=this.localeData.year)===null||e===void 0?void 0:e.suffix;return a(o,null,a("a",{"aria-disabled":(this.prevMonthDate.getMonth()===r).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===r?-1:0},a("calcite-icon",{dir:t,"flip-rtl":true,icon:"chevron-left",scale:l})),a("div",{class:{text:true,"text--reverse":d}},a(v,{class:"month",level:this.headingLevel},n),a("span",{class:"year-wrap"},a("input",{class:{year:true,"year--suffix":!!g},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:c}),g&&a("span",{class:"suffix"},a("span",{"aria-hidden":"true",class:"suffix__invisible"},c)," "+g))),a("a",{"aria-disabled":(this.nextMonthDate.getMonth()===r).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===r?-1:0},a("calcite-icon",{dir:t,"flip-rtl":true,icon:"chevron-right",scale:l})))}setNextPrevMonthDates(){if(!this.activeDate){return}this.nextMonthDate=h(g(this.activeDate),this.min,this.max);this.prevMonthDate=h(f(this.activeDate),this.min,this.max)}setYear(t,e=0){const{min:a,max:r,activeDate:i,localeData:o,yearInput:s}=this;const n=m(t,o);const c=n.toString().length;const l=isNaN(n)?false:n+e;const d=l&&(!a||a.getFullYear()<=l)&&(!r||r.getFullYear()>=l);if(l&&d&&c===t.length){const t=new Date(i);t.setFullYear(l);const e=h(t,a,r);this.calciteDatePickerSelect.emit(e);s.value=p(e.getFullYear(),o)}else{s.value=p(i.getFullYear(),o)}}get el(){return i(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};D.style=k;export{w as calcite_date_picker_day,b as calcite_date_picker_month,D as calcite_date_picker_month_header};
|
7
|
-
//# sourceMappingURL=p-f3c6b68d.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css?tag=calcite-date-picker-day&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css?tag=calcite-date-picker-month&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css?tag=calcite-date-picker-month-header&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js"],"names":["calciteDatePickerDayCss","CalciteDatePickerDay","[object Object]","hostRef","this","disabled","currentMonth","selected","highlighted","range","startOfRange","endOfRange","rangeHover","active","onClick","calciteDaySelect","emit","keyDownHandler","e","key","getKey","calciteDayHover","formattedDay","String","day","split","map","i","localeData","numerals","join","dir","getElementDir","el","h","Host","onKeyDown","role","tabindex","class","day-v-wrapper","CSS_UTILITY","rtl","calciteDatePickerMonthCss","CalciteDatePickerMonth","activeDate","Date","isRTL","preventDefault","addDays","addMonths","setDate","getFullYear","getMonth","getDate","activeFocus","disableActiveFocus","dayHover","target","detail","calciteDatePickerMouseOut","calciteDatePickerHover","value","daySelect","calciteDatePickerSelect","month","year","startOfWeek","weekStart","abbreviated","short","narrow","days","weekDays","scale","adjustedWeekDays","slice","curMonDays","getCurrentMonthDays","prevMonDays","getPrevMonthdays","nextMonDays","getNextMonthDays","date","renderDateDay","sameDate","weeks","length","push","onFocusOut","weekday","step","nextDate","setMonth","calciteDatePickerActiveDateChange","dateFromRange","min","max","lastDate","getDay","num","endDay","startDate","endDate","isRangeHover","selectedDate","isEndOfRange","hoverRange","end","ref","_a","isFocusedOnStart","isHoverInRange","hover--inside-range","hover--outside-range","focused--start","focused--end","inRange","betweenSelectedRange","toDateString","onCalciteDayHover","onCalciteDaySelect","focus","isSelected","isStartOfRange","focused","start","isStart","insideRange","cond1","cond2","calciteDatePickerMonthHeaderCss","CalciteDatePickerMonthHeader","onYearKey","setYear","yearChanged","event","prevMonthClick","handleArrowClick","prevMonthDate","prevMonthKeydown","nextMonthClick","nextMonthDate","nextMonthKeydown","stopPropagation","setNextPrevMonthDates","renderContent","activeMonth","months","unitOrder","localizedMonth","wide","localizedYear","localizeNumber","iconScale","order","getOrder","reverse","indexOf","suffix","Fragment","aria-disabled","toString","aria-label","intlPrevMonth","href","flip-rtl","icon","text","text--reverse","CalciteHeading","level","headingLevel","year--suffix","inputmode","maxlength","minlength","onChange","pattern","yearInput","type","aria-hidden","intlNextMonth","nextMonth","prevMonth","increment","parsedYear","parseNumber","isNaN","setFullYear","inRangeDate"],"mappings":";;;;;uSAAA,MAAMA,EAA0B,6sVCQnBC,EAAoB,MAC/BC,YAAAC,iHAEEC,KAAKC,SAAW,MAEhBD,KAAKE,aAAe,MAEpBF,KAAKG,SAAW,MAEhBH,KAAKI,YAAc,MAEnBJ,KAAKK,MAAQ,MAEbL,KAAKM,aAAe,MAEpBN,KAAKO,WAAa,MAElBP,KAAKQ,WAAa,MAElBR,KAAKS,OAAS,MAMdT,KAAKU,QAAU,MACZV,KAAKC,UAAYD,KAAKW,iBAAiBC,QAE1CZ,KAAKa,eAAkBC,IACrB,MAAMC,EAAMC,EAAOF,EAAEC,KACrB,GAAIA,IAAQ,KAAOA,IAAQ,QAAS,EACjCf,KAAKC,UAAYD,KAAKW,iBAAiBC,SAI9Cd,mBACEE,KAAKiB,gBAAgBL,KAAK,CACxBX,SAAUD,KAAKC,WAQnBH,SACE,MAAMoB,EAAeC,OAAOnB,KAAKoB,KAC9BC,MAAM,IACNC,KAAKC,GAAMvB,KAAKwB,WAAWC,SAASF,KACpCG,KAAK,IACR,MAAMC,EAAMC,EAAc5B,KAAK6B,IAC/B,OAAQC,EAAEC,EAAM,CAAErB,QAASV,KAAKU,QAASsB,UAAWhC,KAAKa,eAAgBoB,KAAM,WAAYC,SAAUlC,KAAKS,OAAS,GAAK,GACtHqB,EAAE,MAAO,CAAEK,MAAO,CAAEC,gBAAiB,KAAMtC,CAACuC,EAAYC,KAAMX,IAAQ,QACpEG,EAAE,MAAO,CAAEK,MAAO,eAChBL,EAAE,OAAQ,CAAEK,MAAO,OACjBL,EAAE,OAAQ,CAAEK,MAAO,QAAUjB,2CC/DzC,MAAMqB,EAA4B,4uDCQrBC,EAAsB,MACjC1C,YAAAC,uSAEEC,KAAKyC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GAE7F,GAAIA,GAAQmD,GAAW9B,IAAWiE,EAAcjE,OAAQ,CACtD,MAAMK,EAAW,IAAI9C,KAAKD,GAC1B+C,EAASiG,YAAY3H,GACrB,MAAM4H,EAAc/F,EAAcH,EAAUI,EAAKC,GACjD7F,KAAK4D,wBAAwBhD,KAAK8K,GAClCX,EAAUrH,MAAQ2F,EAAeqC,EAAY1I,cAAexB,OAEzD,CAEHuJ,EAAUrH,MAAQ2F,EAAe5G,EAAWO,cAAexB","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\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/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n justify-content: center;\n outline: 2px solid transparent;\n outline-offset: 2px;\n color: var(--calcite-ui-text-3);\n cursor: pointer;\n min-width: 0;\n width: 14.2857142857%;\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 border-radius: 9999px;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n justify-content: center;\n align-items: center;\n line-height: 1;\n color: var(--calcite-ui-text-3);\n transition-property: all;\n opacity: var(--calcite-ui-opacity-disabled);\n background: none;\n box-shadow: 0 0 0 2px transparent, 0 0 0 0px transparent;\n}\n\n.text {\n margin-top: 1px;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 1px;\n}\n\n:host([scale=s]) .day-v-wrapper {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n\n:host([scale=s]) .day-wrapper {\n padding: 0;\n}\n\n:host([scale=s]) .day {\n height: 27px;\n width: 27px;\n font-size: var(--calcite-font-size--2);\n}\n\n:host([scale=m]) .day-v-wrapper {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n:host([scale=m]) .day-wrapper {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n:host([scale=m]) .day {\n height: 33px;\n width: 33px;\n font-size: var(--calcite-font-size--1);\n}\n\n:host([scale=l]) .day-v-wrapper {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n:host([scale=l]) .day-wrapper {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n:host([scale=l]) .day {\n height: 43px;\n width: 43px;\n font-size: var(--calcite-font-size-0);\n}\n\n:host([current-month]) .day {\n opacity: 1;\n}\n\n:host([disabled]) {\n cursor: default;\n opacity: 0.25;\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 z-index: 1;\n}\n\n:host(:focus:not([disabled])) .day {\n box-shadow: 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);\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 z-index: 1;\n}\n\n:host([range][selected]) .day-wrapper {\n background-color: var(--calcite-ui-foreground-current);\n}\n\n:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,\n:host([end-of-range]) .calcite--rtl .day-wrapper {\n border-top-left-radius: 40%;\n border-bottom-left-radius: 40%;\n box-shadow: inset 4px 0 var(--calcite-ui-foreground-1);\n}\n\n:host([start-of-range]) :not(.calcite--rtl) .day,\n:host([end-of-range]) .calcite--rtl .day {\n opacity: 1;\n}\n\n:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,\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([end-of-range]) :not(.calcite--rtl) .day-wrapper,\n:host([start-of-range]) .calcite--rtl .day-wrapper {\n border-top-right-radius: 40%;\n border-bottom-right-radius: 40%;\n box-shadow: inset -4px 0 var(--calcite-ui-foreground-1);\n}\n\n:host([end-of-range]) :not(.calcite--rtl) .day,\n:host([start-of-range]) .calcite--rtl .day {\n opacity: 1;\n}\n\n:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,\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][scale=l]) :not(.calcite--rtl) .day-wrapper,\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([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,\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\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: 0;\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\n:host([range-hover]:not([selected])) .day {\n border-radius: 0;\n}\n\n:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,\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: 0;\n box-shadow: none;\n}\n\n:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,\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: 0;\n box-shadow: none;\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: 0;\n box-shadow: none;\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: 0;\n box-shadow: none;\n}\n\n:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,\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\n:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,\n:host(:hover[range-hover]:not([selected]).focused--start) .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--start) :not(.calcite--rtl) .day-wrapper,\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\n:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,\n:host(:hover[range-hover]:not([selected]).focused--end) .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--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\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\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 border-top-right-radius: 45%;\n border-bottom-right-radius: 45%;\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 border-top-left-radius: 45%;\n border-bottom-left-radius: 45%;\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([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 * 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 */\nimport { Component, Element, Prop, Host, Event, Listen, h } from \"@stencil/core\";\nimport { getKey } from \"../../utils/key\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nexport class CalciteDatePickerDay {\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 = (e) => {\n const key = getKey(e.key);\n if (key === \" \" || key === \"Enter\") {\n !this.disabled && this.calciteDaySelect.emit();\n }\n };\n }\n mouseoverHandler() {\n this.calciteDayHover.emit({\n disabled: this.disabled\n });\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const formattedDay = String(this.day)\n .split(\"\")\n .map((i) => this.localeData.numerals[i])\n .join(\"\");\n const dir = getElementDir(this.el);\n return (h(Host, { onClick: this.onClick, onKeyDown: this.keyDownHandler, role: \"gridcell\", tabindex: this.active ? 0 : -1 },\n h(\"div\", { class: { \"day-v-wrapper\": true, [CSS_UTILITY.rtl]: dir === \"rtl\" } },\n h(\"div\", { class: \"day-wrapper\" },\n h(\"span\", { class: \"day\" },\n h(\"span\", { class: \"text\" }, formattedDay))))));\n }\n static get is() { return \"calcite-date-picker-day\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-date-picker-day.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-date-picker-day.css\"]\n }; }\n static get properties() { return {\n \"day\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\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 \"localeData\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DateLocaleData\",\n \"resolved\": \"DateLocaleData\",\n \"references\": {\n \"DateLocaleData\": {\n \"location\": \"import\",\n \"path\": \"../calcite-date-picker/utils\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"CLDR data for current locale\"\n }\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 static get events() { return [{\n \"method\": \"calciteDaySelect\",\n \"name\": \"calciteDaySelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when user selects day\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDayHover\",\n \"name\": \"calciteDayHover\",\n \"bubbles\": true,\n \"cancelable\": true,\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\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"mouseover\",\n \"method\": \"mouseoverHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }]; }\n}\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\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/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.calender {\n margin-bottom: 0.25rem;\n}\n\n.week-headers {\n display: flex;\n border-width: 0;\n border-top-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.week-header {\n color: var(--calcite-ui-text-3);\n text-align: center;\n font-weight: var(--calcite-font-weight-bold);\n width: 14.2857142857%;\n}\n\n:host([scale=s]) .week-header {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-top: 0.5rem;\n padding-bottom: 0.75rem;\n padding-left: 0;\n padding-right: 0;\n}\n\n:host([scale=m]) .week-header {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-top: 0.75rem;\n padding-bottom: 1rem;\n padding-left: 0;\n padding-right: 0;\n}\n\n:host([scale=l]) .week-header {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-top: 1rem;\n padding-bottom: 1.25rem;\n padding-left: 0;\n padding-right: 0;\n}\n\n.week-days {\n outline: 2px solid transparent;\n outline-offset: 2px;\n display: flex;\n flex-direction: row;\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 6px;\n padding-right: 6px;\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 */\nimport { Component, Element, Prop, Host, Event, h, Listen } from \"@stencil/core\";\nimport { inRange, sameDate, dateFromRange } from \"../../utils/date\";\nimport { getKey } from \"../../utils/key\";\nimport { getElementDir } from \"../../utils/dom\";\nexport class CalciteDatePickerMonth {\n constructor() {\n /** Date currently active.*/\n this.activeDate = new Date();\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.keyDownHandler = (e) => {\n const isRTL = this.el.dir === \"rtl\";\n switch (getKey(e.key)) {\n case \"ArrowUp\":\n e.preventDefault();\n this.addDays(-7);\n break;\n case \"ArrowRight\":\n e.preventDefault();\n this.addDays(isRTL ? -1 : 1);\n break;\n case \"ArrowDown\":\n e.preventDefault();\n this.addDays(7);\n break;\n case \"ArrowLeft\":\n e.preventDefault();\n this.addDays(isRTL ? 1 : -1);\n break;\n case \"PageUp\":\n e.preventDefault();\n this.addMonths(-1);\n break;\n case \"PageDown\":\n e.preventDefault();\n this.addMonths(1);\n break;\n case \"Home\":\n e.preventDefault();\n this.activeDate.setDate(1);\n this.addDays();\n break;\n case \"End\":\n e.preventDefault();\n this.activeDate.setDate(new Date(this.activeDate.getFullYear(), this.activeDate.getMonth() + 1, 0).getDate());\n this.addDays();\n break;\n case \"Enter\":\n case \" \":\n e.preventDefault();\n break;\n case \"Tab\":\n this.activeFocus = false;\n }\n };\n /**\n * Once user is not interacting via keyboard,\n * disable auto focusing of active date\n */\n this.disableActiveFocus = () => {\n this.activeFocus = false;\n };\n this.dayHover = (e) => {\n const target = e.target;\n if (e.detail.disabled) {\n this.calciteDatePickerMouseOut.emit();\n }\n else {\n this.calciteDatePickerHover.emit(target.value);\n }\n };\n this.daySelect = (e) => {\n const target = e.target;\n this.calciteDatePickerSelect.emit(target.value);\n };\n }\n mouseoutHandler() {\n this.calciteDatePickerMouseOut.emit();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const month = this.activeDate.getMonth();\n const year = this.activeDate.getFullYear();\n const startOfWeek = this.localeData.weekStart % 7;\n const { abbreviated, short, narrow } = this.localeData.days;\n const weekDays = this.scale === \"s\" ? narrow || short || abbreviated : short || abbreviated || narrow;\n const adjustedWeekDays = [...weekDays.slice(startOfWeek, 7), ...weekDays.slice(0, startOfWeek)];\n const curMonDays = this.getCurrentMonthDays(month, year);\n const prevMonDays = this.getPrevMonthdays(month, year, startOfWeek);\n const nextMonDays = this.getNextMonthDays(month, year, startOfWeek);\n const dir = getElementDir(this.el);\n const days = [\n ...prevMonDays.map((day) => {\n const date = new Date(year, month - 1, day);\n return this.renderDateDay(false, day, dir, date);\n }),\n ...curMonDays.map((day) => {\n const date = new Date(year, month, day);\n const active = sameDate(date, this.activeDate);\n return this.renderDateDay(active, day, dir, date, true, true);\n }),\n ...nextMonDays.map((day) => {\n const date = new Date(year, month + 1, day);\n return this.renderDateDay(false, day, dir, date);\n })\n ];\n const weeks = [];\n for (let i = 0; i < days.length; i += 7) {\n weeks.push(days.slice(i, i + 7));\n }\n return (h(Host, { onFocusOut: this.disableActiveFocus, onKeyDown: this.keyDownHandler },\n h(\"div\", { class: \"calender\", role: \"grid\" },\n h(\"div\", { class: \"week-headers\", role: \"row\" }, adjustedWeekDays.map((weekday) => (h(\"span\", { class: \"week-header\", role: \"columnheader\" }, weekday)))),\n weeks.map((days) => (h(\"div\", { class: \"week-days\", role: \"row\" }, days))))));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Add n months to the current month\n */\n addMonths(step) {\n const nextDate = new Date(this.activeDate);\n nextDate.setMonth(this.activeDate.getMonth() + step);\n this.calciteDatePickerActiveDateChange.emit(dateFromRange(nextDate, this.min, this.max));\n this.activeFocus = true;\n }\n /**\n * Add n days to the current date\n */\n addDays(step = 0) {\n const nextDate = new Date(this.activeDate);\n nextDate.setDate(this.activeDate.getDate() + step);\n this.calciteDatePickerActiveDateChange.emit(dateFromRange(nextDate, this.min, this.max));\n this.activeFocus = true;\n }\n /**\n * Get dates for last days of the previous month\n */\n getPrevMonthdays(month, year, startOfWeek) {\n const lastDate = new Date(year, month, 0);\n const date = lastDate.getDate();\n const day = lastDate.getDay();\n const days = [];\n if (day - 6 === startOfWeek) {\n return days;\n }\n for (let i = lastDate.getDay(); i >= startOfWeek; i--) {\n days.push(date - i);\n }\n return days;\n }\n /**\n * Get dates for the current month\n */\n getCurrentMonthDays(month, year) {\n const num = new Date(year, month + 1, 0).getDate();\n const days = [];\n for (let i = 0; i < num; i++) {\n days.push(i + 1);\n }\n return days;\n }\n /**\n * Get dates for first days of the next month\n */\n getNextMonthDays(month, year, startOfWeek) {\n const endDay = new Date(year, month + 1, 0).getDay();\n const days = [];\n if (endDay === (startOfWeek + 6) % 7) {\n return days;\n }\n for (let i = 0; i < (6 - (endDay - startOfWeek)) % 7; i++) {\n days.push(i + 1);\n }\n return days;\n }\n /**\n * Determine if the date is in between the start and end dates\n */\n betweenSelectedRange(date) {\n return !!(this.startDate &&\n this.endDate &&\n date > this.startDate &&\n date < this.endDate &&\n !this.isRangeHover(date));\n }\n /**\n * Determine if the date should be in selected state\n */\n isSelected(date) {\n return !!(sameDate(date, this.selectedDate) ||\n (this.startDate && sameDate(date, this.startDate)) ||\n (this.endDate && sameDate(date, this.endDate)));\n }\n /**\n * Determine if the date is the start of the date range\n */\n isStartOfRange(date) {\n return !!(this.startDate &&\n !sameDate(this.startDate, this.endDate) &&\n sameDate(this.startDate, date) &&\n !this.isEndOfRange(date));\n }\n isEndOfRange(date) {\n return !!((this.endDate && !sameDate(this.startDate, this.endDate) && sameDate(this.endDate, date)) ||\n (!this.endDate &&\n this.hoverRange &&\n sameDate(this.startDate, this.hoverRange.end) &&\n sameDate(date, this.hoverRange.end)));\n }\n /**\n * Render calcite-date-picker-day\n */\n renderDateDay(active, day, dir, date, currentMonth, ref) {\n var _a;\n const isFocusedOnStart = this.isFocusedOnStart();\n const isHoverInRange = this.isHoverInRange() ||\n (!this.endDate && this.hoverRange && sameDate((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.end, this.startDate));\n return (h(\"calcite-date-picker-day\", { active: active, class: {\n \"hover--inside-range\": this.startDate && isHoverInRange,\n \"hover--outside-range\": this.startDate && !isHoverInRange,\n \"focused--start\": isFocusedOnStart,\n \"focused--end\": !isFocusedOnStart\n }, currentMonth: currentMonth, day: day, dir: dir, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), localeData: this.localeData, onCalciteDayHover: this.dayHover, onCalciteDaySelect: this.daySelect, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {\n // when moving via keyboard, focus must be updated on active date\n if (ref && active && this.activeFocus) {\n el === null || el === void 0 ? void 0 : el.focus();\n }\n }, scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date }));\n }\n isFocusedOnStart() {\n var _a;\n return ((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === \"start\";\n }\n isHoverInRange() {\n if (!this.hoverRange) {\n return false;\n }\n const { start, end } = this.hoverRange;\n return !!((!this.isFocusedOnStart() && this.startDate && (!this.endDate || end < this.endDate)) ||\n (this.isFocusedOnStart() && this.startDate && start > this.startDate));\n }\n isRangeHover(date) {\n if (!this.hoverRange) {\n return false;\n }\n const { start, end } = this.hoverRange;\n const isStart = this.isFocusedOnStart();\n const insideRange = this.isHoverInRange();\n const cond1 = insideRange &&\n ((!isStart && date > this.startDate && (date < end || sameDate(date, end))) ||\n (isStart && date < this.endDate && (date > start || sameDate(date, start))));\n const cond2 = !insideRange &&\n ((!isStart && date >= this.endDate && (date < end || sameDate(date, end))) ||\n (isStart &&\n (date < this.startDate || (this.endDate && sameDate(date, this.startDate))) &&\n (date > start || sameDate(date, start))));\n return cond1 || cond2;\n }\n static get is() { return \"calcite-date-picker-month\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-date-picker-month.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-date-picker-month.css\"]\n }; }\n static get properties() { return {\n \"selectedDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Already selected date.\"\n }\n },\n \"activeDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Date currently active.\"\n },\n \"defaultValue\": \"new Date()\"\n },\n \"startDate\": {\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\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Start date currently active.\"\n }\n },\n \"endDate\": {\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\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"End date currently active\"\n }\n },\n \"min\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Minimum date of the calendar below which is disabled.\"\n }\n },\n \"max\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Maximum date of the calendar above which is disabled.\"\n }\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the date picker\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n },\n \"localeData\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DateLocaleData\",\n \"resolved\": \"DateLocaleData\",\n \"references\": {\n \"DateLocaleData\": {\n \"location\": \"import\",\n \"path\": \"../calcite-date-picker/utils\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"CLDR locale data for current locale\"\n }\n },\n \"hoverRange\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HoverRange\",\n \"resolved\": \"HoverRange\",\n \"references\": {\n \"HoverRange\": {\n \"location\": \"import\",\n \"path\": \"../../utils/date\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The range of dates currently being hovered\"\n }\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteDatePickerSelect\",\n \"name\": \"calciteDatePickerSelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event emitted when user selects the date.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDatePickerHover\",\n \"name\": \"calciteDatePickerHover\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Event emitted when user hovers the date.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDatePickerActiveDateChange\",\n \"name\": \"calciteDatePickerActiveDateChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Active date for the user keyboard access.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDatePickerMouseOut\",\n \"name\": \"calciteDatePickerMouseOut\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"mouseout\",\n \"method\": \"mouseoutHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }]; }\n}\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\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/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n}\n\n.header {\n display: flex;\n justify-content: space-between;\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n:host([scale=s]) .text {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n\n:host([scale=s]) .chevron {\n height: 2.25rem;\n}\n\n:host([scale=m]) .text {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n:host([scale=m]) .chevron {\n height: 3rem;\n}\n\n:host([scale=l]) .text {\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n:host([scale=l]) .chevron {\n height: 3.5rem;\n}\n\n.chevron {\n color: var(--calcite-ui-text-3);\n flex-grow: 0;\n box-sizing: content-box;\n outline: 2px solid transparent;\n outline-offset: 2px;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n border-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--calcite-ui-foreground-1);\n cursor: pointer;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n width: 14.2857142857%;\n}\n\n.chevron:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.chevron:hover, .chevron:focus {\n color: var(--calcite-ui-text-1);\n background-color: var(--calcite-ui-foreground-2);\n fill: var(--calcite-ui-text-1);\n}\n\n.chevron:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n.chevron[aria-disabled=true] {\n pointer-events: none;\n opacity: 0;\n}\n\n.text {\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n line-height: 1;\n margin-top: auto;\n margin-bottom: auto;\n text-align: center;\n width: 100%;\n}\n\n.text--reverse {\n flex-direction: row-reverse;\n}\n\n.month,\n.year,\n.suffix {\n color: var(--calcite-ui-text-1);\n background-color: var(--calcite-ui-foreground-1);\n font-weight: var(--calcite-font-weight-medium);\n line-height: 1.25;\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n margin-top: auto;\n margin-bottom: auto;\n display: inline-block;\n font-size: inherit;\n}\n\n.year {\n font-family: inherit;\n text-align: center;\n border-style: none;\n width: 3rem;\n background-color: transparent;\n position: relative;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n z-index: 2;\n}\n\n.year:hover {\n transition-duration: 100ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-property: outline-color;\n outline: 2px solid var(--calcite-ui-border-2);\n outline-offset: 2px;\n}\n\n.year:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.year--suffix {\n width: 4rem;\n text-align: left;\n}\n\n.year-wrap {\n position: relative;\n}\n\n.suffix {\n position: absolute;\n width: 4rem;\n white-space: nowrap;\n text-align: left;\n top: 0;\n left: 0;\n}\n\n.suffix__invisible {\n visibility: hidden;\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 */\nimport { Component, Element, Prop, Event, h, State, Watch, Fragment } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { dateFromRange, nextMonth, prevMonth, localizeNumber, parseNumber, getOrder } from \"../../utils/date\";\nimport { getKey } from \"../../utils/key\";\nimport { CalciteHeading } from \"../functional/CalciteHeading\";\nexport class CalciteDatePickerMonthHeader {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Increment year on UP/DOWN keys\n */\n this.onYearKey = (e) => {\n const year = e.target.value;\n switch (getKey(e.key)) {\n case \"ArrowDown\":\n e.preventDefault();\n this.setYear(year, -1);\n break;\n case \"ArrowUp\":\n e.preventDefault();\n this.setYear(year, 1);\n break;\n }\n };\n this.yearChanged = (event) => {\n this.setYear(event.target.value);\n };\n this.prevMonthClick = (e) => {\n this.handleArrowClick(e, this.prevMonthDate);\n };\n this.prevMonthKeydown = (e) => {\n const key = getKey(e.key);\n if (key === \" \" || key === \"Enter\") {\n this.prevMonthClick(e);\n }\n };\n this.nextMonthClick = (e) => {\n this.handleArrowClick(e, this.nextMonthDate);\n };\n this.nextMonthKeydown = (e) => {\n const key = getKey(e.key);\n if (key === \" \" || key === \"Enter\") {\n this.nextMonthClick(e);\n }\n };\n /*\n * Update active month on clicks of left/right arrows\n */\n this.handleArrowClick = (e, date) => {\n e === null || e === void 0 ? void 0 : e.preventDefault();\n e.stopPropagation();\n this.calciteDatePickerSelect.emit(date);\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.setNextPrevMonthDates();\n }\n render() {\n const dir = getElementDir(this.el);\n return (h(\"div\", { class: \"header\", dir: dir }, this.renderContent(dir)));\n }\n renderContent(dir) {\n var _a;\n if (!this.activeDate || !this.localeData) {\n return null;\n }\n const activeMonth = this.activeDate.getMonth();\n const { months, unitOrder } = this.localeData;\n const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];\n const localizedYear = localizeNumber(this.activeDate.getFullYear(), this.localeData);\n const iconScale = this.scale === \"l\" ? \"m\" : \"s\";\n const order = getOrder(unitOrder);\n const reverse = order.indexOf(\"y\") < order.indexOf(\"m\");\n const suffix = (_a = this.localeData.year) === null || _a === void 0 ? void 0 : _a.suffix;\n return (h(Fragment, null,\n h(\"a\", { \"aria-disabled\": (this.prevMonthDate.getMonth() === activeMonth).toString(), \"aria-label\": this.intlPrevMonth, class: \"chevron\", href: \"#\", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: \"button\", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 },\n h(\"calcite-icon\", { dir: dir, \"flip-rtl\": true, icon: \"chevron-left\", scale: iconScale })),\n h(\"div\", { class: { text: true, \"text--reverse\": reverse } },\n h(CalciteHeading, { class: \"month\", level: this.headingLevel }, localizedMonth),\n h(\"span\", { class: \"year-wrap\" },\n h(\"input\", { class: {\n year: true,\n \"year--suffix\": !!suffix\n }, inputmode: \"numeric\", maxlength: \"4\", minlength: \"1\", onChange: this.yearChanged, onKeyDown: this.onYearKey, pattern: \"\\\\d*\", ref: (el) => (this.yearInput = el), type: \"text\", value: localizedYear }),\n suffix && (h(\"span\", { class: \"suffix\" },\n h(\"span\", { \"aria-hidden\": \"true\", class: \"suffix__invisible\" }, localizedYear),\n \" \" + suffix)))),\n h(\"a\", { \"aria-disabled\": (this.nextMonthDate.getMonth() === activeMonth).toString(), \"aria-label\": this.intlNextMonth, class: \"chevron\", href: \"#\", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: \"button\", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 },\n h(\"calcite-icon\", { dir: dir, \"flip-rtl\": true, icon: \"chevron-right\", scale: iconScale }))));\n }\n setNextPrevMonthDates() {\n if (!this.activeDate) {\n return;\n }\n this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);\n this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);\n }\n /**\n * Parse localized year string from input,\n * set to active if in range\n */\n setYear(localizedYear, increment = 0) {\n const { min, max, activeDate, localeData, yearInput } = this;\n const parsedYear = parseNumber(localizedYear, localeData);\n const length = parsedYear.toString().length;\n const year = isNaN(parsedYear) ? false : parsedYear + increment;\n const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);\n // if you've supplied a year and it's in range, update active date\n if (year && inRange && length === localizedYear.length) {\n const nextDate = new Date(activeDate);\n nextDate.setFullYear(year);\n const inRangeDate = dateFromRange(nextDate, min, max);\n this.calciteDatePickerSelect.emit(inRangeDate);\n yearInput.value = localizeNumber(inRangeDate.getFullYear(), localeData);\n }\n else {\n // leave the current active date and clean up garbage input\n yearInput.value = localizeNumber(activeDate.getFullYear(), localeData);\n }\n }\n static get is() { return \"calcite-date-picker-month-header\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-date-picker-month-header.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-date-picker-month-header.css\"]\n }; }\n static get properties() { return {\n \"selectedDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Already selected date.\"\n }\n },\n \"activeDate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Focused date with indicator (will become selected date if user proceeds)\"\n }\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"min\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Minimum date of the calendar below which is disabled.\"\n }\n },\n \"max\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Maximum date of the calendar above which is disabled.\"\n }\n },\n \"locale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"User's language and region as BCP 47 formatted string.\"\n },\n \"attribute\": \"locale\",\n \"reflect\": false\n },\n \"intlPrevMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Localized string for previous month.\"\n },\n \"attribute\": \"intl-prev-month\",\n \"reflect\": false\n },\n \"intlNextMonth\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Localized string for next month.\"\n },\n \"attribute\": \"intl-next-month\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the date picker\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n },\n \"localeData\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DateLocaleData\",\n \"resolved\": \"DateLocaleData\",\n \"references\": {\n \"DateLocaleData\": {\n \"location\": \"import\",\n \"path\": \"../calcite-date-picker/utils\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"CLDR locale data for translated calendar info\"\n }\n }\n }; }\n static get states() { return {\n \"nextMonthDate\": {},\n \"prevMonthDate\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteDatePickerSelect\",\n \"name\": \"calciteDatePickerSelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Changes to active date\"\n },\n \"complexType\": {\n \"original\": \"Date\",\n \"resolved\": \"Date\",\n \"references\": {\n \"Date\": {\n \"location\": \"global\"\n }\n }\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"min\",\n \"methodName\": \"setNextPrevMonthDates\"\n }, {\n \"propName\": \"max\",\n \"methodName\": \"setNextPrevMonthDates\"\n }, {\n \"propName\": \"activeDate\",\n \"methodName\": \"setNextPrevMonthDates\"\n }]; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/math.js"],"names":["clamp","value","min","max","Math","decimalPlaces","match","length"],"mappings":";;;;;;;;;AAIY,MAACA,EAAQ,CAACC,EAAOC,EAAKC,IAAQC,KAAKD,IAAID,EAAKE,KAAKF,IAAID,EAAOE,IAC5D,MAACE,EAAiBJ,IAC5B,MAAMK,GAAS,GAAKL,GAAOK,MAAM,oCACjC,IAAKA,EAAO,CACV,OAAO,EAET,OAAOF,KAAKD,IAAI,GAEfG,EAAM,GAAKA,EAAM,GAAGC,OAAS,IAE3BD,EAAM,IAAMA,EAAM,GAAK","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const clamp = (value, min, max) => Math.max(min, Math.min(value, max));\nexport const decimalPlaces = (value) => {\n const match = (\"\" + value).match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);\n if (!match) {\n return 0;\n }\n return Math.max(0, \n // Number of digits right of decimal point.\n (match[1] ? match[1].length : 0) -\n // Adjust for scientific notation.\n (match[2] ? +match[2] : 0));\n};\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as e,h as a,H as t,g as i}from"./p-2e1cd889.js";import{g as r}from"./p-ec178ea9.js";const o='@charset "UTF-8";@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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{align-items:center;position:relative;justify-content:center;display:none;margin-left:auto;margin-right:auto;opacity:1;padding-top:4rem;padding-bottom:4rem;min-height:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift 6s alternate-reverse infinite linear}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.25rem}:host([no-padding]){padding-top:0;padding-bottom:0}:host([active]){display:flex}.loader__text{display:block;font-size:var(--calcite-font-size--2);line-height:1rem;text-align:center;color:var(--calcite-ui-text-1);margin-top:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{display:block;position:absolute;color:var(--calcite-ui-text-1);text-align:center;font-size:var(--calcite-loader-font-size);width:var(--calcite-loader-size);left:50%;margin-left:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;width:var(--calcite-loader-size);height:var(--calcite-loader-size);left:50%;margin-left:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;overflow:visible;top:0;left:0;transform-origin:center;width:var(--calcite-loader-size);height:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all 100ms linear}:host([inline]){position:relative;margin:0;padding-top:0;padding-bottom:0;animation:none;stroke:currentColor;stroke-width:2;height:var(--calcite-loader-size-inline);min-height:var(--calcite-loader-size-inline);width:var(--calcite-loader-size-inline);margin-right:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline][dir=rtl]){margin-right:0;margin-left:calc(var(--calcite-loader-size-inline) * 0.5)}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{top:0;left:0;margin:0;width:var(--calcite-loader-size-inline);height:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{width:var(--calcite-loader-size-inline);height:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity 200ms linear 1000ms, transform 200ms linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity 180ms linear 800ms, transform 180ms linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color 200ms linear, transform 200ms linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:0.72s}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:0.96s}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:1.16s}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}';let s=class{constructor(a){e(this,a);this.active=false;this.inline=false;this.scale="m";this.value=0;this.text="";this.noPadding=false}render(){const{el:e,inline:i,label:o,scale:s,text:n,type:l,value:c}=this;const d=e.id||r();const m=.45;const f=i?this.getInlineSize(s):this.getSize(s);const h=f*m;const v=`0 0 ${f} ${f}`;const g=l==="determinate";const p=2*h*Math.PI;const _=c/100*p;const y=p-_;const k=Math.floor(c);const z={"aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100,complete:k===100};const u={r:h,cx:f/2,cy:f/2};const b={"stroke-dasharray":`${_} ${y}`};return a(t,Object.assign({"aria-label":o,id:d,role:"progressbar"},g?z:{}),a("div",{class:"loader__svgs"},a("svg",{class:"loader__svg loader__svg--1",viewBox:v},a("circle",Object.assign({},u))),a("svg",{class:"loader__svg loader__svg--2",viewBox:v},a("circle",Object.assign({},u))),a("svg",Object.assign({class:"loader__svg loader__svg--3",viewBox:v},g?{style:b}:{}),a("circle",Object.assign({},u)))),n&&a("div",{class:"loader__text"},n),g&&a("div",{class:"loader__percentage"},c))}getSize(e){return{s:32,m:56,l:80}[e]}getInlineSize(e){return{s:12,m:16,l:20}[e]}get el(){return i(this)}};s.style=o;export{s as calcite_loader};
|
7
|
-
//# sourceMappingURL=p-f6e8ee98.entry.js.map
|