@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 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/calcite-rating.css?tag=calcite-rating&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/calcite-rating.js"],"names":["TEXT","rating","stars","calciteRatingCss","CalciteRating","[object Object]","hostRef","this","scale","value","readOnly","disabled","showChip","intlRating","intlStars","required","guid","connectLabel","connectForm","disconnectLabel","disconnectForm","hasFocus","map","i","selected","average","hovered","hoverValue","fraction","partial","focused","focusValue","h","class","wrapper","star","htmlFor","onMouseOver","aria-hidden","icon","style","width","replace","checked","id","name","onChange","updateValue","onFocus","ref","el","inputFocusRef","type","count","dir","getElementDir","Fragment","fieldset","CSS_UTILITY","rtl","onBlur","onMouseLeave","onTouchEnd","renderStars","toString","HiddenFormInputSlot","component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C3DX,GAASrB,EAAE,OAAQ,CAAEC,MAAO,iBAC5B,IAAKoB,IAAU,MAAQA,SAAe,OAAS,EAC/CA,EAAMW,WACN,MAAS,KACbhC,EAAEiC,EAAqB,CAAEC,UAAW3D,QAOxCF,eACEE,KAAK4D,WAEP9D,YAAYI,GACVF,KAAKE,MAAQA,EACbF,KAAK6D,oBAAoBC,KAAK,CAAE5D,MAAAA,IAQlCJ,iBACEE,KAAK4C,cAAcmB","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 TEXT = {\n rating: \"Rating\",\n stars: \"Stars: ${num}\"\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/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-rating-spacing-unit: the amount of left/right margin between each rating star\n*/\n\n:host {\n display: flex;\n align-items: center;\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:host([scale=s]) {\n height: 1.5rem;\n --calcite-rating-spacing-unit: 0.25rem;\n}\n\n:host([scale=m]) {\n height: 2rem;\n --calcite-rating-spacing-unit: 0.5rem;\n}\n\n:host([scale=l]) {\n height: 2.75rem;\n --calcite-rating-spacing-unit: 0.75rem;\n}\n\n:host([disabled]) {\n pointer-events: none;\n opacity: 0.5;\n}\n\n:host([read-only]) {\n pointer-events: none;\n}\n\n.fieldset {\n padding: 0;\n margin: 0;\n border-width: 0;\n display: flex;\n}\n\n.wrapper {\n display: inline-block;\n margin-right: var(--calcite-rating-spacing-unit);\n}\n\n.calcite--rtl .wrapper {\n margin-right: 0;\n margin-left: var(--calcite-rating-spacing-unit);\n}\n\n.star {\n position: relative;\n display: flex;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n color: var(--calcite-ui-border-input);\n transition: 150ms ease-in-out;\n transform: scale(1);\n}\n\n.star:active {\n transform: scale(1.1);\n}\n\n.focused {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.average,\n.fraction {\n color: var(--calcite-ui-warning);\n}\n\n.hovered,\n.selected,\n:host([read-only]) .average,\n:host([read-only]) .fraction {\n color: var(--calcite-ui-brand);\n}\n\n.hovered:not(.selected) {\n transform: scale(0.9);\n}\n\n:host .fraction {\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n top: 0;\n left: 0;\n transition: 150ms ease-in-out;\n}\n\n.calcite--rtl .fraction {\n right: 0;\n left: auto;\n}\n\ncalcite-chip {\n cursor: default;\n pointer-events: none;\n}\n\n.number--average {\n font-weight: var(--calcite-font-weight-bold);\n}\n\n.number--count {\n color: var(--calcite-ui-text-2);\n font-style: italic;\n}\n\n.number--count:not(:first-child) {\n margin-left: var(--calcite-rating-spacing-unit);\n}\n\n.calcite--rtl .number--count:not(:first-child) {\n margin-left: 0;\n margin-right: var(--calcite-rating-spacing-unit);\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\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, Event, Fragment, h, Listen, Method, Prop, State } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { guid } from \"../../utils/guid\";\nimport { connectLabel, disconnectLabel } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nimport { TEXT } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nexport class CalciteRating {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /** specify the scale of the component, defaults to m */\n this.scale = \"m\";\n /** the value of the rating component */\n this.value = 0;\n /** is the rating component in a selectable mode */\n this.readOnly = false;\n /** is the rating component in a selectable mode */\n this.disabled = false;\n /** Show average and count data summary chip (if available) */\n this.showChip = false;\n /** Localized string for \"Rating\" (used for aria label)\n * @default \"Rating\"\n */\n this.intlRating = TEXT.rating;\n /** Localized string for labelling each star, `${num}` in the string will be replaced by the number\n * @default \"Stars: ${num}\"\n */\n this.intlStars = TEXT.stars;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n this.guid = `calcite-ratings-${guid()}`;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n blurHandler() {\n this.hasFocus = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderStars() {\n return [1, 2, 3, 4, 5].map((i) => {\n const selected = this.value >= i;\n const average = this.average && !this.value && i <= this.average;\n const hovered = i <= this.hoverValue;\n const fraction = this.average && this.average + 1 - i;\n const partial = !this.value && !hovered && fraction > 0 && fraction < 1;\n const focused = this.hasFocus && this.focusValue === i;\n return (h(\"span\", { class: { wrapper: true } },\n h(\"label\", { class: { star: true, focused, selected, average, hovered, partial }, htmlFor: `${this.guid}-${i}`, onMouseOver: () => {\n this.hoverValue = i;\n } },\n h(\"calcite-icon\", { \"aria-hidden\": \"true\", class: \"icon\", icon: selected || average || this.readOnly ? \"star-f\" : \"star\", scale: this.scale }),\n partial && (h(\"div\", { class: \"fraction\", style: { width: `${fraction * 100}%` } },\n h(\"calcite-icon\", { icon: \"star-f\", scale: this.scale }))),\n h(\"span\", { class: \"visually-hidden\" }, this.intlStars.replace(\"${num}\", `${i}`))),\n h(\"input\", { checked: i === this.value, class: \"visually-hidden\", disabled: this.disabled || this.readOnly, id: `${this.guid}-${i}`, name: this.guid, onChange: () => this.updateValue(i), onFocus: () => {\n this.hasFocus = true;\n this.focusValue = i;\n }, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: \"radio\", value: i })));\n });\n }\n render() {\n const { intlRating, showChip, scale, count, average } = this;\n const dir = getElementDir(this.el);\n return (h(Fragment, null,\n h(\"fieldset\", { class: { fieldset: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, onBlur: () => (this.hoverValue = null), onMouseLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) },\n h(\"legend\", { class: \"visually-hidden\" }, intlRating),\n this.renderStars()),\n (count || average) && showChip ? (h(\"calcite-chip\", { class: { [CSS_UTILITY.rtl]: dir === \"rtl\" }, dir: dir, scale: scale, value: count === null || count === void 0 ? void 0 : count.toString() },\n !!average && h(\"span\", { class: \"number--average\" }, average.toString()),\n !!count && h(\"span\", { class: \"number--count\" },\n \"(\", count === null || count === void 0 ? void 0 :\n count.toString(),\n \")\"))) : null,\n h(HiddenFormInputSlot, { component: this })));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n updateValue(value) {\n this.value = value;\n this.calciteRatingChange.emit({ value });\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.inputFocusRef.focus();\n }\n static get is() { return \"calcite-rating\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-rating.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-rating.css\"]\n }; }\n static get properties() { return {\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the component, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"the value of the rating component\"\n },\n \"attribute\": \"value\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"readOnly\": {\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 rating component in a selectable mode\"\n },\n \"attribute\": \"read-only\",\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\": \"is the rating component in a selectable mode\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"showChip\": {\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\": \"Show average and count data summary chip (if available)\"\n },\n \"attribute\": \"show-chip\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"count\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass a number of previous ratings to display\"\n },\n \"attribute\": \"count\",\n \"reflect\": true\n },\n \"average\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass a cumulative average rating to display\"\n },\n \"attribute\": \"average\",\n \"reflect\": true\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 rating\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"intlRating\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Rating\\\"\"\n }],\n \"text\": \"Localized string for \\\"Rating\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-rating\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.rating\"\n },\n \"intlStars\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Stars: ${num}\\\"\"\n }],\n \"text\": \"Localized string for labelling each star, `${num}` in the string will be replaced by the number\"\n },\n \"attribute\": \"intl-stars\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.stars\"\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 }; }\n static get states() { return {\n \"hoverValue\": {},\n \"focusValue\": {},\n \"hasFocus\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteRatingChange\",\n \"name\": \"calciteRatingChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the rating value has changed.\"\n },\n \"complexType\": {\n \"original\": \"{ value: number }\",\n \"resolved\": \"{ value: number; }\",\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\": \"blur\",\n \"method\": \"blurHandler\",\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 e,c as i,h as t,F as a,g as n}from"./p-2e1cd889.js";import{H as o}from"./p-05c73b7d.js";import{b as s}from"./p-e762b2d1.js";import{C as r,c as l}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 c={container:"container",header:"header",heading:"heading",close:"close",imageFrame:"image-frame",content:"content",info:"info"};const d={close:"x"};const m={thumbnail:"thumbnail"};const h={close:"Close"};const p=o+1;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{position:relative;display:flex;flex-direction:row;margin:1rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}:host *{box-sizing:border-box}.container{padding:1rem;width:100%}:host([dismissed]),:host([dismissed]) .container{display:none}:host([selected]) .container{border-style:none;margin:0;padding: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}.header{margin-bottom:0.5rem}.header .heading{color:var(--calcite-ui-text-1);padding:0}.container[hidden]{display:none}.content{display:flex}.info{padding-top:0;padding-bottom:0;padding-left:1rem;padding-right:1rem;width:70%}.info:only-child{width:100%;padding-left:0;padding-right:0}::slotted(p){margin-top:0}::slotted(a){outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;color:var(--calcite-ui-brand)}::slotted(a:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}";let f=class{constructor(t){e(this,t);this.calciteTipDismiss=i(this,"calciteTipDismiss",7);this.dismissed=false;this.nonDismissible=false;this.selected=false;this.hideTip=()=>{this.dismissed=true;this.calciteTipDismiss.emit()}}renderHeader(){var e;const{heading:i,headingLevel:a,el:n}=this;const o=(e=n.closest("calcite-tip-manager"))===null||e===void 0?void 0:e.headingLevel;const s=o?l(o+1):null;const d=a||s||p;return i?t("header",{class:c.header},t(r,{class:c.heading,level:d},i)):null}renderDismissButton(){const{nonDismissible:e,hideTip:i,intlClose:a}=this;const n=a||h.close;return!e?t("calcite-action",{class:c.close,icon:d.close,onClick:i,scale:"l",text:n}):null}renderImageFrame(){const{el:e}=this;return s(e,m.thumbnail)?t("div",{class:c.imageFrame},t("slot",{name:m.thumbnail})):null}renderInfoNode(){return t("div",{class:c.info},t("slot",null))}renderContent(){return t("div",{class:c.content},this.renderImageFrame(),this.renderInfoNode())}render(){return t(a,null,t("article",{class:c.container},this.renderHeader(),this.renderContent()),this.renderDismissButton())}get el(){return n(this)}};f.style=g;export{f as calcite_tip};
|
11
|
-
//# sourceMappingURL=p-5c95f5ee.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tip/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tip/calcite-tip.css?tag=calcite-tip&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tip/calcite-tip.js"],"names":["CSS","container","header","heading","close","imageFrame","content","info","ICONS","SLOTS","thumbnail","TEXT","HEADING_LEVEL","PARENT_HEADING_LEVEL","calciteTipCss","CalciteTip","[object Object]","hostRef","this","dismissed","nonDismissible","selected","hideTip","calciteTipDismiss","emit","_a","headingLevel","el","parentLevel","closest","relativeLevel","constrainHeadingLevel","level","h","class","CalciteHeading","intlClose","text","icon","onClick","scale","getSlotted","name","renderImageFrame","renderInfoNode","Fragment","renderHeader","renderContent","renderDismissButton"],"mappings":";;;;;;;;;GAKO,MAAMA,EAAM,CACjBC,UAAW,YACXC,OAAQ,SACRC,QAAS,UACTC,MAAO,QACPC,WAAY,cACZC,QAAS,UACTC,KAAM,QAED,MAAMC,EAAQ,CACnBJ,MAAO,KAEF,MAAMK,EAA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B,SACE,OAAQiB,EAAEY,EAAU,KAClBZ,EAAE,UAAW,CAAEC,MAAOlC,EAAIC,WACxBiB,KAAK4B,eACL5B,KAAK6B,iBACP7B,KAAK8B","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 { HEADING_LEVEL as PARENT_HEADING_LEVEL } from \"../calcite-tip-manager/resources\";\nexport const CSS = {\n container: \"container\",\n header: \"header\",\n heading: \"heading\",\n close: \"close\",\n imageFrame: \"image-frame\",\n content: \"content\",\n info: \"info\"\n};\nexport const ICONS = {\n close: \"x\"\n};\nexport const SLOTS = {\n thumbnail: \"thumbnail\"\n};\nexport const TEXT = {\n close: \"Close\"\n};\nexport const HEADING_LEVEL = (PARENT_HEADING_LEVEL + 1);\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 position: relative;\n display: flex;\n flex-direction: row;\n margin: 1rem;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\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 line-height: 1rem;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n.container {\n padding: 1rem;\n width: 100%;\n}\n\n:host([dismissed]),\n:host([dismissed]) .container {\n display: none;\n}\n\n:host([selected]) .container {\n border-style: none;\n margin: 0;\n padding: 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\n.header {\n margin-bottom: 0.5rem;\n}\n\n.header .heading {\n color: var(--calcite-ui-text-1);\n padding: 0;\n}\n\n.container[hidden] {\n display: none;\n}\n\n.content {\n display: flex;\n}\n\n.info {\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n width: 70%;\n}\n\n.info:only-child {\n width: 100%;\n padding-left: 0;\n padding-right: 0;\n}\n\n::slotted(p) {\n margin-top: 0;\n}\n\n::slotted(a) {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n color: var(--calcite-ui-brand);\n}\n\n::slotted(a:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.image-frame {\n width: 25%;\n}\n\n.image-frame img {\n max-width: 100%;\n}\n\n::slotted(img) {\n max-width: 100%;\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, Prop, h, Fragment } from \"@stencil/core\";\nimport { CSS, ICONS, SLOTS, TEXT, HEADING_LEVEL } from \"./resources\";\nimport { getSlotted } from \"../../utils/dom\";\nimport { CalciteHeading, constrainHeadingLevel } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding text and a hyperlink.\n * @slot thumbnail - A slot for adding an HTML image element to the tip.\n */\nexport class CalciteTip {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * No longer displays the tip.\n */\n this.dismissed = false;\n /**\n * Indicates whether the tip can be dismissed.\n */\n this.nonDismissible = false;\n /**\n * The selected state of the tip if it is being used inside a `calcite-tip-manager`.\n */\n this.selected = false;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.hideTip = () => {\n this.dismissed = true;\n this.calciteTipDismiss.emit();\n };\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderHeader() {\n var _a;\n const { heading, headingLevel, el } = this;\n const parentLevel = (_a = el.closest(\"calcite-tip-manager\")) === 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 heading ? (h(\"header\", { class: CSS.header },\n h(CalciteHeading, { class: CSS.heading, level: level }, heading))) : null;\n }\n renderDismissButton() {\n const { nonDismissible, hideTip, intlClose } = this;\n const text = intlClose || TEXT.close;\n return !nonDismissible ? (h(\"calcite-action\", { class: CSS.close, icon: ICONS.close, onClick: hideTip, scale: \"l\", text: text })) : null;\n }\n renderImageFrame() {\n const { el } = this;\n return getSlotted(el, SLOTS.thumbnail) ? (h(\"div\", { class: CSS.imageFrame },\n h(\"slot\", { name: SLOTS.thumbnail }))) : null;\n }\n renderInfoNode() {\n return (h(\"div\", { class: CSS.info },\n h(\"slot\", null)));\n }\n renderContent() {\n return (h(\"div\", { class: CSS.content },\n this.renderImageFrame(),\n this.renderInfoNode()));\n }\n render() {\n return (h(Fragment, null,\n h(\"article\", { class: CSS.container },\n this.renderHeader(),\n this.renderContent()),\n this.renderDismissButton()));\n }\n static get is() { return \"calcite-tip\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-tip.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tip.css\"]\n }; }\n static get properties() { return {\n \"dismissed\": {\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\": \"No longer displays the tip.\"\n },\n \"attribute\": \"dismissed\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"nonDismissible\": {\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\": \"Indicates whether the tip can be dismissed.\"\n },\n \"attribute\": \"non-dismissible\",\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 of the tip.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The selected state of the tip if it is being used inside a `calcite-tip-manager`.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlClose\": {\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\": \"Alternate text for closing the tip.\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteTipDismiss\",\n \"name\": \"calciteTipDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the component has been dismissed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\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,c as i,h as a,g as n}from"./p-2e1cd889.js";import{S as e}from"./p-41c2e1cc.js";import{c as s}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 o={sortItem:"sort-item",container:"container",containerHorizontal:"container--horizontal",containerVertical:"container--vertical"};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}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}";let c=class{constructor(a){t(this,a);this.calciteListOrderChange=i(this,"calciteListOrderChange",7);this.handleSelector="calcite-handle";this.layout="vertical";this.disabled=false;this.loading=false;this.handleActivated=false;this.items=[];this.mutationObserver=s("mutation",(()=>{this.cleanUpDragAndDrop();this.items=Array.from(this.el.children);this.setUpDragAndDrop()}))}connectedCallback(){this.items=Array.from(this.el.children);this.setUpDragAndDrop();this.beginObserving()}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.cleanUpDragAndDrop()}calciteHandleNudgeHandler(t){var i;const a=this.items.find((i=>i.contains(t.detail.handle)||t.composedPath().includes(i)));const n=this.items.length-1;const e=this.items.indexOf(a);let s=false;let o;switch(t.detail.direction){case"up":t.preventDefault();if(e===0){s=true}else{o=e-1}break;case"down":t.preventDefault();if(e===n){o=0}else if(e===n-1){s=true}else{o=e+2}break;default:return}(i=this.mutationObserver)===null||i===void 0?void 0:i.disconnect();if(s){a.parentElement.appendChild(a)}else{a.parentElement.insertBefore(a,this.items[o])}this.items=Array.from(this.el.children);t.detail.handle.activated=true;t.detail.handle.setFocus();this.beginObserving()}setUpDragAndDrop(){this.cleanUpDragAndDrop();const t={dataIdAttr:"id",group:this.group,handle:this.handleSelector,onUpdate:()=>{this.items=Array.from(this.el.children);this.calciteListOrderChange.emit()},onStart:()=>{var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()},onEnd:()=>{this.beginObserving()}};if(this.dragSelector){t.draggable=this.dragSelector}this.sortable=e.create(this.el,t)}cleanUpDragAndDrop(){var t;(t=this.sortable)===null||t===void 0?void 0:t.destroy();this.sortable=null}beginObserving(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})}render(){const{layout:t}=this;const i=t==="horizontal"||false;return a("div",{class:{[o.container]:true,[o.containerVertical]:!i,[o.containerHorizontal]:i}},a("slot",null))}get el(){return n(this)}};c.style=r;export{c as calcite_sortable_list};
|
11
|
-
//# sourceMappingURL=p-606933f1.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-sortable-list/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css?tag=calcite-sortable-list&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js"],"names":["CSS","sortItem","container","containerHorizontal","containerVertical","calciteSortableListCss","CalciteSortableList","[object Object]","hostRef","this","handleSelector","layout","disabled","loading","handleActivated","items","mutationObserver","createObserver","cleanUpDragAndDrop","Array","from","el","children","setUpDragAndDrop","beginObserving","_a","disconnect","event","find","item","contains","detail","handle","composedPath","includes","lastIndex","length","startingIndex","indexOf","appendInstead","buddyIndex","direction","preventDefault","parentElement","appendChild","insertBefore","activated","setFocus","options","dataIdAttr","group","onUpdate","calciteListOrderChange","emit","onStart","onEnd","dragSelector","draggable","sortable","Sortable","create","destroy","observe","childList","subtree","horizontal","h","class"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,SAAU,YACVC,UAAW,YACXC,oBAAqB,wBACrBC,kBAAmB,uBCRrB,MAAMC,EAAyB,m6BCWlBC,EAAmB,MAC9BC,YAAAC,4EAIEC,KAAKC,eAAiB,iBAItBD,KAAKE,OAAS,WAIdF,KAAKG,SAAW,MAIhBH,KAAKI,QAAU,MACfJ,KAAKK,gBAAkB,MACvBL,KAAKM,MAAQ,GACbN,KAAKO,iBAAmBC,EAAe,YAAY,KACjDR,KAAKS,qBACLT,KAAKM,MAAQI,MAAMC,KAAKX,KAAKY,GAAGC,UAChCb,KAAKc,sBAQThB,oBACEE,KAAKM,MAAQI,MAAMC,KAAKX,KAAKY,GAAGC,UAChCb,KAAKc,mBACLd,KAAKe,iBAEPjB,uBACE,IAAIkB,GACHA,EAAKhB,KAAKO,oBAAsB,MAAQS,SAAY,OAAS,EAAIA,EAAGC,aACrEjB,KAAKS,qBAEPX,0BAA0BoB,GACxB,IAAIF,EACJ,MAAMxB,EAAWQ,KAAKM,MAAMa,MAAMC,GACzBA,EAAKC,SAASH,EAAMI,OAAOC,SAAWL,EAAMM,eAAeC,SAASL,KAE7E,MAAMM,EAAY1B,KAAKM,MAAMqB,OAAS,EACtC,MAAMC,EAAgB5B,KAAKM,MAAMuB,QAAQrC,GACzC,IAAIsC,EAAgB,MACpB,IAAIC,EACJ,OAAQb,EAAMI,OAAOU,WACnB,IAAK,KACHd,EAAMe,iBACN,GAAIL,IAAkB,EAAG,CACvBE,EAAgB,SAEb,CACHC,EAAaH,EAAgB,EAE/B,MACF,IAAK,OACHV,EAAMe,iBACN,GAAIL,IAAkBF,EAAW,CAC/BK,EAAa,OAEV,GAAIH,IAAkBF,EAAY,EAAG,CAC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,EAAIG,qBAAsB8D,IAE7BC,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 sortItem: \"sort-item\",\n container: \"container\",\n containerHorizontal: \"container--horizontal\",\n containerVertical: \"container--vertical\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n}\n\n.container {\n display: flex;\n flex: 1 1 auto;\n}\n\n.container--vertical {\n flex-direction: column;\n}\n\n.container--horizontal {\n flex-direction: row;\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 Sortable from \"sortablejs\";\nimport { Component, Element, Event, Listen, Prop, State, h } from \"@stencil/core\";\nimport { createObserver } from \"../../utils/observers\";\nimport { CSS } from \"./resources\";\n/**\n * @slot - A slot for adding sortable items.\n */\nexport class CalciteSortableList {\n constructor() {\n /**\n * The selector for the handle elements.\n */\n this.handleSelector = \"calcite-handle\";\n /**\n * Indicates the horizontal or vertical orientation of the component.\n */\n this.layout = \"vertical\";\n /**\n * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\n */\n this.disabled = false;\n /**\n * When true, content is waiting to be loaded. This state shows a busy indicator.\n */\n this.loading = false;\n this.handleActivated = false;\n this.items = [];\n this.mutationObserver = createObserver(\"mutation\", () => {\n this.cleanUpDragAndDrop();\n this.items = Array.from(this.el.children);\n this.setUpDragAndDrop();\n });\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n this.items = Array.from(this.el.children);\n this.setUpDragAndDrop();\n this.beginObserving();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n this.cleanUpDragAndDrop();\n }\n calciteHandleNudgeHandler(event) {\n var _a;\n const sortItem = this.items.find((item) => {\n return item.contains(event.detail.handle) || event.composedPath().includes(item);\n });\n const lastIndex = this.items.length - 1;\n const startingIndex = this.items.indexOf(sortItem);\n let appendInstead = false;\n let buddyIndex;\n switch (event.detail.direction) {\n case \"up\":\n event.preventDefault();\n if (startingIndex === 0) {\n appendInstead = true;\n }\n else {\n buddyIndex = startingIndex - 1;\n }\n break;\n case \"down\":\n event.preventDefault();\n if (startingIndex === lastIndex) {\n buddyIndex = 0;\n }\n else if (startingIndex === lastIndex - 1) {\n appendInstead = true;\n }\n else {\n buddyIndex = startingIndex + 2;\n }\n break;\n default:\n return;\n }\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n if (appendInstead) {\n sortItem.parentElement.appendChild(sortItem);\n }\n else {\n sortItem.parentElement.insertBefore(sortItem, this.items[buddyIndex]);\n }\n this.items = Array.from(this.el.children);\n event.detail.handle.activated = true;\n event.detail.handle.setFocus();\n this.beginObserving();\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n setUpDragAndDrop() {\n this.cleanUpDragAndDrop();\n const options = {\n dataIdAttr: \"id\",\n group: this.group,\n handle: this.handleSelector,\n // Changed sorting within list\n onUpdate: () => {\n this.items = Array.from(this.el.children);\n this.calciteListOrderChange.emit();\n },\n // Element dragging started\n onStart: () => {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n },\n // Element dragging ended\n onEnd: () => {\n this.beginObserving();\n }\n };\n if (this.dragSelector) {\n options.draggable = this.dragSelector;\n }\n this.sortable = Sortable.create(this.el, options);\n }\n cleanUpDragAndDrop() {\n var _a;\n (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();\n this.sortable = null;\n }\n beginObserving() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { layout } = this;\n const horizontal = layout === \"horizontal\" || false;\n return (h(\"div\", { class: {\n [CSS.container]: true,\n [CSS.containerVertical]: !horizontal,\n [CSS.containerHorizontal]: horizontal\n } },\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-sortable-list\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-sortable-list.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-sortable-list.css\"]\n }; }\n static get properties() { return {\n \"dragSelector\": {\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\": \"Specifies which items inside the element should be draggable.\"\n },\n \"attribute\": \"drag-selector\",\n \"reflect\": false\n },\n \"group\": {\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 list's group identifier.\\n\\nTo drag elements from one list into another, both lists must have the same group value.\"\n },\n \"attribute\": \"group\",\n \"reflect\": false\n },\n \"handleSelector\": {\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 selector for the handle elements.\"\n },\n \"attribute\": \"handle-selector\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"calcite-handle\\\"\"\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\": \"Indicates the horizontal or vertical orientation of the component.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"vertical\\\"\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"loading\": {\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, content is waiting to be loaded. This state shows a busy indicator.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n }; }\n static get states() { return {\n \"handleActivated\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteListOrderChange\",\n \"name\": \"calciteListOrderChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the order of the list has changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"calciteHandleNudge\",\n \"method\": \"calciteHandleNudgeHandler\",\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,c as e,h as i,g as o}from"./p-2e1cd889.js";import{S as a}from"./p-85cf288c.js";import{s as n,a as c,b as s,C as l}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 r={close:"Close"};const m={title:"title",message:"message",link:"link",actionsEnd:"actions-end"};const g={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"};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([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=s]) ::slotted(calcite-link){font-size:var(--calcite-font-size--2);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=m]) ::slotted(calcite-link){font-size:var(--calcite-font-size--1);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-1);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([scale=l]) ::slotted(calcite-link){font-size:var(--calcite-font-size-0);line-height:1.375;margin-top:0.125rem;margin-bottom:0.125rem}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{display:none;margin-left:auto;margin-right:auto;max-width:100%;align-items:center;width:var(--calcite-notice-width)}.container{display:none;text-align:left;margin-top:0;margin-bottom:0;box-sizing:border-box;width:100%;opacity:0;pointer-events:none;background-color:var(--calcite-ui-foreground-1);max-height:0;transition:150ms ease-in-out;border-left:0px solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.notice-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host{display:flex}:host([active]) .container{display:flex;box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);align-items:center;opacity:1;max-height:100%;border-width:2px;pointer-events:auto}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){display:inline;margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-right:var(--calcite-notice-spacing-token-small)}.calcite--rtl slot[name=message]::slotted(*),.calcite--rtl *::slotted([slot=message]){margin-right:0;margin-left:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);flex:0 0 auto;transition:all 0.15s ease-in-out;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;overflow-wrap:break-word;flex:1 1 0;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small) 0}.notice-content:first-of-type:not(:only-child){padding-left:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);flex:0 0 auto;transition:all 0.15s ease-in-out}.notice-close{display:flex;align-items:center;align-self:stretch;background-color:transparent;border-style:none;outline:2px solid transparent;outline-offset:2px;cursor:pointer;color:var(--calcite-ui-text-3);box-sizing:border-box;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);flex:0 0 auto;transition:all 0.15s ease-in-out;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.notice-close:active{background-color:var(--calcite-ui-foreground-3)}.actions-end{display:flex;align-self:stretch}.calcite--rtl{text-align:right;border-left:none;border-right:0px solid}.calcite--rtl .notice-content{padding:var(--calcite-notice-spacing-token-small) 0 var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small)}.calcite--rtl .notice-content:first-of-type:not(:only-child){padding-right:var(--calcite-notice-spacing-token-large)}.calcite--rtl .notice-content:only-of-type{padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large)}:host([color=blue]) .container{border-color:var(--calcite-ui-brand)}:host([color=blue]) .container .notice-icon{color:var(--calcite-ui-brand)}:host([color=red]) .container{border-color:var(--calcite-ui-danger)}:host([color=red]) .container .notice-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .notice-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-color:var(--calcite-ui-success)}:host([color=green]) .container .notice-icon{color:var(--calcite-ui-success)}";let h=class{constructor(i){t(this,i);this.calciteNoticeClose=e(this,"calciteNoticeClose",7);this.calciteNoticeOpen=e(this,"calciteNoticeOpen",7);this.active=false;this.color="blue";this.dismissible=false;this.intlClose=r.close;this.scale="m";this.width="auto";this.close=()=>{this.active=false;this.calciteNoticeClose.emit()}}updateRequestedIcon(){this.requestedIcon=n(a,this.icon,this.color)}componentWillLoad(){this.requestedIcon=n(a,this.icon,this.color)}componentDidLoad(){this.noticeLinkEl=this.el.querySelector("calcite-link")}render(){const{el:t}=this;const e=c(t);const o=i("button",{"aria-label":this.intlClose,class:g.close,onClick:this.close,ref:t=>this.closeButton=t},i("calcite-icon",{icon:"x",scale:this.scale==="l"?"m":"s"}));const a=s(t,m.actionsEnd);return i("div",{class:{[g.container]:true,[l.rtl]:e==="rtl"}},this.requestedIcon?i("div",{class:g.icon},i("calcite-icon",{icon:this.requestedIcon,scale:this.scale==="l"?"m":"s"})):null,i("div",{class:g.content},i("slot",{name:m.title}),i("slot",{name:m.message}),i("slot",{name:m.link})),a?i("div",{class:g.actionsEnd},i("slot",{name:m.actionsEnd})):null,this.dismissible?o:null)}async setFocus(){if(!this.closeButton&&!this.noticeLinkEl){return}if(this.noticeLinkEl){this.noticeLinkEl.setFocus()}else if(this.closeButton){this.closeButton.focus()}}get el(){return o(this)}static get watchers(){return{icon:["updateRequestedIcon"],color:["updateRequestedIcon"]}}};h.style=d;export{h as calcite_notice};
|
11
|
-
//# sourceMappingURL=p-62464fb3.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-notice/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-notice/calcite-notice.css?tag=calcite-notice&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-notice/calcite-notice.js"],"names":["TEXT","close","SLOTS","title","message","link","actionsEnd","CSS","container","content","icon","calciteNoticeCss","CalciteNotice","[object Object]","hostRef","this","active","color","dismissible","intlClose","scale","width","calciteNoticeClose","emit","requestedIcon","setRequestedIcon","StatusIcons","noticeLinkEl","el","querySelector","dir","getElementDir","closeButton","h","aria-label","class","onClick","ref","hasActionEnd","getSlotted","CSS_UTILITY","rtl","name","setFocus","focus"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAO,CAClBC,MAAO,SAEF,MAAMC,EAAQ,CACnBC,MAAO,QACPC,QAAS,UACTC,KAAM,OACNC,WAAY,eAEP,MAAMC,EAAM,CACjBD,WAAY,cACZL,MAAO,eACPO,UAAW,YACXC,QAAS,iBACTC,KAAM,eClBR,MAAMC,EAAmB,yvNCoBZC,EAAa,MACxBC,YAAAC,yHAOEC,KAAKC,OAAS,MAEdD,KAAKE,MAAQ,OAEbF,KAAKG,YAAc,MAInBH,KAAKI,UAAYnB,EAAKC,MAEtBc,KAAKK,MAAQ,IAEbL,KAAKM,MAAQ,OAMbN,KAAKd,MAAQ,KACXc,KAAKC,OAAS,MACdD,KAAKO,mBAAmBC,QAG5BV,sBACEE,KAAKS,cAAgBC,EAAiBC,EAAaX,KAAKL,KAAMK,KAAKE,OAOrEJ,oBACEE,KAAKS,cAAgBC,EAAiBC,EAAaX,KAAKL,KAAMK,KAAKE,OAErEJ,mBACEE,KAAKY,aAAeZ,KAAKa,GAAGC,cAAc,gBAE5ChB,SACE,MAAMe,GAAEA,GAAOb,KACf,MAAMe,EAAMC,EAAcH,GAC1B,MAAMI,EAAeC,EAAE,SAAU,CAAEC,aAAcnB,KAAKI,UAAWgB,MAAO5B,EAAIN,MAAOmC,QAASrB,KAAKd,MAAOoC,IAAMT,GAAQb,KAAKiB,YAAcJ,GACvIK,EAAE,eAAgB,CAAEvB,KAAM,IAAKU,MAAOL,KAAKK,QAAU,IAAM,IAAM,OACnE,MAAMkB,EAAeC,EAAWX,EAAI1B,EAAMI,YAC1C,OAAQ2B,EAAE,MAAO,CAAEE,MAAO,CAAEtB,CAACN,EAAIC,WAAY,KAAMK,CAAC2B,EAAYC,KAAMX,IAAQ,QAC5Ef,KAAKS,cAAiBS,EAAE,MAAO,CAAEE,MAAO5B,EAAIG,MAC1CuB,EAAE,eAAgB,CAAEvB,KAAMK,KAAKS,cAAeJ,MAAOL,KAAKK,QAAU,IAAM,IAAM,OAAW,KAC7Fa,EAAE,MAAO,CAAEE,MAAO5B,EAAIE,SACpBwB,EAAE,OAAQ,CAAES,KAAMxC,EAAMC,QACxB8B,EAAE,OAAQ,CAAES,KAAMxC,EAAME,UACxB6B,EAAE,OAAQ,CAAES,KAAMxC,EAAMG,QAC1BiC,EAAgBL,EAAE,MAAO,CAAEE,MAAO5B,EAAID,YACpC2B,EAAE,OAAQ,CAAES,KAAMxC,EAAMI,cAAkB,KAC5CS,KAAKG,YAAcc,EAAc,MAQrCnB,iBACE,IAAKE,KAAKiB,cAAgBjB,KAAKY,aAAc,CAC3C,OAEF,GAAIZ,KAAKY,aAAc,CACrBZ,KAAKY,aAAagB,gBAEf,GAAI5B,KAAKiB,YAAa,CACzBjB,KAAKiB,YAAYY","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 TEXT = {\n close: \"Close\"\n};\nexport const SLOTS = {\n title: \"title\",\n message: \"message\",\n link: \"link\",\n actionsEnd: \"actions-end\"\n};\nexport const CSS = {\n actionsEnd: \"actions-end\",\n close: \"notice-close\",\n container: \"container\",\n content: \"notice-content\",\n icon: \"notice-icon\"\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/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-notice-width: the width of the notice\n*/\n\n:host([scale=s]) {\n --calcite-notice-spacing-token-small: 0.5rem;\n --calcite-notice-spacing-token-large: 0.75rem;\n}\n\n:host([scale=s]) .container slot[name=title]::slotted(*),\n:host([scale=s]) .container *::slotted([slot=title]) {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=s]) .container slot[name=message]::slotted(*),\n:host([scale=s]) .container *::slotted([slot=message]) {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=s]) ::slotted(calcite-link) {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=s]) .notice-close {\n padding: 0.5rem;\n}\n\n:host([scale=m]) {\n --calcite-notice-spacing-token-small: 0.75rem;\n --calcite-notice-spacing-token-large: 1rem;\n}\n\n:host([scale=m]) .container slot[name=title]::slotted(*),\n:host([scale=m]) .container *::slotted([slot=title]) {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=m]) .container slot[name=message]::slotted(*),\n:host([scale=m]) .container *::slotted([slot=message]) {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=m]) ::slotted(calcite-link) {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=l]) {\n --calcite-notice-spacing-token-small: 1rem;\n --calcite-notice-spacing-token-large: 1.25rem;\n}\n\n:host([scale=l]) .container slot[name=title]::slotted(*),\n:host([scale=l]) .container *::slotted([slot=title]) {\n font-size: var(--calcite-font-size-1);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=l]) .container slot[name=message]::slotted(*),\n:host([scale=l]) .container *::slotted([slot=message]) {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([scale=l]) ::slotted(calcite-link) {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n\n:host([width=auto]) {\n --calcite-notice-width: auto;\n}\n\n:host([width=half]) {\n --calcite-notice-width: 50%;\n}\n\n:host([width=full]) {\n --calcite-notice-width: 100%;\n}\n\n:host {\n display: none;\n margin-left: auto;\n margin-right: auto;\n max-width: 100%;\n align-items: center;\n width: var(--calcite-notice-width);\n}\n\n.container {\n display: none;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n box-sizing: border-box;\n width: 100%;\n opacity: 0;\n pointer-events: none;\n background-color: var(--calcite-ui-foreground-1);\n max-height: 0;\n transition: 150ms ease-in-out;\n border-left: 0px solid;\n box-shadow: 0 0 0 0 transparent;\n}\n\n.notice-close {\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.notice-close:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n:host {\n display: flex;\n}\n\n:host([active]) .container {\n display: flex;\n box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);\n align-items: center;\n opacity: 1;\n max-height: 100%;\n border-width: 2px;\n pointer-events: auto;\n}\n\n.container slot[name=title]::slotted(*),\n.container *::slotted([slot=title]) {\n margin: 0;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n.container slot[name=message]::slotted(*),\n.container *::slotted([slot=message]) {\n display: inline;\n margin: 0;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-2);\n margin-right: var(--calcite-notice-spacing-token-small);\n}\n\n.calcite--rtl slot[name=message]::slotted(*),\n.calcite--rtl *::slotted([slot=message]) {\n margin-right: 0;\n margin-left: var(--calcite-notice-spacing-token-small);\n}\n\n.notice-content {\n box-sizing: border-box;\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);\n flex: 0 0 auto;\n transition: all 0.15s ease-in-out;\n display: flex;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n overflow-wrap: break-word;\n flex: 1 1 0;\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small) 0;\n}\n\n.notice-content:first-of-type:not(:only-child) {\n padding-left: var(--calcite-notice-spacing-token-large);\n}\n\n.notice-content:only-of-type {\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);\n}\n\n.notice-icon {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);\n flex: 0 0 auto;\n transition: all 0.15s ease-in-out;\n}\n\n.notice-close {\n display: flex;\n align-items: center;\n align-self: stretch;\n background-color: transparent;\n border-style: none;\n outline: 2px solid transparent;\n outline-offset: 2px;\n cursor: pointer;\n color: var(--calcite-ui-text-3);\n box-sizing: border-box;\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);\n flex: 0 0 auto;\n transition: all 0.15s ease-in-out;\n -webkit-appearance: none;\n}\n\n.notice-close:hover, .notice-close:focus {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n.notice-close:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n.actions-end {\n display: flex;\n align-self: stretch;\n}\n\n.calcite--rtl {\n text-align: right;\n border-left: none;\n border-right: 0px solid;\n}\n\n.calcite--rtl .notice-content {\n padding: var(--calcite-notice-spacing-token-small) 0 var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-small);\n}\n\n.calcite--rtl .notice-content:first-of-type:not(:only-child) {\n padding-right: var(--calcite-notice-spacing-token-large);\n}\n\n.calcite--rtl .notice-content:only-of-type {\n padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);\n}\n\n:host([color=blue]) .container {\n border-color: var(--calcite-ui-brand);\n}\n\n:host([color=blue]) .container .notice-icon {\n color: var(--calcite-ui-brand);\n}\n\n:host([color=red]) .container {\n border-color: var(--calcite-ui-danger);\n}\n\n:host([color=red]) .container .notice-icon {\n color: var(--calcite-ui-danger);\n}\n\n:host([color=yellow]) .container {\n border-color: var(--calcite-ui-warning);\n}\n\n:host([color=yellow]) .container .notice-icon {\n color: var(--calcite-ui-warning);\n}\n\n:host([color=green]) .container {\n border-color: var(--calcite-ui-success);\n}\n\n:host([color=green]) .container .notice-icon {\n color: var(--calcite-ui-success);\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, Method, Prop, Watch } from \"@stencil/core\";\nimport { CSS, SLOTS, TEXT } from \"./resources\";\nimport { StatusIcons } from \"../calcite-alert/interfaces\";\nimport { getElementDir, getSlotted, setRequestedIcon } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\n/** Notices are intended to be used to present users with important-but-not-crucial contextual tips or copy. Because\n * notices are displayed inline, a common use case is displaying them on page-load to present users with short hints or contextual copy.\n * They are optionally dismissible - useful for keeping track of whether or not a user has dismissed the notice. You can also choose not\n * to display a notice on page load and set the \"active\" attribute as needed to contextually provide inline messaging to users.\n */\n/**\n * @slot title - Title of the notice (optional)\n * @slot message - Main text of the notice\n * @slot link - Optional action to take from the notice (undo, try again, link to page, etc.)\n * @slot actions-end - Allows adding a `calcite-action` at the end of the notice. It is recommended to use 2 or less actions.\n */\nexport class CalciteNotice {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //---------------------------------------------------------------------------\n /** Is the notice currently active or not */\n this.active = false;\n /** Color for the notice (will apply to top border and icon) */\n this.color = \"blue\";\n /** Optionally show a button the user can click to dismiss the notice */\n this.dismissible = false;\n /** String for the close button.\n * @default \"Close\"\n */\n this.intlClose = TEXT.close;\n /** specify the scale of the notice, defaults to m */\n this.scale = \"m\";\n /** specify the width of the notice, defaults to auto */\n this.width = \"auto\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.close = () => {\n this.active = false;\n this.calciteNoticeClose.emit();\n };\n }\n updateRequestedIcon() {\n this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);\n }\n componentDidLoad() {\n this.noticeLinkEl = this.el.querySelector(\"calcite-link\");\n }\n render() {\n const { el } = this;\n const dir = getElementDir(el);\n const closeButton = (h(\"button\", { \"aria-label\": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) },\n h(\"calcite-icon\", { icon: \"x\", scale: this.scale === \"l\" ? \"m\" : \"s\" })));\n const hasActionEnd = getSlotted(el, SLOTS.actionsEnd);\n return (h(\"div\", { class: { [CSS.container]: true, [CSS_UTILITY.rtl]: dir === \"rtl\" } },\n this.requestedIcon ? (h(\"div\", { class: CSS.icon },\n h(\"calcite-icon\", { icon: this.requestedIcon, scale: this.scale === \"l\" ? \"m\" : \"s\" }))) : null,\n h(\"div\", { class: CSS.content },\n h(\"slot\", { name: SLOTS.title }),\n h(\"slot\", { name: SLOTS.message }),\n h(\"slot\", { name: SLOTS.link })),\n hasActionEnd ? (h(\"div\", { class: CSS.actionsEnd },\n h(\"slot\", { name: SLOTS.actionsEnd }))) : null,\n this.dismissible ? closeButton : null));\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n if (!this.closeButton && !this.noticeLinkEl) {\n return;\n }\n if (this.noticeLinkEl) {\n this.noticeLinkEl.setFocus();\n }\n else if (this.closeButton) {\n this.closeButton.focus();\n }\n }\n static get is() { return \"calcite-notice\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-notice.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-notice.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\": \"Is the notice currently active or not\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"StatusColor\",\n \"resolved\": \"\\\"blue\\\" | \\\"green\\\" | \\\"red\\\" | \\\"yellow\\\"\",\n \"references\": {\n \"StatusColor\": {\n \"location\": \"import\",\n \"path\": \"../calcite-alert/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Color for the notice (will apply to top border and icon)\"\n },\n \"attribute\": \"color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"blue\\\"\"\n },\n \"dismissible\": {\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\": \"Optionally show a button the user can click to dismiss the notice\"\n },\n \"attribute\": \"dismissible\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string | boolean\",\n \"resolved\": \"boolean | string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"when used as a boolean set to true, show a default recommended icon. You can\\nalso pass a calcite-ui-icon name to this prop to display a requested icon\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"intlClose\": {\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 \"name\": \"default\",\n \"text\": \"\\\"Close\\\"\"\n }],\n \"text\": \"String for the close button.\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.close\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the notice, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Width\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\" | \\\"half\\\"\",\n \"references\": {\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 notice, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteNoticeClose\",\n \"name\": \"calciteNoticeClose\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when an notice is closed\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteNoticeOpen\",\n \"name\": \"calciteNoticeOpen\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when an Notice is opened\"\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 watchers() { return [{\n \"propName\": \"icon\",\n \"methodName\": \"updateRequestedIcon\"\n }, {\n \"propName\": \"color\",\n \"methodName\": \"updateRequestedIcon\"\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 s,g as e}from"./p-2e1cd889.js";import{g as n}from"./p-7df393df.js";const a="@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:row;flex-wrap:wrap;position:relative;justify-content:space-between;align-items:stretch;width:100%;min-width:100%}:host([layout=vertical]){flex-direction:column;flex:1 1 auto}:host ::slotted(.calcite-stepper-content){display:flex;flex-direction:column;flex-wrap:wrap;width:100%;min-width:100%}";let o=class{constructor(s){t(this,s);this.calciteStepperItemChange=i(this,"calciteStepperItemChange",7);this.icon=false;this.layout="horizontal";this.numbered=false;this.scale="m";this.items=[];this.sortedItems=[]}contentWatcher(){if(this.layout==="horizontal"){if(!this.stepperContentContainer&&this.requestedContent){this.addHorizontalContentContainer()}this.updateContent(this.requestedContent)}}componentDidLoad(){if(!this.currentPosition){this.calciteStepperItemChange.emit({position:0})}}componentWillLoad(){if(this.layout==="horizontal"&&!this.stepperContentContainer){this.addHorizontalContentContainer()}}render(){return s("slot",null)}calciteStepperItemKeyEvent(t){const i=t.detail.item;const s=t.target;const e=this.itemIndex(s)===0;const a=this.itemIndex(s)===this.sortedItems.length-1;switch(n(i.key)){case"ArrowDown":case"ArrowRight":if(a){this.focusFirstItem()}else{this.focusNextItem(s)}break;case"ArrowUp":case"ArrowLeft":if(e){this.focusLastItem()}else{this.focusPrevItem(s)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}registerItem(t){const i={item:t.target,position:t.detail.position,content:t.detail.content};if(i.content&&i.item.active){this.requestedContent=i.content}if(!this.items.includes(i)){this.items.push(i)}this.sortedItems=this.sortItems()}updateItem(t){if(t.detail.content){this.requestedContent=t.detail.content}this.currentPosition=t.detail.position;this.calciteStepperItemChange.emit({position:this.currentPosition})}async nextStep(){this.currentPosition=this.currentPosition+1<this.items.length?this.currentPosition+1:this.currentPosition;this.emitChangedItem()}async prevStep(){this.currentPosition=this.currentPosition-1>=0?this.currentPosition-1:this.currentPosition;this.emitChangedItem()}async goToStep(t){this.currentPosition=t-1;this.emitChangedItem()}async startStep(){this.currentPosition=0;this.emitChangedItem()}async endStep(){this.currentPosition=this.items.length-1;this.emitChangedItem()}addHorizontalContentContainer(){this.stepperContentContainer=document.createElement("div");this.stepperContentContainer.classList.add("calcite-stepper-content");this.el.insertAdjacentElement("beforeend",this.stepperContentContainer)}emitChangedItem(){this.calciteStepperItemChange.emit({position:this.currentPosition})}focusFirstItem(){const t=this.sortedItems[0];this.focusElement(t)}focusLastItem(){const t=this.sortedItems[this.sortedItems.length-1];this.focusElement(t)}focusNextItem(t){const i=this.itemIndex(t);const s=this.sortedItems[i+1]||this.sortedItems[0];this.focusElement(s)}focusPrevItem(t){const i=this.itemIndex(t);const s=this.sortedItems[i-1]||this.sortedItems[this.sortedItems.length-1];this.focusElement(s)}itemIndex(t){return this.sortedItems.indexOf(t)}focusElement(t){const i=t;i.focus()}sortItems(){const t=Array.from(this.items).filter((t=>!t.item.disabled)).sort(((t,i)=>t.position-i.position)).map((t=>t.item));return[...Array.from(new Set(t))]}updateContent(t){this.stepperContentContainer.innerHTML="";this.stepperContentContainer.append(...t)}get el(){return e(this)}static get watchers(){return{requestedContent:["contentWatcher"]}}};o.style=a;export{o as calcite_stepper};
|
7
|
-
//# sourceMappingURL=p-6e970d4c.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-stepper/calcite-stepper.css?tag=calcite-stepper&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-stepper/calcite-stepper.js"],"names":["calciteStepperCss","CalciteStepper","[object Object]","hostRef","this","icon","layout","numbered","scale","items","sortedItems","stepperContentContainer","requestedContent","addHorizontalContentContainer","updateContent","currentPosition","calciteStepperItemChange","emit","position","h","e","item","detail","itemToFocus","target","isFirstItem","itemIndex","isLastItem","length","getKey","key","focusFirstItem","focusNextItem","focusLastItem","focusPrevItem","event","content","active","includes","push","sortItems","emitChangedItem","num","document","createElement","classList","add","el","insertAdjacentElement","firstItem","focusElement","lastItem","index","nextItem","prevItem","indexOf","focus","Array","from","filter","a","disabled","sort","b","map","Set","innerHTML","append"],"mappings":";;;;;6FAAA,MAAMA,EAAoB,2lCCSbC,EAAc,MACzBC,YAAAC,gFAOEC,KAAKC,KAAO,MAEZD,KAAKE,OAAS,aAEdF,KAAKG,SAAW,MAEhBH,KAAKI,MAAQ,IAObJ,KAAKK,MAAQ,GAEbL,KAAKM,YAAc,GAGrBR,iBACE,GAAIE,KAAKE,SAAW,aAAc,CAChC,IAAKF,KAAKO,yBAA2BP,KAAKQ,iBAAkB,CAC1DR,KAAKS,gCAEPT,KAAKU,cAAcV,KAAKQ,mBAQ5BV,mBAEE,IAAKE,KAAKW,gBAAiB,CACzBX,KAAKY,yBAAyBC,KAAK,CACjCC,SAAU,KAIhBhB,oBACE,GAAIE,KAAKE,SAAW,eAAiBF,KAAKO,wBAAyB,CACjEP,KAAKS,iCAGTX,SACE,OAAOiB,EAAE,OAAQ,MAOnBjB,2BAA2BkB,GACzB,MAAMC,EAAOD,EAAEE,OAAOD,KACtB,MAAME,EAAcH,EAAEI,OACtB,MAAMC,EAAcrB,KAAKsB,UAAUH,KAAiB,EACpD,MAAMI,EAAavB,KAAKsB,UAAUH,KAAiBnB,KAAKM,YAAYkB,OAAS,EAC7E,OAAQC,EAAOR,EAAKS,MAClB,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UC,IAAI,2BAC3C1C,KAAK2C,GAAGC,sBAAsB,YAAa5C,KAAKO,yBAElDT,kBACEE,KAAKY,yBAAyBC,KAAK,CACjCC,SAAUd,KAAKW,kBAGnBb,iBACE,MAAM+C,EAAY7C,KAAKM,YAAY,GACnCN,KAAK8C,aAAaD,GAEpB/C,gBACE,MAAMiD,EAAW/C,KAAKM,YAAYN,KAAKM,YAAYkB,OAAS,GAC5DxB,KAAK8C,aAAaC,GAEpBjD,cAAckB,GACZ,MAAMgC,EAAQhD,KAAKsB,UAAUN,GAC7B,MAAMiC,EAAWjD,KAAKM,YAAY0C,EAAQ,IAAMhD,KAAKM,YAAY,GACjEN,KAAK8C,aAAaG,GAEpBnD,cAAckB,GACZ,MAAMgC,EAAQhD,KAAKsB,UAAUN,GAC7B,MAAMkC,EAAWlD,KAAKM,YAAY0C,EAAQ,IAAMhD,KAAKM,YAAYN,KAAKM,YAAYkB,OAAS,GAC3FxB,KAAK8C,aAAaI,GAEpBpD,UAAUkB,GACR,OAAOhB,KAAKM,YAAY6C,QAAQnC,GAElClB,aAAamB,GACX,MAAMG,EAASH,EACfG,EAAOgC,QAETtD,YACE,MAAMO,EAAQgD,MAAMC,KAAKtD,KAAKK,OAC3BkD,QAAQC,IAAOA,EAAEvC,KAAKwC,WACtBC,MAAK,CAACF,EAAGG,IAAMH,EAAE1C,SAAW6C,EAAE7C,WAC9B8C,KAAKJ,GAAMA,EAAEvC,OAChB,MAAO,IAAIoC,MAAMC,KAAK,IAAIO,IAAIxD,KAEhCP,cAAckC,GACZhC,KAAKO,wBAAwBuD,UAAY,GACzC9D,KAAKO,wBAAwBwD,UAAU/B","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 flex-direction: row;\n flex-wrap: wrap;\n position: relative;\n justify-content: space-between;\n align-items: stretch;\n width: 100%;\n min-width: 100%;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\n flex: 1 1 auto;\n}\n\n:host ::slotted(.calcite-stepper-content) {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n width: 100%;\n min-width: 100%;\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, Listen, Method, Prop, Watch } from \"@stencil/core\";\nimport { getKey } from \"../../utils/key\";\n/**\n * @slot - A slot for adding `calcite-stepper-item`s.\n */\nexport class CalciteStepper {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** optionally display a status icon next to the step title */\n this.icon = false;\n /** specify the layout of stepper, defaults to horizontal */\n this.layout = \"horizontal\";\n /** optionally display the number next to the step title */\n this.numbered = false;\n /** specify the scale of stepper, defaults to m */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n /** created list of Stepper items */\n this.items = [];\n /** sorted list of Stepper items */\n this.sortedItems = [];\n }\n // watch for removal of disabled to register step\n contentWatcher() {\n if (this.layout === \"horizontal\") {\n if (!this.stepperContentContainer && this.requestedContent) {\n this.addHorizontalContentContainer();\n }\n this.updateContent(this.requestedContent);\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidLoad() {\n // if no stepper items are set as active, default to the first one\n if (!this.currentPosition) {\n this.calciteStepperItemChange.emit({\n position: 0\n });\n }\n }\n componentWillLoad() {\n if (this.layout === \"horizontal\" && !this.stepperContentContainer) {\n this.addHorizontalContentContainer();\n }\n }\n render() {\n return h(\"slot\", null);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n calciteStepperItemKeyEvent(e) {\n const item = e.detail.item;\n const itemToFocus = e.target;\n const isFirstItem = this.itemIndex(itemToFocus) === 0;\n const isLastItem = this.itemIndex(itemToFocus) === this.sortedItems.length - 1;\n switch (getKey(item.key)) {\n case \"ArrowDown\":\n case \"ArrowRight\":\n if (isLastItem) {\n this.focusFirstItem();\n }\n else {\n this.focusNextItem(itemToFocus);\n }\n break;\n case \"ArrowUp\":\n case \"ArrowLeft\":\n if (isFirstItem) {\n this.focusLastItem();\n }\n else {\n this.focusPrevItem(itemToFocus);\n }\n break;\n case \"Home\":\n this.focusFirstItem();\n break;\n case \"End\":\n this.focusLastItem();\n break;\n }\n }\n registerItem(event) {\n const item = {\n item: event.target,\n position: event.detail.position,\n content: event.detail.content\n };\n if (item.content && item.item.active) {\n this.requestedContent = item.content;\n }\n if (!this.items.includes(item)) {\n this.items.push(item);\n }\n this.sortedItems = this.sortItems();\n }\n updateItem(event) {\n if (event.detail.content) {\n this.requestedContent = event.detail.content;\n }\n this.currentPosition = event.detail.position;\n this.calciteStepperItemChange.emit({\n position: this.currentPosition\n });\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** set the next step as active */\n async nextStep() {\n this.currentPosition =\n this.currentPosition + 1 < this.items.length\n ? this.currentPosition + 1\n : this.currentPosition;\n this.emitChangedItem();\n }\n /** set the previous step as active */\n async prevStep() {\n this.currentPosition =\n this.currentPosition - 1 >= 0 ? this.currentPosition - 1 : this.currentPosition;\n this.emitChangedItem();\n }\n /** set the requested step as active */\n async goToStep(num) {\n this.currentPosition = num - 1;\n this.emitChangedItem();\n }\n /** set the first step as active */\n async startStep() {\n this.currentPosition = 0;\n this.emitChangedItem();\n }\n /** set the last step as active */\n async endStep() {\n this.currentPosition = this.items.length - 1;\n this.emitChangedItem();\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n addHorizontalContentContainer() {\n this.stepperContentContainer = document.createElement(\"div\");\n this.stepperContentContainer.classList.add(\"calcite-stepper-content\");\n this.el.insertAdjacentElement(\"beforeend\", this.stepperContentContainer);\n }\n emitChangedItem() {\n this.calciteStepperItemChange.emit({\n position: this.currentPosition\n });\n }\n focusFirstItem() {\n const firstItem = this.sortedItems[0];\n this.focusElement(firstItem);\n }\n focusLastItem() {\n const lastItem = this.sortedItems[this.sortedItems.length - 1];\n this.focusElement(lastItem);\n }\n focusNextItem(e) {\n const index = this.itemIndex(e);\n const nextItem = this.sortedItems[index + 1] || this.sortedItems[0];\n this.focusElement(nextItem);\n }\n focusPrevItem(e) {\n const index = this.itemIndex(e);\n const prevItem = this.sortedItems[index - 1] || this.sortedItems[this.sortedItems.length - 1];\n this.focusElement(prevItem);\n }\n itemIndex(e) {\n return this.sortedItems.indexOf(e);\n }\n focusElement(item) {\n const target = item;\n target.focus();\n }\n sortItems() {\n const items = Array.from(this.items)\n .filter((a) => !a.item.disabled)\n .sort((a, b) => a.position - b.position)\n .map((a) => a.item);\n return [...Array.from(new Set(items))];\n }\n updateContent(content) {\n this.stepperContentContainer.innerHTML = \"\";\n this.stepperContentContainer.append(...content);\n }\n static get is() { return \"calcite-stepper\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-stepper.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-stepper.css\"]\n }; }\n static get properties() { return {\n \"icon\": {\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\": \"optionally display a status icon next to the step title\"\n },\n \"attribute\": \"icon\",\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 stepper, defaults to horizontal\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"numbered\": {\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\": \"optionally display the number next to the step title\"\n },\n \"attribute\": \"numbered\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of stepper, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"requestedContent\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLElement[] | NodeListOf<any>\",\n \"resolved\": \"HTMLElement[] | NodeListOf<any>\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n },\n \"NodeListOf\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n }\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteStepperItemChange\",\n \"name\": \"calciteStepperItemChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"This event fires when the active stepper item has changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"nextStep\": {\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\": \"set the next step as active\",\n \"tags\": []\n }\n },\n \"prevStep\": {\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\": \"set the previous step as active\",\n \"tags\": []\n }\n },\n \"goToStep\": {\n \"complexType\": {\n \"signature\": \"(num: number) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"set the requested step as active\",\n \"tags\": []\n }\n },\n \"startStep\": {\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\": \"set the first step as active\",\n \"tags\": []\n }\n },\n \"endStep\": {\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\": \"set the last step as active\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"requestedContent\",\n \"methodName\": \"contentWatcher\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteStepperItemKeyEvent\",\n \"method\": \"calciteStepperItemKeyEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteStepperItemRegister\",\n \"method\": \"registerItem\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteStepperItemSelect\",\n \"method\": \"updateItem\",\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,c as e,h as i,H as a,g as o}from"./p-2e1cd889.js";import{f as r,a as s,C as n,b as l,e as c,i as d}from"./p-e762b2d1.js";import{g as h}from"./p-7df393df.js";import{c as m}from"./p-a10dc180.js";import"./p-ec178ea9.js";function u(t,e,i,a=20,o=0){let r=[];if(o>=a){return r}const s=t=>{const r=t.assignedNodes().filter((t=>t.nodeType===1));if(r.length>0){return u(r[0].parentElement,e,i,a,o+1)}return[]};const n=Array.from(t.children||[]);for(const t of n){if(e(t)){continue}if(i(t)){r.push(t)}if(t.shadowRoot!=null){r.push(...u(t.shadowRoot,e,i,a,o+1))}else if(t.tagName==="SLOT"){r.push(...s(t))}else{r.push(...u(t,e,i,a,o+1))}}return r}function f(t){return t.hasAttribute("hidden")||t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")!=="false"||t.style.display===`none`||t.style.opacity===`0`||t.style.visibility===`hidden`||t.style.visibility===`collapse`}function p(t){return t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&t.getAttribute("aria-disabled")!=="false"}function b(t){if(t.getAttribute("tabindex")==="-1"||f(t)||p(t)){return false}return t.hasAttribute("tabindex")||(t instanceof HTMLAnchorElement||t instanceof HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)||t instanceof HTMLIFrameElement}
|
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 g={title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",overflowHidden:"overflow-hidden"};const x={close:"x"};const v={content:"content",header:"header",back:"back",secondary:"secondary",primary:"primary"};const y={close:"Close"};const w="@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{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0;right:0;bottom:0;left:0;display:flex;overflow-y:hidden}.modal{display:flex;flex-direction:column;box-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);box-sizing:border-box;float:none;margin:1.5rem;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);width:100%;opacity:0;pointer-events:none;overflow:hidden;z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:translate3d(0, 20px, 0)}:host([active]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([active]) .modal{opacity:1;pointer-events:auto;visibility:visible;transform:translate3d(0, 0, 0);transition:transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{display:flex;max-width:100%;min-width:0;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);flex:0 0 auto;z-index:2}.close{margin:0;-webkit-appearance:none;appearance:none;border-style:none;color:var(--calcite-ui-text-3);order:2;cursor:pointer;border-top-right-radius:0.25rem;background-color:transparent;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-modal-padding);flex:0 0 auto;transition:all 0.15s ease-in-out}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.calcite--rtl .close{border-top-left-radius:0.25rem;border-top-right-radius:0}.title{display:flex;align-items:center;order:1;min-width:0;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}.content{position:relative;padding:0;height:100%;overflow:auto;display:block;background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;max-height:calc(100vh - 12rem);z-index:1}.content--spaced{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}.content--no-footer{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text)}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{display:flex;justify-content:space-between;margin-top:auto;box-sizing:border-box;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;width:100%;background-color:var(--calcite-ui-foreground-1);border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-right:auto}.calcite--rtl .back{margin-left:auto;margin-right:0}.secondary{display:block;margin-left:0.25rem;margin-right:0.25rem}slot[name=primary]{display:block}:host([width=small]) .modal{width:auto}:host([width=s]) .modal{max-width:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=s]) .content{flex:1 1 auto;max-height:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-width:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=m]) .content{flex:1 1 auto;max-height:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-width:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=l]) .content{flex:1 1 auto;max-height:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;transform:translate3D(0, 20px, 0) scale(0.95)}:host([fullscreen]) .content{max-height:100%;flex:1 1 auto}:host([active][fullscreen]) .modal{transform:translate3D(0, 0, 0) scale(1)}:host([active][fullscreen]) .header{border-radius:0}:host([active][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{height:auto}:host([docked]) .content{height:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-radius:0 var(--calcite-border-radius) 0 0}}@media screen and (max-width: 860px){:host([docked]) .calcite--rtl .close{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0;border-top-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-bottom-right-radius:0;border-bottom-left-radius:0}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;bottom:0}}@media screen and (max-width: 480px){.footer{flex-direction:column}.calcite--rtl .back,.back,.secondary{margin:0;margin-bottom:0.25rem}}";const k=t=>d(t)||b(t);const z=t=>u(t,f,k);let M=class{constructor(i){t(this,i);this.calciteModalOpen=e(this,"calciteModalOpen",7);this.calciteModalClose=e(this,"calciteModalClose",7);this.active=false;this.beforeClose=()=>Promise.resolve();this.disableCloseButton=false;this.disableOutsideClose=false;this.intlClose=y.close;this.disableEscape=false;this.scale="m";this.width="m";this.backgroundColor="white";this.noPadding=false;this.hasFooter=true;this.mutationObserver=m("mutation",(()=>this.updateFooterVisibility()));this.activeTransitionProp="opacity";this.transitionEnd=t=>{if(t.propertyName===this.activeTransitionProp){this.active?this.calciteModalOpen.emit():this.calciteModalClose.emit()}};this.openEnd=()=>{this.setFocus();this.el.removeEventListener("calciteModalOpen",this.openEnd)};this.handleOutsideClose=()=>{if(this.disableOutsideClose){return}this.close()};this.close=()=>this.beforeClose(this.el).then((()=>{this.active=false;r(this.previousActiveElement);this.removeOverflowHiddenClass()}));this.focusFirstElement=()=>{r(this.closeButtonEl)};this.focusLastElement=()=>{const t=z(this.el).filter((t=>!t.getAttribute("data-focus-fence")));if(t.length>0){r(t[t.length-1])}else{r(this.closeButtonEl)}};this.updateFooterVisibility=()=>{this.hasFooter=!!this.el.querySelector(`[slot=${v.back}], [slot=${v.secondary}], [slot=${v.primary}]`)}}componentWillLoad(){if(this.active){this.open()}}connectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.updateFooterVisibility()}disconnectedCallback(){var t;this.removeOverflowHiddenClass();(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()}render(){const t=s(this.el);return i(a,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},i("calcite-scrim",{class:g.scrim,onClick:this.handleOutsideClose}),this.renderStyle(),i("div",{class:{modal:true,[n.rtl]:t==="rtl"},onTransitionEnd:this.transitionEnd},i("div",{"data-focus-fence":true,onFocus:this.focusLastElement,tabindex:"0"}),i("div",{class:g.header},this.renderCloseButton(),i("header",{class:g.title},i("slot",{name:g.header}))),i("div",{class:{content:true,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:t=>this.modalContent=t},i("slot",{name:v.content})),this.renderFooter(),i("div",{"data-focus-fence":true,onFocus:this.focusFirstElement,tabindex:"0"})))}renderFooter(){return this.hasFooter?i("div",{class:g.footer},i("span",{class:g.back},i("slot",{name:v.back})),i("span",{class:g.secondary},i("slot",{name:v.secondary})),i("span",{class:g.primary},i("slot",{name:v.primary}))):null}renderCloseButton(){return!this.disableCloseButton?i("button",{"aria-label":this.intlClose,class:g.close,onClick:this.close,ref:t=>this.closeButtonEl=t,title:this.intlClose},i("calcite-icon",{icon:x.close,scale:this.scale==="s"?"s":"l"})):null}renderStyle(){const t=!isNaN(parseInt(`${this.width}`));return t?i("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `):null}handleEscape(t){if(this.active&&!this.disableEscape&&h(t.key)==="Escape"){this.close()}}async focusElement(t){if(t){t.focus()}return this.setFocus()}async setFocus(t){const e=this.closeButtonEl;return r(t==="close-button"?e:z(this.el)[0]||e)}async scrollContent(t=0,e=0){if(this.modalContent){if(this.modalContent.scrollTo){this.modalContent.scrollTo({top:t,left:e,behavior:"smooth"})}else{this.modalContent.scrollTop=t;this.modalContent.scrollLeft=e}}}async toggleModal(t,e){if(t!==e){if(t){this.open()}else if(!t){this.close()}}}open(){this.previousActiveElement=document.activeElement;this.el.addEventListener("calciteModalOpen",this.openEnd);this.active=true;const t=l(this.el,v.header);const e=l(this.el,v.content);this.titleId=c(t);this.contentId=c(e);document.documentElement.classList.add(g.overflowHidden)}removeOverflowHiddenClass(){document.documentElement.classList.remove(g.overflowHidden)}get el(){return o(this)}static get watchers(){return{active:["toggleModal"]}}};M.style=w;export{M as calcite_modal};
|
11
|
-
//# sourceMappingURL=p-6f861da6.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@a11y/focus-trap/shadow.js","node_modules/@a11y/focus-trap/focusable.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-modal/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-modal/calcite-modal.css?tag=calcite-modal&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-modal/calcite-modal.js"],"names":["queryShadowRoot","root","skipNode","isMatch","maxDepth","depth","matches","traverseSlot","$slot","assignedNodes","filter","node","nodeType","length","parentElement","children","Array","from","$child","push","shadowRoot","tagName","isHidden","$elem","hasAttribute","getAttribute","style","display","opacity","visibility","isDisabled","isFocusable","HTMLAnchorElement","HTMLAreaElement","HTMLButtonElement","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","HTMLIFrameElement","CSS","title","header","footer","scrim","back","close","secondary","primary","overflowHidden","ICONS","SLOTS","content","TEXT","calciteModalCss","isFocusableExtended","el","isCalciteFocusable","getFocusableElements","CalciteModal","[object Object]","hostRef","this","active","beforeClose","Promise","resolve","disableCloseButton","disableOutsideClose","intlClose","disableEscape","scale","width","backgroundColor","noPadding","hasFooter","mutationObserver","createObserver","updateFooterVisibility","activeTransitionProp","transitionEnd","event","propertyName","calciteModalOpen","emit","calciteModalClose","openEnd","setFocus","removeEventListener","handleOutsideClose","then","focusElement","previousActiveElement","removeOverflowHiddenClass","focusFirstElement","closeButtonEl","focusLastElement","focusableElements","querySelector","open","_a","observe","childList","subtree","disconnect","dir","getElementDir","h","Host","aria-describedby","contentId","aria-labelledby","titleId","aria-modal","role","class","onClick","renderStyle","modal","CSS_UTILITY","rtl","onTransitionEnd","data-focus-fence","onFocus","tabindex","renderCloseButton","name","content--spaced","content--no-footer","ref","modalContent","renderFooter","aria-label","icon","hasCustomWidth","isNaN","parseInt","e","getKey","key","focus","focusId","closeButton","top","left","scrollTo","behavior","scrollTop","scrollLeft","value","oldValue","document","activeElement","addEventListener","titleEl","getSlotted","contentEl","ensureId","documentElement","classList","add","remove"],"mappings":";;;;;uOASO,SAASA,EAAgBC,EAAMC,EAAUC,EAASC,EAAW,GAAIC,EAAQ,GAC5E,IAAIC,EAAU,GAEd,GAAID,GAASD,EAAU,CACnB,OAAOE,EAGX,MAAMC,EAAgBC,IAGlB,MAAMC,EAAgBD,EAAMC,gBAAgBC,QAAOC,GAAQA,EAAKC,WAAa,IAC7E,GAAIH,EAAcI,OAAS,EAAG,CAC1B,OAAOb,EAAgBS,EAAc,GAAGK,cAAeZ,EAAUC,EAASC,EAAUC,EAAQ,GAEhG,MAAO,IAKX,MAAMU,EAAWC,MAAMC,KAAKhB,EAAKc,UAAY,IAC7C,IAAK,MAAMG,KAAUH,EAAU,CAE3B,GAAIb,EAASgB,GAAS,CAClB,SAGJ,GAAIf,EAAQe,GAAS,CACjBZ,EAAQa,KAAKD,GAEjB,GAAIA,EAAOE,YAAc,KAAM,CAC3Bd,EAAQa,QAAQnB,EAAgBkB,EAAOE,WAAYlB,EAAUC,EAASC,EAAUC,EAAQ,SAEvF,GAAIa,EAAOG,UAAY,OAAQ,CAChCf,EAAQa,QAAQZ,EAAaW,QAE5B,CACDZ,EAAQa,QAAQnB,EAAgBkB,EAAQhB,EAAUC,EAASC,EAAUC,EAAQ,KAGrF,OAAOC,EC5C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DxB,KAAKC,OAAS,KACd,MAAM2F,EAAUC,EAAW7F,KAAKN,GAAIL,EAAMT,QAC1C,MAAMkH,EAAYD,EAAW7F,KAAKN,GAAIL,EAAMC,SAC5CU,KAAKkD,QAAU6C,EAASH,GACxB5F,KAAKgD,UAAY+C,EAASD,GAC1BL,SAASO,gBAAgBC,UAAUC,IAAIxH,EAAIS,gBAE7CW,4BACE2F,SAASO,gBAAgBC,UAAUE,OAAOzH,EAAIS","sourcesContent":["/**\n * Traverses the slots of the open shadowroots and returns all children matching the query.\n * @param {ShadowRoot | HTMLElement} root\n * @param skipNode\n * @param isMatch\n * @param {number} maxDepth\n * @param {number} depth\n * @returns {HTMLElement[]}\n */\nexport function queryShadowRoot(root, skipNode, isMatch, maxDepth = 20, depth = 0) {\n let matches = [];\n // If the depth is above the max depth, abort the searching here.\n if (depth >= maxDepth) {\n return matches;\n }\n // Traverses a slot element\n const traverseSlot = ($slot) => {\n // Only check nodes that are of the type Node.ELEMENT_NODE\n // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);\n if (assignedNodes.length > 0) {\n return queryShadowRoot(assignedNodes[0].parentElement, skipNode, isMatch, maxDepth, depth + 1);\n }\n return [];\n };\n // Go through each child and continue the traversing if necessary\n // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.\n // Therefore we fallback to an empty array if it is undefined.\n const children = Array.from(root.children || []);\n for (const $child of children) {\n // Check if the node and its descendants should be skipped\n if (skipNode($child)) {\n continue;\n }\n // If the child matches we always add it\n if (isMatch($child)) {\n matches.push($child);\n }\n if ($child.shadowRoot != null) {\n matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));\n }\n else if ($child.tagName === \"SLOT\") {\n matches.push(...traverseSlot($child));\n }\n else {\n matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));\n }\n }\n return matches;\n}\n//# sourceMappingURL=shadow.js.map","/**\n * Returns whether the element is hidden.\n * @param $elem\n */\nexport function isHidden($elem) {\n return $elem.hasAttribute(\"hidden\")\n || ($elem.hasAttribute(\"aria-hidden\") && $elem.getAttribute(\"aria-hidden\") !== \"false\")\n // A quick and dirty way to check whether the element is hidden.\n // For a more fine-grained check we could use \"window.getComputedStyle\" but we don't because of bad performance.\n // If the element has visibility set to \"hidden\" or \"collapse\", display set to \"none\" or opacity set to \"0\" through CSS\n // we won't be able to catch it here. We accept it due to the huge performance benefits.\n || $elem.style.display === `none`\n || $elem.style.opacity === `0`\n || $elem.style.visibility === `hidden`\n || $elem.style.visibility === `collapse`;\n // If offsetParent is null we can assume that the element is hidden\n // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null\n //|| $elem.offsetParent == null;\n}\n/**\n * Returns whether the element is disabled.\n * @param $elem\n */\nexport function isDisabled($elem) {\n return $elem.hasAttribute(\"disabled\")\n || ($elem.hasAttribute(\"aria-disabled\") && $elem.getAttribute(\"aria-disabled\") !== \"false\");\n}\n/**\n * Determines whether an element is focusable.\n * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194\n * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable\n * @param $elem\n */\nexport function isFocusable($elem) {\n // Discard elements that are removed from the tab order.\n if ($elem.getAttribute(\"tabindex\") === \"-1\" || isHidden($elem) || isDisabled($elem)) {\n return false;\n }\n return (\n // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists\n $elem.hasAttribute(\"tabindex\")\n // Anchor tags or area tags with a href set\n || ($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute(\"href\")\n // Form elements which are not disabled\n || ($elem instanceof HTMLButtonElement\n || $elem instanceof HTMLInputElement\n || $elem instanceof HTMLTextAreaElement\n || $elem instanceof HTMLSelectElement)\n // IFrames\n || $elem instanceof HTMLIFrameElement);\n}\n//# sourceMappingURL=focusable.js.map","/*!\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 title: \"title\",\n header: \"header\",\n footer: \"footer\",\n scrim: \"scrim\",\n back: \"back\",\n close: \"close\",\n secondary: \"secondary\",\n primary: \"primary\",\n overflowHidden: \"overflow-hidden\"\n};\nexport const ICONS = {\n close: \"x\"\n};\nexport const SLOTS = {\n content: \"content\",\n header: \"header\",\n back: \"back\",\n secondary: \"secondary\",\n primary: \"primary\"\n};\nexport const TEXT = {\n close: \"Close\"\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/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-modal-content-text: the font-size of the modal content\n* @prop --calcite-modal-padding: the top/bottom padding around items in the modal\n* @prop --calcite-modal-padding-large: the left/right padding around items in the modal\n* @prop --calcite-modal-title-text: the font-size of the modal title\n* @prop --calcite-scrim-background: the semi-transparent background color behind modal\n*/\n\n:host {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow-y: hidden;\n color: var(--calcite-ui-text-2);\n opacity: 0;\n visibility: hidden !important;\n transition: visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);\n z-index: 101;\n}\n\n:host([scale=s]) {\n --calcite-modal-padding: 0.75rem;\n --calcite-modal-padding-large: 1rem;\n --calcite-modal-title-text: var(--calcite-font-size-1);\n --calcite-modal-content-text: var(--calcite-font-size--1);\n}\n\n:host([scale=m]) {\n --calcite-modal-padding: 1rem;\n --calcite-modal-padding-large: 1.25rem;\n --calcite-modal-title-text: var(--calcite-font-size-2);\n --calcite-modal-content-text: var(--calcite-font-size-0);\n}\n\n:host([scale=l]) {\n --calcite-modal-padding: 1.25rem;\n --calcite-modal-padding-large: 1.5rem;\n --calcite-modal-title-text: var(--calcite-font-size-3);\n --calcite-modal-content-text: var(--calcite-font-size-1);\n}\n\n.scrim {\n --calcite-scrim-background: rgba(0, 0, 0, 0.75);\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n overflow-y: hidden;\n}\n\n.modal {\n display: flex;\n flex-direction: column;\n box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);\n box-sizing: border-box;\n float: none;\n margin: 1.5rem;\n border-radius: 0.25rem;\n background-color: var(--calcite-ui-foreground-1);\n width: 100%;\n opacity: 0;\n pointer-events: none;\n overflow: hidden;\n z-index: 102;\n -webkit-overflow-scrolling: touch;\n visibility: hidden;\n transition: transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);\n transform: translate3d(0, 20px, 0);\n}\n\n:host([active]) {\n opacity: 1;\n visibility: visible !important;\n transition-delay: 0ms;\n}\n\n:host([active]) .modal {\n opacity: 1;\n pointer-events: auto;\n visibility: visible;\n transform: translate3d(0, 0, 0);\n transition: transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);\n transition-delay: 0ms;\n}\n\n/**\n * Header\n */\n\n.header {\n display: flex;\n max-width: 100%;\n min-width: 0;\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n background-color: var(--calcite-ui-foreground-1);\n border-width: 0;\n border-bottom-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n flex: 0 0 auto;\n z-index: 2;\n}\n\n.close {\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n border-style: none;\n color: var(--calcite-ui-text-3);\n order: 2;\n cursor: pointer;\n border-top-right-radius: 0.25rem;\n background-color: transparent;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n padding: var(--calcite-modal-padding);\n flex: 0 0 auto;\n transition: all 0.15s ease-in-out;\n}\n\n.close calcite-icon {\n pointer-events: none;\n vertical-align: -2px;\n}\n\n.close:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.close:hover, .close:focus, .close:active {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n.calcite--rtl .close {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0;\n}\n\n.title {\n display: flex;\n align-items: center;\n order: 1;\n min-width: 0;\n flex: 1 1 auto;\n padding: var(--calcite-modal-padding) var(--calcite-modal-padding-large);\n}\n\nslot[name=header]::slotted(*),\n*::slotted([slot=header]) {\n margin: 0;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-modal-title-text);\n}\n\n/**\n * Content area\n */\n\n.content {\n position: relative;\n padding: 0;\n height: 100%;\n overflow: auto;\n display: block;\n background-color: var(--calcite-ui-foreground-1);\n box-sizing: border-box;\n max-height: calc(100vh - 12rem);\n z-index: 1;\n}\n\n.content--spaced {\n padding: var(--calcite-modal-padding) var(--calcite-modal-padding-large);\n}\n\n.content--no-footer {\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n}\n\nslot[name=content]::slotted(*),\n*::slotted([slot=content]) {\n font-size: var(--calcite-modal-content-text);\n}\n\n:host([background-color=grey]) .content {\n background-color: var(--calcite-ui-background);\n}\n\n/**\n * Footer\n */\n\n.footer {\n display: flex;\n justify-content: space-between;\n margin-top: auto;\n box-sizing: border-box;\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n width: 100%;\n background-color: var(--calcite-ui-foreground-1);\n border-width: 0;\n border-top-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n flex: 0 0 auto;\n padding: var(--calcite-modal-padding) var(--calcite-modal-padding-large);\n z-index: 2;\n}\n\n.footer--hide-back .back,\n.footer--hide-secondary .secondary {\n display: none;\n}\n\n.back {\n display: block;\n margin-right: auto;\n}\n\n.calcite--rtl .back {\n margin-left: auto;\n margin-right: 0;\n}\n\n.secondary {\n display: block;\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n}\n\nslot[name=primary] {\n display: block;\n}\n\n/**\n * Sizes\n */\n\n:host([width=small]) .modal {\n width: auto;\n}\n\n:host([width=s]) .modal {\n max-width: 32rem;\n}\n\n@media screen and (max-width: 35rem) {\n :host([width=s]) .modal {\n height: 100%;\n max-height: 100%;\n width: 100%;\n max-width: 100%;\n margin: 0;\n border-radius: 0;\n }\n\n :host([width=s]) .content {\n flex: 1 1 auto;\n max-height: unset;\n }\n\n :host([width=s][docked]) {\n align-items: flex-end;\n }\n}\n\n:host([width=m]) .modal {\n max-width: 48rem;\n}\n\n@media screen and (max-width: 51rem) {\n :host([width=m]) .modal {\n height: 100%;\n max-height: 100%;\n width: 100%;\n max-width: 100%;\n margin: 0;\n border-radius: 0;\n }\n\n :host([width=m]) .content {\n flex: 1 1 auto;\n max-height: unset;\n }\n\n :host([width=m][docked]) {\n align-items: flex-end;\n }\n}\n\n:host([width=l]) .modal {\n max-width: 94rem;\n}\n\n@media screen and (max-width: 97rem) {\n :host([width=l]) .modal {\n height: 100%;\n max-height: 100%;\n width: 100%;\n max-width: 100%;\n margin: 0;\n border-radius: 0;\n }\n\n :host([width=l]) .content {\n flex: 1 1 auto;\n max-height: unset;\n }\n\n :host([width=l][docked]) {\n align-items: flex-end;\n }\n}\n\n/**\n * Fullscreen\n */\n\n:host([fullscreen]) {\n background-color: transparent;\n}\n\n:host([fullscreen]) .modal {\n height: 100%;\n max-height: 100%;\n width: 100%;\n max-width: 100%;\n margin: 0;\n transform: translate3D(0, 20px, 0) scale(0.95);\n}\n\n:host([fullscreen]) .content {\n max-height: 100%;\n flex: 1 1 auto;\n}\n\n:host([active][fullscreen]) .modal {\n transform: translate3D(0, 0, 0) scale(1);\n}\n\n:host([active][fullscreen]) .header {\n border-radius: 0;\n}\n\n:host([active][fullscreen]) .footer {\n border-radius: 0;\n}\n\n/**\n * Docked\n */\n\n:host([docked]) .modal {\n height: auto;\n}\n\n:host([docked]) .content {\n height: auto;\n flex: 1 1 auto;\n}\n\n@media screen and (max-width: 860px) {\n :host([docked]) .modal {\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n }\n\n :host([docked]) .close {\n border-radius: 0 var(--calcite-border-radius) 0 0;\n }\n}\n\n@media screen and (max-width: 860px) {\n :host([docked]) .calcite--rtl .close {\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n }\n}\n\n/**\n * Colors\n */\n\n:host([color=red]) .modal {\n border-color: var(--calcite-ui-danger);\n}\n\n:host([color=blue]) .modal {\n border-color: var(--calcite-ui-info);\n}\n\n:host([color=red]) .modal,\n:host([color=blue]) .modal {\n border-width: 0;\n border-top-width: 4px;\n border-style: solid;\n}\n\n:host([color=red]) .header,\n:host([color=blue]) .header {\n border-radius: 0.25rem;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/**\n * Tablet\n */\n\n@media screen and (max-width: 860px) {\n slot[name=header]::slotted(*),\n*::slotted([slot=header]) {\n font-size: var(--calcite-font-size-1);\n }\n\n .footer {\n position: sticky;\n bottom: 0;\n }\n}\n\n/**\n * Mobile\n */\n\n@media screen and (max-width: 480px) {\n .footer {\n flex-direction: column;\n }\n\n .calcite--rtl .back,\n.back,\n.secondary {\n margin: 0;\n margin-bottom: 0.25rem;\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, Event, h, Host, Listen, Method, Prop, State, Watch } from \"@stencil/core\";\nimport { ensureId, focusElement, getElementDir, getSlotted, isCalciteFocusable } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { queryShadowRoot } from \"@a11y/focus-trap/shadow\";\nimport { isFocusable, isHidden } from \"@a11y/focus-trap/focusable\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { TEXT, SLOTS, CSS, ICONS } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\nconst isFocusableExtended = (el) => {\n return isCalciteFocusable(el) || isFocusable(el);\n};\nconst getFocusableElements = (el) => {\n return queryShadowRoot(el, isHidden, isFocusableExtended);\n};\n/**\n * @slot header - a slot for adding a modal header\n * @slot content - a slot for adding modal content\n * @slot primary - a slot for adding a primary button\n * @slot secondary - a slot for adding a secondary button\n * @slot back - a slot for adding a back button\n */\nexport class CalciteModal {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Add the active attribute to open the modal */\n this.active = false;\n /** Optionally pass a function to run before close */\n this.beforeClose = () => Promise.resolve();\n /** Disables the display a close button within the Modal */\n this.disableCloseButton = false;\n /** Disables the closing of the Modal when clicked outside. */\n this.disableOutsideClose = false;\n /** Aria label for the close button */\n this.intlClose = TEXT.close;\n /** Flag to disable the default close on escape behavior */\n this.disableEscape = false;\n /** specify the scale of modal, defaults to m */\n this.scale = \"m\";\n /** Set the width of the modal. Can use stock sizes or pass a number (in pixels) */\n this.width = \"m\";\n /** Background color of modal content */\n this.backgroundColor = \"white\";\n /** Turn off spacing around the content area slot */\n this.noPadding = false;\n //--------------------------------------------------------------------------\n //\n // Variables\n //\n //--------------------------------------------------------------------------\n this.hasFooter = true;\n this.mutationObserver = createObserver(\"mutation\", () => this.updateFooterVisibility());\n this.activeTransitionProp = \"opacity\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.transitionEnd = (event) => {\n if (event.propertyName === this.activeTransitionProp) {\n this.active ? this.calciteModalOpen.emit() : this.calciteModalClose.emit();\n }\n };\n this.openEnd = () => {\n this.setFocus();\n this.el.removeEventListener(\"calciteModalOpen\", this.openEnd);\n };\n this.handleOutsideClose = () => {\n if (this.disableOutsideClose) {\n return;\n }\n this.close();\n };\n /** Close the modal, first running the `beforeClose` method */\n this.close = () => {\n return this.beforeClose(this.el).then(() => {\n this.active = false;\n focusElement(this.previousActiveElement);\n this.removeOverflowHiddenClass();\n });\n };\n this.focusFirstElement = () => {\n focusElement(this.closeButtonEl);\n };\n this.focusLastElement = () => {\n const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute(\"data-focus-fence\"));\n if (focusableElements.length > 0) {\n focusElement(focusableElements[focusableElements.length - 1]);\n }\n else {\n focusElement(this.closeButtonEl);\n }\n };\n this.updateFooterVisibility = () => {\n this.hasFooter = !!this.el.querySelector(`[slot=${SLOTS.back}], [slot=${SLOTS.secondary}], [slot=${SLOTS.primary}]`);\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n // when modal initially renders, if active was set we need to open as watcher doesn't fire\n if (this.active) {\n this.open();\n }\n }\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.updateFooterVisibility();\n }\n disconnectedCallback() {\n var _a;\n this.removeOverflowHiddenClass();\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n render() {\n const dir = getElementDir(this.el);\n return (h(Host, { \"aria-describedby\": this.contentId, \"aria-labelledby\": this.titleId, \"aria-modal\": \"true\", role: \"dialog\" },\n h(\"calcite-scrim\", { class: CSS.scrim, onClick: this.handleOutsideClose }),\n this.renderStyle(),\n h(\"div\", { class: { modal: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, onTransitionEnd: this.transitionEnd },\n h(\"div\", { \"data-focus-fence\": true, onFocus: this.focusLastElement, tabindex: \"0\" }),\n h(\"div\", { class: CSS.header },\n this.renderCloseButton(),\n h(\"header\", { class: CSS.title },\n h(\"slot\", { name: CSS.header }))),\n h(\"div\", { class: {\n content: true,\n \"content--spaced\": !this.noPadding,\n \"content--no-footer\": !this.hasFooter\n }, ref: (el) => (this.modalContent = el) },\n h(\"slot\", { name: SLOTS.content })),\n this.renderFooter(),\n h(\"div\", { \"data-focus-fence\": true, onFocus: this.focusFirstElement, tabindex: \"0\" }))));\n }\n renderFooter() {\n return this.hasFooter ? (h(\"div\", { class: CSS.footer },\n h(\"span\", { class: CSS.back },\n h(\"slot\", { name: SLOTS.back })),\n h(\"span\", { class: CSS.secondary },\n h(\"slot\", { name: SLOTS.secondary })),\n h(\"span\", { class: CSS.primary },\n h(\"slot\", { name: SLOTS.primary })))) : null;\n }\n renderCloseButton() {\n return !this.disableCloseButton ? (h(\"button\", { \"aria-label\": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose },\n h(\"calcite-icon\", { icon: ICONS.close, scale: this.scale === \"s\" ? \"s\" : \"l\" }))) : null;\n }\n renderStyle() {\n const hasCustomWidth = !isNaN(parseInt(`${this.width}`));\n return hasCustomWidth ? (h(\"style\", null, `\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)) : null;\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n handleEscape(e) {\n if (this.active && !this.disableEscape && getKey(e.key) === \"Escape\") {\n this.close();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Focus first interactive element\n * @deprecated use `setFocus` instead.\n */\n async focusElement(el) {\n if (el) {\n el.focus();\n }\n return this.setFocus();\n }\n /**\n * Sets focus on the component.\n *\n * By default, will try to focus on any focusable content. If there is none, it will focus on the close button.\n * If you want to focus on the close button, you can use the `close-button` focus ID.\n */\n async setFocus(focusId) {\n const closeButton = this.closeButtonEl;\n return focusElement(focusId === \"close-button\" ? closeButton : getFocusableElements(this.el)[0] || closeButton);\n }\n /** Set the scroll top of the modal content */\n async scrollContent(top = 0, left = 0) {\n if (this.modalContent) {\n if (this.modalContent.scrollTo) {\n this.modalContent.scrollTo({ top, left, behavior: \"smooth\" });\n }\n else {\n this.modalContent.scrollTop = top;\n this.modalContent.scrollLeft = left;\n }\n }\n }\n async toggleModal(value, oldValue) {\n if (value !== oldValue) {\n if (value) {\n this.open();\n }\n else if (!value) {\n this.close();\n }\n }\n }\n /** Open the modal */\n open() {\n this.previousActiveElement = document.activeElement;\n this.el.addEventListener(\"calciteModalOpen\", this.openEnd);\n this.active = true;\n const titleEl = getSlotted(this.el, SLOTS.header);\n const contentEl = getSlotted(this.el, SLOTS.content);\n this.titleId = ensureId(titleEl);\n this.contentId = ensureId(contentEl);\n document.documentElement.classList.add(CSS.overflowHidden);\n }\n removeOverflowHiddenClass() {\n document.documentElement.classList.remove(CSS.overflowHidden);\n }\n static get is() { return \"calcite-modal\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-modal.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-modal.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\": \"Add the active attribute to open the modal\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"beforeClose\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"(el: HTMLElement) => Promise<void>\",\n \"resolved\": \"(el: HTMLElement) => Promise<void>\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n },\n \"Promise\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Optionally pass a function to run before close\"\n },\n \"defaultValue\": \"() => Promise.resolve()\"\n },\n \"disableCloseButton\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disables the display a close button within the Modal\"\n },\n \"attribute\": \"disable-close-button\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"disableOutsideClose\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disables the closing of the Modal when clicked outside.\"\n },\n \"attribute\": \"disable-outside-close\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"intlClose\": {\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\": \"Aria label for the close button\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.close\"\n },\n \"docked\": {\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\": \"Prevent the modal from taking up the entire screen on mobile\"\n },\n \"attribute\": \"docked\",\n \"reflect\": true\n },\n \"firstFocus\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HTMLElement\",\n \"resolved\": \"HTMLElement\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specify an element to focus when the modal is first opened\"\n }\n },\n \"disableEscape\": {\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\": \"Flag to disable the default close on escape behavior\"\n },\n \"attribute\": \"disable-escape\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of modal, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"width\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale | number\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\" | number\",\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\": \"Set the width of the modal. Can use stock sizes or pass a number (in pixels)\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"fullscreen\": {\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\": \"Set the modal to always be fullscreen (overrides width)\"\n },\n \"attribute\": \"fullscreen\",\n \"reflect\": true\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"red\\\" | \\\"blue\\\"\",\n \"resolved\": \"\\\"blue\\\" | \\\"red\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Adds a color bar at the top for visual impact,\\nUse color to add importance to destructive/workflow dialogs.\"\n },\n \"attribute\": \"color\",\n \"reflect\": true\n },\n \"backgroundColor\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ModalBackgroundColor\",\n \"resolved\": \"\\\"grey\\\" | \\\"white\\\"\",\n \"references\": {\n \"ModalBackgroundColor\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Background color of modal content\"\n },\n \"attribute\": \"background-color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"white\\\"\"\n },\n \"noPadding\": {\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\": \"Turn off spacing around the content area slot\"\n },\n \"attribute\": \"no-padding\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n }\n }; }\n static get states() { return {\n \"hasFooter\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteModalOpen\",\n \"name\": \"calciteModalOpen\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the modal finishes the open animation\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteModalClose\",\n \"name\": \"calciteModalClose\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the modal finishes the close animation\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"focusElement\": {\n \"complexType\": {\n \"signature\": \"(el?: HTMLElement) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"HTMLElement\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Focus first interactive element\",\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `setFocus` instead.\"\n }]\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"close-button\\\") => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\\n\\nBy default, will try to focus on any focusable content. If there is none, it will focus on the close button.\\nIf you want to focus on the close button, you can use the `close-button` focus ID.\",\n \"tags\": []\n }\n },\n \"scrollContent\": {\n \"complexType\": {\n \"signature\": \"(top?: number, left?: number) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }, {\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Set the scroll top of the modal content\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"active\",\n \"methodName\": \"toggleModal\"\n }]; }\n static get listeners() { return [{\n \"name\": \"keyup\",\n \"method\": \"handleEscape\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list/shared-list-logic.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list/shared-list-render.js"],"names":["mutationObserverCallback","this","setUpItems","setUpFilter","SUPPORTED_ARROW_KEYS","initialize","emitCalciteListChange","debounce","internalCalciteListChangeEvent","bind","initializeObserver","_a","mutationObserver","observe","el","childList","subtree","cleanUpObserver","disconnect","calciteListItemChangeHandler","event","selectedValues","item","value","selected","shiftPressed","detail","multiple","selectSiblings","deselectSiblingItems","set","delete","toggleSingleSelectItemTabbing","focusElement","lastSelectedItem","calciteListItemValueChangeHandler","stopPropagation","oldValue","has","get","newValue","isValidNavigationKey","key","find","k","calciteListFocusOutHandler","items","focusedInside","contains","relatedTarget","target","forEach","size","keyDownHandler","selectionFollowsFocus","length","totalItems","currentIndex","indexOf","preventDefault","index","getRoundRobinIndex","i","calciteListChange","emit","removeItem","defaultPrevented","parentElement","tagName","remove","Array","from","children","selectable","removeAttribute","setAttribute","async","setFocus","focusId","filterEnabled","filterEl","focusTarget","querySelectorAll","hasSelected","icon","getIconType","disableDeselect","first","currentItem","toggleSelected","deselect","start","findIndex","end","slice","Math","min","max","groups","handleFilter","filteredData","values","map","hasSelectedMatch","Set","matchedItems","filter","parent","grouped","matches","add","includes","hidden","group","hasAtLeastOneMatch","some","parentItem","getSlotted","child","clear","getItemData","label","description","metadata","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","getOwnPropertySymbols","propertyIsEnumerable","List","props","disabled","loading","dataForFilter","filterPlaceholder","setFilterEl","rest","defaultSlot","h","Host","assign","aria-busy","toString","aria-disabled","role","class","[object Object]","CSS","sticky","aria-label","data","dir","getElementDir","onCalciteFilterChange","placeholder","ref","name","SLOTS","menuActions"],"mappings":";;;;;;;;;GAOO,SAASA,IACdC,KAAKC,aACLD,KAAKE,cAEP,MAAMC,EAAuB,CAAC,UAAW,aAMlC,SAASC,IACdJ,KAAKC,aACLD,KAAKE,cACLF,KAAKK,sBAAwBC,EAASC,EAA+BC,KAAKR,MAAO,GAE5E,SAASS,IACd,IAAIC,GACHA,EAAKV,KAAKW,oBAAsB,MAAQD,SAAY,OAAS,EAAIA,EAAGE,QAAQZ,KAAKa,GAAI,CAAEC,UAAW,KAAMC,QAAS,OAE7G,SAASC,IACd,IAAIN,GACHA,EAAKV,KAAKW,oBAAsB,MAAQD,SAAY,OAAS,EAAIA,EAAGO,aAOhE,SAASC,EAA6BC,GAC3C,MAAMC,eAAEA,GAAmBpB,KAC3B,MAAMqB,KAAEA,EAAIC,MAAEA,EAAKC,SAAEA,EAAQC,aAAEA,GAAiBL,EAAMM,OACtD,GAAIF,EAAU,CACZ,GAAIvB,KAAK0B,UAAYF,EAAc,CACjCxB,KAAK2B,eAAeN,GAEtB,IAAKrB,KAAK0B,SAAU,CAClB1B,KAAK4B,qBAAqBP,GAE5BD,EAAeS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C,EAAElE,IAAM+D,EAAEG,EAAElE,IAEpB,OAAOiE,GAKG,MAACQ,EAAQ5H,IACnB,IAAM6H,OAAOC,SAAEA,EAAQC,QAAEA,EAAO3D,cAAEA,EAAa4D,cAAEA,EAAaxC,aAAEA,EAAYyC,kBAAEA,EAAiB9H,GAAEA,EAAE+H,YAAEA,IAAkBlI,EAAImI,EAAOlB,EAAOjH,EAAI,CAAC,UAC9I,MAAMoI,EAAcC,EAAE,OAAQ,MAC9B,OAAQA,EAAEC,EAAMhB,OAAOiB,OAAO,CAAEC,YAAaT,EAAQU,WAAYC,gBAAiBZ,EAASW,WAAYE,KAAM,QAAUR,GACrHE,EAAE,UAAW,KACXA,EAAE,SAAU,CAAEO,MAAO,CAAEC,CAACC,EAAIC,QAAS,OACnC3E,EAAiBiE,EAAE,iBAAkB,CAAEW,aAAcf,EAAmBgB,KAAMjB,EAAekB,IAAKC,EAAchJ,GAAK2H,SAAUC,GAAWD,EAAUsB,sBAAuB5D,EAAc6D,YAAapB,EAAmBqB,IAAKpB,IAAkB,KAChPG,EAAE,OAAQ,CAAEkB,KAAMC,EAAMC,eAC1B1B,GAAWD,EAAWO,EAAE,gBAAiB,CAAEN,QAASA,IAAa,KACjEK","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 { debounce } from \"lodash-es\";\nimport { focusElement, getSlotted } from \"../../utils/dom\";\nimport { getRoundRobinIndex } from \"../../utils/array\";\nexport function mutationObserverCallback() {\n this.setUpItems();\n this.setUpFilter();\n}\nconst SUPPORTED_ARROW_KEYS = [\"ArrowUp\", \"ArrowDown\"];\n// --------------------------------------------------------------------------\n//\n// Lifecycle\n//\n// --------------------------------------------------------------------------\nexport function initialize() {\n this.setUpItems();\n this.setUpFilter();\n this.emitCalciteListChange = debounce(internalCalciteListChangeEvent.bind(this), 0);\n}\nexport function initializeObserver() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n}\nexport function cleanUpObserver() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n}\n// --------------------------------------------------------------------------\n//\n// Listeners\n//\n// --------------------------------------------------------------------------\nexport function calciteListItemChangeHandler(event) {\n const { selectedValues } = this;\n const { item, value, selected, shiftPressed } = event.detail;\n if (selected) {\n if (this.multiple && shiftPressed) {\n this.selectSiblings(item);\n }\n if (!this.multiple) {\n this.deselectSiblingItems(item);\n }\n selectedValues.set(value, item);\n }\n else {\n selectedValues.delete(value);\n if (this.multiple && shiftPressed) {\n this.selectSiblings(item, true);\n }\n }\n if (!this.multiple) {\n toggleSingleSelectItemTabbing(item, selected);\n if (selected) {\n focusElement(item);\n }\n }\n this.lastSelectedItem = item;\n this.emitCalciteListChange();\n}\nexport function calciteListItemValueChangeHandler(event) {\n event.stopPropagation();\n const oldValue = event.detail.oldValue;\n const selectedValues = this.selectedValues;\n if (selectedValues.has(oldValue)) {\n const item = selectedValues.get(oldValue);\n selectedValues.delete(oldValue);\n selectedValues.set(event.detail.newValue, item);\n }\n}\n// --------------------------------------------------------------------------\n//\n// Private Methods\n//\n// --------------------------------------------------------------------------\nfunction isValidNavigationKey(key) {\n return !!SUPPORTED_ARROW_KEYS.find((k) => k === key);\n}\nexport function calciteListFocusOutHandler(event) {\n const { el, items, multiple, selectedValues } = this;\n if (multiple) {\n return;\n }\n const focusedInside = !!el.contains(event.relatedTarget);\n if (focusedInside) {\n toggleSingleSelectItemTabbing(event.target, false);\n return;\n }\n items.forEach((item) => toggleSingleSelectItemTabbing(item, selectedValues.size === 0 ? event.target === item : item.selected));\n}\nexport function keyDownHandler(event) {\n const { key, target } = event;\n if (!isValidNavigationKey(key)) {\n return;\n }\n const { items, multiple, selectionFollowsFocus } = this;\n const { length: totalItems } = items;\n const currentIndex = items.indexOf(target);\n if (!totalItems || currentIndex === -1) {\n return;\n }\n event.preventDefault();\n const index = getRoundRobinIndex(currentIndex + (key === \"ArrowUp\" ? -1 : 1), totalItems);\n const item = items[index];\n items.forEach((i) => toggleSingleSelectItemTabbing(i, i === item));\n if (!multiple && selectionFollowsFocus) {\n item.selected = true;\n }\n focusElement(item);\n}\nexport function internalCalciteListChangeEvent() {\n this.calciteListChange.emit(this.selectedValues);\n}\nexport function removeItem(event) {\n if (event.defaultPrevented) {\n return;\n }\n const item = event.target;\n const selectedValues = this.selectedValues;\n if (item.parentElement.tagName === \"CALCITE-PICK-LIST-GROUP\") {\n item.parentElement.remove();\n Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));\n }\n else {\n item.remove();\n selectedValues.delete(item.value);\n }\n this.emitCalciteListChange();\n}\nfunction toggleSingleSelectItemTabbing(item, selectable) {\n // using attribute intentionally\n if (selectable) {\n item.removeAttribute(\"tabindex\");\n }\n else {\n item.setAttribute(\"tabindex\", \"-1\");\n }\n}\nexport async function setFocus(focusId) {\n if (this.filterEnabled && focusId === \"filter\") {\n await focusElement(this.filterEl);\n return;\n }\n const { items, multiple, selectionFollowsFocus } = this;\n if (items.length === 0) {\n return;\n }\n if (multiple) {\n return items[0].setFocus();\n }\n const focusTarget = items.find((item) => item.selected) || items[0];\n if (selectionFollowsFocus) {\n focusTarget.selected = true;\n }\n return focusTarget.setFocus();\n}\nexport function setUpItems(tagName) {\n this.items = Array.from(this.el.querySelectorAll(tagName));\n let hasSelected = false;\n const { items } = this;\n items.forEach((item) => {\n item.icon = this.getIconType();\n if (!this.multiple) {\n item.disableDeselect = true;\n toggleSingleSelectItemTabbing(item, false);\n }\n if (item.selected) {\n hasSelected = true;\n toggleSingleSelectItemTabbing(item, true);\n this.selectedValues.set(item.value, item);\n }\n });\n const [first] = items;\n if (!hasSelected && first) {\n toggleSingleSelectItemTabbing(first, true);\n }\n}\nexport function setUpFilter() {\n if (this.filterEnabled) {\n this.dataForFilter = this.getItemData();\n }\n}\nexport function deselectSiblingItems(item) {\n this.items.forEach((currentItem) => {\n if (currentItem.value !== item.value) {\n currentItem.toggleSelected(false);\n if (this.selectedValues.has(currentItem.value)) {\n this.selectedValues.delete(currentItem.value);\n }\n }\n });\n}\nexport function selectSiblings(item, deselect = false) {\n if (!this.lastSelectedItem) {\n return;\n }\n const { items } = this;\n const start = items.findIndex((currentItem) => {\n return currentItem.value === this.lastSelectedItem.value;\n });\n const end = items.findIndex((currentItem) => {\n return currentItem.value === item.value;\n });\n items.slice(Math.min(start, end), Math.max(start, end)).forEach((currentItem) => {\n currentItem.toggleSelected(!deselect);\n if (!deselect) {\n this.selectedValues.set(currentItem.value, currentItem);\n }\n else {\n this.selectedValues.delete(currentItem.value);\n }\n });\n}\nlet groups;\nexport function handleFilter(event) {\n const filteredData = event.detail;\n const values = filteredData.map((item) => item.value);\n let hasSelectedMatch = false;\n if (!groups) {\n groups = new Set();\n }\n const matchedItems = this.items.filter((item) => {\n const parent = item.parentElement;\n const grouped = parent.matches(\"calcite-pick-list-group\");\n if (grouped) {\n groups.add(parent);\n }\n const matches = values.includes(item.value);\n item.hidden = !matches;\n if (!hasSelectedMatch) {\n hasSelectedMatch = matches && item.selected;\n }\n return matches;\n });\n groups.forEach((group) => {\n const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));\n group.hidden = !hasAtLeastOneMatch;\n if (!hasAtLeastOneMatch) {\n return;\n }\n const parentItem = getSlotted(group, \"parent-item\");\n if (parentItem) {\n parentItem.hidden = false;\n if (matchedItems.includes(parentItem)) {\n Array.from(group.children).forEach((child) => (child.hidden = false));\n }\n }\n });\n groups.clear();\n if (matchedItems.length > 0 && !hasSelectedMatch && !this.multiple) {\n toggleSingleSelectItemTabbing(matchedItems[0], true);\n }\n}\nexport function getItemData() {\n return this.items.map((item) => ({\n label: item.label,\n description: item.description,\n metadata: item.metadata,\n value: item.value\n }));\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 */\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { h, Host } from \"@stencil/core\";\nimport { CSS, SLOTS } from \"./resources\";\nimport { getElementDir } from \"../../utils/dom\";\nexport const List = (_a) => {\n var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, el, setFilterEl } } = _a, rest = __rest(_a, [\"props\"]);\n const defaultSlot = h(\"slot\", null);\n return (h(Host, Object.assign({ \"aria-busy\": loading.toString(), \"aria-disabled\": disabled.toString(), role: \"menu\" }, rest),\n h(\"section\", null,\n h(\"header\", { class: { [CSS.sticky]: true } },\n filterEnabled ? (h(\"calcite-filter\", { \"aria-label\": filterPlaceholder, data: dataForFilter, dir: getElementDir(el), disabled: loading || disabled, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,\n h(\"slot\", { name: SLOTS.menuActions })),\n loading || disabled ? h(\"calcite-scrim\", { loading: loading }) : null,\n defaultSlot)));\n};\nexport default List;\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/functional/CalciteHeading.js"],"names":["constrainHeadingLevel","level","Math","min","max","ceil","CalciteHeading","props","children","HeadingTag","h","Object","assign"],"mappings":";;;;;;;;;GAKO,SAASA,EAAsBC,GACpC,OAAOC,KAAKC,IAAID,KAAKE,IAAIF,KAAKG,KAAKJ,GAAQ,GAAI,GAErC,MAACK,EAAiB,CAACC,EAAOC,KACpC,MAAMC,EAAa,IAAIF,EAAMN,eACtBM,EAAMN,MACb,OAAOS,EAAED,EAAYE,OAAOC,OAAO,GAAIL,GAAQC","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 { h } from \"@stencil/core\";\nexport function constrainHeadingLevel(level) {\n return Math.min(Math.max(Math.ceil(level), 1), 6);\n}\nexport const CalciteHeading = (props, children) => {\n const HeadingTag = `h${props.level}`;\n delete props.level;\n return h(HeadingTag, Object.assign({}, props), children);\n};\n"]}
|