@esri/solutions-components 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as e,h as t,H as i,g as a}from"./p-2e1cd889.js";import{T as o,A as r,C as n}from"./p-af9be2ca.js";import{g as s}from"./p-ec178ea9.js";import{d as c,u as p,c as l,C as m}from"./p-fc1c8168.js";import{q as d}from"./p-e762b2d1.js";const f='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999;transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;transition:var(--calcite-popper-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}.container{position:relative;background-color:var(--calcite-ui-foreground-1);display:flex;justify-content:flex-start;flex-direction:column;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;overflow:hidden;font-size:var(--calcite-font-size--2);line-height:1.375;border-radius:0.25rem;max-width:20rem;max-height:20rem}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';let h=class{constructor(t){e(this,t);this.offsetDistance=c;this.offsetSkidding=0;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.guid=`calcite-tooltip-${s()}`;this.setUpReferenceElement=()=>{this.removeReferences();this.effectiveReferenceElement=this.getReferenceElement();const{el:e,referenceElement:t,effectiveReferenceElement:i}=this;if(t&&!i){console.warn(`${e.tagName}: reference-element id "${t}" was not found.`,{el:e})}this.addReferences();this.createPopper()};this.getId=()=>this.el.id||this.guid;this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e){return}const t=this.getId();e.setAttribute(o,t);e.setAttribute(r,t)};this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e){return}e.removeAttribute(o);e.removeAttribute(r)};this.show=()=>{this.open=true};this.hide=()=>{this.open=false}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition()}placementHandler(){this.reposition()}referenceElementHandler(){this.setUpReferenceElement()}componentWillLoad(){this.setUpReferenceElement()}componentDidLoad(){this.reposition()}disconnectedCallback(){this.removeReferences();this.destroyPopper()}async reposition(){const{popper:e,el:t,placement:i}=this;const a=this.getModifiers();e?await p({el:t,modifiers:a,placement:i,popper:e}):this.createPopper()}getReferenceElement(){const{referenceElement:e,el:t}=this;return(typeof e==="string"?d(t,`#${e}`):e)||null}getModifiers(){const{arrowEl:e,offsetDistance:t,offsetSkidding:i}=this;const a={name:"arrow",enabled:true,options:{element:e}};const o={name:"offset",enabled:true,options:{offset:[i,t]}};return[a,o]}createPopper(){this.destroyPopper();const{el:e,placement:t,effectiveReferenceElement:i,overlayPositioning:a}=this;const o=this.getModifiers();this.popper=l({el:e,modifiers:o,placement:t,overlayPositioning:a,referenceEl:i})}destroyPopper(){const{popper:e}=this;if(e){e.destroy()}this.popper=null}render(){const{effectiveReferenceElement:e,label:a,open:o}=this;const r=e&&o;const s=!r;return t(i,{"aria-hidden":s.toString(),"aria-label":a,"calcite-hydrated-hidden":s,id:this.getId(),role:"tooltip"},t("div",{class:{[m.animation]:true,[m.animationActive]:r}},t("div",{class:n.arrow,ref:e=>this.arrowEl=e}),t("div",{class:n.container},t("slot",null))))}get el(){return a(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};h.style=f;export{h as calcite_tooltip};
|
7
|
-
//# sourceMappingURL=p-372da016.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tooltip/calcite-tooltip.css?tag=calcite-tooltip&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tooltip/calcite-tooltip.js"],"names":["calciteTooltipCss","CalciteTooltip","[object Object]","hostRef","this","offsetDistance","defaultOffsetDistance","offsetSkidding","open","overlayPositioning","placement","guid","setUpReferenceElement","removeReferences","effectiveReferenceElement","getReferenceElement","el","referenceElement","console","warn","tagName","addReferences","createPopper","getId","id","setAttribute","TOOLTIP_REFERENCE","ARIA_DESCRIBED_BY","removeAttribute","show","hide","reposition","destroyPopper","popper","modifiers","getModifiers","updatePopper","queryElementRoots","arrowEl","arrowModifier","name","enabled","options","element","offsetModifier","offset","referenceEl","destroy","label","displayed","hidden","h","Host","aria-hidden","toString","aria-label","calcite-hydrated-hidden","role","class","PopperCSS","animation","animationActive","CSS","arrow","ref","container"],"mappings":"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","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n position: absolute;\n z-index: 999;\n transform: scale(0);\n}\n\n.calcite-popper-anim {\n position: relative;\n z-index: 1;\n transition: var(--calcite-popper-transition);\n visibility: hidden;\n transition-property: transform, visibility, opacity;\n opacity: 0;\n box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);\n border-radius: 0.25rem;\n}\n\n:host([data-popper-placement^=bottom]) .calcite-popper-anim {\n transform: translateY(-5px);\n}\n\n:host([data-popper-placement^=top]) .calcite-popper-anim {\n transform: translateY(5px);\n}\n\n:host([data-popper-placement^=left]) .calcite-popper-anim {\n transform: translateX(5px);\n}\n\n:host([data-popper-placement^=right]) .calcite-popper-anim {\n transform: translateX(-5px);\n}\n\n:host([data-popper-placement]) .calcite-popper-anim--active {\n opacity: 1;\n visibility: visible;\n transform: translate(0);\n}\n\n.arrow,\n.arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n\n.arrow::before {\n content: \"\";\n box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);\n transform: rotate(45deg);\n background: var(--calcite-ui-foreground-1);\n}\n\n:host([data-popper-placement^=top]) .arrow {\n bottom: -4px;\n}\n\n:host([data-popper-placement^=bottom]) .arrow {\n top: -4px;\n}\n\n:host([data-popper-placement^=left]) .arrow {\n right: -4px;\n}\n\n:host([data-popper-placement^=right]) .arrow {\n left: -4px;\n}\n\n.container {\n position: relative;\n background-color: var(--calcite-ui-foreground-1);\n display: flex;\n justify-content: flex-start;\n flex-direction: column;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n padding-left: 1rem;\n padding-right: 1rem;\n overflow: hidden;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n border-radius: 0.25rem;\n max-width: 20rem;\n max-height: 20rem;\n}\n\n.calcite-popper-anim {\n background-color: var(--calcite-ui-foreground-1);\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n border-radius: 0.25rem;\n}\n\n.arrow::before {\n outline: 1px solid var(--calcite-ui-border-3);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Host, Method, Prop, State, Watch, h } from \"@stencil/core\";\nimport { CSS, TOOLTIP_REFERENCE, ARIA_DESCRIBED_BY } from \"./resources\";\nimport { guid } from \"../../utils/guid\";\nimport { defaultOffsetDistance, createPopper, updatePopper, CSS as PopperCSS } from \"../../utils/popper\";\nimport { queryElementRoots } from \"../../utils/dom\";\n/**\n * @slot - A slot for adding text.\n */\nexport class CalciteTooltip {\n constructor() {\n /**\n * Offset the position of the popover away from the reference element.\n * @default 6\n */\n this.offsetDistance = defaultOffsetDistance;\n /**\n * Offset the position of the popover along the reference element.\n */\n this.offsetSkidding = 0;\n /**\n * Display and position the component.\n */\n this.open = false;\n /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */\n this.overlayPositioning = \"absolute\";\n /**\n * Determines where the component will be positioned relative to the referenceElement.\n * @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\n */\n this.placement = \"auto\";\n this.guid = `calcite-tooltip-${guid()}`;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.setUpReferenceElement = () => {\n this.removeReferences();\n this.effectiveReferenceElement = this.getReferenceElement();\n const { el, referenceElement, effectiveReferenceElement } = this;\n if (referenceElement && !effectiveReferenceElement) {\n console.warn(`${el.tagName}: reference-element id \"${referenceElement}\" was not found.`, {\n el\n });\n }\n this.addReferences();\n this.createPopper();\n };\n this.getId = () => {\n return this.el.id || this.guid;\n };\n this.addReferences = () => {\n const { effectiveReferenceElement } = this;\n if (!effectiveReferenceElement) {\n return;\n }\n const id = this.getId();\n effectiveReferenceElement.setAttribute(TOOLTIP_REFERENCE, id);\n effectiveReferenceElement.setAttribute(ARIA_DESCRIBED_BY, id);\n };\n this.removeReferences = () => {\n const { effectiveReferenceElement } = this;\n if (!effectiveReferenceElement) {\n return;\n }\n effectiveReferenceElement.removeAttribute(TOOLTIP_REFERENCE);\n effectiveReferenceElement.removeAttribute(ARIA_DESCRIBED_BY);\n };\n this.show = () => {\n this.open = true;\n };\n this.hide = () => {\n this.open = false;\n };\n }\n offsetDistanceOffsetHandler() {\n this.reposition();\n }\n offsetSkiddingHandler() {\n this.reposition();\n }\n openHandler() {\n this.reposition();\n }\n placementHandler() {\n this.reposition();\n }\n referenceElementHandler() {\n this.setUpReferenceElement();\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n componentWillLoad() {\n this.setUpReferenceElement();\n }\n componentDidLoad() {\n this.reposition();\n }\n disconnectedCallback() {\n this.removeReferences();\n this.destroyPopper();\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Updates the position of the component. */\n async reposition() {\n const { popper, el, placement } = this;\n const modifiers = this.getModifiers();\n popper\n ? await updatePopper({\n el,\n modifiers,\n placement,\n popper\n })\n : this.createPopper();\n }\n getReferenceElement() {\n const { referenceElement, el } = this;\n return ((typeof referenceElement === \"string\"\n ? queryElementRoots(el, `#${referenceElement}`)\n : referenceElement) || null);\n }\n getModifiers() {\n const { arrowEl, offsetDistance, offsetSkidding } = this;\n const arrowModifier = {\n name: \"arrow\",\n enabled: true,\n options: {\n element: arrowEl\n }\n };\n const offsetModifier = {\n name: \"offset\",\n enabled: true,\n options: {\n offset: [offsetSkidding, offsetDistance]\n }\n };\n return [arrowModifier, offsetModifier];\n }\n createPopper() {\n this.destroyPopper();\n const { el, placement, effectiveReferenceElement: referenceEl, overlayPositioning } = this;\n const modifiers = this.getModifiers();\n this.popper = createPopper({\n el,\n modifiers,\n placement,\n overlayPositioning,\n referenceEl\n });\n }\n destroyPopper() {\n const { popper } = this;\n if (popper) {\n popper.destroy();\n }\n this.popper = null;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { effectiveReferenceElement, label, open } = this;\n const displayed = effectiveReferenceElement && open;\n const hidden = !displayed;\n return (h(Host, { \"aria-hidden\": hidden.toString(), \"aria-label\": label, \"calcite-hydrated-hidden\": hidden, id: this.getId(), role: \"tooltip\" },\n h(\"div\", { class: {\n [PopperCSS.animation]: true,\n [PopperCSS.animationActive]: displayed\n } },\n h(\"div\", { class: CSS.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }),\n h(\"div\", { class: CSS.container },\n h(\"slot\", null)))));\n }\n static get is() { return \"calcite-tooltip\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tooltip.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tooltip.css\"]\n }; }\n static get properties() { return {\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Accessible name for the component\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"offsetDistance\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"6\"\n }],\n \"text\": \"Offset the position of the popover away from the reference element.\"\n },\n \"attribute\": \"offset-distance\",\n \"reflect\": true,\n \"defaultValue\": \"defaultOffsetDistance\"\n },\n \"offsetSkidding\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Offset the position of the popover along the reference element.\"\n },\n \"attribute\": \"offset-skidding\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"open\": {\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\": \"Display and position the component.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"placement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"PopperPlacement\",\n \"resolved\": \"Placement | PlacementRtl | VariationRtl\",\n \"references\": {\n \"PopperPlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\"\n }],\n \"text\": \"Determines where the component will be positioned relative to the referenceElement.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n },\n \"referenceElement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HTMLElement | string\",\n \"resolved\": \"HTMLElement | string\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Reference HTMLElement used to position this component according to the placement property. As a convenience, a string ID of the reference element can be used. However, setting this property to use an HTMLElement is preferred so that the component does not need to query the DOM for the referenceElement.\"\n },\n \"attribute\": \"reference-element\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"effectiveReferenceElement\": {}\n }; }\n static get methods() { return {\n \"reposition\": {\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\": \"Updates the position of the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"offsetDistance\",\n \"methodName\": \"offsetDistanceOffsetHandler\"\n }, {\n \"propName\": \"offsetSkidding\",\n \"methodName\": \"offsetSkiddingHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"openHandler\"\n }, {\n \"propName\": \"placement\",\n \"methodName\": \"placementHandler\"\n }, {\n \"propName\": \"referenceElement\",\n \"methodName\": \"referenceElementHandler\"\n }]; }\n}\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as i,c as t,h as a,g as e}from"./p-2e1cd889.js";import{g as c}from"./p-7df393df.js";const n="@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-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";let o=class{constructor(a){i(this,a);this.calciteAccordionChange=t(this,"calciteAccordionChange",7);this.appearance="default";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=i=>i.sort(((i,t)=>i.position-t.position)).map((i=>i.item))}componentDidLoad(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}}render(){return a("slot",null)}calciteAccordionItemKeyEvent(i){const t=i.detail.item;const a=i.detail.parent;if(this.el===a){const a=c(t.key);const e=i.target;const n=this.itemIndex(e)===0;const o=this.itemIndex(e)===this.items.length-1;switch(a){case"ArrowDown":if(o){this.focusFirstItem()}else{this.focusNextItem(e)}break;case"ArrowUp":if(n){this.focusLastItem()}else{this.focusPrevItem(e)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}}registerCalciteAccordionItem(i){const t={item:i.target,parent:i.detail.parent,position:i.detail.position};if(this.el===t.parent){this.items.push(t)}}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem;this.calciteAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem})}focusFirstItem(){const i=this.items[0];this.focusElement(i)}focusLastItem(){const i=this.items[this.items.length-1];this.focusElement(i)}focusNextItem(i){const t=this.itemIndex(i);const a=this.items[t+1]||this.items[0];this.focusElement(a)}focusPrevItem(i){const t=this.itemIndex(i);const a=this.items[t-1]||this.items[this.items.length-1];this.focusElement(a)}itemIndex(i){return this.items.indexOf(i)}focusElement(i){const t=i;t.focus()}get el(){return e(this)}};o.style=n;export{o as calcite_accordion};
|
7
|
-
//# sourceMappingURL=p-37407f95.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-accordion/calcite-accordion.css?tag=calcite-accordion&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-accordion/calcite-accordion.js"],"names":["calciteAccordionCss","CalciteAccordion","[object Object]","hostRef","this","appearance","iconPosition","iconType","scale","selectionMode","items","sorted","sortItems","sort","a","b","position","map","item","h","e","detail","parent","el","key","getKey","itemToFocus","target","isFirstItem","itemIndex","isLastItem","length","focusFirstItem","focusNextItem","focusLastItem","focusPrevItem","push","event","requestedAccordionItem","calciteAccordionChange","emit","firstItem","focusElement","lastItem","index","nextItem","prevItem","indexOf","focus"],"mappings":";;;;;6FAAA,MAAMA,EAAsB,oiECSfC,EAAgB,MAC3BC,YAAAC,4EAOEC,KAAKC,WAAa,UAElBD,KAAKE,aAAe,MAEpBF,KAAKG,SAAW,UAEhBH,KAAKI,MAAQ,IAGbJ,KAAKK,cAAgB,QAOrBL,KAAKM,MAAQ,GAEbN,KAAKO,OAAS,MACdP,KAAKQ,UAAaF,GAAUA,EAAMG,MAAK,CAACC,EAAGC,IAAMD,EAAEE,SAAWD,EAAEC,WAAUC,KAAKH,GAAMA,EAAEI,OAOzFhB,mBACE,IAAKE,KAAKO,OAAQ,CAChBP,KAAKM,MAAQN,KAAKQ,UAAUR,KAAKM,OACjCN,KAAKO,OAAS,MAGlBT,SACE,OAAOiB,EAAE,OAAQ,MAOnBjB,6BAA6BkB,GAC3B,MAAMF,EAAOE,EAAEC,OAAOH,KACtB,MAAMI,EAASF,EAAEC,OAAOC,OACxB,GAAIlB,KAAKmB,KAAOD,EAAQ,CACtB,MAAME,EAAMC,EAAOP,EAAKM,KACxB,MAAME,EAAcN,EAAEO,OACtB,MAAMC,EAAcxB,KAAKyB,UAAUH,KAAiB,EACpD,MAAMI,EAAa1B,KAAKyB,UAAUH,KAAiBtB,KAAKM,MAAMqB,OAAS,EACvE,OAAQP,GACN,IAAK,YACH,GAAIM,EAAY,CACd1B,KAAK4B,qBAEF,CACH5B,KAAK6B,cAAcP,GAErB,MACF,IAAK,UACH,GAAIE,EAAa,CACfxB,KAAK8B,oBAEF,CACH9B,KAAK+B,cAAcT,GAErB,MACF,IAAK,OACHtB,KAAK4B,iBACL,MACF,IAAK,MACH5B,KAAK8B,gBACL,QAIRhC,6BAA6BkB,GAC3B,MAAMF,EAAO,CACXA,KAAME,EAAEO,OACRL,OAAQF,EAAEC,OAAOC,OACjBN,SAAUI,EAAEC,OAAOL,UAErB,GAAIZ,KAAKmB,KAAOL,EAAKI,OAAQ,CAC3BlB,KAAKM,MAAM0B,KAAKlB,IAGpBhB,yBAAyBmC,GACvBjC,KAAKkC,uBAAyBD,EAAMhB,OAAOiB,uBAC3ClC,KAAKmC,uBAAuBC,KAAK,CAC/BF,uBAAwBlC,KAAKkC,yBAQjCpC,iBACE,MAAMuC,EAAYrC,KAAKM,MAAM,GAC7BN,KAAKsC,aAAaD,GAEpBvC,gBACE,MAAMyC,EAAWvC,KAAKM,MAAMN,KAAKM,MAAMqB,OAAS,GAChD3B,KAAKsC,aAAaC,GAEpBzC,cAAckB,GACZ,MAAMwB,EAAQxC,KAAKyB,UAAUT,GAC7B,MAAMyB,EAAWzC,KAAKM,MAAMkC,EAAQ,IAAMxC,KAAKM,MAAM,GACrDN,KAAKsC,aAAaG,GAEpB3C,cAAckB,GACZ,MAAMwB,EAAQxC,KAAKyB,UAAUT,GAC7B,MAAM0B,EAAW1C,KAAKM,MAAMkC,EAAQ,IAAMxC,KAAKM,MAAMN,KAAKM,MAAMqB,OAAS,GACzE3B,KAAKsC,aAAaI,GAEpB5C,UAAUkB,GACR,OAAOhB,KAAKM,MAAMqC,QAAQ3B,GAE5BlB,aAAagB,GACX,MAAMS,EAAST,EACfS,EAAOqB","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([scale=s]) {\n --calcite-accordion-item-spacing-unit: 0.25rem;\n --calcite-accordion-icon-margin: 0.5rem;\n --calcite-accordion-item-padding: var(--calcite-accordion-item-spacing-unit) 0.5rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n}\n\n:host([scale=m]) {\n --calcite-accordion-item-spacing-unit: 0.5rem;\n --calcite-accordion-icon-margin: 0.75rem;\n --calcite-accordion-item-padding: var(--calcite-accordion-item-spacing-unit) 0.75rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host([scale=l]) {\n --calcite-accordion-item-spacing-unit: 0.75rem;\n --calcite-accordion-icon-margin: 1rem;\n --calcite-accordion-item-padding: var(--calcite-accordion-item-spacing-unit) 1rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host {\n display: block;\n position: relative;\n max-width: 100%;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n border-bottom-width: 0;\n line-height: 1.5rem;\n --calcite-accordion-item-border: var(--calcite-ui-border-2);\n --calcite-accordion-item-background: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=minimal]) {\n --calcite-accordion-item-padding: var(--calcite-accordion-item-spacing-unit) 0;\n border-color: transparent;\n}\n\n:host([appearance=transparent]) {\n border-color: transparent;\n --calcite-accordion-item-border: transparent;\n --calcite-accordion-item-background: transparent;\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, Prop } from \"@stencil/core\";\nimport { getKey } from \"../../utils/key\";\n/**\n * @slot - A slot for adding `calcite-accordion-item`s.\n */\nexport class CalciteAccordion {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** specify the appearance - default (containing border), or minimal (no containing border), defaults to default */\n this.appearance = \"default\";\n /** specify the placement of the icon in the header, defaults to end */\n this.iconPosition = \"end\";\n /** specify the type of the icon in the header, defaults to chevron */\n this.iconType = \"chevron\";\n /** specify the scale of accordion, defaults to m */\n this.scale = \"m\";\n /** specify the selection mode - multi (allow any number of open items), single (allow one open item),\n * or single-persist (allow and require one open item), defaults to multi */\n this.selectionMode = \"multi\";\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n /** created list of Accordion items */\n this.items = [];\n /** keep track of whether the items have been sorted so we don't re-sort */\n this.sorted = false;\n this.sortItems = (items) => items.sort((a, b) => a.position - b.position).map((a) => a.item);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidLoad() {\n if (!this.sorted) {\n this.items = this.sortItems(this.items);\n this.sorted = true;\n }\n }\n render() {\n return h(\"slot\", null);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n calciteAccordionItemKeyEvent(e) {\n const item = e.detail.item;\n const parent = e.detail.parent;\n if (this.el === parent) {\n const key = getKey(item.key);\n const itemToFocus = e.target;\n const isFirstItem = this.itemIndex(itemToFocus) === 0;\n const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;\n switch (key) {\n case \"ArrowDown\":\n if (isLastItem) {\n this.focusFirstItem();\n }\n else {\n this.focusNextItem(itemToFocus);\n }\n break;\n case \"ArrowUp\":\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 }\n registerCalciteAccordionItem(e) {\n const item = {\n item: e.target,\n parent: e.detail.parent,\n position: e.detail.position\n };\n if (this.el === item.parent) {\n this.items.push(item);\n }\n }\n updateActiveItemOnChange(event) {\n this.requestedAccordionItem = event.detail.requestedAccordionItem;\n this.calciteAccordionChange.emit({\n requestedAccordionItem: this.requestedAccordionItem\n });\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n focusFirstItem() {\n const firstItem = this.items[0];\n this.focusElement(firstItem);\n }\n focusLastItem() {\n const lastItem = this.items[this.items.length - 1];\n this.focusElement(lastItem);\n }\n focusNextItem(e) {\n const index = this.itemIndex(e);\n const nextItem = this.items[index + 1] || this.items[0];\n this.focusElement(nextItem);\n }\n focusPrevItem(e) {\n const index = this.itemIndex(e);\n const prevItem = this.items[index - 1] || this.items[this.items.length - 1];\n this.focusElement(prevItem);\n }\n itemIndex(e) {\n return this.items.indexOf(e);\n }\n focusElement(item) {\n const target = item;\n target.focus();\n }\n static get is() { return \"calcite-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-accordion.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-accordion.css\"]\n }; }\n static get properties() { return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"AccordionAppearance\",\n \"resolved\": \"\\\"default\\\" | \\\"minimal\\\" | \\\"transparent\\\"\",\n \"references\": {\n \"AccordionAppearance\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the appearance - default (containing border), or minimal (no containing border), defaults to default\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"default\\\"\"\n },\n \"iconPosition\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the placement of the icon in the header, defaults to end\"\n },\n \"attribute\": \"icon-position\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"end\\\"\"\n },\n \"iconType\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"chevron\\\" | \\\"caret\\\" | \\\"plus-minus\\\"\",\n \"resolved\": \"\\\"caret\\\" | \\\"chevron\\\" | \\\"plus-minus\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the type of the icon in the header, defaults to chevron\"\n },\n \"attribute\": \"icon-type\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"chevron\\\"\"\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 accordion, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"selectionMode\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"multi\\\" | \\\"single\\\" | \\\"single-persist\\\"\",\n \"resolved\": \"\\\"multi\\\" | \\\"single\\\" | \\\"single-persist\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the selection mode - multi (allow any number of open items), single (allow one open item),\\nor single-persist (allow and require one open item), defaults to multi\"\n },\n \"attribute\": \"selection-mode\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"multi\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteAccordionChange\",\n \"name\": \"calciteAccordionChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"calciteAccordionItemKeyEvent\",\n \"method\": \"calciteAccordionItemKeyEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteAccordionItemRegister\",\n \"method\": \"registerCalciteAccordionItem\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteAccordionItemSelect\",\n \"method\": \"updateActiveItemOnChange\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as a,h as i,g as n}from"./p-2e1cd889.js";import{c as e}from"./p-a10dc180.js";const s="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";let o=class{constructor(i){t(this,i);this.calciteOptionChange=a(this,"calciteOptionChange",7);this.disabled=false;this.mutationObserver=e("mutation",(()=>{this.ensureTextContentDependentProps();this.calciteOptionChange.emit()}))}handlePropChange(t,a,i){if(i==="label"||i==="value"){this.ensureTextContentDependentProps()}this.calciteOptionChange.emit()}ensureTextContentDependentProps(){const{el:{textContent:t}}=this;if(!this.label||this.label===this.internallySetLabel){this.label=t;this.internallySetLabel=t}if(!this.value||this.value===this.internallySetValue){this.value=t;this.internallySetValue=t}}connectedCallback(){var t;this.ensureTextContentDependentProps();(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,attributeFilter:["label","value"]})}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()}render(){return i("slot",null,this.label)}get el(){return n(this)}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"],selected:["handlePropChange"],value:["handlePropChange"]}}};o.style=s;export{o as calcite_option};
|
7
|
-
//# sourceMappingURL=p-3ae90cbb.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-option/calcite-option.css?tag=calcite-option&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-option/calcite-option.js"],"names":["calciteOptionCss","CalciteOption","[object Object]","hostRef","this","disabled","mutationObserver","createObserver","ensureTextContentDependentProps","calciteOptionChange","emit","_newValue","_oldValue","propName","el","textContent","label","internallySetLabel","value","internallySetValue","_a","observe","childList","attributeFilter","disconnect","h"],"mappings":";;;;;6FAAA,MAAMA,EAAmB,yyBCMZC,EAAa,MACxBC,YAAAC,sEASEC,KAAKC,SAAW,MAChBD,KAAKE,iBAAmBC,EAAe,YAAY,KACjDH,KAAKI,kCACLJ,KAAKK,oBAAoBC,UAG7BR,iBAAiBS,EAAWC,EAAWC,GACrC,GAAIA,IAAa,SAAWA,IAAa,QAAS,CAChDT,KAAKI,kCAEPJ,KAAKK,oBAAoBC,OAO3BR,kCACE,MAAQY,IAAIC,YAAEA,IAAkBX,KAChC,IAAKA,KAAKY,OAASZ,KAAKY,QAAUZ,KAAKa,mBAAoB,CACzDb,KAAKY,MAAQD,EACbX,KAAKa,mBAAqBF,EAE5B,IAAKX,KAAKc,OAASd,KAAKc,QAAUd,KAAKe,mBAAoB,CACzDf,KAAKc,MAAQH,EACbX,KAAKe,mBAAqBJ,GAQ9Bb,oBACE,IAAIkB,EACJhB,KAAKI,mCACJY,EAAKhB,KAAKE,oBAAsB,MAAQc,SAAY,OAAS,EAAIA,EAAGC,QAAQjB,KAAKU,GAAI,CACpFQ,UAAW,KACXC,gBAAiB,CAAC,QAAS,WAG/BrB,uBACE,IAAIkB,GACHA,EAAKhB,KAAKE,oBAAsB,MAAQc,SAAY,OAAS,EAAIA,EAAGI,aAOvEtB,SACE,OAAOuB,EAAE,OAAQ,KAAMrB,KAAKY","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: block;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, h, Prop, Element, Event, Watch } from \"@stencil/core\";\nimport { createObserver } from \"../../utils/observers\";\nexport class CalciteOption {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * When true, it prevents the option from being selected.\n */\n this.disabled = false;\n this.mutationObserver = createObserver(\"mutation\", () => {\n this.ensureTextContentDependentProps();\n this.calciteOptionChange.emit();\n });\n }\n handlePropChange(_newValue, _oldValue, propName) {\n if (propName === \"label\" || propName === \"value\") {\n this.ensureTextContentDependentProps();\n }\n this.calciteOptionChange.emit();\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n ensureTextContentDependentProps() {\n const { el: { textContent } } = this;\n if (!this.label || this.label === this.internallySetLabel) {\n this.label = textContent;\n this.internallySetLabel = textContent;\n }\n if (!this.value || this.value === this.internallySetValue) {\n this.value = textContent;\n this.internallySetValue = textContent;\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n this.ensureTextContentDependentProps();\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, {\n childList: true,\n attributeFilter: [\"label\", \"value\"]\n });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n render() {\n return h(\"slot\", null, this.label);\n }\n static get is() { return \"calcite-option\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-option.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-option.css\"]\n }; }\n static get properties() { return {\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, it prevents the option from being selected.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The option label.\"\n },\n \"attribute\": \"label\",\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\": \"When true, this option is selected. Otherwise, false.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value associated with this option.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteOptionChange\",\n \"name\": \"calciteOptionChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"disabled\",\n \"methodName\": \"handlePropChange\"\n }, {\n \"propName\": \"label\",\n \"methodName\": \"handlePropChange\"\n }, {\n \"propName\": \"selected\",\n \"methodName\": \"handlePropChange\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"handlePropChange\"\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 i,h as o,H as a,g as e}from"./p-2e1cd889.js";import{t as n,o as s,q as c,a as r,C as l,g as d}from"./p-7cc9c6af.js";import{f as p,b as h}from"./p-e762b2d1.js";import{c as m}from"./p-a10dc180.js";import{d as f}from"./p-eb2efc0f.js";import"./p-f780039d.js";import"./p-9df9ac35.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 u={actionGroupBottom:"action-group--bottom"};const x={bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"};const b={expand:"Expand",collapse:"Collapse"};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}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{align-self:stretch;display:inline-flex;flex-direction:column;pointer-events:auto;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2)}::slotted(calcite-action-group:last-child){border-bottom-width:0}.action-group--bottom{padding-bottom:0;flex-grow:1;justify-content:flex-end}";let v=class{constructor(o){t(this,o);this.calciteActionBarToggle=i(this,"calciteActionBarToggle",7);this.expandDisabled=false;this.expanded=false;this.overflowActionsDisabled=false;this.mutationObserver=m("mutation",(()=>{const{el:t,expanded:i}=this;n({parent:t,expanded:i});this.conditionallyOverflowActions()}));this.resizeObserver=m("resize",(t=>this.resizeHandlerEntries(t)));this.actionMenuOpenChangeHandler=t=>{if(t.detail){const i=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{if(!i.includes(t)){t.menuOpen=false}}))}};this.resizeHandlerEntries=t=>{t.forEach(this.resizeHandler)};this.resizeHandler=t=>{const{height:i}=t.contentRect;this.resize(i)};this.resize=f((t=>{var i;const{el:o,expanded:a,expandDisabled:e}=this;if(!t){return}const n=c(o);const s=e?n.length:n.length+1;const l=Array.from(o.querySelectorAll("calcite-action-group"));const p=h(o,x.bottomActions)||!e?l.length+1:l.length;const m=d({actionCount:s,actionHeight:(i=n[0])===null||i===void 0?void 0:i.clientHeight,height:t,groupCount:p});r({actionGroups:l,expanded:a,overflowCount:m})}),s);this.conditionallyOverflowActions=()=>{if(!this.overflowActionsDisabled){this.overflowActions()}};this.toggleExpand=()=>{this.expanded=!this.expanded};this.setExpandToggleRef=t=>{this.expandToggleEl=t}}expandHandler(t){if(!t){n({parent:this.el,expanded:this.expanded})}this.conditionallyOverflowActions()}expandedHandler(t){if(!this.expandDisabled){n({parent:this.el,expanded:t})}this.calciteActionBarToggle.emit()}overflowDisabledHandler(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)}componentDidLoad(){this.conditionallyOverflowActions()}connectedCallback(){var t,i;const{el:o,expandDisabled:a,expanded:e}=this;if(!a){n({parent:o,expanded:e})}(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(o,{childList:true,subtree:true});if(!this.overflowActionsDisabled){(i=this.resizeObserver)===null||i===void 0?void 0:i.observe(o)}this.conditionallyOverflowActions()}disconnectedCallback(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=this.resizeObserver)===null||i===void 0?void 0:i.disconnect()}async overflowActions(){this.resize(this.el.clientHeight)}async setFocus(t){if(t==="expand-toggle"){await p(this.expandToggleEl);return}this.el.focus()}renderBottomActionGroup(){const{expanded:t,expandDisabled:i,intlExpand:a,intlCollapse:e,el:n,position:s,toggleExpand:c,scale:r}=this;const d=h(n,x.expandTooltip);const p=a||b.expand;const m=e||b.collapse;const f=!i?o(l,{el:n,expanded:t,intlCollapse:m,intlExpand:p,position:s,ref:this.setExpandToggleRef,scale:r,toggle:c,tooltip:d}):null;return h(n,x.bottomActions)||f?o("calcite-action-group",{class:u.actionGroupBottom,scale:r},o("slot",{name:x.bottomActions}),o("slot",{name:x.expandTooltip}),f):null}render(){return o(a,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},o("slot",null),this.renderBottomActionGroup())}get el(){return e(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}}};v.style=g;export{v as calcite_action_bar};
|
11
|
-
//# sourceMappingURL=p-3c3ccd03.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-action-bar/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-action-bar/calcite-action-bar.css?tag=calcite-action-bar&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-action-bar/calcite-action-bar.js"],"names":["CSS","actionGroupBottom","SLOTS","bottomActions","expandTooltip","TEXT","expand","collapse","calciteActionBarCss","CalciteActionBar","[object Object]","hostRef","this","expandDisabled","expanded","overflowActionsDisabled","mutationObserver","createObserver","el","toggleChildActionText","parent","conditionallyOverflowActions","resizeObserver","entries","resizeHandlerEntries","actionMenuOpenChangeHandler","event","detail","composedPath","Array","from","querySelectorAll","forEach","group","includes","menuOpen","resizeHandler","entry","height","contentRect","resize","debounce","_a","actions","queryActions","actionCount","length","actionGroups","groupCount","getSlotted","overflowCount","getOverflowCount","actionHeight","clientHeight","overflowActions","overflowActionsDebounceInMs","toggleExpand","setExpandToggleRef","expandToggleEl","calciteActionBarToggle","emit","disconnect","observe","_b","childList","subtree","focusId","focusElement","focus","intlExpand","intlCollapse","position","scale","tooltip","expandLabel","collapseLabel","expandToggleNode","h","CalciteExpandToggle","ref","toggle","class","name","Host","onCalciteActionMenuOpenChange","renderBottomActionGroup"],"mappings":"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","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n actionGroupBottom: \"action-group--bottom\"\n};\nexport const SLOTS = {\n bottomActions: \"bottom-actions\",\n expandTooltip: \"expand-tooltip\"\n};\nexport const TEXT = {\n expand: \"Expand\",\n collapse: \"Collapse\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n align-self: stretch;\n display: inline-flex;\n flex-direction: column;\n pointer-events: auto;\n max-width: 15vw;\n}\n\n:host([overflow-actions-disabled]) {\n overflow-y: auto;\n}\n\n:host([expanded]) {\n max-width: 20vw;\n}\n\n::slotted(calcite-action-group) {\n border-width: 0;\n border-bottom-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n}\n\n::slotted(calcite-action-group:last-child) {\n border-bottom-width: 0;\n}\n\n.action-group--bottom {\n padding-bottom: 0;\n flex-grow: 1;\n justify-content: flex-end;\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, Host, Prop, Watch, h, Method } from \"@stencil/core\";\nimport { CalciteExpandToggle, toggleChildActionText } from \"../functional/CalciteExpandToggle\";\nimport { CSS, SLOTS, TEXT } from \"./resources\";\nimport { getSlotted, focusElement } from \"../../utils/dom\";\nimport { getOverflowCount, overflowActions, queryActions, overflowActionsDebounceInMs } from \"./utils\";\nimport { createObserver } from \"../../utils/observers\";\nimport { debounce } from \"lodash-es\";\n/**\n * @slot - A slot for adding `calcite-action`s that will appear at the top of the action bar.\n * @slot bottom-actions - A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button.\n * @slot expand-tooltip - Used to set the tooltip for the expand toggle.\n */\nexport class CalciteActionBar {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When set to true, the expand-toggling behavior will be disabled.\n */\n this.expandDisabled = false;\n /**\n * Indicates whether widget is expanded.\n */\n this.expanded = false;\n /**\n * Disables automatically overflowing actions that won't fit into menus.\n */\n this.overflowActionsDisabled = false;\n this.mutationObserver = createObserver(\"mutation\", () => {\n const { el, expanded } = this;\n toggleChildActionText({ parent: el, expanded });\n this.conditionallyOverflowActions();\n });\n this.resizeObserver = createObserver(\"resize\", (entries) => this.resizeHandlerEntries(entries));\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.actionMenuOpenChangeHandler = (event) => {\n if (event.detail) {\n const composedPath = event.composedPath();\n Array.from(this.el.querySelectorAll(\"calcite-action-group\")).forEach((group) => {\n if (!composedPath.includes(group)) {\n group.menuOpen = false;\n }\n });\n }\n };\n this.resizeHandlerEntries = (entries) => {\n entries.forEach(this.resizeHandler);\n };\n this.resizeHandler = (entry) => {\n const { height } = entry.contentRect;\n this.resize(height);\n };\n this.resize = debounce((height) => {\n var _a;\n const { el, expanded, expandDisabled } = this;\n if (!height) {\n return;\n }\n const actions = queryActions(el);\n const actionCount = expandDisabled ? actions.length : actions.length + 1;\n const actionGroups = Array.from(el.querySelectorAll(\"calcite-action-group\"));\n const groupCount = getSlotted(el, SLOTS.bottomActions) || !expandDisabled\n ? actionGroups.length + 1\n : actionGroups.length;\n const overflowCount = getOverflowCount({\n actionCount,\n actionHeight: (_a = actions[0]) === null || _a === void 0 ? void 0 : _a.clientHeight,\n height,\n groupCount\n });\n overflowActions({\n actionGroups,\n expanded,\n overflowCount\n });\n }, overflowActionsDebounceInMs);\n this.conditionallyOverflowActions = () => {\n if (!this.overflowActionsDisabled) {\n this.overflowActions();\n }\n };\n this.toggleExpand = () => {\n this.expanded = !this.expanded;\n };\n this.setExpandToggleRef = (el) => {\n this.expandToggleEl = el;\n };\n }\n expandHandler(expandDisabled) {\n if (!expandDisabled) {\n toggleChildActionText({ parent: this.el, expanded: this.expanded });\n }\n this.conditionallyOverflowActions();\n }\n expandedHandler(expanded) {\n if (!this.expandDisabled) {\n toggleChildActionText({ parent: this.el, expanded });\n }\n this.calciteActionBarToggle.emit();\n }\n overflowDisabledHandler(overflowActionsDisabled) {\n overflowActionsDisabled\n ? this.resizeObserver.disconnect()\n : this.resizeObserver.observe(this.el);\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n componentDidLoad() {\n this.conditionallyOverflowActions();\n }\n connectedCallback() {\n var _a, _b;\n const { el, expandDisabled, expanded } = this;\n if (!expandDisabled) {\n toggleChildActionText({ parent: el, expanded });\n }\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });\n if (!this.overflowActionsDisabled) {\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);\n }\n this.conditionallyOverflowActions();\n }\n disconnectedCallback() {\n var _a, _b;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Overflows actions that won't fit into menus.\n * @internal\n */\n async overflowActions() {\n this.resize(this.el.clientHeight);\n }\n /** Sets focus on the component. */\n async setFocus(focusId) {\n if (focusId === \"expand-toggle\") {\n await focusElement(this.expandToggleEl);\n return;\n }\n this.el.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderBottomActionGroup() {\n const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;\n const tooltip = getSlotted(el, SLOTS.expandTooltip);\n const expandLabel = intlExpand || TEXT.expand;\n const collapseLabel = intlCollapse || TEXT.collapse;\n const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;\n return getSlotted(el, SLOTS.bottomActions) || expandToggleNode ? (h(\"calcite-action-group\", { class: CSS.actionGroupBottom, scale: scale },\n h(\"slot\", { name: SLOTS.bottomActions }),\n h(\"slot\", { name: SLOTS.expandTooltip }),\n expandToggleNode)) : null;\n }\n render() {\n return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler },\n h(\"slot\", null),\n this.renderBottomActionGroup()));\n }\n static get is() { return \"calcite-action-bar\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-action-bar.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-action-bar.css\"]\n }; }\n static get properties() { return {\n \"expandDisabled\": {\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 set to true, the expand-toggling behavior will be disabled.\"\n },\n \"attribute\": \"expand-disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates whether widget is expanded.\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlExpand\": {\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\": \"Updates the label of the expand icon when the component is not expanded.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false\n },\n \"intlCollapse\": {\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\": \"Updates the label of the collapse icon when the component is expanded.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false\n },\n \"overflowActionsDisabled\": {\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 automatically overflowing actions that won't fit into menus.\"\n },\n \"attribute\": \"overflow-actions-disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"position\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Arranges the component depending on the elements 'dir' property.\"\n },\n \"attribute\": \"position\",\n \"reflect\": true\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\": \"Specifies the size of the expand action.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteActionBarToggle\",\n \"name\": \"calciteActionBarToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when expanded has been toggled.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"overflowActions\": {\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\": \"Overflows actions that won't fit into menus.\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"expand-toggle\\\") => 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 \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"expandDisabled\",\n \"methodName\": \"expandHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }, {\n \"propName\": \"overflowActionsDisabled\",\n \"methodName\": \"overflowDisabledHandler\"\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 i,h as e,F as s,g as a}from"./p-2e1cd889.js";import{a as n}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const o={page:"page",selected:"is-selected",previous:"previous",next:"next",disabled:"is-disabled",ellipsis:"ellipsis",ellipsisStart:"ellipsis--start",ellipsisEnd:"ellipsis--end"};const r={nextLabel:"Next",previousLabel:"Previous"};const l="@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-pagination-spacing:0.25rem 0.5rem}:host([scale=s]) .previous,:host([scale=s]) .next,:host([scale=s]) .page{font-size:var(--calcite-font-size--2);line-height:1rem;height:1.5rem}:host([scale=s]) .previous,:host([scale=s]) .next{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]){--calcite-pagination-spacing:0.5rem 0.75rem}:host([scale=m]) .previous,:host([scale=m]) .next,:host([scale=m]) .page{font-size:var(--calcite-font-size--1);line-height:1rem;height:2rem}:host([scale=m]) .previous,:host([scale=m]) .next{padding-left:0.5rem;padding-right:0.5rem}:host([scale=l]){--calcite-pagination-spacing:0.75rem 1rem}:host([scale=l]) .previous,:host([scale=l]) .next,:host([scale=l]) .page{font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l]) .previous,:host([scale=l]) .next{padding-left:1rem;padding-right:1rem}:host{display:flex;writing-mode:horizontal-tb}:host button{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.previous,.next,.page{display:flex;align-items:center;background-color:transparent;border-style:none;--border-opacity:0;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3);cursor:pointer;font-family:inherit;box-sizing:border-box;border-top:2px solid transparent;border-bottom:2px solid transparent}.previous:hover,.next:hover,.page:hover{color:var(--calcite-ui-text-1);transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}.page:hover{border-bottom-color:var(--calcite-ui-border-2)}.page.is-selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-bottom-color:var(--calcite-ui-brand)}.previous:hover,.next:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}.previous:active,.next:active{background-color:var(--calcite-ui-foreground-3)}.previous.is-disabled,.next.is-disabled{background-color:transparent;pointer-events:none}.previous.is-disabled>calcite-icon,.next.is-disabled>calcite-icon{opacity:var(--calcite-ui-opacity-disabled)}.next{margin-right:0}.page,.ellipsis{padding:var(--calcite-pagination-spacing)}.ellipsis{display:flex;align-items:flex-end;color:var(--calcite-ui-text-3)}";const c=5;let h=class{constructor(e){t(this,e);this.calcitePaginationUpdate=i(this,"calcitePaginationUpdate",7);this.calcitePaginationChange=i(this,"calcitePaginationChange",7);this.num=20;this.start=1;this.total=0;this.textLabelNext=r.nextLabel;this.textLabelPrevious=r.previousLabel;this.scale="m";this.previousClicked=()=>{this.previousPage().then();this.emitUpdate()};this.nextClicked=()=>{this.nextPage();this.emitUpdate()}}async nextPage(){this.start=Math.min(this.getLastStart(),this.start+this.num)}async previousPage(){this.start=Math.max(1,this.start-this.num)}getLastStart(){const{total:t,num:i}=this;const e=t%i===0?t-i:Math.floor(t/i)*i;return e+1}showLeftEllipsis(){return Math.floor(this.start/this.num)>3}showRightEllipsis(){return(this.total-this.start)/this.num>3}emitUpdate(){const t={start:this.start,total:this.total,num:this.num};this.calcitePaginationChange.emit(t);this.calcitePaginationUpdate.emit(t)}renderPages(){const t=this.getLastStart();let i;let e;if(this.total/this.num<=c){e=1+this.num;i=t-this.num}else{if(this.start/this.num<c-1){e=1+this.num;i=1+4*this.num}else{if(this.start+3*this.num>=this.total){e=t-4*this.num;i=t-this.num}else{e=this.start-this.num;i=this.start+this.num}}}const s=[];while(e<=i){s.push(e);e=e+this.num}return s.map((t=>this.renderPage(t)))}renderPage(t){const i=Math.floor(t/this.num)+(this.num===1?0:1);return e("button",{class:{[o.page]:true,[o.selected]:t===this.start},onClick:()=>{this.start=t;this.emitUpdate()}},i)}renderLeftEllipsis(){if(this.total/this.num>c&&this.showLeftEllipsis()){return e("span",{class:`${o.ellipsis} ${o.ellipsisStart}`},"…")}}renderRightEllipsis(){if(this.total/this.num>c&&this.showRightEllipsis()){return e("span",{class:`${o.ellipsis} ${o.ellipsisEnd}`},"…")}}render(){const t=n(this.el);const{total:i,num:a,start:r}=this;const l=a===1?r<=a:r<a;const c=a===1?r+a>i:r+a>i;return e(s,null,e("button",{"aria-label":this.textLabelPrevious,class:{[o.previous]:true,[o.disabled]:l},disabled:l,onClick:this.previousClicked},e("calcite-icon",{dir:t,flipRtl:true,icon:"chevronLeft",scale:"s"})),i>a?this.renderPage(1):null,this.renderLeftEllipsis(),this.renderPages(),this.renderRightEllipsis(),this.renderPage(this.getLastStart()),e("button",{"aria-label":this.textLabelNext,class:{[o.next]:true,[o.disabled]:c},disabled:c,onClick:this.nextClicked},e("calcite-icon",{dir:t,flipRtl:true,icon:"chevronRight",scale:"s"})))}get el(){return a(this)}};h.style=l;export{h as calcite_pagination};
|
11
|
-
//# sourceMappingURL=p-3e168893.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-pagination/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-pagination/calcite-pagination.css?tag=calcite-pagination&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-pagination/calcite-pagination.js"],"names":["CSS","page","selected","previous","next","disabled","ellipsis","ellipsisStart","ellipsisEnd","TEXT","nextLabel","previousLabel","calcitePaginationCss","maxPagesDisplayed","CalcitePagination","[object Object]","hostRef","this","num","start","total","textLabelNext","textLabelPrevious","scale","previousClicked","previousPage","then","emitUpdate","nextClicked","nextPage","Math","min","getLastStart","max","lastStart","floor","changePayload","calcitePaginationChange","emit","calcitePaginationUpdate","end","nextStart","pages","push","map","renderPage","h","class","onClick","showLeftEllipsis","showRightEllipsis","dir","getElementDir","el","prevDisabled","nextDisabled","Fragment","aria-label","flipRtl","icon","renderLeftEllipsis","renderPages","renderRightEllipsis"],"mappings":"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","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n page: \"page\",\n selected: \"is-selected\",\n previous: \"previous\",\n next: \"next\",\n disabled: \"is-disabled\",\n ellipsis: \"ellipsis\",\n ellipsisStart: \"ellipsis--start\",\n ellipsisEnd: \"ellipsis--end\"\n};\nexport const TEXT = {\n nextLabel: \"Next\",\n previousLabel: \"Previous\"\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-pagination-spacing: the amount of padding around each pagination item\n*/\n\n:host([scale=s]) {\n --calcite-pagination-spacing: 0.25rem 0.5rem;\n}\n\n:host([scale=s]) .previous, :host([scale=s]) .next, :host([scale=s]) .page {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n height: 1.5rem;\n}\n\n:host([scale=s]) .previous,\n:host([scale=s]) .next {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n:host([scale=m]) {\n --calcite-pagination-spacing: 0.5rem 0.75rem;\n}\n\n:host([scale=m]) .previous, :host([scale=m]) .next, :host([scale=m]) .page {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n height: 2rem;\n}\n\n:host([scale=m]) .previous,\n:host([scale=m]) .next {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n:host([scale=l]) {\n --calcite-pagination-spacing: 0.75rem 1rem;\n}\n\n:host([scale=l]) .previous, :host([scale=l]) .next, :host([scale=l]) .page {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n height: 2.75rem;\n}\n\n:host([scale=l]) .previous,\n:host([scale=l]) .next {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n:host {\n display: flex;\n writing-mode: horizontal-tb;\n}\n\n:host button {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host button:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.previous,\n.next,\n.page {\n display: flex;\n align-items: center;\n background-color: transparent;\n border-style: none;\n --border-opacity: 0;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n color: var(--calcite-ui-text-3);\n cursor: pointer;\n font-family: inherit;\n box-sizing: border-box;\n border-top: 2px solid transparent;\n border-bottom: 2px solid transparent;\n}\n\n.previous:hover,\n.next:hover,\n.page:hover {\n color: var(--calcite-ui-text-1);\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n}\n\n.page:hover {\n border-bottom-color: var(--calcite-ui-border-2);\n}\n\n.page.is-selected {\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n border-bottom-color: var(--calcite-ui-brand);\n}\n\n.previous:hover,\n.next:hover {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-brand);\n}\n\n.previous:active,\n.next:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n.previous.is-disabled,\n.next.is-disabled {\n background-color: transparent;\n pointer-events: none;\n}\n\n.previous.is-disabled > calcite-icon,\n.next.is-disabled > calcite-icon {\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n.next {\n margin-right: 0;\n}\n\n.page,\n.ellipsis {\n padding: var(--calcite-pagination-spacing);\n}\n\n.ellipsis {\n display: flex;\n align-items: flex-end;\n color: var(--calcite-ui-text-3);\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, Prop, Method, Fragment } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { CSS, TEXT } from \"./resources\";\nconst maxPagesDisplayed = 5;\nexport class CalcitePagination {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** number of items per page */\n this.num = 20;\n /** index of item that should begin the page */\n this.start = 1;\n /** total number of items */\n this.total = 0;\n /** Used as an accessible label (aria-label) for the next button\n * @default \"Next\"\n */\n this.textLabelNext = TEXT.nextLabel;\n /** Used as an accessible label (aria-label) of the previous button\n * @default \"Previous\"\n */\n this.textLabelPrevious = TEXT.previousLabel;\n /** The scale of the pagination */\n this.scale = \"m\";\n this.previousClicked = () => {\n this.previousPage().then();\n this.emitUpdate();\n };\n this.nextClicked = () => {\n this.nextPage();\n this.emitUpdate();\n };\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Go to the next page of results */\n async nextPage() {\n this.start = Math.min(this.getLastStart(), this.start + this.num);\n }\n /** Go to the previous page of results */\n async previousPage() {\n this.start = Math.max(1, this.start - this.num);\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n getLastStart() {\n const { total, num } = this;\n const lastStart = total % num === 0 ? total - num : Math.floor(total / num) * num;\n return lastStart + 1;\n }\n showLeftEllipsis() {\n return Math.floor(this.start / this.num) > 3;\n }\n showRightEllipsis() {\n return (this.total - this.start) / this.num > 3;\n }\n emitUpdate() {\n const changePayload = {\n start: this.start,\n total: this.total,\n num: this.num\n };\n this.calcitePaginationChange.emit(changePayload);\n this.calcitePaginationUpdate.emit(changePayload);\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n renderPages() {\n const lastStart = this.getLastStart();\n let end;\n let nextStart;\n // if we don't need ellipses render the whole set\n if (this.total / this.num <= maxPagesDisplayed) {\n nextStart = 1 + this.num;\n end = lastStart - this.num;\n }\n else {\n // if we're within max pages of page 1\n if (this.start / this.num < maxPagesDisplayed - 1) {\n nextStart = 1 + this.num;\n end = 1 + 4 * this.num;\n }\n else {\n // if we're within max pages of last page\n if (this.start + 3 * this.num >= this.total) {\n nextStart = lastStart - 4 * this.num;\n end = lastStart - this.num;\n }\n else {\n nextStart = this.start - this.num;\n end = this.start + this.num;\n }\n }\n }\n const pages = [];\n while (nextStart <= end) {\n pages.push(nextStart);\n nextStart = nextStart + this.num;\n }\n return pages.map((page) => this.renderPage(page));\n }\n renderPage(start) {\n const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);\n return (h(\"button\", { class: {\n [CSS.page]: true,\n [CSS.selected]: start === this.start\n }, onClick: () => {\n this.start = start;\n this.emitUpdate();\n } }, page));\n }\n renderLeftEllipsis() {\n if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {\n return h(\"span\", { class: `${CSS.ellipsis} ${CSS.ellipsisStart}` }, \"\\u2026\");\n }\n }\n renderRightEllipsis() {\n if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {\n return h(\"span\", { class: `${CSS.ellipsis} ${CSS.ellipsisEnd}` }, \"\\u2026\");\n }\n }\n render() {\n const dir = getElementDir(this.el);\n const { total, num, start } = this;\n const prevDisabled = num === 1 ? start <= num : start < num;\n const nextDisabled = num === 1 ? start + num > total : start + num > total;\n return (h(Fragment, null,\n h(\"button\", { \"aria-label\": this.textLabelPrevious, class: {\n [CSS.previous]: true,\n [CSS.disabled]: prevDisabled\n }, disabled: prevDisabled, onClick: this.previousClicked },\n h(\"calcite-icon\", { dir: dir, flipRtl: true, icon: \"chevronLeft\", scale: \"s\" })),\n total > num ? this.renderPage(1) : null,\n this.renderLeftEllipsis(),\n this.renderPages(),\n this.renderRightEllipsis(),\n this.renderPage(this.getLastStart()),\n h(\"button\", { \"aria-label\": this.textLabelNext, class: {\n [CSS.next]: true,\n [CSS.disabled]: nextDisabled\n }, disabled: nextDisabled, onClick: this.nextClicked },\n h(\"calcite-icon\", { dir: dir, flipRtl: true, icon: \"chevronRight\", scale: \"s\" }))));\n }\n static get is() { return \"calcite-pagination\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-pagination.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pagination.css\"]\n }; }\n static get properties() { return {\n \"num\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"number of items per page\"\n },\n \"attribute\": \"num\",\n \"reflect\": false,\n \"defaultValue\": \"20\"\n },\n \"start\": {\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\": \"index of item that should begin the page\"\n },\n \"attribute\": \"start\",\n \"reflect\": false,\n \"defaultValue\": \"1\"\n },\n \"total\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"total number of items\"\n },\n \"attribute\": \"total\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"textLabelNext\": {\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\": \"\\\"Next\\\"\"\n }],\n \"text\": \"Used as an accessible label (aria-label) for the next button\"\n },\n \"attribute\": \"text-label-next\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.nextLabel\"\n },\n \"textLabelPrevious\": {\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\": \"\\\"Previous\\\"\"\n }],\n \"text\": \"Used as an accessible label (aria-label) of the previous button\"\n },\n \"attribute\": \"text-label-previous\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.previousLabel\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale of the pagination\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calcitePaginationUpdate\",\n \"name\": \"calcitePaginationUpdate\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use calcitePaginationChange instead\"\n }],\n \"text\": \"Emitted whenever the selected page changes.\"\n },\n \"complexType\": {\n \"original\": \"CalcitePaginationDetail\",\n \"resolved\": \"CalcitePaginationDetail\",\n \"references\": {\n \"CalcitePaginationDetail\": {\n \"location\": \"local\"\n }\n }\n }\n }, {\n \"method\": \"calcitePaginationChange\",\n \"name\": \"calcitePaginationChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [CalcitePaginationDetail](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pagination/calcite-pagination.tsx#L18)\"\n }],\n \"text\": \"Emitted whenever the selected page changes.\"\n },\n \"complexType\": {\n \"original\": \"CalcitePaginationDetail\",\n \"resolved\": \"CalcitePaginationDetail\",\n \"references\": {\n \"CalcitePaginationDetail\": {\n \"location\": \"local\"\n }\n }\n }\n }]; }\n static get methods() { return {\n \"nextPage\": {\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\": \"Go to the next page of results\",\n \"tags\": []\n }\n },\n \"previousPage\": {\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\": \"Go to the previous page of results\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/array.js"],"names":["getRoundRobinIndex","index","total"],"mappings":";;;;;;;;;AAIO,SAASA,EAAmBC,EAAOC,GACxC,OAAQD,EAAQC,GAASA","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport function getRoundRobinIndex(index, total) {\n return (index + total) % total;\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 s,H as a,g as e}from"./p-2e1cd889.js";import{g as n}from"./p-ec178ea9.js";import{a as o,f as r}from"./p-e762b2d1.js";import{c as h,d as c,g as l}from"./p-cb5cb9a8.js";import{c as d,d as m,H as p}from"./p-0b8525e2.js";import{g as f}from"./p-7df393df.js";import{g as u}from"./p-3e67ed97.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 g={container:"container"};const b="@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{cursor:pointer;display:block}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host([disabled]){cursor:pointer}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";let k=class{constructor(s){t(this,s);this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",7);this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",7);this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",7);this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",7);this.checked=false;this.disabled=false;this.focused=false;this.hidden=false;this.hovered=false;this.required=false;this.scale="m";this.selectItem=(t,i)=>{t[i].click()};this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));this.isDefaultSelectable=()=>{const t=this.queryButtons();return!t.some((t=>t.checked))&&t[0]===this.el};this.check=()=>{if(this.disabled){return}this.uncheckAllRadioButtonsInGroup();this.checked=true;this.calciteRadioButtonChange.emit();this.setFocus()};this.clickHandler=()=>{this.check()};this.setContainerEl=t=>{this.containerEl=t};this.handleKeyDown=t=>{const i=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "];const s=f(t.key);const{el:a}=this;if(i.indexOf(s)===-1){return}if(s===" "){this.check();return}let e=s;if(o(a)==="rtl"){if(s==="ArrowRight"){e="ArrowLeft"}if(s==="ArrowLeft"){e="ArrowRight"}}const n=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let r=0;const h=n.length;n.some(((t,i)=>{if(t.checked){r=i;return true}}));switch(e){case"ArrowLeft":case"ArrowUp":t.preventDefault();this.selectItem(n,u(Math.max(r-1,-1),h));return;case"ArrowRight":case"ArrowDown":t.preventDefault();this.selectItem(n,u(r+1,h));return;default:return}};this.onContainerBlur=()=>{this.focused=false;this.calciteInternalRadioButtonBlur.emit()};this.onContainerFocus=()=>{this.focused=true;this.calciteInternalRadioButtonFocus.emit()}}checkedChanged(t){if(t){this.uncheckOtherRadioButtonsInGroup()}this.calciteInternalRadioButtonCheckedChange.emit(t)}nameChanged(){this.checkLastRadioButton();const t=this.rootNode.querySelector(`input[name="${this.name}"]:checked`);if(!(t===null||t===void 0?void 0:t.value)){this.uncheckAllRadioButtonsInGroup()}}async setFocus(){r(this.containerEl)}onLabelClick(t){if(!this.disabled&&!this.hidden){this.uncheckOtherRadioButtonsInGroup();const i=t.currentTarget;const s=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);if(s){s.checked=true;s.focused=true}this.calciteRadioButtonChange.emit();this.setFocus()}}checkLastRadioButton(){const t=this.queryButtons();const i=t.filter((t=>t.checked));if((i===null||i===void 0?void 0:i.length)>1){const t=i[i.length-1];i.filter((i=>i!==t)).forEach((t=>{t.checked=false;t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){const t=this.queryButtons();t.forEach((t=>{if(t.checked){t.checked=false;t.focused=false}}))}uncheckOtherRadioButtonsInGroup(){const t=this.queryButtons();const i=t.filter((t=>t.guid!==this.guid));i.forEach((t=>{if(t.checked){t.checked=false;t.focused=false}}))}mouseenter(){this.hovered=true}mouseleave(){this.hovered=false}connectedCallback(){this.rootNode=this.el.getRootNode();this.guid=this.el.id||`calcite-radio-button-${n()}`;if(this.name){this.checkLastRadioButton()}h(this);d(this)}componentDidLoad(){if(this.focused){this.setFocus()}}disconnectedCallback(){c(this);m(this)}render(){return s(a,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},s("div",{"aria-checked":this.checked.toString(),"aria-label":l(this),class:g.container,onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,ref:this.setContainerEl,role:"radio",tabIndex:this.checked||this.isDefaultSelectable()?0:-1},s("calcite-radio",{checked:this.checked,disabled:this.disabled,focused:this.focused,hidden:this.hidden,hovered:this.hovered,scale:this.scale})),s(p,{component:this}))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};k.style=b;export{k as calcite_radio_button};
|
11
|
-
//# sourceMappingURL=p-3ed5096e.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button/calcite-radio-button.css?tag=calcite-radio-button&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button/calcite-radio-button.js"],"names":["CSS","container","calciteRadioButtonCss","CalciteRadioButton","[object Object]","hostRef","this","checked","disabled","focused","hidden","hovered","required","scale","selectItem","items","selectedIndex","click","queryButtons","Array","from","rootNode","querySelectorAll","filter","radioButton","name","isDefaultSelectable","radioButtons","some","el","check","uncheckAllRadioButtonsInGroup","calciteRadioButtonChange","emit","setFocus","clickHandler","setContainerEl","containerEl","handleKeyDown","event","keys","key","getKey","indexOf","adjustedKey","getElementDir","currentIndex","radioButtonsLength","length","item","index","preventDefault","getRoundRobinIndex","Math","max","onContainerBlur","calciteInternalRadioButtonBlur","onContainerFocus","calciteInternalRadioButtonFocus","newChecked","uncheckOtherRadioButtonsInGroup","calciteInternalRadioButtonCheckedChange","checkLastRadioButton","currentValue","querySelector","value","focusElement","label","currentTarget","for","checkedRadioButtons","lastCheckedRadioButton","checkedRadioButton","forEach","emitCheckedChange","otherRadioButtons","guid","otherRadioButton","getRootNode","id","connectLabel","connectForm","disconnectLabel","disconnectForm","h","Host","onClick","onKeyDown","aria-checked","toString","aria-label","getLabelText","class","onBlur","onFocus","ref","role","tabIndex","HiddenFormInputSlot","component"],"mappings":"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","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n container: \"container\"\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 cursor: pointer;\n display: block;\n}\n\n:host .container {\n position: relative;\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n:host([disabled]) {\n cursor: pointer;\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, h, Host, Listen, Method, Prop, Watch } from \"@stencil/core\";\nimport { guid } from \"../../utils/guid\";\nimport { focusElement } from \"../../utils/dom\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { HiddenFormInputSlot, connectForm, disconnectForm } from \"../../utils/form\";\nimport { CSS } from \"./resources\";\nimport { getKey } from \"../../utils/key\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { getRoundRobinIndex } from \"../../utils/array\";\nexport class CalciteRadioButton {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The checked state of the radio button. */\n this.checked = false;\n /** The disabled state of the radio button. */\n this.disabled = false;\n /**\n * The focused state of the radio button.\n * @internal\n */\n this.focused = false;\n /** The radio button's hidden status. When a radio button is hidden it is not focusable or checkable. */\n this.hidden = false;\n /**\n * The hovered state of the radio button.\n * @internal\n */\n this.hovered = false;\n /** Requires that a value is selected for the radio button group before the parent form will submit. */\n this.required = false;\n /** The scale (size) of the radio button. `scale` is passed as a property automatically from `calcite-radio-button-group`. */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.selectItem = (items, selectedIndex) => {\n items[selectedIndex].click();\n };\n this.queryButtons = () => {\n return Array.from(this.rootNode.querySelectorAll(\"calcite-radio-button:not([hidden]\")).filter((radioButton) => radioButton.name === this.name);\n };\n this.isDefaultSelectable = () => {\n const radioButtons = this.queryButtons();\n return !radioButtons.some((radioButton) => radioButton.checked) && radioButtons[0] === this.el;\n };\n this.check = () => {\n if (this.disabled) {\n return;\n }\n this.uncheckAllRadioButtonsInGroup();\n this.checked = true;\n this.calciteRadioButtonChange.emit();\n this.setFocus();\n };\n this.clickHandler = () => {\n this.check();\n };\n this.setContainerEl = (el) => {\n this.containerEl = el;\n };\n this.handleKeyDown = (event) => {\n const keys = [\"ArrowLeft\", \"ArrowUp\", \"ArrowRight\", \"ArrowDown\", \" \"];\n const key = getKey(event.key);\n const { el } = this;\n if (keys.indexOf(key) === -1) {\n return;\n }\n if (key === \" \") {\n this.check();\n return;\n }\n let adjustedKey = key;\n if (getElementDir(el) === \"rtl\") {\n if (key === \"ArrowRight\") {\n adjustedKey = \"ArrowLeft\";\n }\n if (key === \"ArrowLeft\") {\n adjustedKey = \"ArrowRight\";\n }\n }\n const radioButtons = Array.from(this.rootNode.querySelectorAll(\"calcite-radio-button:not([hidden]\")).filter((radioButton) => radioButton.name === this.name);\n let currentIndex = 0;\n const radioButtonsLength = radioButtons.length;\n radioButtons.some((item, index) => {\n if (item.checked) {\n currentIndex = index;\n return true;\n }\n });\n switch (adjustedKey) {\n case \"ArrowLeft\":\n case \"ArrowUp\":\n event.preventDefault();\n this.selectItem(radioButtons, getRoundRobinIndex(Math.max(currentIndex - 1, -1), radioButtonsLength));\n return;\n case \"ArrowRight\":\n case \"ArrowDown\":\n event.preventDefault();\n this.selectItem(radioButtons, getRoundRobinIndex(currentIndex + 1, radioButtonsLength));\n return;\n default:\n return;\n }\n };\n this.onContainerBlur = () => {\n this.focused = false;\n this.calciteInternalRadioButtonBlur.emit();\n };\n this.onContainerFocus = () => {\n this.focused = true;\n this.calciteInternalRadioButtonFocus.emit();\n };\n }\n checkedChanged(newChecked) {\n if (newChecked) {\n this.uncheckOtherRadioButtonsInGroup();\n }\n this.calciteInternalRadioButtonCheckedChange.emit(newChecked);\n }\n nameChanged() {\n this.checkLastRadioButton();\n const currentValue = this.rootNode.querySelector(`input[name=\"${this.name}\"]:checked`);\n if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {\n this.uncheckAllRadioButtonsInGroup();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.containerEl);\n }\n onLabelClick(event) {\n if (!this.disabled && !this.hidden) {\n this.uncheckOtherRadioButtonsInGroup();\n const label = event.currentTarget;\n const radioButton = label.for\n ? this.rootNode.querySelector(`calcite-radio-button[id=\"${label.for}\"]`)\n : label.querySelector(`calcite-radio-button[name=\"${this.name}\"]`);\n if (radioButton) {\n radioButton.checked = true;\n radioButton.focused = true;\n }\n this.calciteRadioButtonChange.emit();\n this.setFocus();\n }\n }\n checkLastRadioButton() {\n const radioButtons = this.queryButtons();\n const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);\n if ((checkedRadioButtons === null || checkedRadioButtons === void 0 ? void 0 : checkedRadioButtons.length) > 1) {\n const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];\n checkedRadioButtons\n .filter((checkedRadioButton) => checkedRadioButton !== lastCheckedRadioButton)\n .forEach((checkedRadioButton) => {\n checkedRadioButton.checked = false;\n checkedRadioButton.emitCheckedChange();\n });\n }\n }\n /** @internal */\n async emitCheckedChange() {\n this.calciteInternalRadioButtonCheckedChange.emit();\n }\n uncheckAllRadioButtonsInGroup() {\n const radioButtons = this.queryButtons();\n radioButtons.forEach((radioButton) => {\n if (radioButton.checked) {\n radioButton.checked = false;\n radioButton.focused = false;\n }\n });\n }\n uncheckOtherRadioButtonsInGroup() {\n const radioButtons = this.queryButtons();\n const otherRadioButtons = radioButtons.filter((radioButton) => radioButton.guid !== this.guid);\n otherRadioButtons.forEach((otherRadioButton) => {\n if (otherRadioButton.checked) {\n otherRadioButton.checked = false;\n otherRadioButton.focused = false;\n }\n });\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n mouseenter() {\n this.hovered = true;\n }\n mouseleave() {\n this.hovered = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.rootNode = this.el.getRootNode();\n this.guid = this.el.id || `calcite-radio-button-${guid()}`;\n if (this.name) {\n this.checkLastRadioButton();\n }\n connectLabel(this);\n connectForm(this);\n }\n componentDidLoad() {\n if (this.focused) {\n this.setFocus();\n }\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown },\n h(\"div\", { \"aria-checked\": this.checked.toString(), \"aria-label\": getLabelText(this), class: CSS.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: \"radio\", tabIndex: this.checked || this.isDefaultSelectable() ? 0 : -1 },\n h(\"calcite-radio\", { checked: this.checked, disabled: this.disabled, focused: this.focused, hidden: this.hidden, hovered: this.hovered, scale: this.scale })),\n h(HiddenFormInputSlot, { component: this })));\n }\n static get is() { return \"calcite-radio-button\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-button.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-button.css\"]\n }; }\n static get properties() { return {\n \"checked\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The checked state of the radio button.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The disabled state of the radio button.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"focused\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The focused state of the radio button.\"\n },\n \"attribute\": \"focused\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"guid\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The id attribute of the radio button. When omitted, a globally unique identifier is used.\"\n },\n \"attribute\": \"guid\",\n \"reflect\": true\n },\n \"hidden\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The radio button's hidden status. When a radio button is hidden it is not focusable or checkable.\"\n },\n \"attribute\": \"hidden\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"hovered\": {\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The hovered state of the radio button.\"\n },\n \"attribute\": \"hovered\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The label of the radio input\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the radio button. `name` is passed as a property automatically from `calcite-radio-button-group`.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\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 \"text\": \"Requires that a value is selected for the radio button group before the parent form will submit.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale (size) of the radio button. `scale` is passed as a property automatically from `calcite-radio-button-group`.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the radio button.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteInternalRadioButtonBlur\",\n \"name\": \"calciteInternalRadioButtonBlur\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fires when the radio button is blurred.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteRadioButtonChange\",\n \"name\": \"calciteRadioButtonChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires only when the radio button is checked. This behavior is identical to the native HTML input element.\\nSince this event does not fire when the radio button is unchecked, it's not recommended to attach a listener for this event\\ndirectly on the element, but instead either attach it to a node that contains all of the radio buttons in the group\\nor use the calciteRadioButtonGroupChange event if using this with calcite-radio-button-group.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInternalRadioButtonCheckedChange\",\n \"name\": \"calciteInternalRadioButtonCheckedChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fires when the checked property changes. This is an internal event used for styling purposes only.\\nUse calciteRadioButtonChange or calciteRadioButtonGroupChange for responding to changes in the checked value for forms.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInternalRadioButtonFocus\",\n \"name\": \"calciteInternalRadioButtonFocus\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fires when the radio button is focused.\"\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 \"emitCheckedChange\": {\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\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"checked\",\n \"methodName\": \"checkedChanged\"\n }, {\n \"propName\": \"name\",\n \"methodName\": \"nameChanged\"\n }]; }\n static get listeners() { return [{\n \"name\": \"mouseenter\",\n \"method\": \"mouseenter\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"mouseleave\",\n \"method\": \"mouseleave\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }]; }\n}\n"]}
|