@esri/solutions-components 0.0.2 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- 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,15 +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{a as t,r as i,h as a,H as n,g as s}from"./p-2e1cd889.js";import{a as e}from"./p-e762b2d1.js";import{c as o}from"./p-a10dc180.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 c={icon:"icon",flipRtl:"flip-rtl"};
|
11
|
-
/*!
|
12
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
13
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
14
|
-
*/const r={};const l={};const m={s:16,m:24,l:32};async function h({icon:i,scale:a}){const n=m[a];const s=p(i);const e=s.charAt(s.length-1)==="F";const o=e?s.substring(0,s.length-1):s;const c=`${o}${n}${e?"F":""}`;if(r[c]){return r[c]}if(!l[c]){l[c]=fetch(t(`./assets/calcite-icon/${c}.json`)).then((t=>t.json())).catch((()=>{console.error(`"${c}" is not a valid calcite-ui-icon name`);return""}))}const h=await l[c];r[c]=h;return h}function p(t){const i=!isNaN(Number(t.charAt(0)));const a=t.split("-");if(a.length===1){return i?`i${t}`:t}return a.map(((t,a)=>{if(a===0){return i?`i${t.toUpperCase()}`:t}return t.charAt(0).toUpperCase()+t.slice(1)})).join("")}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-flex}:host([scale=s]){width:1rem;height:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){width:2rem;height:2rem;min-width:2rem;min-height:2rem}.flip-rtl{transform:scaleX(-1)}.svg{display:block}";let f=class{constructor(t){i(this,t);this.icon=null;this.flipRtl=false;this.scale="m";this.visible=false}connectedCallback(){this.waitUntilVisible((()=>{this.visible=true;this.loadIconPathData()}))}disconnectedCallback(){var t;(t=this.intersectionObserver)===null||t===void 0?void 0:t.disconnect();this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:t,flipRtl:i,pathData:s,scale:o,textLabel:r}=this;const l=e(t);const h=m[o];const p=!!r;const d=[].concat(s||"");return a(n,{"aria-hidden":(!p).toString(),"aria-label":p?r:null,role:p?"img":null},a("svg",{class:{[c.flipRtl]:l==="rtl"&&i,svg:true},fill:"currentColor",height:"100%",viewBox:`0 0 ${h} ${h}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},d.map((t=>typeof t==="string"?a("path",{d:t}):a("path",{d:t.d,opacity:"opacity"in t?t.opacity:1})))))}async loadIconPathData(){const{icon:t,scale:i,visible:a}=this;if(!t||!a){return}this.pathData=await h({icon:t,scale:i})}waitUntilVisible(t){this.intersectionObserver=o("intersection",(i=>{i.forEach((i=>{if(i.isIntersecting){this.intersectionObserver.disconnect();this.intersectionObserver=null;t()}}))}),{rootMargin:"50px"});if(!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};f.style=d;export{f as calcite_icon};
|
15
|
-
//# sourceMappingURL=p-9fc06fc3.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-icon/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-icon/utils.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-icon/calcite-icon.css?tag=calcite-icon&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-icon/calcite-icon.js"],"names":["CSS","icon","flipRtl","iconCache","requestCache","scaleToPx","s","m","l","async","fetchIcon","scale","size","name","normalizeIconName","filled","charAt","length","iconName","substring","id","fetch","getAssetPath","then","resp","json","catch","console","error","path","numberLeadingName","isNaN","Number","parts","split","map","part","index","toUpperCase","slice","join","calciteIconCss","CalciteIcon","[object Object]","hostRef","this","visible","waitUntilVisible","loadIconPathData","_a","intersectionObserver","disconnect","el","pathData","textLabel","dir","getElementDir","semantic","paths","concat","h","Host","aria-hidden","toString","aria-label","role","class","svg","fill","height","viewBox","width","xmlns","d","opacity","callback","createObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","assetsDirs"],"mappings":"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","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 icon: \"icon\",\n flipRtl: \"flip-rtl\"\n};\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { getAssetPath } from \"@stencil/core\";\n/**\n * Icon data cache.\n * Exported for testing purposes.\n * @private\n */\nexport const iconCache = {};\n/**\n * Icon request cache.\n * Exported for testing purposes.\n * @private\n */\nexport const requestCache = {};\nexport const scaleToPx = {\n s: 16,\n m: 24,\n l: 32\n};\nexport async function fetchIcon({ icon, scale }) {\n const size = scaleToPx[scale];\n const name = normalizeIconName(icon);\n const filled = name.charAt(name.length - 1) === \"F\";\n const iconName = filled ? name.substring(0, name.length - 1) : name;\n const id = `${iconName}${size}${filled ? \"F\" : \"\"}`;\n if (iconCache[id]) {\n return iconCache[id];\n }\n if (!requestCache[id]) {\n requestCache[id] = fetch(getAssetPath(`./assets/calcite-icon/${id}.json`))\n .then((resp) => resp.json())\n .catch(() => {\n console.error(`\"${id}\" is not a valid calcite-ui-icon name`);\n return \"\";\n });\n }\n const path = await requestCache[id];\n iconCache[id] = path;\n return path;\n}\n/**\n * Normalize the icon name to match the path data module exports.\n * Exported for testing purposes.\n * @private\n */\nexport function normalizeIconName(name) {\n const numberLeadingName = !isNaN(Number(name.charAt(0)));\n const parts = name.split(\"-\");\n if (parts.length === 1) {\n return numberLeadingName ? `i${name}` : name;\n }\n return parts\n .map((part, index) => {\n if (index === 0) {\n return numberLeadingName ? `i${part.toUpperCase()}` : part;\n }\n return part.charAt(0).toUpperCase() + part.slice(1);\n })\n .join(\"\");\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: inline-flex;\n}\n\n:host([scale=s]) {\n width: 1rem;\n height: 1rem;\n min-width: 1rem;\n min-height: 1rem;\n}\n\n:host([scale=m]) {\n width: 1.5rem;\n height: 1.5rem;\n min-width: 1.5rem;\n min-height: 1.5rem;\n}\n\n:host([scale=l]) {\n width: 2rem;\n height: 2rem;\n min-width: 2rem;\n min-height: 2rem;\n}\n\n.flip-rtl {\n transform: scaleX(-1);\n}\n\n.svg {\n display: block;\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 { Build, Component, Element, h, Host, Prop, State, Watch } from \"@stencil/core\";\nimport { CSS } from \"./resources\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { fetchIcon, scaleToPx } from \"./utils\";\nimport { createObserver } from \"../../utils/observers\";\nexport class CalciteIcon {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.\n */\n this.icon = null;\n /**\n * When true, the icon will be flipped when the element direction is 'rtl'.\n */\n this.flipRtl = false;\n /**\n * Icon scale.\n */\n this.scale = \"m\";\n this.visible = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.waitUntilVisible(() => {\n this.visible = true;\n this.loadIconPathData();\n });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n this.intersectionObserver = null;\n }\n async componentWillLoad() {\n this.loadIconPathData();\n }\n render() {\n const { el, flipRtl, pathData, scale, textLabel } = this;\n const dir = getElementDir(el);\n const size = scaleToPx[scale];\n const semantic = !!textLabel;\n const paths = [].concat(pathData || \"\");\n return (h(Host, { \"aria-hidden\": (!semantic).toString(), \"aria-label\": semantic ? textLabel : null, role: semantic ? \"img\" : null },\n h(\"svg\", { class: {\n [CSS.flipRtl]: dir === \"rtl\" && flipRtl,\n svg: true\n }, fill: \"currentColor\", height: \"100%\", viewBox: `0 0 ${size} ${size}`, width: \"100%\", xmlns: \"http://www.w3.org/2000/svg\" }, paths.map((path) => typeof path === \"string\" ? (h(\"path\", { d: path })) : (h(\"path\", { d: path.d, opacity: \"opacity\" in path ? path.opacity : 1 }))))));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n async loadIconPathData() {\n const { icon, scale, visible } = this;\n if (!Build.isBrowser || !icon || !visible) {\n return;\n }\n this.pathData = await fetchIcon({ icon, scale });\n }\n waitUntilVisible(callback) {\n this.intersectionObserver = createObserver(\"intersection\", (entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this.intersectionObserver.disconnect();\n this.intersectionObserver = null;\n callback();\n }\n });\n }, { rootMargin: \"50px\" });\n if (!this.intersectionObserver) {\n callback();\n return;\n }\n this.intersectionObserver.observe(this.el);\n }\n static get is() { return \"calcite-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-icon.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-icon.css\"]\n }; }\n static get assetsDirs() { return [\"assets\"]; }\n static get properties() { return {\n \"icon\": {\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 name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"flipRtl\": {\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, the icon will be flipped when the element direction is 'rtl'.\"\n },\n \"attribute\": \"flip-rtl\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Icon scale.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"textLabel\": {\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 icon label.\\n\\nIt is recommended to set this value if your icon is semantic.\"\n },\n \"attribute\": \"text-label\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"pathData\": {},\n \"visible\": {}\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"icon\",\n \"methodName\": \"loadIconPathData\"\n }, {\n \"propName\": \"scale\",\n \"methodName\": \"loadIconPathData\"\n }]; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/observers.js"],"names":["createObserver","type","callback","options","Observer","getObserver","IntersectionObserver","MutationObserver","ResizeObserver"],"mappings":";;;;;;;;;AAYO,SAASA,EAAeC,EAAMC,EAAUC,GAC7C,MAAMC,EAAWC,EAAYJ,GAC7B,OAAyB,IAAIG,EAASF,EAAUC,GAElD,SAASE,EAAYJ,GACnB,OAAQA,IAAS,eAAiBK,qBAAuBL,IAAS,WAAaM,iBAAmBC","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 */\nimport { Build } from \"@stencil/core\";\n/**\n * This utility ensures observers are created only for browser contexts.\n *\n * @param type - the type of observer to create\n * @param callback - the observer callback\n * @param options - the observer options\n */\nexport function createObserver(type, callback, options) {\n const Observer = getObserver(type);\n return Build.isBrowser ? new Observer(callback, options) : undefined;\n}\nfunction getObserver(type) {\n return (type === \"intersection\" ? IntersectionObserver : type === \"mutation\" ? MutationObserver : ResizeObserver);\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 e,F as i,g as a}from"./p-2e1cd889.js";import{a as n,b as o,C as r}from"./p-e762b2d1.js";import{C as c,c as s}from"./p-73e2d13f.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 l={heading:"heading",container:"container",indented:"container--indented"};const m={parentItem:"parent-item"};const d=3;const g="@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{background-color:transparent;box-sizing:border-box;display:block;margin-bottom:0.25rem;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host(:last-child){margin-bottom:0}.header{margin:0;display:flex;align-items:center;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}h3.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3);margin-top:0.5rem;margin-bottom:0.5rem;margin-left:1rem;margin-right:1rem}.container--indented{margin-left:1.5rem}.calcite--rtl.container--indented{margin-left:0;margin-right:1.5rem}";let h=class{constructor(e){t(this,e)}render(){var t;const{el:a,groupTitle:g,headingLevel:h}=this;const p=n(a)==="rtl";const f=o(a,m.parentItem)!==null;const u={[l.container]:true,[l.indented]:f,[r.rtl]:p};const v=g;const y=(t=a.closest("calcite-pick-list"))===null||t===void 0?void 0:t.headingLevel;const b=y?s(y+1):null;const z=h||b||d;return e(i,null,v?e(c,{class:l.heading,level:z},v):null,e("slot",{name:m.parentItem}),e("section",{class:u},e("slot",null)))}get el(){return a(this)}};h.style=g;export{h as calcite_pick_list_group};
|
11
|
-
//# sourceMappingURL=p-a1c40865.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css?tag=calcite-pick-list-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js"],"names":["CSS","heading","container","indented","SLOTS","parentItem","HEADING_LEVEL","calcitePickListGroupCss","CalcitePickListGroup","[object Object]","_a","el","groupTitle","headingLevel","this","rtl","getElementDir","hasParentItem","getSlotted","sectionClasses","CSS_UTILITY","title","parentLevel","closest","relativeLevel","constrainHeadingLevel","level","h","Fragment","CalciteHeading","class","name"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,QAAS,UACTC,UAAW,YACXC,SAAU,uBAEL,MAAMC,EAAQ,CACnBC,WAAY,eAEP,MAAMC,EAAgB,ECZ7B,MAAMC,EAA0B,4wDCanBC,EAAoB,+BAM/BC,SACE,IAAIC,EACJ,MAAMC,GAAEA,EAAEC,WAAEA,EAAUC,aAAEA,GAAiBC,KACzC,MAAMC,EAAMC,EAAcL,KAAQ,MAClC,MAAMM,EAAgBC,EAAWP,EAAIP,EAAMC,cAAgB,KAC3D,MAAMc,EAAiB,CACrBV,CAACT,EAAIE,WAAY,KACjBO,CAACT,EAAIG,UAAWc,EAChBR,CAACW,EAAYL,KAAMA,GAErB,MAAMM,EAAQT,EACd,MAAMU,GAAeZ,EAAKC,EAAGY,QAAQ,wBAA0B,MAAQb,SAAY,OAAS,EAAIA,EAAGG,aACnG,MAAMW,EAAgBF,EAAcG,EAAsBH,EAAc,GAAK,KAC7E,MAAMI,EAAQb,GAAgBW,GAAiBlB,EAC/C,OAAQqB,EAAEC,EAAU,KAClBP,EAASM,EAAEE,EAAgB,CAAEC,MAAO9B,EAAIC,QAASyB,MAAOA,GAASL,GAAU,KAC3EM,EAAE,OAAQ,CAAEI,KAAM3B,EAAMC,aACxBsB,EAAE,UAAW,CAAEG,MAAOX,GACpBQ,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 heading: \"heading\",\n container: \"container\",\n indented: \"container--indented\"\n};\nexport const SLOTS = {\n parentItem: \"parent-item\"\n};\nexport const HEADING_LEVEL = 3;\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 background-color: transparent;\n box-sizing: border-box;\n display: block;\n margin-bottom: 0.25rem;\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:host(:last-child) {\n margin-bottom: 0;\n}\n\n/* Shared styles for header elements */\n\n.header {\n margin: 0;\n display: flex;\n align-items: center;\n align-content: space-between;\n color: var(--calcite-ui-text-2);\n fill: ;\n}\n\n.heading {\n font-weight: var(--calcite-font-weight-medium);\n margin: 0;\n padding: 0;\n}\n\n.header .heading {\n flex: 1 1 auto;\n padding: 0.5rem;\n}\n\nh1.heading {\n font-size: var(--calcite-font-size-2);\n line-height: 1.5rem;\n}\n\nh2.heading {\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\nh4.heading,\nh5.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n color: var(--calcite-ui-text-3);\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n\n.container--indented {\n margin-left: 1.5rem;\n}\n\n.calcite--rtl.container--indented {\n margin-left: 0;\n margin-right: 1.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, Fragment } from \"@stencil/core\";\nimport { CSS, SLOTS } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { HEADING_LEVEL } from \"./resources\";\nimport { getElementDir, getSlotted } from \"../../utils/dom\";\nimport { CalciteHeading, constrainHeadingLevel } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding `calcite-pick-list-item` elements.\n */\nexport class CalcitePickListGroup {\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n var _a;\n const { el, groupTitle, headingLevel } = this;\n const rtl = getElementDir(el) === \"rtl\";\n const hasParentItem = getSlotted(el, SLOTS.parentItem) !== null;\n const sectionClasses = {\n [CSS.container]: true,\n [CSS.indented]: hasParentItem,\n [CSS_UTILITY.rtl]: rtl\n };\n const title = groupTitle;\n const parentLevel = (_a = el.closest(\"calcite-pick-list\")) === null || _a === void 0 ? void 0 : _a.headingLevel;\n const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;\n const level = headingLevel || relativeLevel || HEADING_LEVEL;\n return (h(Fragment, null,\n title ? (h(CalciteHeading, { class: CSS.heading, level: level }, title)) : null,\n h(\"slot\", { name: SLOTS.parentItem }),\n h(\"section\", { class: sectionClasses },\n h(\"slot\", null))));\n }\n static get is() { return \"calcite-pick-list-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-pick-list-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pick-list-group.css\"]\n }; }\n static get properties() { return {\n \"groupTitle\": {\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 title used for all nested `calcite-pick-list` rows.\"\n },\n \"attribute\": \"group-title\",\n \"reflect\": true\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 }; }\n static get elementRef() { return \"el\"; }\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 r,g as s}from"./p-2e1cd889.js";import{s as e}from"./p-eceb11d1.js";import{g as a,a as i,b as o}from"./p-970f1072.js";let u=class{constructor(s){t(this,s);this.stateLoaded=r(this,"stateLoaded",7);this.value=""}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const r=t.target[t.attributeName];if(t.type==="attributes"&&t.attributeName==="value"&&r!==t.oldValue&&r!==""){const t=JSON.parse(r);e.models=a(Array.isArray(t)?t:[t]);e.featureServices=i(Array.isArray(t)?t:[t]);e.spatialReferenceInfo=o(e.featureServices);this.stateLoaded.emit(e);return true}}))}));this._valueObserver.observe(this.el,{attributes:true,attributeOldValue:true})}get el(){return s(this)}};export{u as store_manager};
|
7
|
-
//# sourceMappingURL=p-a3b16f15.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["src/components/store-manager/store-manager.tsx"],"names":["StoreManager","[object Object]","hostRef","this","value","_initValueObserver","_valueObserver","MutationObserver","ml","some","mutation","newValue","target","attributeName","type","oldValue","v","JSON","parse","state","models","getModels","Array","isArray","featureServices","getFeatureServices","spatialReferenceInfo","getSpatialReferenceInfo","stateLoaded","emit","observe","el","attributes","attributeOldValue"],"mappings":";;;;;4IAmCcA,EAAY,MAJzBC,YAAAC,sDAuB0CC,KAAAC,MAAQ,GAQhDH,oBACEE,KAAKE,qBAGPJ,SACE,OAAA,KAmBMA,qBACNE,KAAKG,eAAiB,IAAIC,kBAAiBC,IACzCA,EAAGC,MAAKC,IACN,MAAMC,EAAWD,EAASE,OAAOF,EAASG,eAC1C,GAAIH,EAASI,OAAS,cAAgBJ,EAASG,gBAAkB,SAC/DF,IAAaD,EAASK,UAAYJ,IAAa,GAAI,CACnD,MAAMK,EAAIC,KAAKC,MAAMP,GACrBQ,EAAMC,OAASC,EAAUC,MAAMC,QAAQP,GAAKA,EAAI,CAACA,IACjDG,EAAMK,gBAAkBC,EAAmBH,MAAMC,QAAQP,GAAKA,EAAI,CAACA,IACnEG,EAAMO,qBAAuBC,EAAwBR,EAAMK,iBAC3DrB,KAAKyB,YAAYC,KAAKV,GACtB,OAAO,YAIbhB,KAAKG,eAAewB,QAAQ3B,KAAK4B,GAAI,CAAEC,WAAY,KAAMC,kBAAmB","sourcesContent":["/** @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\n/**\r\n * The json-editor componet leverages a stencil/store to manage data.\r\n * If a component uses the json-editor but does not have logic to hydrate the store this component can be used.\r\n * It will create and hydrate the store based on the value provided.\r\n * \r\n * The value must be a string so it can be observed by the MutationObserver implemented below.\r\n * The observer does not notify when passing complex attributes as you can with stencil.\r\n *\r\n *\r\n*/\r\n\r\n import { Component, Element, Event, EventEmitter, Prop } from '@stencil/core';\r\n import state from '../../utils/editStore';\r\n import { getModels, getFeatureServices, getSpatialReferenceInfo } from '../../utils/templates';\r\n \r\n @Component({\r\n tag: 'store-manager',\r\n shadow: false\r\n })\r\n export class StoreManager {\r\n \r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLStoreManagerElement;\r\n \r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains source json as a string\r\n *\r\n */\r\n @Prop({ mutable: true, reflect: true }) value = \"\";\r\n \r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n connectedCallback(): void {\r\n this._initValueObserver();\r\n }\r\n \r\n render() {\r\n return (null);\r\n }\r\n \r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Event() stateLoaded: EventEmitter;\r\n \r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n private _valueObserver;\r\n \r\n private _initValueObserver() {\r\n this._valueObserver = new MutationObserver(ml => {\r\n ml.some(mutation => {\r\n const newValue = mutation.target[mutation.attributeName];\r\n if (mutation.type === 'attributes' && mutation.attributeName === \"value\" &&\r\n newValue !== mutation.oldValue && newValue !== \"\") {\r\n const v = JSON.parse(newValue);\r\n state.models = getModels(Array.isArray(v) ? v : [v]);\r\n state.featureServices = getFeatureServices(Array.isArray(v) ? v : [v])\r\n state.spatialReferenceInfo = getSpatialReferenceInfo(state.featureServices);\r\n this.stateLoaded.emit(state);\r\n return true;\r\n }\r\n })\r\n });\r\n this._valueObserver.observe(this.el, { attributes: true, attributeOldValue: true });\r\n }\r\n }\r\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,c as i,h as e,H as n,g as o}from"./p-2e1cd889.js";import{g as r,a,C as c}from"./p-e762b2d1.js";import{g as s}from"./p-7df393df.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 l={containerLink:"container--link",containerSmall:"container--s",containerMedium:"container--m",containerLarge:"container--l",containerMulti:"container--multi-selection",containerSingle:"container--single-selection",containerNone:"container--none-selection"};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}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}.container--s.calcite--rtl{padding-right:1.5rem;padding-left:0.5rem}.container--m.calcite--rtl{padding-right:2rem;padding-left:0.75rem}.container--l.calcite--rtl{padding-right:2.5rem;padding-left:1rem}:host{display:flex;flex-grow:1;align-items:center;position:relative}.container{display:flex;flex-grow:1;align-items:center;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.dropdown-item-content{margin-right:auto;margin-left:0.25rem}.calcite--rtl .dropdown-item-content{margin-left:auto;margin-right:0}:host,.container--link a{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0}.container--link a{display:flex;flex-grow:1;align-items:center;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.container--s .dropdown-link{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m .dropdown-link{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l .dropdown-link{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}.calcite--rtl:before{left:unset;right:1rem}.calcite--rtl .dropdown-link{padding-right:0;padding-left:0}:host([active]) .container:not(.container--none-selection),:host([active]) .container--link .dropdown-link{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}:host([active]) .container:not(.container--none-selection):before,:host([active]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon,:host([active]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{left:0.5rem}.container--m:before{left:0.75rem}.container--l:before{left:1rem}.calcite--rtl:before{left:unset}.container--s.calcite--rtl:before{right:0.5rem}.container--m.calcite--rtl:before{right:0.75rem}.container--l.calcite--rtl:before{right:1rem}.dropdown-item-icon{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}.container--s .dropdown-item-icon{left:0.25rem}.container--m .dropdown-item-icon{left:0.5rem}.container--l .dropdown-item-icon{left:0.75rem}.calcite--rtl .dropdown-item-icon{left:unset;margin-left:0}.container--s.calcite--rtl .dropdown-item-icon{right:0.25rem}.container--m.calcite--rtl .dropdown-item-icon{right:0.5rem}.container--l.calcite--rtl .dropdown-item-icon{right:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-right:0.5rem;margin-left:0.25rem}.container--s .dropdown-item-icon-end{margin-left:0.5rem}.container--m .dropdown-item-icon-start{margin-right:0.75rem;margin-left:0.25rem}.container--m .dropdown-item-icon-end{margin-left:0.75rem}.container--l .dropdown-item-icon-start{margin-right:1rem;margin-left:0.25rem}.container--l .dropdown-item-icon-end{margin-left:1rem}.calcite--rtl .dropdown-item-icon-start{margin-right:0}.calcite--rtl .dropdown-item-icon-end{margin-left:0}.container--s.calcite--rtl .dropdown-item-icon-start{margin-left:0.5rem}.container--s.calcite--rtl .dropdown-item-icon-end{margin-right:0.5rem}.container--m.calcite--rtl .dropdown-item-icon-start{margin-left:0.75rem}.container--m.calcite--rtl .dropdown-item-icon-end{margin-right:0.75rem}.container--l.calcite--rtl .dropdown-item-icon-start{margin-left:1rem}.container--l.calcite--rtl .dropdown-item-icon-end{margin-right:1rem}.calcite--rtl calcite-icon{margin-right:0;margin-left:0.75rem}";let m=class{constructor(e){t(this,e);this.calciteDropdownItemSelect=i(this,"calciteDropdownItemSelect",7);this.calciteDropdownItemKeyEvent=i(this,"calciteDropdownItemKeyEvent",7);this.calciteDropdownCloseRequest=i(this,"calciteDropdownCloseRequest",7);this.active=false}async setFocus(){this.el.focus()}connectedCallback(){this.selectionMode=r(this.el,"selection-mode","single");this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group");if(this.selectionMode==="none"){this.active=false}}render(){const t=a(this.el);const i=r(this.el,"scale","m");const o=e("calcite-icon",{class:"dropdown-item-icon-start",dir:t,flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});const s=e("span",{class:"dropdown-item-content"},e("slot",null));const d=e("calcite-icon",{class:"dropdown-item-icon-end",dir:t,flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});const m=this.iconStart&&this.iconEnd?[o,s,d]:this.iconStart?[o,e("slot",null)]:this.iconEnd?[s,d]:s;const h=!this.href?m:e("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,ref:t=>this.childLink=t,rel:this.rel,target:this.target},m);const p=this.href?null:this.selectionMode==="single"?"menuitemradio":this.selectionMode==="multi"?"menuitemcheckbox":"menuitem";const g=this.selectionMode!=="none"?this.active.toString():null;return e(n,{"aria-checked":g,role:p,tabindex:"0"},e("div",{class:{container:true,[c.rtl]:t==="rtl",[l.containerLink]:!!this.href,[l.containerSmall]:i==="s",[l.containerMedium]:i==="m",[l.containerLarge]:i==="l",[l.containerMulti]:this.selectionMode==="multi",[l.containerSingle]:this.selectionMode==="single",[l.containerNone]:this.selectionMode==="none"}},this.selectionMode!=="none"?e("calcite-icon",{class:"dropdown-item-icon",icon:this.selectionMode==="multi"?"check":"bullet-point",scale:"s"}):null,h))}onClick(){this.emitRequestedItem()}keyDownHandler(t){switch(s(t.key)){case" ":this.emitRequestedItem();if(this.href){t.preventDefault();this.childLink.click()}break;case"Enter":this.emitRequestedItem();if(this.href){this.childLink.click()}break;case"Escape":this.calciteDropdownCloseRequest.emit();break;case"Tab":case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteDropdownItemKeyEvent.emit({keyboardEvent:t});break}t.preventDefault()}updateActiveItemOnChange(t){const i=t.composedPath().includes(this.parentDropdownGroupEl);if(i){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.determineActiveItem()}}determineActiveItem(){switch(this.selectionMode){case"multi":if(this.el===this.requestedDropdownItem){this.active=!this.active}break;case"single":if(this.el===this.requestedDropdownItem){this.active=true}else if(this.requestedDropdownGroup===this.parentDropdownGroupEl){this.active=false}break;case"none":this.active=false;break}}emitRequestedItem(){this.calciteDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}get el(){return o(this)}};m.style=d;export{m as calcite_dropdown_item};
|
11
|
-
//# sourceMappingURL=p-a7906d52.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-dropdown-item/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css?tag=calcite-dropdown-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js"],"names":["CSS","containerLink","containerSmall","containerMedium","containerLarge","containerMulti","containerSingle","containerNone","calciteDropdownItemCss","CalciteDropdownItem","[object Object]","hostRef","this","active","el","focus","selectionMode","getElementProp","parentDropdownGroupEl","closest","dir","getElementDir","scale","iconStartEl","h","class","flipRtl","iconFlipRtl","icon","iconStart","contentNode","iconEndEl","iconEnd","slottedContent","contentEl","href","aria-label","label","ref","childLink","rel","target","itemRole","itemAria","toString","Host","aria-checked","role","tabindex","container","CSS_UTILITY","rtl","emitRequestedItem","e","getKey","key","preventDefault","click","calciteDropdownCloseRequest","emit","calciteDropdownItemKeyEvent","keyboardEvent","event","parentEmittedChange","composedPath","includes","requestedDropdownGroup","detail","requestedDropdownItem","determineActiveItem","calciteDropdownItemSelect"],"mappings":"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","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 containerLink: \"container--link\",\n containerSmall: \"container--s\",\n containerMedium: \"container--m\",\n containerLarge: \"container--l\",\n containerMulti: \"container--multi-selection\",\n containerSingle: \"container--single-selection\",\n containerNone: \"container--none-selection\"\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.container--s {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-right: 0.5rem;\n padding-left: 1.5rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.container--m {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-right: 0.75rem;\n padding-left: 2rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.container--l {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n padding-right: 1rem;\n padding-left: 2.5rem;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.container--s.calcite--rtl {\n padding-right: 1.5rem;\n padding-left: 0.5rem;\n}\n\n.container--m.calcite--rtl {\n padding-right: 2rem;\n padding-left: 0.75rem;\n}\n\n.container--l.calcite--rtl {\n padding-right: 2.5rem;\n padding-left: 1rem;\n}\n\n:host {\n display: flex;\n flex-grow: 1;\n align-items: center;\n position: relative;\n}\n\n.container {\n display: flex;\n flex-grow: 1;\n align-items: center;\n color: var(--calcite-ui-text-3);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n cursor: pointer;\n text-decoration: none;\n outline: 2px solid transparent;\n outline-offset: 2px;\n position: relative;\n}\n\n.dropdown-item-content {\n margin-right: auto;\n margin-left: 0.25rem;\n}\n\n.calcite--rtl .dropdown-item-content {\n margin-left: auto;\n margin-right: 0;\n}\n\n:host,\n.container--link a {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.container--link {\n padding: 0;\n}\n\n.container--link a {\n display: flex;\n flex-grow: 1;\n align-items: center;\n color: var(--calcite-ui-text-3);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n cursor: pointer;\n text-decoration: none;\n outline: 2px solid transparent;\n outline-offset: 2px;\n position: relative;\n}\n\n.container--s .dropdown-link {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-right: 0.5rem;\n padding-left: 1.5rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.container--m .dropdown-link {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-right: 0.75rem;\n padding-left: 2rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.container--l .dropdown-link {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n padding-right: 1rem;\n padding-left: 2.5rem;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n:host(:hover) .container,\n:host(:active) .container {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n text-decoration: none;\n}\n\n:host(:hover) .container--link .dropdown-link,\n:host(:active) .container--link .dropdown-link {\n color: var(--calcite-ui-text-1);\n}\n\n:host(:focus) .container {\n color: var(--calcite-ui-text-1);\n text-decoration: none;\n}\n\n:host(:active) .container {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n:host(:hover) .container:before,\n:host(:active) .container:before,\n:host(:focus) .container:before {\n opacity: 1;\n}\n\n.calcite--rtl:before {\n left: unset;\n right: 1rem;\n}\n\n.calcite--rtl .dropdown-link {\n padding-right: 0;\n padding-left: 0;\n}\n\n:host([active]) .container:not(.container--none-selection),\n:host([active]) .container--link .dropdown-link {\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-medium);\n}\n\n:host([active]) .container:not(.container--none-selection):before,\n:host([active]) .container--link .dropdown-link:before {\n opacity: 1;\n color: var(--calcite-ui-brand);\n}\n\n:host([active]) .container:not(.container--none-selection) calcite-icon,\n:host([active]) .container--link .dropdown-link calcite-icon {\n color: var(--calcite-ui-brand);\n}\n\n.container--multi-selection:before,\n.container--none-selection:before {\n display: none;\n}\n\n.container--s:before {\n left: 0.5rem;\n}\n\n.container--m:before {\n left: 0.75rem;\n}\n\n.container--l:before {\n left: 1rem;\n}\n\n.calcite--rtl:before {\n left: unset;\n}\n\n.container--s.calcite--rtl:before {\n right: 0.5rem;\n}\n\n.container--m.calcite--rtl:before {\n right: 0.75rem;\n}\n\n.container--l.calcite--rtl:before {\n right: 1rem;\n}\n\n.dropdown-item-icon {\n position: absolute;\n opacity: 0;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.9);\n}\n\n.container--s .dropdown-item-icon {\n left: 0.25rem;\n}\n\n.container--m .dropdown-item-icon {\n left: 0.5rem;\n}\n\n.container--l .dropdown-item-icon {\n left: 0.75rem;\n}\n\n.calcite--rtl .dropdown-item-icon {\n left: unset;\n margin-left: 0;\n}\n\n.container--s.calcite--rtl .dropdown-item-icon {\n right: 0.25rem;\n}\n\n.container--m.calcite--rtl .dropdown-item-icon {\n right: 0.5rem;\n}\n\n.container--l.calcite--rtl .dropdown-item-icon {\n right: 0.75rem;\n}\n\n:host(:hover) .dropdown-item-icon {\n color: var(--calcite-ui-border-1);\n opacity: 1;\n}\n\n:host([active]) .dropdown-item-icon {\n color: var(--calcite-ui-brand);\n opacity: 1;\n}\n\n.container--s .dropdown-item-icon-start {\n margin-right: 0.5rem;\n margin-left: 0.25rem;\n}\n\n.container--s .dropdown-item-icon-end {\n margin-left: 0.5rem;\n}\n\n.container--m .dropdown-item-icon-start {\n margin-right: 0.75rem;\n margin-left: 0.25rem;\n}\n\n.container--m .dropdown-item-icon-end {\n margin-left: 0.75rem;\n}\n\n.container--l .dropdown-item-icon-start {\n margin-right: 1rem;\n margin-left: 0.25rem;\n}\n\n.container--l .dropdown-item-icon-end {\n margin-left: 1rem;\n}\n\n.calcite--rtl .dropdown-item-icon-start {\n margin-right: 0;\n}\n\n.calcite--rtl .dropdown-item-icon-end {\n margin-left: 0;\n}\n\n.container--s.calcite--rtl .dropdown-item-icon-start {\n margin-left: 0.5rem;\n}\n\n.container--s.calcite--rtl .dropdown-item-icon-end {\n margin-right: 0.5rem;\n}\n\n.container--m.calcite--rtl .dropdown-item-icon-start {\n margin-left: 0.75rem;\n}\n\n.container--m.calcite--rtl .dropdown-item-icon-end {\n margin-right: 0.75rem;\n}\n\n.container--l.calcite--rtl .dropdown-item-icon-start {\n margin-left: 1rem;\n}\n\n.container--l.calcite--rtl .dropdown-item-icon-end {\n margin-right: 1rem;\n}\n\n.calcite--rtl calcite-icon {\n margin-right: 0;\n margin-left: 0.75rem;\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, Event, h, Host, Listen, Method, Prop } from \"@stencil/core\";\nimport { getElementDir, getElementProp } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { CSS } from \"./resources\";\n/**\n * @slot - A slot for adding text.\n */\nexport class CalciteDropdownItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** Indicates whether the item is active. */\n this.active = false;\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.el.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.selectionMode = getElementProp(this.el, \"selection-mode\", \"single\");\n this.parentDropdownGroupEl = this.el.closest(\"calcite-dropdown-group\");\n if (this.selectionMode === \"none\") {\n this.active = false;\n }\n }\n render() {\n const dir = getElementDir(this.el);\n const scale = getElementProp(this.el, \"scale\", \"m\");\n const iconStartEl = (h(\"calcite-icon\", { class: \"dropdown-item-icon-start\", dir: dir, flipRtl: this.iconFlipRtl === \"start\" || this.iconFlipRtl === \"both\", icon: this.iconStart, scale: \"s\" }));\n const contentNode = (h(\"span\", { class: \"dropdown-item-content\" },\n h(\"slot\", null)));\n const iconEndEl = (h(\"calcite-icon\", { class: \"dropdown-item-icon-end\", dir: dir, flipRtl: this.iconFlipRtl === \"end\" || this.iconFlipRtl === \"both\", icon: this.iconEnd, scale: \"s\" }));\n const slottedContent = this.iconStart && this.iconEnd\n ? [iconStartEl, contentNode, iconEndEl]\n : this.iconStart\n ? [iconStartEl, h(\"slot\", null)]\n : this.iconEnd\n ? [contentNode, iconEndEl]\n : contentNode;\n const contentEl = !this.href ? (slottedContent) : (h(\"a\", { \"aria-label\": this.label, class: \"dropdown-link\", href: this.href, ref: (el) => (this.childLink = el), rel: this.rel, target: this.target }, slottedContent));\n const itemRole = this.href\n ? null\n : this.selectionMode === \"single\"\n ? \"menuitemradio\"\n : this.selectionMode === \"multi\"\n ? \"menuitemcheckbox\"\n : \"menuitem\";\n const itemAria = this.selectionMode !== \"none\" ? this.active.toString() : null;\n return (h(Host, { \"aria-checked\": itemAria, role: itemRole, tabindex: \"0\" },\n h(\"div\", { class: {\n container: true,\n [CSS_UTILITY.rtl]: dir === \"rtl\",\n [CSS.containerLink]: !!this.href,\n [CSS.containerSmall]: scale === \"s\",\n [CSS.containerMedium]: scale === \"m\",\n [CSS.containerLarge]: scale === \"l\",\n [CSS.containerMulti]: this.selectionMode === \"multi\",\n [CSS.containerSingle]: this.selectionMode === \"single\",\n [CSS.containerNone]: this.selectionMode === \"none\"\n } },\n this.selectionMode !== \"none\" ? (h(\"calcite-icon\", { class: \"dropdown-item-icon\", icon: this.selectionMode === \"multi\" ? \"check\" : \"bullet-point\", scale: \"s\" })) : null,\n contentEl)));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n onClick() {\n this.emitRequestedItem();\n }\n keyDownHandler(e) {\n switch (getKey(e.key)) {\n case \" \":\n this.emitRequestedItem();\n if (this.href) {\n e.preventDefault();\n this.childLink.click();\n }\n break;\n case \"Enter\":\n this.emitRequestedItem();\n if (this.href) {\n this.childLink.click();\n }\n break;\n case \"Escape\":\n this.calciteDropdownCloseRequest.emit();\n break;\n case \"Tab\":\n case \"ArrowUp\":\n case \"ArrowDown\":\n case \"Home\":\n case \"End\":\n this.calciteDropdownItemKeyEvent.emit({ keyboardEvent: e });\n break;\n }\n e.preventDefault();\n }\n updateActiveItemOnChange(event) {\n const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);\n if (parentEmittedChange) {\n this.requestedDropdownGroup = event.detail.requestedDropdownGroup;\n this.requestedDropdownItem = event.detail.requestedDropdownItem;\n this.determineActiveItem();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n determineActiveItem() {\n switch (this.selectionMode) {\n case \"multi\":\n if (this.el === this.requestedDropdownItem) {\n this.active = !this.active;\n }\n break;\n case \"single\":\n if (this.el === this.requestedDropdownItem) {\n this.active = true;\n }\n else if (this.requestedDropdownGroup === this.parentDropdownGroupEl) {\n this.active = false;\n }\n break;\n case \"none\":\n this.active = false;\n break;\n }\n }\n emitRequestedItem() {\n this.calciteDropdownItemSelect.emit({\n requestedDropdownItem: this.el,\n requestedDropdownGroup: this.parentDropdownGroupEl\n });\n }\n static get is() { return \"calcite-dropdown-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-dropdown-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-dropdown-item.css\"]\n }; }\n static get properties() { return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates whether the item is active.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"iconFlipRtl\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FlipContext\",\n \"resolved\": \"\\\"both\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"FlipContext\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"flip the icon(s) in rtl\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true\n },\n \"iconStart\": {\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\": \"optionally pass an icon to display at the start of an item - accepts calcite ui icon names\"\n },\n \"attribute\": \"icon-start\",\n \"reflect\": true\n },\n \"iconEnd\": {\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\": \"optionally pass an icon to display at the end of an item - accepts calcite ui icon names\"\n },\n \"attribute\": \"icon-end\",\n \"reflect\": true\n },\n \"href\": {\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\": \"optionally pass a href - used to determine if the component should render as anchor\"\n },\n \"attribute\": \"href\",\n \"reflect\": true\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\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Applies to the aria-label attribute on the button or hyperlink\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"rel\": {\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\": \"The rel attribute to apply to the hyperlink\"\n },\n \"attribute\": \"rel\",\n \"reflect\": false\n },\n \"target\": {\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\": \"The target attribute to apply to the hyperlink\"\n },\n \"attribute\": \"target\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteDropdownItemSelect\",\n \"name\": \"calciteDropdownItemSelect\",\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 \"method\": \"calciteDropdownItemKeyEvent\",\n \"name\": \"calciteDropdownItemKeyEvent\",\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\": \"ItemKeyboardEvent\",\n \"resolved\": \"ItemKeyboardEvent\",\n \"references\": {\n \"ItemKeyboardEvent\": {\n \"location\": \"import\",\n \"path\": \"../calcite-dropdown/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteDropdownCloseRequest\",\n \"name\": \"calciteDropdownCloseRequest\",\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 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 static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"onClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"keyDownHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteDropdownItemChange\",\n \"method\": \"updateActiveItemOnChange\",\n \"target\": \"body\",\n \"capture\": false,\n \"passive\": false\n }]; }\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 i,h as e,H as a,g as o}from"./p-2e1cd889.js";import{a as n}from"./p-e762b2d1.js";import{g as r}from"./p-7df393df.js";import{c as s,d as c}from"./p-cb5cb9a8.js";import{c as l,d as m,H as d}from"./p-0b8525e2.js";import"./p-ec178ea9.js";const h="@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;background-color:var(--calcite-ui-foreground-1);width:-moz-fit-content;width:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){width:100%;min-width:-moz-fit-content;min-width:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";let p=class{constructor(e){t(this,e);this.calciteRadioGroupChange=i(this,"calciteRadioGroupChange",7);this.appearance="solid";this.disabled=false;this.required=false;this.layout="horizontal";this.scale="m";this.value=null;this.width="auto";this.handleClick=t=>{if(t.target.localName==="calcite-radio-group-item"){this.selectItem(t.target)}}}valueHandler(t){const i=this.getItems();i.forEach((i=>i.checked=i.value===t))}handleSelectedItemChange(t,i){this.value=t===null||t===void 0?void 0:t.value;if(t===i){return}const e=this.getItems();const a=Array.from(e).filter((i=>i===t)).pop();if(a){this.selectItem(a);this.calciteRadioGroupChange.emit(a.value)}else if(e[0]){e[0].tabIndex=0}}connectedCallback(){const t=this.getItems();const i=Array.from(t).filter((t=>t.checked)).pop();if(i){this.selectItem(i)}else if(t[0]){t[0].tabIndex=0}s(this);l(this)}disconnectedCallback(){c(this);m(this)}componentDidLoad(){this.hasLoaded=true}render(){return e(a,{onClick:this.handleClick,role:"radiogroup",tabIndex:this.disabled?-1:null},e("slot",null),e(d,{component:this}))}handleSelected(t){if(this.hasLoaded){t.stopPropagation();t.preventDefault();this.selectItem(t.target)}}handleKeyDown(t){const i=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "];const e=r(t.key);const{el:a,selectedItem:o}=this;if(i.indexOf(e)===-1){return}let s=e;if(n(a)==="rtl"){if(e==="ArrowRight"){s="ArrowLeft"}if(e==="ArrowLeft"){s="ArrowRight"}}const c=this.getItems();let l=-1;c.forEach(((t,i)=>{if(t===o){l=i}}));switch(s){case"ArrowLeft":case"ArrowUp":t.preventDefault();const i=l<1?c.item(c.length-1):c.item(l-1);this.selectItem(i);return;case"ArrowRight":case"ArrowDown":t.preventDefault();const e=l===-1?c.item(1):c.item(l+1)||c.item(0);this.selectItem(e);return;case" ":t.preventDefault();this.selectItem(t.target);return;default:return}}async setFocus(){var t;(t=this.selectedItem||this.getItems()[0])===null||t===void 0?void 0:t.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(t){if(t===this.selectedItem){return}const i=this.getItems();let e=null;i.forEach((i=>{const a=i.value===t.value;if(a&&!i.checked||!a&&i.checked){i.checked=a}i.tabIndex=a?0:-1;if(a){e=i}}));this.selectedItem=e;if(e){e.focus()}}get el(){return o(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};p.style=h;export{p as calcite_radio_group};
|
7
|
-
//# sourceMappingURL=p-a8a106f7.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group/calcite-radio-group.css?tag=calcite-radio-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group/calcite-radio-group.js"],"names":["calciteRadioGroupCss","CalciteRadioGroup","[object Object]","hostRef","this","appearance","disabled","required","layout","scale","value","width","handleClick","event","target","localName","selectItem","items","getItems","forEach","item","checked","newItem","oldItem","match","Array","from","filter","pop","calciteRadioGroupChange","emit","tabIndex","lastChecked","connectLabel","connectForm","disconnectLabel","disconnectForm","hasLoaded","h","Host","onClick","role","HiddenFormInputSlot","component","stopPropagation","preventDefault","keys","key","getKey","el","selectedItem","indexOf","adjustedKey","getElementDir","selectedIndex","index","previous","length","next","_a","focus","setFocus","querySelectorAll","selected","matches"],"mappings":"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","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 background-color: var(--calcite-ui-foreground-1);\n width: -moz-fit-content;\n width: fit-content;\n outline: 1px solid var(--calcite-ui-border-input);\n outline-offset: -1px;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\n align-items: flex-start;\n align-self: flex-start;\n}\n\n:host([width=full]) {\n width: 100%;\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n\n:host([width=full]) ::slotted(calcite-radio-group-item) {\n flex: 1 1 auto;\n}\n\n:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item) {\n justify-content: flex-start;\n}\n\n::slotted(calcite-radio-group-item[checked]),\n::slotted(calcite-radio-group-item:focus) {\n z-index: 0;\n}\n\n:host([disabled]) {\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: none;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\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, Event, h, Listen, Element, Prop, Watch, Host, Build, Method } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { connectLabel, disconnectLabel } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\n/**\n * @slot - A slot for adding `calcite-radio-group-item`s.\n */\nexport class CalciteRadioGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** specify the appearance style of the radio group, defaults to solid. */\n this.appearance = \"solid\";\n /** is the radio group disabled */\n this.disabled = false;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** specify the layout of the radio group, defaults to horizontal */\n this.layout = \"horizontal\";\n /** The scale of the radio group */\n this.scale = \"m\";\n /** The value of the selectedItem */\n this.value = null;\n /** specify the width of the group, defaults to auto */\n this.width = \"auto\";\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.handleClick = (event) => {\n if (event.target.localName === \"calcite-radio-group-item\") {\n this.selectItem(event.target);\n }\n };\n }\n valueHandler(value) {\n const items = this.getItems();\n items.forEach((item) => (item.checked = item.value === value));\n }\n handleSelectedItemChange(newItem, oldItem) {\n this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;\n if (newItem === oldItem) {\n return;\n }\n const items = this.getItems();\n const match = Array.from(items)\n .filter((item) => item === newItem)\n .pop();\n if (match) {\n this.selectItem(match);\n this.calciteRadioGroupChange.emit(match.value);\n }\n else if (items[0]) {\n items[0].tabIndex = 0;\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n const items = this.getItems();\n const lastChecked = Array.from(items)\n .filter((item) => item.checked)\n .pop();\n if (lastChecked) {\n this.selectItem(lastChecked);\n }\n else if (items[0]) {\n items[0].tabIndex = 0;\n }\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n componentDidLoad() {\n this.hasLoaded = true;\n }\n render() {\n return (h(Host, { onClick: this.handleClick, role: \"radiogroup\", tabIndex: this.disabled ? -1 : null },\n h(\"slot\", null),\n h(HiddenFormInputSlot, { component: this })));\n }\n handleSelected(event) {\n // only fire after initial setup to prevent semi-infinite loops\n if (this.hasLoaded) {\n event.stopPropagation();\n event.preventDefault();\n this.selectItem(event.target);\n }\n }\n handleKeyDown(event) {\n const keys = [\"ArrowLeft\", \"ArrowUp\", \"ArrowRight\", \"ArrowDown\", \" \"];\n const key = getKey(event.key);\n const { el, selectedItem } = this;\n if (keys.indexOf(key) === -1) {\n return;\n }\n let adjustedKey = key;\n if (getElementDir(el) === \"rtl\") {\n if (key === \"ArrowRight\") {\n adjustedKey = \"ArrowLeft\";\n }\n if (key === \"ArrowLeft\") {\n adjustedKey = \"ArrowRight\";\n }\n }\n const items = this.getItems();\n let selectedIndex = -1;\n items.forEach((item, index) => {\n if (item === selectedItem) {\n selectedIndex = index;\n }\n });\n switch (adjustedKey) {\n case \"ArrowLeft\":\n case \"ArrowUp\":\n event.preventDefault();\n const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);\n this.selectItem(previous);\n return;\n case \"ArrowRight\":\n case \"ArrowDown\":\n event.preventDefault();\n const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);\n this.selectItem(next);\n return;\n case \" \":\n event.preventDefault();\n this.selectItem(event.target);\n return;\n default:\n return;\n }\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = (this.selectedItem || this.getItems()[0])) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n getItems() {\n return this.el.querySelectorAll(\"calcite-radio-group-item\");\n }\n selectItem(selected) {\n if (selected === this.selectedItem) {\n return;\n }\n const items = this.getItems();\n let match = null;\n items.forEach((item) => {\n const matches = item.value === selected.value;\n if ((matches && !item.checked) || (!matches && item.checked)) {\n item.checked = matches;\n }\n item.tabIndex = matches ? 0 : -1;\n if (matches) {\n match = item;\n }\n });\n this.selectedItem = match;\n if (Build.isBrowser && match) {\n match.focus();\n }\n }\n static get is() { return \"calcite-radio-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-group.css\"]\n }; }\n static get properties() { return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"RadioAppearance\",\n \"resolved\": \"\\\"outline\\\" | \\\"solid\\\"\",\n \"references\": {\n \"RadioAppearance\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the appearance style of the radio group, defaults to solid.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\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\": \"is the radio group disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"required\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the layout of the radio group, defaults to horizontal\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"name\": {\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 group's name. Gets submitted with the form.\"\n },\n \"attribute\": \"name\",\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\": \"The scale of the radio group\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the selectedItem\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n },\n \"selectedItem\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLCalciteRadioGroupItemElement\",\n \"resolved\": \"HTMLCalciteRadioGroupItemElement\",\n \"references\": {\n \"HTMLCalciteRadioGroupItemElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The group's selected item.\"\n }\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"auto\\\" | \\\"full\\\", Width>\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Width\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the width of the group, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteRadioGroupChange\",\n \"name\": \"calciteRadioGroupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the selected option changes, event detail is the new value\"\n },\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\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 static get watchers() { return [{\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"selectedItem\",\n \"methodName\": \"handleSelectedItemChange\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteRadioGroupItemChange\",\n \"method\": \"handleSelected\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"handleKeyDown\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\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 i,c as t,h as s,H as e,g as n}from"./p-2e1cd889.js";import{g as a}from"./p-ec178ea9.js";import{g as o}from"./p-7df393df.js";import{f as r,p as h,g as l,a as c}from"./p-7804ce97.js";import{c as p,d as m,g as u}from"./p-cb5cb9a8.js";import{c as d,d as f,H as g}from"./p-0b8525e2.js";import"./p-946521e1.js";import"./p-e762b2d1.js";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:inline-block;-webkit-user-select:none;user-select:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";let b=class{constructor(s){i(this,s);this.calciteInputTimePickerChange=t(this,"calciteInputTimePickerChange",7);this.active=false;this.disabled=false;this.hourDisplayFormat="12";this.required=false;this.scale="m";this.step=60;this.value=null;this.internalValueChange=false;this.previousValidValue=null;this.referenceElementId=`input-time-picker-${a()}`;this.calciteInputBlurHandler=()=>{this.active=false;const i=r(this.calciteInputEl.value)||r(this.value);if(i!==this.calciteInputEl.value){this.setInputValue(i)}};this.calciteInputFocusHandler=()=>{this.active=true};this.calciteInputInputHandler=i=>{this.setValue({value:i.detail.value})};this.setCalciteInputEl=i=>{this.calciteInputEl=i};this.setInputValue=i=>{if(!this.calciteInputEl){return}if(this.hourDisplayFormat==="12"){const{hour:t,minute:s,second:e}=h(i);this.calciteInputEl.value=i?`${l(t)}:${s}${this.step!==60?":"+e:""} ${c(t)}`:null}else{this.calciteInputEl.value=i}};this.setValue=({value:i,origin:t="input"})=>{const s=this.value;const e=r(i);this.internalValueChange=t!=="external"&&t!=="loading";const n=t!=="loading"&&t!=="external"&&(i!==this.previousValidValue&&!i||!!(!this.previousValidValue&&e)||e!==this.previousValidValue&&e);if(i){if(n){this.previousValidValue=e}if(e&&e!==this.value){this.value=e}}else{this.value=i}if(t==="time-picker"||t==="external"){this.setInputValue(e)}if(n){const i=this.calciteInputTimePickerChange.emit();if(i.defaultPrevented){this.internalValueChange=false;this.value=s;this.setInputValue(s);this.previousValidValue=s}else{this.previousValidValue=e}}}}valueWatcher(i){if(!this.internalValueChange){this.setValue({value:i,origin:"external"})}this.internalValueChange=false}keyUpHandler(i){if(o(i.key)==="Escape"&&this.active){this.active=false}}timePickerBlurHandler(i){i.preventDefault();i.stopPropagation();this.active=false}timePickerChangeHandler(i){i.preventDefault();i.stopPropagation();if(i.detail){const{hour:t,minute:s,second:e}=i.detail;let n;if(t&&s){n=e&&this.step!==60?`${t}:${s}:${e}`:`${t}:${s}`}else{n=""}this.setValue({value:n,origin:"time-picker"})}}timePickerFocusHandler(i){i.preventDefault();i.stopPropagation();this.active=true}async setFocus(){this.calciteInputEl.setFocus()}onLabelClick(){this.setFocus()}connectedCallback(){if(this.value){this.setValue({value:this.value,origin:"loading"})}p(this);d(this)}componentDidLoad(){if(this.calciteInputEl.value!==this.value){this.setInputValue(this.value)}}disconnectedCallback(){m(this);f(this)}render(){const{hour:i,minute:t,second:n}=h(this.value);const a=`${this.referenceElementId}-popover`;return s(e,null,s("div",{"aria-controls":a,"aria-haspopup":"dialog","aria-label":this.name,"aria-owns":a,id:this.referenceElementId,role:"combobox"},s("calcite-input",{disabled:this.disabled,icon:"clock",label:u(this),onCalciteInputBlur:this.calciteInputBlurHandler,onCalciteInputFocus:this.calciteInputFocusHandler,onCalciteInputInput:this.calciteInputInputHandler,ref:this.setCalciteInputEl,scale:this.scale,step:this.step})),s("calcite-popover",{id:a,label:"Time Picker",open:this.active||false,referenceElement:this.referenceElementId},s("calcite-time-picker",{hour:i,"hour-display-format":this.hourDisplayFormat,intlHour:this.intlHour,intlHourDown:this.intlHourDown,intlHourUp:this.intlHourUp,intlMeridiem:this.intlMeridiem,intlMeridiemDown:this.intlMeridiemDown,intlMeridiemUp:this.intlMeridiemUp,intlMinute:this.intlMinute,intlMinuteDown:this.intlMinuteDown,intlMinuteUp:this.intlMinuteUp,intlSecond:this.intlSecond,intlSecondDown:this.intlSecondDown,intlSecondUp:this.intlSecondUp,minute:t,scale:this.scale,second:n,step:this.step})),s(g,{component:this}))}get el(){return n(this)}static get watchers(){return{value:["valueWatcher"]}}};b.style=k;export{b as calcite_input_time_picker};
|
7
|
-
//# sourceMappingURL=p-a8d2d1a3.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css?tag=calcite-input-time-picker&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js"],"names":["calciteInputTimePickerCss","CalciteInputTimePicker","[object Object]","hostRef","this","active","disabled","hourDisplayFormat","required","scale","step","value","internalValueChange","previousValidValue","referenceElementId","guid","calciteInputBlurHandler","newValue","formatTimeString","calciteInputEl","setInputValue","calciteInputFocusHandler","calciteInputInputHandler","event","setValue","detail","setCalciteInputEl","el","newInputValue","hour","minute","second","parseTimeString","getMeridiemHour","getMeridiem","origin","previousValue","validatedNewValue","shouldEmit","changeEvent","calciteInputTimePickerChange","emit","defaultPrevented","getKey","key","preventDefault","stopPropagation","setFocus","connectLabel","connectForm","disconnectLabel","disconnectForm","popoverId","h","Host","aria-controls","aria-haspopup","aria-label","name","aria-owns","id","role","icon","label","getLabelText","onCalciteInputBlur","onCalciteInputFocus","onCalciteInputInput","ref","open","referenceElement","hour-display-format","intlHour","intlHourDown","intlHourUp","intlMeridiem","intlMeridiemDown","intlMeridiemUp","intlMinute","intlMinuteDown","intlMinuteUp","intlSecond","intlSecondDown","intlSecondUp","HiddenFormInputSlot","component"],"mappings":"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","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 -webkit-user-select: none;\n user-select: none;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\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, Host, h, Prop, Listen, Event, Method, Watch } from \"@stencil/core\";\nimport { guid } from \"../../utils/guid\";\nimport { getKey } from \"../../utils/key\";\nimport { parseTimeString, formatTimeString, getMeridiem, getMeridiemHour } from \"../../utils/time\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nexport class CalciteInputTimePicker {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The active state of the time input */\n this.active = false;\n /** The disabled state of the time input */\n this.disabled = false;\n /** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */\n this.hourDisplayFormat = \"12\";\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** The scale (size) of the time input */\n this.scale = \"m\";\n /** number (seconds) that specifies the granularity that the value must adhere to */\n this.step = 60;\n /** The selected time (always 24-hour format)*/\n this.value = null;\n /** whether the value of the input was changed as a result of user typing or not */\n this.internalValueChange = false;\n this.previousValidValue = null;\n this.referenceElementId = `input-time-picker-${guid()}`;\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.calciteInputBlurHandler = () => {\n this.active = false;\n const newValue = formatTimeString(this.calciteInputEl.value) || formatTimeString(this.value);\n if (newValue !== this.calciteInputEl.value) {\n this.setInputValue(newValue);\n }\n };\n this.calciteInputFocusHandler = () => {\n this.active = true;\n };\n this.calciteInputInputHandler = (event) => {\n this.setValue({ value: event.detail.value });\n };\n this.setCalciteInputEl = (el) => {\n this.calciteInputEl = el;\n };\n this.setInputValue = (newInputValue) => {\n if (!this.calciteInputEl) {\n return;\n }\n if (this.hourDisplayFormat === \"12\") {\n const { hour, minute, second } = parseTimeString(newInputValue);\n this.calciteInputEl.value = newInputValue\n ? `${getMeridiemHour(hour)}:${minute}${this.step !== 60 ? \":\" + second : \"\"} ${getMeridiem(hour)}`\n : null;\n }\n else {\n this.calciteInputEl.value = newInputValue;\n }\n };\n this.setValue = ({ value, origin = \"input\" }) => {\n const previousValue = this.value;\n const validatedNewValue = formatTimeString(value);\n this.internalValueChange = origin !== \"external\" && origin !== \"loading\";\n const shouldEmit = origin !== \"loading\" &&\n origin !== \"external\" &&\n ((value !== this.previousValidValue && !value) ||\n !!(!this.previousValidValue && validatedNewValue) ||\n (validatedNewValue !== this.previousValidValue && validatedNewValue));\n if (value) {\n if (shouldEmit) {\n this.previousValidValue = validatedNewValue;\n }\n if (validatedNewValue && validatedNewValue !== this.value) {\n this.value = validatedNewValue;\n }\n }\n else {\n this.value = value;\n }\n if (origin === \"time-picker\" || origin === \"external\") {\n this.setInputValue(validatedNewValue);\n }\n if (shouldEmit) {\n const changeEvent = this.calciteInputTimePickerChange.emit();\n if (changeEvent.defaultPrevented) {\n this.internalValueChange = false;\n this.value = previousValue;\n this.setInputValue(previousValue);\n this.previousValidValue = previousValue;\n }\n else {\n this.previousValidValue = validatedNewValue;\n }\n }\n };\n }\n valueWatcher(newValue) {\n if (!this.internalValueChange) {\n this.setValue({ value: newValue, origin: \"external\" });\n }\n this.internalValueChange = false;\n }\n keyUpHandler(event) {\n if (getKey(event.key) === \"Escape\" && this.active) {\n this.active = false;\n }\n }\n timePickerBlurHandler(event) {\n event.preventDefault();\n event.stopPropagation();\n this.active = false;\n }\n timePickerChangeHandler(event) {\n event.preventDefault();\n event.stopPropagation();\n if (event.detail) {\n const { hour, minute, second } = event.detail;\n let value;\n if (hour && minute) {\n value = second && this.step !== 60 ? `${hour}:${minute}:${second}` : `${hour}:${minute}`;\n }\n else {\n value = \"\";\n }\n this.setValue({ value, origin: \"time-picker\" });\n }\n }\n timePickerFocusHandler(event) {\n event.preventDefault();\n event.stopPropagation();\n this.active = true;\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.calciteInputEl.setFocus();\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n if (this.value) {\n this.setValue({ value: this.value, origin: \"loading\" });\n }\n connectLabel(this);\n connectForm(this);\n }\n componentDidLoad() {\n if (this.calciteInputEl.value !== this.value) {\n this.setInputValue(this.value);\n }\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { hour, minute, second } = parseTimeString(this.value);\n const popoverId = `${this.referenceElementId}-popover`;\n return (h(Host, null,\n h(\"div\", { \"aria-controls\": popoverId, \"aria-haspopup\": \"dialog\", \"aria-label\": this.name, \"aria-owns\": popoverId, id: this.referenceElementId, role: \"combobox\" },\n h(\"calcite-input\", { disabled: this.disabled, icon: \"clock\", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })),\n h(\"calcite-popover\", { id: popoverId, label: \"Time Picker\", open: this.active || false, referenceElement: this.referenceElementId },\n h(\"calcite-time-picker\", { hour: hour, \"hour-display-format\": this.hourDisplayFormat, intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, minute: minute, scale: this.scale, second: second, step: this.step })),\n h(HiddenFormInputSlot, { component: this })));\n }\n static get is() { return \"calcite-input-time-picker\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-input-time-picker.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-input-time-picker.css\"]\n }; }\n static get properties() { return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The active state of the time input\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"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\": \"The disabled state of the time input\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"hourDisplayFormat\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HourDisplayFormat\",\n \"resolved\": \"\\\"12\\\" | \\\"24\\\"\",\n \"references\": {\n \"HourDisplayFormat\": {\n \"location\": \"import\",\n \"path\": \"../../utils/time\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)\"\n },\n \"attribute\": \"hour-display-format\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"12\\\"\"\n },\n \"intlHour\": {\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\": \"aria-label for the hour input\"\n },\n \"attribute\": \"intl-hour\",\n \"reflect\": false\n },\n \"intlHourDown\": {\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\": \"aria-label for the hour down button\"\n },\n \"attribute\": \"intl-hour-down\",\n \"reflect\": false\n },\n \"intlHourUp\": {\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\": \"aria-label for the hour up button\"\n },\n \"attribute\": \"intl-hour-up\",\n \"reflect\": false\n },\n \"intlMeridiem\": {\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\": \"aria-label for the meridiem (am/pm) input\"\n },\n \"attribute\": \"intl-meridiem\",\n \"reflect\": false\n },\n \"intlMeridiemDown\": {\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\": \"aria-label for the meridiem (am/pm) down button\"\n },\n \"attribute\": \"intl-meridiem-down\",\n \"reflect\": false\n },\n \"intlMeridiemUp\": {\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\": \"aria-label for the meridiem (am/pm) up button\"\n },\n \"attribute\": \"intl-meridiem-up\",\n \"reflect\": false\n },\n \"intlMinute\": {\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\": \"aria-label for the minute input\"\n },\n \"attribute\": \"intl-minute\",\n \"reflect\": false\n },\n \"intlMinuteDown\": {\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\": \"aria-label for the minute down button\"\n },\n \"attribute\": \"intl-minute-down\",\n \"reflect\": false\n },\n \"intlMinuteUp\": {\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\": \"aria-label for the minute up button\"\n },\n \"attribute\": \"intl-minute-up\",\n \"reflect\": false\n },\n \"intlSecond\": {\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\": \"aria-label for the second input\"\n },\n \"attribute\": \"intl-second\",\n \"reflect\": false\n },\n \"intlSecondDown\": {\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\": \"aria-label for the second down button\"\n },\n \"attribute\": \"intl-second-down\",\n \"reflect\": false\n },\n \"intlSecondUp\": {\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\": \"aria-label for the second up button\"\n },\n \"attribute\": \"intl-second-up\",\n \"reflect\": false\n },\n \"name\": {\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 name of the time input\"\n },\n \"attribute\": \"name\",\n \"reflect\": false\n },\n \"required\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale (size) of the time input\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"step\": {\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\": \"number (seconds) that specifies the granularity that the value must adhere to\"\n },\n \"attribute\": \"step\",\n \"reflect\": false,\n \"defaultValue\": \"60\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The selected time (always 24-hour format)\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteInputTimePickerChange\",\n \"name\": \"calciteInputTimePickerChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the time value is changed as a result of user input.\"\n },\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\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 static get watchers() { return [{\n \"propName\": \"value\",\n \"methodName\": \"valueWatcher\"\n }]; }\n static get listeners() { return [{\n \"name\": \"keyup\",\n \"method\": \"keyUpHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteTimePickerBlur\",\n \"method\": \"timePickerBlurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteTimePickerChange\",\n \"method\": \"timePickerChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteTimePickerFocus\",\n \"method\": \"timePickerFocusHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\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 i,F as e,g as n}from"./p-2e1cd889.js";import{b as a}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 o={contentStart:"content-start",contentEnd:"content-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{background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;color:var(--calcite-ui-text-3);display:inline-block;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-user-select:none;user-select:none}:host(:not([embed])){padding:0.75rem;box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0}:host([icon][heading]:not([description])) .icon{display:flex;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}.container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:0.5rem;gap:0.5rem;pointer-events:none}.content{justify-content:center;display:flex;flex:1 1 auto;flex-direction:column;grid-gap:0.5rem;gap:0.5rem;width:10%}.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);width:100%}.content-slot-container{display:flex;align-items:center;background-color:var(--calcite-ui-foreground-1)}.content-slot-container:first-child{padding-right:0.75rem}.content-slot-container:last-child{padding-left:0.75rem}.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-2);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);font-weight:var(--calcite-font-weight-medium);pointer-events:none;word-wrap:break-word;overflow-wrap:break-word}.large-visual{align-items:center;min-height:12rem}.large-visual .icon{align-self:flex-end}.large-visual .content-container{align-self:center}.description{font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";let r=class{constructor(i){t(this,i);this.active=false;this.disabled=false;this.embed=false;this.focused=false;this.hidden=false}renderTile(){const{icon:t,el:e,heading:n,description:c}=this;const r=n&&t&&!c;const s=r?{height:"64px",width:"64px"}:undefined;return i("div",{class:{container:true,"large-visual":r}},t&&i("div",{class:"icon"},i("calcite-icon",{icon:t,scale:"l",style:s})),i("div",{class:"content-container"},a(e,o.contentStart)?i("div",{class:"content-slot-container"},i("slot",{name:o.contentStart})):null,i("div",{class:"content"},n&&i("div",{class:"heading"},n),c&&i("div",{class:"description"},c)),a(e,o.contentEnd)?i("div",{class:"content-slot-container"},i("slot",{name:o.contentEnd})):null))}render(){return i(e,null,this.href?i("calcite-link",{disabled:this.disabled,href:this.href},this.renderTile()):this.renderTile())}get el(){return n(this)}};r.style=c;export{r as calcite_tile};
|
11
|
-
//# sourceMappingURL=p-a98c5d29.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tile/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tile/calcite-tile.css?tag=calcite-tile&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tile/calcite-tile.js"],"names":["SLOTS","contentStart","contentEnd","calciteTileCss","CalciteTile","[object Object]","hostRef","this","active","disabled","embed","focused","hidden","icon","el","heading","description","isLargeVisual","iconStyle","height","width","undefined","h","class","container","large-visual","scale","style","getSlotted","name","Fragment","href","renderTile"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAQ,CACnBC,aAAc,gBACdC,WAAY,eCNd,MAAMC,EAAiB,shGCWVC,EAAW,MACtBC,YAAAC,aAOEC,KAAKC,OAAS,MAIdD,KAAKE,SAAW,MAEhBF,KAAKG,MAAQ,MAKbH,KAAKI,QAAU,MAEfJ,KAAKK,OAAS,MAOhBP,aACE,MAAMQ,KAAEA,EAAIC,GAAEA,EAAEC,QAAEA,EAAOC,YAAEA,GAAgBT,KAC3C,MAAMU,EAAgBF,GAAWF,IAASG,EAC1C,MAAME,EAAYD,EACd,CACAE,OAAQ,OACRC,MAAO,QAEPC,UACJ,OAAQC,EAAE,MAAO,CAAEC,MAAO,CAAEC,UAAW,KAAMC,eAAgBR,IAC3DJ,GAASS,EAAE,MAAO,CAAEC,MAAO,QACzBD,EAAE,eAAgB,CAAET,KAAMA,EAAMa,MAAO,IAAKC,MAAOT,KACrDI,EAAE,MAAO,CAAEC,MAAO,qBAChBK,EAAWd,EAAId,EAAMC,cAAiBqB,EAAE,MAAO,CAAEC,MAAO,0BACtDD,EAAE,OAAQ,CAAEO,KAAM7B,EAAMC,gBAAoB,KAC9CqB,EAAE,MAAO,CAAEC,MAAO,WAChBR,GAAWO,EAAE,MAAO,CAAEC,MAAO,WAAaR,GAC1CC,GAAeM,EAAE,MAAO,CAAEC,MAAO,eAAiBP,IACpDY,EAAWd,EAAId,EAAME,YAAeoB,EAAE,MAAO,CAAEC,MAAO,0BACpDD,EAAE,OAAQ,CAAEO,KAAM7B,EAAME,cAAkB,OAElDG,SACE,OAAQiB,EAAEQ,EAAU,KAAMvB,KAAKwB,KAAQT,EAAE,eAAgB,CAAEb,SAAUF,KAAKE,SAAUsB,KAAMxB,KAAKwB,MAAQxB,KAAKyB,cAAkBzB,KAAKyB","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 SLOTS = {\n contentStart: \"content-start\",\n contentEnd: \"content-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 background-color: var(--calcite-ui-foreground-1);\n box-sizing: border-box;\n color: var(--calcite-ui-text-3);\n display: inline-block;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-user-select: none;\n user-select: none;\n}\n\n:host(:not([embed])) {\n padding: 0.75rem;\n box-shadow: 0 0 0 1px var(--calcite-ui-border-2);\n}\n\n:host(:not([embed])[href]:hover) {\n cursor: pointer;\n box-shadow: 0 0 0 2px var(--calcite-ui-brand);\n}\n\n:host(:not([embed])[href]:active) {\n box-shadow: 0 0 0 3px var(--calcite-ui-brand);\n}\n\n:host([icon][heading]:not([description]):not([embed])) {\n padding: 0;\n}\n\n:host([icon][heading]:not([description])) .icon {\n display: flex;\n justify-content: center;\n}\n\n:host([icon][heading]:not([description])) .large-visual {\n text-align: center;\n}\n\n:host([disabled]) {\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: none;\n}\n\n.container {\n display: grid;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n grid-gap: 0.5rem;\n gap: 0.5rem;\n pointer-events: none;\n}\n\n.content {\n justify-content: center;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n grid-gap: 0.5rem;\n gap: 0.5rem;\n width: 10%;\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 width: 100%;\n}\n\n.content-slot-container {\n display: flex;\n align-items: center;\n background-color: var(--calcite-ui-foreground-1);\n}\n\n.content-slot-container:first-child {\n padding-right: 0.75rem;\n}\n\n.content-slot-container:last-child {\n padding-left: 0.75rem;\n}\n\n.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n color: var(--calcite-ui-text-2);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n font-weight: var(--calcite-font-weight-medium);\n pointer-events: none;\n word-wrap: break-word;\n overflow-wrap: break-word;\n}\n\n.large-visual {\n align-items: center;\n min-height: 12rem;\n}\n\n.large-visual .icon {\n align-self: flex-end;\n}\n\n.large-visual .content-container {\n align-self: center;\n}\n\n.description {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n color: var(--calcite-ui-text-3);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n pointer-events: none;\n}\n\n:host(:hover) .heading,\n:host([active]) .heading {\n color: var(--calcite-ui-text-1);\n}\n\n:host(:hover) .description,\n:host([active]) .description {\n color: var(--calcite-ui-text-2);\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, Fragment, h, Prop } from \"@stencil/core\";\nimport { SLOTS } from \"./resources\";\nimport { getSlotted } from \"../../utils/dom\";\n/**\n * @slot content-start - A slot for adding non-actionable elements before the tile content.\n * @slot content-end - A slot for adding non-actionable elements after the tile content.\n */\nexport class CalciteTile {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The active state of the tile. */\n this.active = false;\n /**\n * When true, prevents interaction.\n */\n this.disabled = false;\n /** The embed mode of the tile. When true, renders without a border and padding for use by other components. */\n this.embed = false;\n /**\n * The focused state of the tile.\n * @internal\n */\n this.focused = false;\n /** The hidden state of the tile. */\n this.hidden = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderTile() {\n const { icon, el, heading, description } = this;\n const isLargeVisual = heading && icon && !description;\n const iconStyle = isLargeVisual\n ? {\n height: \"64px\",\n width: \"64px\"\n }\n : undefined;\n return (h(\"div\", { class: { container: true, \"large-visual\": isLargeVisual } },\n icon && (h(\"div\", { class: \"icon\" },\n h(\"calcite-icon\", { icon: icon, scale: \"l\", style: iconStyle }))),\n h(\"div\", { class: \"content-container\" },\n getSlotted(el, SLOTS.contentStart) ? (h(\"div\", { class: \"content-slot-container\" },\n h(\"slot\", { name: SLOTS.contentStart }))) : null,\n h(\"div\", { class: \"content\" },\n heading && h(\"div\", { class: \"heading\" }, heading),\n description && h(\"div\", { class: \"description\" }, description)),\n getSlotted(el, SLOTS.contentEnd) ? (h(\"div\", { class: \"content-slot-container\" },\n h(\"slot\", { name: SLOTS.contentEnd }))) : null)));\n }\n render() {\n return (h(Fragment, null, this.href ? (h(\"calcite-link\", { disabled: this.disabled, href: this.href }, this.renderTile())) : (this.renderTile())));\n }\n static get is() { return \"calcite-tile\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tile.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tile.css\"]\n }; }\n static get properties() { return {\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\": \"The active state of the tile.\"\n },\n \"attribute\": \"active\",\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\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The description text that appears beneath the heading of the tile.\"\n },\n \"attribute\": \"description\",\n \"reflect\": true\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, prevents interaction.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"embed\": {\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\": \"The embed mode of the tile. When true, renders without a border and padding for use by other components.\"\n },\n \"attribute\": \"embed\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"focused\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The focused state of the tile.\"\n },\n \"attribute\": \"focused\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\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\": \"The heading text that appears between the icon and description of the tile.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": true\n },\n \"hidden\": {\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\": \"The hidden state of the tile.\"\n },\n \"attribute\": \"hidden\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"href\": {\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\": \"The (optional) url for the tile. (Only applies when embed is set to false)\"\n },\n \"attribute\": \"href\",\n \"reflect\": true\n },\n \"icon\": {\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\": \"The icon that appears at the top of the tile.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker/utils.js"],"names":["rgbToHex","color","r","g","b","toString","padStart","toLowerCase","hexChar","shortHandHex","longhandHex","isValidHex","hex","isShorthandHex","isLonghandHex","length","test","normalizeHex","startsWith","hexToRGB","replace","first","second","third","split","parseInt","slice","enumify","x","CSSColorMode","HEX","HEXA","RGB_CSS","RGBA_CSS","HSL_CSS","HSLA_CSS","ObjectColorMode","RGB","RGBA","HSL","HSLA","HSV","HSVA","parseMode","colorValue","hasChannels","colorObject","channels","every","channel","colorEqual","value1","value2","rgbNumber"],"mappings":"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","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 function rgbToHex(color) {\n const { r, g, b } = color;\n return `#${r.toString(16).padStart(2, \"0\")}${g.toString(16).padStart(2, \"0\")}${b\n .toString(16)\n .padStart(2, \"0\")}`.toLowerCase();\n}\nexport const hexChar = /^[0-9A-F]$/i;\nconst shortHandHex = /^#[0-9A-F]{3}$/i;\nconst longhandHex = /^#[0-9A-F]{6}$/i;\nexport function isValidHex(hex) {\n return isShorthandHex(hex) || isLonghandHex(hex);\n}\nexport function isShorthandHex(hex) {\n return hex && hex.length === 4 && shortHandHex.test(hex);\n}\nexport function isLonghandHex(hex) {\n return hex && hex.length === 7 && longhandHex.test(hex);\n}\nexport function normalizeHex(hex) {\n hex = hex.toLowerCase();\n if (!hex.startsWith(\"#\")) {\n hex = `#${hex}`;\n }\n if (isShorthandHex(hex)) {\n return rgbToHex(hexToRGB(hex));\n }\n return hex;\n}\nexport function hexToRGB(hex) {\n if (!isValidHex(hex)) {\n return null;\n }\n hex = hex.replace(\"#\", \"\");\n if (hex.length === 3) {\n const [first, second, third] = hex.split(\"\");\n const r = parseInt(`${first}${first}`, 16);\n const g = parseInt(`${second}${second}`, 16);\n const b = parseInt(`${third}${third}`, 16);\n return { r, g, b };\n }\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return { r, g, b };\n}\n// these utils allow users to pass enum values as strings without having to access the enum\n// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,\nconst enumify = (x) => x;\nexport const CSSColorMode = enumify({\n HEX: \"hex\",\n HEXA: \"hexa\",\n RGB_CSS: \"rgb-css\",\n RGBA_CSS: \"rgba-css\",\n HSL_CSS: \"hsl-css\",\n HSLA_CSS: \"hsla-css\"\n});\nexport const ObjectColorMode = enumify({\n RGB: \"rgb\",\n RGBA: \"rgba\",\n HSL: \"hsl\",\n HSLA: \"hsla\",\n HSV: \"hsv\",\n HSVA: \"hsva\"\n});\nexport function parseMode(colorValue) {\n if (typeof colorValue === \"string\") {\n if (colorValue.startsWith(\"#\")) {\n const { length } = colorValue;\n if (length === 4 || length === 7) {\n return CSSColorMode.HEX;\n }\n if (length === 5 || length === 9) {\n return CSSColorMode.HEXA;\n }\n }\n if (colorValue.startsWith(\"rgba(\")) {\n return CSSColorMode.RGBA_CSS;\n }\n if (colorValue.startsWith(\"rgb(\")) {\n return CSSColorMode.RGB_CSS;\n }\n if (colorValue.startsWith(\"hsl(\")) {\n return CSSColorMode.HSL_CSS;\n }\n if (colorValue.startsWith(\"hsla(\")) {\n return CSSColorMode.HSLA_CSS;\n }\n }\n if (typeof colorValue === \"object\") {\n if (hasChannels(colorValue, \"r\", \"g\", \"b\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"l\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"v\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;\n }\n }\n return null;\n}\nfunction hasChannels(colorObject, ...channels) {\n return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);\n}\nexport function colorEqual(value1, value2) {\n return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());\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 a,g as i}from"./p-2e1cd889.js";import{c as e}from"./p-a10dc180.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 n={frame:"frame",frameAdvancing:"frame--advancing",frameRetreating:"frame--retreating"};const o="@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}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;width:100%;overflow:hidden;position:relative}:host .frame{display:flex;flex:1 1 auto;align-items:stretch;width:100%;padding:0;margin:0;flex-direction:column;position:relative}:host ::slotted(calcite-panel){height:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance 150ms ease-in-out}:host .frame--retreating{animation:calcite-frame-retreat 150ms ease-in-out}@keyframes calcite-frame-advance{0%{--bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--bg-opacity:1;transform:translate3d(0, 0, 0)}}";let r=class{constructor(a){t(this,a);this.panelCount=0;this.flowDirection=null;this.panels=[];this.getFlowDirection=(t,a)=>{const i=t>1;const e=t&&a>1;if(!e&&!i){return null}return a<t?"retreating":"advancing"};this.updateFlowProps=()=>{const{panels:t}=this;const a=Array.from(this.el.querySelectorAll("calcite-panel"));const i=t.length;const e=a.length;const n=a[e-1];const o=a[e-2];if(e&&n){a.forEach((t=>{t.showBackButton=e>1;t.hidden=t!==n}))}if(o){o.menuOpen=false}this.panels=a;if(i!==e){const t=this.getFlowDirection(i,e);this.panelCount=e;this.flowDirection=t}};this.panelItemMutationObserver=e("mutation",this.updateFlowProps)}async back(){const t=this.el.querySelector("calcite-panel:last-child");if(!t){return}const a=t.beforeBack?t.beforeBack:()=>Promise.resolve();return a.call(t).then((()=>{t.remove();return t}))}connectedCallback(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.updateFlowProps()}disconnectedCallback(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.disconnect()}handleCalcitePanelBackClick(){this.back()}render(){const{flowDirection:t,panelCount:i}=this;const e={[n.frame]:true,[n.frameAdvancing]:t==="advancing",[n.frameRetreating]:t==="retreating"};return a("div",{class:e,key:i},a("slot",null))}get el(){return i(this)}};r.style=o;export{r as calcite_flow};
|
11
|
-
//# sourceMappingURL=p-ad54d2e2.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-flow/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-flow/calcite-flow.css?tag=calcite-flow&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-flow/calcite-flow.js"],"names":["CSS","frame","frameAdvancing","frameRetreating","calciteFlowCss","CalciteFlow","[object Object]","hostRef","this","panelCount","flowDirection","panels","getFlowDirection","oldPanelCount","newPanelCount","allowRetreatingDirection","allowAdvancingDirection","updateFlowProps","newPanels","Array","from","el","querySelectorAll","length","activePanel","previousPanel","forEach","panelNode","showBackButton","hidden","menuOpen","panelItemMutationObserver","createObserver","lastItem","querySelector","beforeBack","Promise","resolve","call","then","remove","_a","observe","childList","subtree","disconnect","back","frameDirectionClasses","h","class","key"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,MAAO,QACPC,eAAgB,mBAChBC,gBAAiB,qBCPnB,MAAMC,EAAiB,yvDCUVC,EAAW,MACtBC,YAAAC,aACEC,KAAKC,WAAa,EAClBD,KAAKE,cAAgB,KACrBF,KAAKG,OAAS,GACdH,KAAKI,iBAAmB,CAACC,EAAeC,KACtC,MAAMC,EAA2BF,EAAgB,EACjD,MAAMG,EAA0BH,GAAiBC,EAAgB,EACjE,IAAKE,IAA4BD,EAA0B,CACzD,OAAO,KAET,OAAOD,EAAgBD,EAAgB,aAAe,aAExDL,KAAKS,gBAAkB,KACrB,MAAMN,OAAEA,GAAWH,KACnB,MAAMU,EAAYC,MAAMC,KAAKZ,KAAKa,GAAGC,iBAAiB,kBACtD,MAAMT,EAAgBF,EAAOY,OAC7B,MAAMT,EAAgBI,EAAUK,OAChC,MAAMC,EAAcN,EAAUJ,EAAgB,GAC9C,MAAMW,EAAgBP,EAAUJ,EAAgB,GAChD,GAAIA,GAAiBU,EAAa,CAChCN,EAAUQ,SAASC,IACjBA,EAAUC,eAAiBd,EAAgB,EAC3Ca,EAAUE,OAASF,IAAcH,KAGrC,GAAIC,EAAe,CACjBA,EAAcK,SAAW,MAE3BtB,KAAKG,OAASO,EACd,GAAIL,IAAkBC,EAAe,CACnC,MAAMJ,EAAgBF,KAAKI,iBAAiBC,EAAeC,GAC3DN,KAAKC,WAAaK,EAClBN,KAAKE,cAAgBA,IAGzBF,KAAKuB,0BAA4BC,EAAe,WAAYxB,KAAKS,iBAUnEX,aACE,MAAM2B,EAAWzB,KAAKa,GAAGa,cAAc,4BACvC,IAAKD,EAAU,CACb,OAEF,MAAME,EAAaF,EAASE,WACxBF,EAASE,WACT,IAAMC,QAAQC,UAClB,OAAOF,EAAWG,KAAKL,GAAUM,MAAK,KACpCN,EAASO,SACT,OAAOP,KAQX3B,oBACE,IAAImC,GACHA,EAAKjC,KAAKuB,6BAA+B,MAAQU,SAAY,OAAS,EAAIA,EAAGC,QAAQlC,KAAKa,GAAI,CAAEsB,UAAW,KAAMC,QAAS,OAC3HpC,KAAKS,kBAEPX,uBACE,IAAImC,GACHA,EAAKjC,KAAKuB,6BAA+B,MAAQU,SAAY,OAAS,EAAIA,EAAGI,aAOhFvC,8BACEE,KAAKsC,OAOPxC,SACE,MAAMI,cAAEA,EAAaD,WAAEA,GAAeD,KACtC,MAAMuC,EAAwB,CAC5BzC,CAACN,EAAIC,OAAQ,KACbK,CAACN,EAAIE,gBAAiBQ,IAAkB,YACxCJ,CAACN,EAAIG,iBAAkBO,IAAkB,cAE3C,OAAQsC,EAAE,MAAO,CAAEC,MAAOF,EAAuBG,IAAKzC,GACpDuC,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 frame: \"frame\",\n frameAdvancing: \"frame--advancing\",\n frameRetreating: \"frame--retreating\"\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:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\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: 1 1 auto;\n align-items: stretch;\n background-color: transparent;\n width: 100%;\n overflow: hidden;\n position: relative;\n}\n\n:host .frame {\n display: flex;\n flex: 1 1 auto;\n align-items: stretch;\n width: 100%;\n padding: 0;\n margin: 0;\n flex-direction: column;\n position: relative;\n}\n\n:host ::slotted(calcite-panel) {\n height: 100%;\n}\n\n:host ::slotted(.calcite-match-height:last-child) {\n display: flex;\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n:host .frame--advancing {\n animation: calcite-frame-advance 150ms ease-in-out;\n}\n\n:host .frame--retreating {\n animation: calcite-frame-retreat 150ms ease-in-out;\n}\n\n@keyframes calcite-frame-advance {\n 0% {\n --bg-opacity: 0.5;\n transform: translate3d(50px, 0, 0);\n }\n\n 100% {\n --bg-opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes calcite-frame-retreat {\n 0% {\n --bg-opacity: 0.5;\n transform: translate3d(-50px, 0, 0);\n }\n\n 100% {\n --bg-opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Listen, Method, State, h } from \"@stencil/core\";\nimport { CSS } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\n/**\n * @slot - A slot for adding `calcite-panel`s to the flow.\n */\nexport class CalciteFlow {\n constructor() {\n this.panelCount = 0;\n this.flowDirection = null;\n this.panels = [];\n this.getFlowDirection = (oldPanelCount, newPanelCount) => {\n const allowRetreatingDirection = oldPanelCount > 1;\n const allowAdvancingDirection = oldPanelCount && newPanelCount > 1;\n if (!allowAdvancingDirection && !allowRetreatingDirection) {\n return null;\n }\n return newPanelCount < oldPanelCount ? \"retreating\" : \"advancing\";\n };\n this.updateFlowProps = () => {\n const { panels } = this;\n const newPanels = Array.from(this.el.querySelectorAll(\"calcite-panel\"));\n const oldPanelCount = panels.length;\n const newPanelCount = newPanels.length;\n const activePanel = newPanels[newPanelCount - 1];\n const previousPanel = newPanels[newPanelCount - 2];\n if (newPanelCount && activePanel) {\n newPanels.forEach((panelNode) => {\n panelNode.showBackButton = newPanelCount > 1;\n panelNode.hidden = panelNode !== activePanel;\n });\n }\n if (previousPanel) {\n previousPanel.menuOpen = false;\n }\n this.panels = newPanels;\n if (oldPanelCount !== newPanelCount) {\n const flowDirection = this.getFlowDirection(oldPanelCount, newPanelCount);\n this.panelCount = newPanelCount;\n this.flowDirection = flowDirection;\n }\n };\n this.panelItemMutationObserver = createObserver(\"mutation\", this.updateFlowProps);\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Removes the currently active `calcite-panel`.\n */\n async back() {\n const lastItem = this.el.querySelector(\"calcite-panel:last-child\");\n if (!lastItem) {\n return;\n }\n const beforeBack = lastItem.beforeBack\n ? lastItem.beforeBack\n : () => Promise.resolve();\n return beforeBack.call(lastItem).then(() => {\n lastItem.remove();\n return lastItem;\n });\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n (_a = this.panelItemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.updateFlowProps();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.panelItemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n handleCalcitePanelBackClick() {\n this.back();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { flowDirection, panelCount } = this;\n const frameDirectionClasses = {\n [CSS.frame]: true,\n [CSS.frameAdvancing]: flowDirection === \"advancing\",\n [CSS.frameRetreating]: flowDirection === \"retreating\"\n };\n return (h(\"div\", { class: frameDirectionClasses, key: panelCount },\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-flow\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-flow.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-flow.css\"]\n }; }\n static get states() { return {\n \"panelCount\": {},\n \"flowDirection\": {},\n \"panels\": {}\n }; }\n static get methods() { return {\n \"back\": {\n \"complexType\": {\n \"signature\": \"() => Promise<HTMLCalcitePanelElement>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"HTMLCalcitePanelElement\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<HTMLCalcitePanelElement>\"\n },\n \"docs\": {\n \"text\": \"Removes the currently active `calcite-panel`.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"calcitePanelBackClick\",\n \"method\": \"handleCalcitePanelBackClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\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 a,h as i,H as t,g as n}from"./p-2e1cd889.js";import{C as e,c as o}from"./p-73e2d13f.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 c={heading:"heading",container:"container"};const l=3;const r="@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}.heading{font-family:var(--calcite-sans-family);background-color:var(--calcite-ui-foreground-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);margin:0;padding:0.75rem;color:var(--calcite-ui-text-2);display:flex;flex:1 1 0%}.container{width:100%;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}::slotted(calcite-list-item-group){padding-left:0.5rem}";let s=class{constructor(i){a(this,i)}render(){var a;const{el:n,heading:r,headingLevel:s}=this;const m=(a=n.closest("calcite-list, calcite-list-item-group"))===null||a===void 0?void 0:a.headingLevel;const d=m?o(m+1):null;const p=s||d||l;return i(t,null,r?i(e,{class:c.heading,level:p},r):null,i("div",{class:c.container,role:"group"},i("slot",null)))}get el(){return n(this)}};s.style=r;export{s as calcite_list_item_group};
|
11
|
-
//# sourceMappingURL=p-adf3704d.entry.js.map
|