@esri/solutions-components 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-pick-list-group.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,QAAQ,EAAE,qBAAqB;AACjC,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,UAAU,EAAE,aAAa;AAC3B,CAAC,CAAC;AACK,MAAM,aAAa,GAAG,CAAC;;ACZ9B,MAAM,uBAAuB,GAAG,uwDAAuwD;;ICa1xD,oBAAoB;;;;;;;;;EAM/B,MAAM;IACJ,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC9C,MAAM,GAAG,GAAGA,iBAAa,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC;IACxC,MAAM,aAAa,GAAGC,cAAU,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAChE,MAAM,cAAc,GAAG;MACrB,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI;MACrB,CAAC,GAAG,CAAC,QAAQ,GAAG,aAAa;MAC7B,CAACC,eAAW,CAAC,GAAG,GAAG,GAAG;KACvB,CAAC;IACF,MAAM,KAAK,GAAG,UAAU,CAAC;IACzB,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;IAChH,MAAM,aAAa,GAAG,WAAW,GAAGC,oCAAqB,CAAC,WAAW,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAClF,MAAM,KAAK,GAAG,YAAY,IAAI,aAAa,IAAI,aAAa,CAAC;IAC7D,QAAQC,OAAC,CAACC,cAAQ,EAAE,IAAI,EACtB,KAAK,IAAID,OAAC,CAACE,6BAAc,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,IAAI,IAAI,EAC/EF,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,EACrCA,OAAC,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EACpCA,OAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE;GACxB;;;;;;;","names":["getElementDir","getSlotted","CSS_UTILITY","constrainHeadingLevel","h","Fragment","CalciteHeading"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css?tag=calcite-pick-list-group&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n heading: \"heading\",\n container: \"container\",\n indented: \"container--indented\"\n};\nexport const SLOTS = {\n parentItem: \"parent-item\"\n};\nexport const HEADING_LEVEL = 3;\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n background-color: transparent;\n box-sizing: border-box;\n display: block;\n margin-bottom: 0.25rem;\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:host(:last-child) {\n margin-bottom: 0;\n}\n\n/* Shared styles for header elements */\n\n.header {\n margin: 0;\n display: flex;\n align-items: center;\n align-content: space-between;\n color: var(--calcite-ui-text-2);\n fill: ;\n}\n\n.heading {\n font-weight: var(--calcite-font-weight-medium);\n margin: 0;\n padding: 0;\n}\n\n.header .heading {\n flex: 1 1 auto;\n padding: 0.5rem;\n}\n\nh1.heading {\n font-size: var(--calcite-font-size-2);\n line-height: 1.5rem;\n}\n\nh2.heading {\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\nh4.heading,\nh5.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n color: var(--calcite-ui-text-3);\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n\n.container--indented {\n margin-left: 1.5rem;\n}\n\n.calcite--rtl.container--indented {\n margin-left: 0;\n margin-right: 1.5rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, h, Fragment } from \"@stencil/core\";\nimport { CSS, SLOTS } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { HEADING_LEVEL } from \"./resources\";\nimport { getElementDir, getSlotted } from \"../../utils/dom\";\nimport { CalciteHeading, constrainHeadingLevel } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding `calcite-pick-list-item` elements.\n */\nexport class CalcitePickListGroup {\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n var _a;\n const { el, groupTitle, headingLevel } = this;\n const rtl = getElementDir(el) === \"rtl\";\n const hasParentItem = getSlotted(el, SLOTS.parentItem) !== null;\n const sectionClasses = {\n [CSS.container]: true,\n [CSS.indented]: hasParentItem,\n [CSS_UTILITY.rtl]: rtl\n };\n const title = groupTitle;\n const parentLevel = (_a = el.closest(\"calcite-pick-list\")) === null || _a === void 0 ? void 0 : _a.headingLevel;\n const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;\n const level = headingLevel || relativeLevel || HEADING_LEVEL;\n return (h(Fragment, null,\n title ? (h(CalciteHeading, { class: CSS.heading, level: level }, title)) : null,\n h(\"slot\", { name: SLOTS.parentItem }),\n h(\"section\", { class: sectionClasses },\n h(\"slot\", null))));\n }\n static get is() { return \"calcite-pick-list-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-pick-list-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pick-list-group.css\"]\n }; }\n static get properties() { return {\n \"groupTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title used for all nested `calcite-pick-list` rows.\"\n },\n \"attribute\": \"group-title\",\n \"reflect\": true\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-pick-list-item.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,g5FAAg5F;;ICYl6F,mBAAmB;EA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AAEI,eAAK,CAAC,UAAU,EAAE,CAAC,EACrC,IAAI,CAAC,kBAAkB,EAAE,CAAC,IAAI,IAAI,CAAC;GACtC;EACD,MAAM;IACJ,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACpC,QAAQJ,OAAC,CAACM,cAAQ,EAAE,IAAI,EACtB,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,kBAAkB,EAAE,EACzBN,OAAC,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAEC,aAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE,CAAC,OAAO,MAAM,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EACvLD,OAAC,CAAC,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAEC,aAAG,CAAC,aAAa,EAAE,IAAI,EAAE,kBAAkB,EAAE,EACvGD,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAEC,aAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,EACtC,WAAW,GAAGD,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAEC,aAAG,CAAC,WAAW,EAAE,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,EAC7E,IAAI,CAAC,gBAAgB,EAAE,CAAC,EAAE;GAC7B;;;;;;;;;;;;;;","names":["TEXT","h","CSS","ICON_TYPES","ICONS","SLOTS","getSlotted","Fragment"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css?tag=calcite-pick-list-item&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js"],"sourcesContent":["@charset \"UTF-8\";\n\n/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n background-color: var(--calcite-ui-foreground-1);\n box-sizing: border-box;\n align-items: stretch;\n display: flex;\n font-size: var(--calcite-font-size--1);\n color: var(--calcite-ui-text-1);\n box-shadow: 0 1px 0 var(--calcite-ui-border-3);\n margin: 0;\n margin-bottom: 1px;\n background-color: var(--calcite-ui-foreground-1);\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n transition: background-color 150ms ease-in-out;\n animation: calcite-fade-in 150ms ease-in-out;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n.label {\n background-color: transparent;\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n.label:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.label:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n:host([non-interactive]:hover) {\n background-color: var(--calcite-ui-foreground-1);\n}\n\n:host([non-interactive]) .label,\n:host([non-interactive]) .icon {\n pointer-events: none;\n}\n\n.icon {\n align-items: center;\n display: flex;\n margin-top: 0;\n margin-bottom: 0;\n padding: 0.25rem;\n cursor: pointer;\n color: var(--calcite-ui-brand);\n flex: 0 0 auto;\n line-height: 0;\n}\n\n.icon:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.icon-dot {\n align-items: center;\n display: flex;\n width: 1.5rem;\n padding: 0.5rem;\n}\n\n.icon-dot:before {\n opacity: 0;\n content: \"•\";\n}\n\n.icon calcite-icon {\n opacity: 0;\n}\n\n:host([selected]) .icon-dot:before,\n:host([selected]) .icon calcite-icon {\n transition: opacity 150ms ease-in-out;\n opacity: 1;\n}\n\n.text-container {\n display: flex;\n overflow: hidden;\n pointer-events: none;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n word-wrap: break-word;\n word-break: break-word;\n flex-direction: column;\n flex-wrap: nowrap;\n}\n\n.title {\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-normal);\n}\n\n.description {\n margin-top: 0.125rem;\n color: var(--calcite-ui-text-3);\n font-weight: var(--calcite-font-weight-normal);\n}\n\n.actions {\n align-items: stretch;\n display: flex;\n justify-content: flex-end;\n margin: 0;\n flex: 0 1 auto;\n}\n\n.actions--start ~ .label {\n padding-left: 0.25rem;\n}\n\n.calcite--rtl .actions--start ~ .label {\n padding-left: unset;\n padding-right: 0.25rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Fragment, h, Method, Prop, Watch } from \"@stencil/core\";\nimport { CSS, ICONS, SLOTS, TEXT } from \"./resources\";\nimport { ICON_TYPES } from \"../calcite-pick-list/resources\";\nimport { getSlotted } from \"../../utils/dom\";\n/**\n * @slot actions-end - a slot for adding actions or content to the end side of the item.\n * @slot actions-start - a slot for adding actions or content to the start side of the item.\n */\nexport class CalcitePickListItem {\n constructor() {\n /**\n * When true, the item cannot be clicked and is visually muted.\n */\n this.disabled = false;\n /**\n * When false, the item cannot be deselected by user interaction.\n */\n this.disableDeselect = false;\n /**\n * @internal When true, the item cannot be selected by user interaction.\n */\n this.nonInteractive = false;\n /**\n * Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\n * @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\n */\n this.icon = null;\n /**\n * Set this to true to display a remove action that removes the item from the list.\n */\n this.removable = false;\n /**\n * Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\n */\n this.selected = false;\n /**\n * Used as an accessible label (aria-label) for the \"remove item\" action. Only applicable if removable is true.\n * @default \"Remove\"\n */\n this.intlRemove = TEXT.remove;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.pickListClickHandler = (event) => {\n if (this.disabled || (this.disableDeselect && this.selected) || this.nonInteractive) {\n return;\n }\n this.shiftPressed = event.shiftKey;\n this.selected = !this.selected;\n };\n this.pickListKeyDownHandler = (event) => {\n if (event.key === \" \") {\n event.preventDefault();\n if ((this.disableDeselect && this.selected) || this.nonInteractive) {\n return;\n }\n this.selected = !this.selected;\n }\n };\n this.removeClickHandler = () => {\n this.calciteListItemRemove.emit();\n };\n }\n descriptionWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n labelWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n metadataWatchHandler() {\n this.calciteListItemPropsChange.emit();\n }\n selectedWatchHandler() {\n this.calciteListItemChange.emit({\n item: this.el,\n value: this.value,\n selected: this.selected,\n shiftPressed: this.shiftPressed\n });\n this.shiftPressed = false;\n }\n valueWatchHandler(newValue, oldValue) {\n this.calciteListItemValueChange.emit({ oldValue, newValue });\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Used to toggle the selection state. By default this won't trigger an event.\n * The first argument allows the value to be coerced, rather than swapping values.\n */\n async toggleSelected(coerce) {\n if (this.disabled) {\n return;\n }\n this.selected = typeof coerce === \"boolean\" ? coerce : !this.selected;\n }\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderIcon() {\n const { icon } = this;\n if (!icon) {\n return null;\n }\n return (h(\"span\", { class: {\n [CSS.icon]: true,\n [CSS.iconDot]: icon === ICON_TYPES.circle\n }, onClick: this.pickListClickHandler }, icon === ICON_TYPES.square ? h(\"calcite-icon\", { icon: ICONS.checked, scale: \"s\" }) : null));\n }\n renderRemoveAction() {\n return this.removable ? (h(\"calcite-action\", { class: CSS.remove, icon: ICONS.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS.actionsEnd, text: this.intlRemove })) : null;\n }\n renderActionsStart() {\n const { el } = this;\n const hasActionsStart = getSlotted(el, SLOTS.actionsStart);\n return hasActionsStart ? (h(\"div\", { class: { [CSS.actions]: true, [CSS.actionsStart]: true } },\n h(\"slot\", { name: SLOTS.actionsStart }))) : null;\n }\n renderActionsEnd() {\n const { el, removable } = this;\n const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);\n return hasActionsEnd || removable ? (h(\"div\", { class: { [CSS.actions]: true, [CSS.actionsEnd]: true } },\n h(\"slot\", { name: SLOTS.actionsEnd }),\n this.renderRemoveAction())) : null;\n }\n render() {\n const { description, label } = this;\n return (h(Fragment, null,\n this.renderIcon(),\n this.renderActionsStart(),\n h(\"label\", { \"aria-label\": label, class: CSS.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 },\n h(\"div\", { \"aria-checked\": this.selected.toString(), class: CSS.textContainer, role: \"menuitemcheckbox\" },\n h(\"span\", { class: CSS.title }, label),\n description ? h(\"span\", { class: CSS.description }, description) : null)),\n this.renderActionsEnd()));\n }\n static get is() { return \"calcite-pick-list-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-pick-list-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pick-list-item.css\"]\n }; }\n static get properties() { return {\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An optional description for this item. This will appear below the label text.\"\n },\n \"attribute\": \"description\",\n \"reflect\": true\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, the item cannot be clicked and is visually muted.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableDeselect\": {\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 false, the item cannot be deselected by user interaction.\"\n },\n \"attribute\": \"disable-deselect\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"nonInteractive\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"When true, the item cannot be selected by user interaction.\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"non-interactive\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ICON_TYPES | null\",\n \"resolved\": \"ICON_TYPES.circle | ICON_TYPES.grip | ICON_TYPES.square\",\n \"references\": {\n \"ICON_TYPES\": {\n \"location\": \"import\",\n \"path\": \"../calcite-pick-list/resources\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\"\n }],\n \"text\": \"Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main label for this item. This will appear next to the icon.\"\n },\n \"attribute\": \"label\",\n \"reflect\": true\n },\n \"metadata\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Record<string, unknown>\",\n \"resolved\": \"{ [x: string]: unknown; }\",\n \"references\": {\n \"Record\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to provide additional metadata to an item, primarily used when the parent list has a filter.\"\n }\n },\n \"removable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to display a remove action that removes the item from the list.\"\n },\n \"attribute\": \"removable\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\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\": \"Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlRemove\": {\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\": \"\\\"Remove\\\"\"\n }],\n \"text\": \"Used as an accessible label (aria-label) for the \\\"remove item\\\" action. Only applicable if removable is true.\"\n },\n \"attribute\": \"intl-remove\",\n \"reflect\": true,\n \"defaultValue\": \"TEXT.remove\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The item's associated value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteListItemChange\",\n \"name\": \"calciteListItemChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the item is selected or unselected.\"\n },\n \"complexType\": {\n \"original\": \"{\\n item: HTMLCalcitePickListItemElement;\\n value: any;\\n selected: boolean;\\n shiftPressed: boolean;\\n }\",\n \"resolved\": \"{ item: HTMLCalcitePickListItemElement; value: any; selected: boolean; shiftPressed: boolean; }\",\n \"references\": {\n \"HTMLCalcitePickListItemElement\": {\n \"location\": \"global\"\n }\n }\n }\n }, {\n \"method\": \"calciteListItemRemove\",\n \"name\": \"calciteListItemRemove\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the remove button is pressed.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteListItemPropsChange\",\n \"name\": \"calciteListItemPropsChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted whenever the the item's label, description, value or metadata properties are modified.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteListItemValueChange\",\n \"name\": \"calciteListItemValueChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted whenever the the item's value property is modified.\"\n },\n \"complexType\": {\n \"original\": \"{\\n oldValue: any;\\n newValue: any;\\n }\",\n \"resolved\": \"{ oldValue: any; newValue: any; }\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"toggleSelected\": {\n \"complexType\": {\n \"signature\": \"(coerce?: boolean) => 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\": \"Used to toggle the selection state. By default this won't trigger an event.\\nThe first argument allows the value to be coerced, rather than swapping values.\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"description\",\n \"methodName\": \"descriptionWatchHandler\"\n }, {\n \"propName\": \"label\",\n \"methodName\": \"labelWatchHandler\"\n }, {\n \"propName\": \"metadata\",\n \"methodName\": \"metadataWatchHandler\"\n }, {\n \"propName\": \"selected\",\n \"methodName\": \"selectedWatchHandler\"\n }, {\n \"propName\": \"value\",\n \"methodName\": \"valueWatchHandler\"\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-pick-list.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,63CAA63C;;ICa34C,eAAe;EAC1B;;;;;;;;;;;IASE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;;;;IAI3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;;;;;;IAOrB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;;;;;;IAMnC,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAAE,CAAC;IAChC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IACxB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC7B,IAAI,CAAC,gBAAgB,GAAGA,wBAAc,CAAC,UAAU,EAAEC,yCAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxF,IAAI,CAAC,WAAW,GAAG,CAAC,EAAE;MACpB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB,CAAC;IACF,IAAI,CAAC,oBAAoB,GAAGC,qCAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D,IAAI,CAAC,cAAc,GAAGC,+BAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;I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AOC,yBAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;GACrC;;;;;;EAMD,WAAW;IACT,OAAO,IAAI,CAAC,QAAQ,GAAGC,oBAAU,CAAC,MAAM,GAAGA,oBAAU,CAAC,MAAM,CAAC;GAC9D;EACD,MAAM;IACJ,OAAOC,OAAC,CAACC,qBAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;GACjE;;;;;;;","names":["createObserver","mutationObserverCallback","deselectSiblingItems","selectSiblings","handleFilter","getItemData","keyDownHandler","initialize","initializeObserver","cleanUpObserver","removeItem","calciteListItemChangeHandler","calciteListItemValueChangeHandler","calciteListFocusOutHandler","setUpItems","setFocus","ICON_TYPES","h","List"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list/calcite-pick-list.css?tag=calcite-pick-list&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-pick-list/calcite-pick-list.js"],"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 align-items: stretch;\n box-sizing: border-box;\n background-color: transparent;\n display: flex;\n flex-direction: column;\n position: relative;\n flex-grow: 1;\n flex-shrink: 0;\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:host([filter-enabled]) header {\n background-color: var(--calcite-ui-foreground-1);\n display: flex;\n justify-content: flex-end;\n align-items: stretch;\n margin-bottom: 0.25rem;\n box-shadow: 0 1px 0 var(--calcite-ui-border-3);\n}\n\n:host([filter-enabled]) header.sticky {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\ncalcite-filter {\n margin-bottom: 0;\n}\n\n:host([loading][disabled]) {\n min-height: 2rem;\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, Listen, Method, Prop, State, h } from \"@stencil/core\";\nimport { ICON_TYPES } from \"./resources\";\nimport { calciteListItemChangeHandler, calciteListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, getItemData, handleFilter, calciteListFocusOutHandler, initialize, initializeObserver, mutationObserverCallback, selectSiblings, setUpItems, keyDownHandler, setFocus, removeItem } from \"./shared-list-logic\";\nimport List from \"./shared-list-render\";\nimport { createObserver } from \"../../utils/observers\";\n/**\n * @slot - A slot for adding `calcite-pick-list-item` elements or `calcite-pick-list-group` elements. Items are displayed as a vertical list.\n * @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.\n */\nexport class CalcitePickList {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\n */\n this.disabled = false;\n /**\n * When true, an input appears at the top of the list that can be used by end users to filter items in the list.\n */\n this.filterEnabled = false;\n /**\n * When true, content is waiting to be loaded. This state shows a busy indicator.\n */\n this.loading = false;\n /**\n * Multiple works similar to standard radio buttons and checkboxes.\n * When true, a user can select multiple items at a time.\n * When false, only a single item can be selected at a time\n * and selecting a new item will deselect any other selected items.\n */\n this.multiple = false;\n /**\n * When true and single-selection is enabled, the selection will change when navigating items via the keyboard.\n */\n this.selectionFollowsFocus = false;\n // --------------------------------------------------------------------------\n //\n // Private Properties\n //\n // --------------------------------------------------------------------------\n this.selectedValues = new Map();\n this.dataForFilter = [];\n this.lastSelectedItem = null;\n this.mutationObserver = createObserver(\"mutation\", mutationObserverCallback.bind(this));\n this.setFilterEl = (el) => {\n this.filterEl = el;\n };\n this.deselectSiblingItems = deselectSiblingItems.bind(this);\n this.selectSiblings = selectSiblings.bind(this);\n this.handleFilter = handleFilter.bind(this);\n this.getItemData = getItemData.bind(this);\n this.keyDownHandler = keyDownHandler.bind(this);\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n initialize.call(this);\n initializeObserver.call(this);\n }\n disconnectedCallback() {\n cleanUpObserver.call(this);\n }\n calciteListItemRemoveHandler(event) {\n removeItem.call(this, event);\n }\n calciteListItemChangeHandler(event) {\n calciteListItemChangeHandler.call(this, event);\n }\n calciteListItemPropsChangeHandler(event) {\n event.stopPropagation();\n this.setUpFilter();\n }\n calciteListItemValueChangeHandler(event) {\n calciteListItemValueChangeHandler.call(this, event);\n }\n calciteListFocusOutHandler(event) {\n calciteListFocusOutHandler.call(this, event);\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n setUpItems() {\n setUpItems.call(this, \"calcite-pick-list-item\");\n }\n setUpFilter() {\n if (this.filterEnabled) {\n this.dataForFilter = this.getItemData();\n }\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Returns the currently selected items */\n async getSelectedItems() {\n return this.selectedValues;\n }\n /** Sets focus on the component. */\n async setFocus(focusId) {\n return setFocus.call(this, focusId);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n getIconType() {\n return this.multiple ? ICON_TYPES.square : ICON_TYPES.circle;\n }\n render() {\n return h(List, { onKeyDown: this.keyDownHandler, props: this });\n }\n static get is() { return \"calcite-pick-list\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-pick-list.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-pick-list.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, disabled prevents interaction. This state shows items with lower opacity/grayed.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"filterEnabled\": {\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, an input appears at the top of the list that can be used by end users to filter items in the list.\"\n },\n \"attribute\": \"filter-enabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"filterPlaceholder\": {\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\": \"Placeholder text for the filter input field.\"\n },\n \"attribute\": \"filter-placeholder\",\n \"reflect\": true\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, content is waiting to be loaded. This state shows a busy indicator.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"multiple\": {\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\": \"Multiple works similar to standard radio buttons and checkboxes.\\nWhen true, a user can select multiple items at a time.\\nWhen false, only a single item can be selected at a time\\nand selecting a new item will deselect any other selected items.\"\n },\n \"attribute\": \"multiple\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selectionFollowsFocus\": {\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 and single-selection is enabled, the selection will change when navigating items via the keyboard.\"\n },\n \"attribute\": \"selection-follows-focus\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n }\n }; }\n static get states() { return {\n \"selectedValues\": {},\n \"dataForFilter\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteListChange\",\n \"name\": \"calciteListChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when any of the item selections have changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"getSelectedItems\": {\n \"complexType\": {\n \"signature\": \"() => Promise<Map<string, HTMLCalcitePickListItemElement>>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"Map\": {\n \"location\": \"global\"\n },\n \"HTMLCalcitePickListItemElement\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<Map<string, HTMLCalcitePickListItemElement>>\"\n },\n \"docs\": {\n \"text\": \"Returns the currently selected items\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: ListFocusId) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ListFocusId\": {\n \"location\": \"import\",\n \"path\": \"./shared-list-logic\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"calciteListItemRemove\",\n \"method\": \"calciteListItemRemoveHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteListItemChange\",\n \"method\": \"calciteListItemChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteListItemPropsChange\",\n \"method\": \"calciteListItemPropsChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteListItemValueChange\",\n \"method\": \"calciteListItemValueChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"focusout\",\n \"method\": \"calciteListFocusOutHandler\",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MAAM,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,OAAO,KAAK,cAAc,CAAC;SAC/D,OAAO,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;KAChD;IACD,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE;MAC3C,OAAO;KACR;IACD,cAAc,CAAC,MAAM,EAAE,CAAC;GACzB;;;;;;;","names":["POPOVER_REFERENCE","queryElementRoots","h","queryElementsRoots"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css?tag=calcite-popover-manager&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js"],"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, Element, h, Listen, Prop } from \"@stencil/core\";\nimport { POPOVER_REFERENCE } from \"../calcite-popover/resources\";\nimport { queryElementRoots, queryElementsRoots } from \"../../utils/dom\";\n/**\n * @slot - A slot for adding elements that reference a 'calcite-popover' by the 'selector' property.\n */\nexport class CalcitePopoverManager {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.\n * @default `[data-calcite-popover-reference]`\n */\n this.selector = `[${POPOVER_REFERENCE}]`;\n /**\n * Automatically closes any currently open popovers when clicking outside of a popover.\n */\n this.autoClose = false;\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.getRelatedPopover = (element) => {\n var _a;\n const { selector, el } = this;\n const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);\n return queryElementRoots(el, `#${id}`);\n };\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return h(\"slot\", null);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n closeOpenPopovers(event) {\n const target = event.target;\n const { autoClose, el } = this;\n const popoverSelector = \"calcite-popover\";\n const isTargetInsidePopover = target.closest(popoverSelector);\n const relatedPopover = this.getRelatedPopover(target);\n if (autoClose && !isTargetInsidePopover) {\n queryElementsRoots(el, popoverSelector)\n .filter((popover) => popover.open && popover !== relatedPopover)\n .forEach((popover) => popover.toggle(false));\n }\n if (!el.contains(target) || !relatedPopover) {\n return;\n }\n relatedPopover.toggle();\n }\n static get is() { return \"calcite-popover-manager\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-popover-manager.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-popover-manager.css\"]\n }; }\n static get properties() { return {\n \"selector\": {\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\": \"`[data-calcite-popover-reference]`\"\n }],\n \"text\": \"CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.\"\n },\n \"attribute\": \"selector\",\n \"reflect\": false,\n \"defaultValue\": \"`[${POPOVER_REFERENCE}]`\"\n },\n \"autoClose\": {\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\": \"Automatically closes any currently open popovers when clicking outside of a popover.\"\n },\n \"attribute\": \"auto-close\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"closeOpenPopovers\",\n \"target\": \"window\",\n \"capture\": true,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-radio-button-group.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,0lCAA0lC;;ICQhnC,uBAAuB;EAClC;;;;;;;;;IAOE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;;IAE3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;;;;;IAMjB,IAAI,CAAC,uBAAuB,GAAG;MAC7B,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;MACtE,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW;UAC/B,WAAW,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC;UAC7D,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;UACjC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;UAC7B,WAAW,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;UACrC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SAChC,CAAC,CAAC;OACJ;KACF,CAAC;GACH;EACD,gBAAgB;IACd,IAAI,CAAC,uBAAuB,EAAE,CAAC;GAChC;EACD,cAAc;IACZ,IAAI,CAAC,uBAAuB,EAAE,CAAC;GAChC;EACD,cAAc;IACZ,IAAI,CAAC,uBAAuB,EAAE,CAAC;GAChC;EACD,aAAa;IACX,IAAI,CAAC,uBAAuB,EAAE,CAAC;GAChC;;;;;;EAMD,iBAAiB;IACf,IAAI,CAAC,uBAAuB,EAAE,CAAC;GAChC;;;;;;EAMD,wBAAwB,CAAC,KAAK;IAC5B,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;GAC7D;;;;;;EAMD,MAAM;IACJ,QAAQA,OAAC,CAACC,UAAI,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EACpCD,OAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE;GACrB;;;;;;;;;;;;;","names":["h","Host"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css?tag=calcite-radio-button-group&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js"],"sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n max-width: 100vw;\n}\n\n:host([layout=horizontal]) {\n flex-direction: row;\n flex-wrap: wrap;\n}\n\n:host([layout=horizontal][scale=s]) {\n grid-gap: 1rem;\n gap: 1rem;\n}\n\n:host([layout=horizontal][scale=m]) {\n grid-gap: 1.25rem;\n gap: 1.25rem;\n}\n\n:host([layout=horizontal][scale=l]) {\n grid-gap: 1.5rem;\n gap: 1.5rem;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\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, Host, h, Element, Prop, Watch, Event, Listen } from \"@stencil/core\";\n/**\n * @slot - A slot for adding `calcite-radio-button`s.\n */\nexport class CalciteRadioButtonGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The disabled state of the radio button group. */\n this.disabled = false;\n /** The radio button group's hidden status. When a radio button group is hidden none of its options are focusable or checkable. */\n this.hidden = false;\n /** The layout direction of the radio buttons in a group. */\n this.layout = \"horizontal\";\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 group. */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.passPropsToRadioButtons = () => {\n const radioButtons = this.el.querySelectorAll(\"calcite-radio-button\");\n if (radioButtons.length > 0) {\n radioButtons.forEach((radioButton) => {\n radioButton.disabled = this.disabled || radioButton.disabled;\n radioButton.hidden = this.hidden;\n radioButton.name = this.name;\n radioButton.required = this.required;\n radioButton.scale = this.scale;\n });\n }\n };\n }\n onDisabledChange() {\n this.passPropsToRadioButtons();\n }\n onHiddenChange() {\n this.passPropsToRadioButtons();\n }\n onLayoutChange() {\n this.passPropsToRadioButtons();\n }\n onScaleChange() {\n this.passPropsToRadioButtons();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.passPropsToRadioButtons();\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n radioButtonChangeHandler(event) {\n this.calciteRadioButtonGroupChange.emit(event.target.value);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { role: \"radiogroup\" },\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-radio-button-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-button-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-button-group.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\": \"The disabled state of the radio button group.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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 group's hidden status. When a radio button group is hidden none of its options are focusable or checkable.\"\n },\n \"attribute\": \"hidden\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The layout direction of the radio buttons in a group.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the radio button group. `name` must be unique to other radio button group instances.\"\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 group.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteRadioButtonGroupChange\",\n \"name\": \"calciteRadioButtonGroupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the radio button group has changed.\"\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\": \"onDisabledChange\"\n }, {\n \"propName\": \"hidden\",\n \"methodName\": \"onHiddenChange\"\n }, {\n \"propName\": \"layout\",\n \"methodName\": \"onLayoutChange\"\n }, {\n \"propName\": \"scale\",\n \"methodName\": \"onScaleChange\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteRadioButtonChange\",\n \"method\": \"radioButtonChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-radio-button.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,SAAS,EAAE,WAAW;AACxB,CAAC;;ACND,MAAM,qBAAqB,G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;;;","names":["key","getKey","getElementDir","getRoundRobinIndex","focusElement","guid","connectLabel","connectForm","disconnectLabel","disconnectForm","h","Host","getLabelText","HiddenFormInputSlot"],"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"],"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"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-radio-group-item.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,KAAK,GAAG;AACrB,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,CAAC;AACK,MAAM,GAAG,GAAG;AACnB,EAAE,kBAAkB,EAAE,uBAAuB;AAC7C,CAAC;;ACTD,MAAM,wBAAwB,GAAG,qoGAAqoG;;ICQzpG,qBAAqB;EAChC;;;;;;;;;IAOE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;IAErB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;;IAEzB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,gBAAgB,GAAGA,wBAAc,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE,C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AAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;MACnC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;KACxC;GACF;EACD,mBAAmB;IACjB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;MACpB,OAAO;KACR;IACD,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACnC,IAAI,IAAI,CAAC,OAAO,EAAE;MAChB,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;KAC7C;SACI;MACH,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;KAC5C;GACF;;;;;;;;;;","names":["createObserver","getElementDir","getElementProp","h","Host"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group-item/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css?tag=calcite-radio-group-item&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const SLOTS = {\n input: \"input\"\n};\nexport const CSS = {\n radioGroupItemIcon: \"radio-group-item-icon\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n align-self: stretch;\n cursor: pointer;\n font-weight: var(--calcite-font-weight-normal);\n transition: background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;\n}\n\n:host label {\n display: flex;\n flex: 1 1 0%;\n color: var(--calcite-ui-text-3);\n box-sizing: border-box;\n pointer-events: none;\n align-items: center;\n margin: 0.125rem;\n transition: background-color 0.1s ease-in-out, border-color 0.1s ease-in-out, color 0.1s ease-in-out;\n}\n\n.label--horizontal {\n justify-content: center;\n}\n\n:host {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n outline-offset: -1px;\n}\n\n.label--scale-s {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n\n.label--scale-m {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n\n.label--scale-l {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n\n:host(:hover) label {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n:host(:active) label {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n:host([checked]) label {\n background-color: var(--calcite-ui-brand);\n border-color: var(--calcite-ui-brand);\n cursor: default;\n color: var(--calcite-ui-background);\n}\n\n:host([checked]) .label--outline {\n background-color: var(--calcite-ui-foreground-1);\n border-color: var(--calcite-ui-brand);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n}\n\n::slotted(input) {\n display: none;\n}\n\n.radio-group-item-icon {\n display: inline-flex;\n position: relative;\n margin: 0;\n line-height: inherit;\n}\n\n:host([icon-position=start]) .label--scale-s .radio-group-item-icon {\n margin-inline-end: 0.5rem;\n}\n\n:host([icon-position=end]) .label--scale-s .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 0.5rem;\n}\n\n:host([icon-position=start]) .label--scale-m .radio-group-item-icon {\n margin-inline-end: 0.75rem;\n}\n\n:host([icon-position=end]) .label--scale-m .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 0.75rem;\n}\n\n:host([icon-position=start]) .label--scale-l .radio-group-item-icon {\n margin-inline-end: 1rem;\n}\n\n:host([icon-position=end]) .label--scale-l .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Event, h, Prop, Element, Host, Watch, State } from \"@stencil/core\";\nimport { getElementDir, getElementProp } from \"../../utils/dom\";\nimport { SLOTS, CSS } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\nexport class CalciteRadioGroupItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Indicates whether the control is checked. */\n this.checked = false;\n /** flip the icon in rtl */\n this.iconFlipRtl = false;\n /** optionally used with icon, select where to position the icon */\n this.iconPosition = \"start\";\n this.mutationObserver = createObserver(\"mutation\", () => this.syncFromExternalInput());\n }\n handleCheckedChange() {\n this.calciteRadioGroupItemChange.emit();\n this.syncToExternalInput();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n const inputProxy = this.el.querySelector(`input[slot=${SLOTS.input}]`);\n if (inputProxy) {\n this.value = inputProxy.value;\n this.checked = inputProxy.checked;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });\n }\n this.inputProxy = inputProxy;\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n componentWillLoad() {\n // only use default slot content in browsers that support shadow dom\n // or if ie11 has no label provided (#374)\n const label = this.el.querySelector(\"label\");\n this.useFallback = !label || label.textContent === \"\";\n }\n render() {\n const { checked, useFallback, value } = this;\n const dir = getElementDir(this.el);\n const scale = getElementProp(this.el, \"scale\", \"m\");\n const appearance = getElementProp(this.el, \"appearance\", \"solid\");\n const layout = getElementProp(this.el, \"layout\", \"horizontal\");\n const iconEl = (h(\"calcite-icon\", { class: CSS.radioGroupItemIcon, dir: dir, flipRtl: this.iconFlipRtl, icon: this.icon, scale: \"s\" }));\n return (h(Host, { \"aria-checked\": checked.toString(), role: \"radio\" },\n h(\"label\", { class: {\n \"label--scale-s\": scale === \"s\",\n \"label--scale-m\": scale === \"m\",\n \"label--scale-l\": scale === \"l\",\n \"label--horizontal\": layout === \"horizontal\",\n \"label--outline\": appearance === \"outline\"\n } },\n this.icon && this.iconPosition === \"start\" ? iconEl : null,\n h(\"slot\", null, useFallback ? value : \"\"),\n h(\"slot\", { name: SLOTS.input }),\n this.icon && this.iconPosition === \"end\" ? iconEl : null)));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n syncFromExternalInput() {\n if (this.inputProxy) {\n this.value = this.inputProxy.value;\n this.checked = this.inputProxy.checked;\n }\n }\n syncToExternalInput() {\n if (!this.inputProxy) {\n return;\n }\n this.inputProxy.value = this.value;\n if (this.checked) {\n this.inputProxy.setAttribute(\"checked\", \"\");\n }\n else {\n this.inputProxy.removeAttribute(\"checked\");\n }\n }\n static get is() { return \"calcite-radio-group-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-group-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-group-item.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\": \"Indicates whether the control is checked.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an icon to display - accepts Calcite UI icon names\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"iconFlipRtl\": {\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\": \"flip the icon in rtl\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally used with icon, select where to position the icon\"\n },\n \"attribute\": \"icon-position\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"start\\\"\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"any | null\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The control's value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"useFallback\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteRadioGroupItemChange\",\n \"name\": \"calciteRadioGroupItemChange\",\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 item has been selected.\"\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\": \"checked\",\n \"methodName\": \"handleCheckedChange\"\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-radio-group.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,oBAAoB,GAAG,kwDAAkwD;;ICYlxD,iBAAiB;EAC5B;;;;;;;;;IAOE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;;IAE1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;;IAE3B,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;IAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;;IAElB,IAAI,CAAC,KAAK,GAAG,MAAM,CA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1B,IAAuB,KAAK,EAAE;MAC5B,KAAK,CAAC,KAAK,EAAE,CAAC;KACf;GACF;;;;;;;;;;;","names":["connectLabel","connectForm","disconnectLabel","disconnectForm","h","Host","HiddenFormInputSlot","key","getKey","getElementDir"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group/calcite-radio-group.css?tag=calcite-radio-group&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-group/calcite-radio-group.js"],"sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n background-color: var(--calcite-ui-foreground-1);\n width: -moz-fit-content;\n width: fit-content;\n outline: 1px solid var(--calcite-ui-border-input);\n outline-offset: -1px;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\n align-items: flex-start;\n align-self: flex-start;\n}\n\n:host([width=full]) {\n width: 100%;\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n\n:host([width=full]) ::slotted(calcite-radio-group-item) {\n flex: 1 1 auto;\n}\n\n:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item) {\n justify-content: flex-start;\n}\n\n::slotted(calcite-radio-group-item[checked]),\n::slotted(calcite-radio-group-item:focus) {\n z-index: 0;\n}\n\n:host([disabled]) {\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: none;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Event, h, Listen, Element, Prop, Watch, Host, Build, Method } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { connectLabel, disconnectLabel } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\n/**\n * @slot - A slot for adding `calcite-radio-group-item`s.\n */\nexport class CalciteRadioGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** specify the appearance style of the radio group, defaults to solid. */\n this.appearance = \"solid\";\n /** is the radio group disabled */\n this.disabled = false;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** specify the layout of the radio group, defaults to horizontal */\n this.layout = \"horizontal\";\n /** The scale of the radio group */\n this.scale = \"m\";\n /** The value of the selectedItem */\n this.value = null;\n /** specify the width of the group, defaults to auto */\n this.width = \"auto\";\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.handleClick = (event) => {\n if (event.target.localName === \"calcite-radio-group-item\") {\n this.selectItem(event.target);\n }\n };\n }\n valueHandler(value) {\n const items = this.getItems();\n items.forEach((item) => (item.checked = item.value === value));\n }\n handleSelectedItemChange(newItem, oldItem) {\n this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;\n if (newItem === oldItem) {\n return;\n }\n const items = this.getItems();\n const match = Array.from(items)\n .filter((item) => item === newItem)\n .pop();\n if (match) {\n this.selectItem(match);\n this.calciteRadioGroupChange.emit(match.value);\n }\n else if (items[0]) {\n items[0].tabIndex = 0;\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n const items = this.getItems();\n const lastChecked = Array.from(items)\n .filter((item) => item.checked)\n .pop();\n if (lastChecked) {\n this.selectItem(lastChecked);\n }\n else if (items[0]) {\n items[0].tabIndex = 0;\n }\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n componentDidLoad() {\n this.hasLoaded = true;\n }\n render() {\n return (h(Host, { onClick: this.handleClick, role: \"radiogroup\", tabIndex: this.disabled ? -1 : null },\n h(\"slot\", null),\n h(HiddenFormInputSlot, { component: this })));\n }\n handleSelected(event) {\n // only fire after initial setup to prevent semi-infinite loops\n if (this.hasLoaded) {\n event.stopPropagation();\n event.preventDefault();\n this.selectItem(event.target);\n }\n }\n handleKeyDown(event) {\n const keys = [\"ArrowLeft\", \"ArrowUp\", \"ArrowRight\", \"ArrowDown\", \" \"];\n const key = getKey(event.key);\n const { el, selectedItem } = this;\n if (keys.indexOf(key) === -1) {\n return;\n }\n let adjustedKey = key;\n if (getElementDir(el) === \"rtl\") {\n if (key === \"ArrowRight\") {\n adjustedKey = \"ArrowLeft\";\n }\n if (key === \"ArrowLeft\") {\n adjustedKey = \"ArrowRight\";\n }\n }\n const items = this.getItems();\n let selectedIndex = -1;\n items.forEach((item, index) => {\n if (item === selectedItem) {\n selectedIndex = index;\n }\n });\n switch (adjustedKey) {\n case \"ArrowLeft\":\n case \"ArrowUp\":\n event.preventDefault();\n const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);\n this.selectItem(previous);\n return;\n case \"ArrowRight\":\n case \"ArrowDown\":\n event.preventDefault();\n const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);\n this.selectItem(next);\n return;\n case \" \":\n event.preventDefault();\n this.selectItem(event.target);\n return;\n default:\n return;\n }\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = (this.selectedItem || this.getItems()[0])) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n getItems() {\n return this.el.querySelectorAll(\"calcite-radio-group-item\");\n }\n selectItem(selected) {\n if (selected === this.selectedItem) {\n return;\n }\n const items = this.getItems();\n let match = null;\n items.forEach((item) => {\n const matches = item.value === selected.value;\n if ((matches && !item.checked) || (!matches && item.checked)) {\n item.checked = matches;\n }\n item.tabIndex = matches ? 0 : -1;\n if (matches) {\n match = item;\n }\n });\n this.selectedItem = match;\n if (Build.isBrowser && match) {\n match.focus();\n }\n }\n static get is() { return \"calcite-radio-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-group.css\"]\n }; }\n static get properties() { return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"RadioAppearance\",\n \"resolved\": \"\\\"outline\\\" | \\\"solid\\\"\",\n \"references\": {\n \"RadioAppearance\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the appearance style of the radio group, defaults to solid.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the radio group disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the layout of the radio group, defaults to horizontal\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The group's name. Gets submitted with the form.\"\n },\n \"attribute\": \"name\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale of the radio group\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the selectedItem\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n },\n \"selectedItem\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLCalciteRadioGroupItemElement\",\n \"resolved\": \"HTMLCalciteRadioGroupItemElement\",\n \"references\": {\n \"HTMLCalciteRadioGroupItemElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The group's selected item.\"\n }\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"auto\\\" | \\\"full\\\", Width>\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Width\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the width of the group, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteRadioGroupChange\",\n \"name\": \"calciteRadioGroupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the selected option changes, event detail is the new value\"\n },\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"selectedItem\",\n \"methodName\": \"handleSelectedItemChange\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteRadioGroupItemChange\",\n \"method\": \"handleSelected\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"handleKeyDown\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-radio.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,kjFAAkjF;;ICK7jF,YAAY;EACvB;;;;;;;;IAOE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;IAErB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;IAKtB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;IAErB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;;;;IAKpB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;IAErB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;GAClB;;;;;;EAMD,MAAM;IACJ,OAAOA,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;GACrC;;;;;;","names":["h"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio/calcite-radio.css?tag=calcite-radio&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-radio/calcite-radio.js"],"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\n:host .radio {\n background-color: var(--calcite-ui-foreground-1);\n border-radius: 9999px;\n cursor: pointer;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-border-input);\n}\n\n:host([hovered]) .radio,\n:host(:not([checked])[focused]) .radio {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);\n}\n\n:host([disabled]) .radio {\n cursor: default;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([hovered][disabled]) .radio {\n box-shadow: inset 0 0 0 1px var(--calcite-ui-border-input);\n}\n\n:host([scale=s]) {\n --calcite-radio-size: var(--calcite-font-size--2);\n}\n\n:host([scale=m]) {\n --calcite-radio-size: var(--calcite-font-size--1);\n}\n\n:host([scale=l]) {\n --calcite-radio-size: var(--calcite-font-size-0);\n}\n\n.radio {\n height: var(--calcite-radio-size);\n max-width: var(--calcite-radio-size);\n min-width: var(--calcite-radio-size);\n}\n\n:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio {\n box-shadow: inset 0 0 0 4px var(--calcite-ui-brand);\n}\n\n:host([scale=s][focused][checked]) .radio {\n box-shadow: inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);\n}\n\n:host([scale=m][checked]) .radio,\n:host([hovered][scale=m][checked][disabled]) .radio {\n box-shadow: inset 0 0 0 5px var(--calcite-ui-brand);\n}\n\n:host([scale=m][focused][checked]) .radio {\n box-shadow: inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);\n}\n\n:host([scale=l][checked]) .radio,\n:host([hovered][scale=l][checked][disabled]) .radio {\n box-shadow: inset 0 0 0 6px var(--calcite-ui-brand);\n}\n\n:host([scale=l][focused][checked]) .radio {\n box-shadow: inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);\n}\n\n:host([hidden]) {\n display: none;\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 } from \"@stencil/core\";\nexport class CalciteRadio {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The checked state of the radio. */\n this.checked = false;\n /** The disabled state of the radio. */\n this.disabled = false;\n /**\n * The focused state of the radio.\n * @internal\n */\n this.focused = false;\n /** The radio's hidden status. */\n this.hidden = false;\n /**\n * The hovered state of the radio.\n * @internal\n */\n this.hovered = false;\n /** The scale (size) of the radio. */\n this.scale = \"m\";\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return h(\"div\", { class: \"radio\" });\n }\n static get is() { return \"calcite-radio\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio.css\"]\n }; }\n static get properties() { return {\n \"checked\": {\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 checked state of the radio.\"\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.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"focused\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The focused state of the radio.\"\n },\n \"attribute\": \"focused\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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's hidden status.\"\n },\n \"attribute\": \"hidden\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"hovered\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The hovered state of the radio.\"\n },\n \"attribute\": \"hovered\",\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.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-rating.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,IAAI,GAAG;AACpB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,KAAK,EAAE,eAAe;AACxB,CAAC;;ACPD,MAAM,gBAAgB,GAAG,y3FAAy3F;;ICWr4F,aAAa;EACxB;;;;;;;;;IAOE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;IAEjB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;;IAEf,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;IAEtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,UAAU,GAAG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AK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,EAAE,EAChM,CAAC,CAAC,OAAO,IAAIH,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,EACxE,CAAC,CAAC,KAAK,IAAIA,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAC7C,GAAG,EAAE,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC;MAChD,KAAK,CAAC,QAAQ,EAAE,EAChB,GAAG,CAAC,CAAC,IAAI,IAAI,EACjBA,OAAC,CAACI,wBAAmB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;GACjD;;;;;;EAMD,YAAY;IACV,IAAI,CAAC,QAAQ,EAAE,CAAC;GACjB;EACD,WAAW,CAAC,KAAK;IACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;GAC1C;;;;;;;EAOD,MAAM,QAAQ;IACZ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;GAC5B;;;;;;;","names":["guid","connectLabel","connectForm","disconnectLabel","disconnectForm","h","getElementDir","Fragment","CSS_UTILITY","HiddenFormInputSlot"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/calcite-rating.css?tag=calcite-rating&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-rating/calcite-rating.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const TEXT = {\n rating: \"Rating\",\n stars: \"Stars: ${num}\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-rating-spacing-unit: the amount of left/right margin between each rating star\n*/\n\n:host {\n display: flex;\n align-items: center;\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:host([scale=s]) {\n height: 1.5rem;\n --calcite-rating-spacing-unit: 0.25rem;\n}\n\n:host([scale=m]) {\n height: 2rem;\n --calcite-rating-spacing-unit: 0.5rem;\n}\n\n:host([scale=l]) {\n height: 2.75rem;\n --calcite-rating-spacing-unit: 0.75rem;\n}\n\n:host([disabled]) {\n pointer-events: none;\n opacity: 0.5;\n}\n\n:host([read-only]) {\n pointer-events: none;\n}\n\n.fieldset {\n padding: 0;\n margin: 0;\n border-width: 0;\n display: flex;\n}\n\n.wrapper {\n display: inline-block;\n margin-right: var(--calcite-rating-spacing-unit);\n}\n\n.calcite--rtl .wrapper {\n margin-right: 0;\n margin-left: var(--calcite-rating-spacing-unit);\n}\n\n.star {\n position: relative;\n display: flex;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n color: var(--calcite-ui-border-input);\n transition: 150ms ease-in-out;\n transform: scale(1);\n}\n\n.star:active {\n transform: scale(1.1);\n}\n\n.focused {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.average,\n.fraction {\n color: var(--calcite-ui-warning);\n}\n\n.hovered,\n.selected,\n:host([read-only]) .average,\n:host([read-only]) .fraction {\n color: var(--calcite-ui-brand);\n}\n\n.hovered:not(.selected) {\n transform: scale(0.9);\n}\n\n:host .fraction {\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n top: 0;\n left: 0;\n transition: 150ms ease-in-out;\n}\n\n.calcite--rtl .fraction {\n right: 0;\n left: auto;\n}\n\ncalcite-chip {\n cursor: default;\n pointer-events: none;\n}\n\n.number--average {\n font-weight: var(--calcite-font-weight-bold);\n}\n\n.number--count {\n color: var(--calcite-ui-text-2);\n font-style: italic;\n}\n\n.number--count:not(:first-child) {\n margin-left: var(--calcite-rating-spacing-unit);\n}\n\n.calcite--rtl .number--count:not(:first-child) {\n margin-left: 0;\n margin-right: var(--calcite-rating-spacing-unit);\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Fragment, h, Listen, Method, Prop, State } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { guid } from \"../../utils/guid\";\nimport { connectLabel, disconnectLabel } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nimport { TEXT } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nexport class CalciteRating {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /** specify the scale of the component, defaults to m */\n this.scale = \"m\";\n /** the value of the rating component */\n this.value = 0;\n /** is the rating component in a selectable mode */\n this.readOnly = false;\n /** is the rating component in a selectable mode */\n this.disabled = false;\n /** Show average and count data summary chip (if available) */\n this.showChip = false;\n /** Localized string for \"Rating\" (used for aria label)\n * @default \"Rating\"\n */\n this.intlRating = TEXT.rating;\n /** Localized string for labelling each star, `${num}` in the string will be replaced by the number\n * @default \"Stars: ${num}\"\n */\n this.intlStars = TEXT.stars;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n this.guid = `calcite-ratings-${guid()}`;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n blurHandler() {\n this.hasFocus = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderStars() {\n return [1, 2, 3, 4, 5].map((i) => {\n const selected = this.value >= i;\n const average = this.average && !this.value && i <= this.average;\n const hovered = i <= this.hoverValue;\n const fraction = this.average && this.average + 1 - i;\n const partial = !this.value && !hovered && fraction > 0 && fraction < 1;\n const focused = this.hasFocus && this.focusValue === i;\n return (h(\"span\", { class: { wrapper: true } },\n h(\"label\", { class: { star: true, focused, selected, average, hovered, partial }, htmlFor: `${this.guid}-${i}`, onMouseOver: () => {\n this.hoverValue = i;\n } },\n h(\"calcite-icon\", { \"aria-hidden\": \"true\", class: \"icon\", icon: selected || average || this.readOnly ? \"star-f\" : \"star\", scale: this.scale }),\n partial && (h(\"div\", { class: \"fraction\", style: { width: `${fraction * 100}%` } },\n h(\"calcite-icon\", { icon: \"star-f\", scale: this.scale }))),\n h(\"span\", { class: \"visually-hidden\" }, this.intlStars.replace(\"${num}\", `${i}`))),\n h(\"input\", { checked: i === this.value, class: \"visually-hidden\", disabled: this.disabled || this.readOnly, id: `${this.guid}-${i}`, name: this.guid, onChange: () => this.updateValue(i), onFocus: () => {\n this.hasFocus = true;\n this.focusValue = i;\n }, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: \"radio\", value: i })));\n });\n }\n render() {\n const { intlRating, showChip, scale, count, average } = this;\n const dir = getElementDir(this.el);\n return (h(Fragment, null,\n h(\"fieldset\", { class: { fieldset: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, onBlur: () => (this.hoverValue = null), onMouseLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) },\n h(\"legend\", { class: \"visually-hidden\" }, intlRating),\n this.renderStars()),\n (count || average) && showChip ? (h(\"calcite-chip\", { class: { [CSS_UTILITY.rtl]: dir === \"rtl\" }, dir: dir, scale: scale, value: count === null || count === void 0 ? void 0 : count.toString() },\n !!average && h(\"span\", { class: \"number--average\" }, average.toString()),\n !!count && h(\"span\", { class: \"number--count\" },\n \"(\", count === null || count === void 0 ? void 0 :\n count.toString(),\n \")\"))) : null,\n h(HiddenFormInputSlot, { component: this })));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n updateValue(value) {\n this.value = value;\n this.calciteRatingChange.emit({ value });\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.inputFocusRef.focus();\n }\n static get is() { return \"calcite-rating\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-rating.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-rating.css\"]\n }; }\n static get properties() { return {\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the component, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"the value of the rating component\"\n },\n \"attribute\": \"value\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the rating component in a selectable mode\"\n },\n \"attribute\": \"read-only\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the rating component in a selectable mode\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"showChip\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Show average and count data summary chip (if available)\"\n },\n \"attribute\": \"show-chip\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"count\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass a number of previous ratings to display\"\n },\n \"attribute\": \"count\",\n \"reflect\": true\n },\n \"average\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass a cumulative average rating to display\"\n },\n \"attribute\": \"average\",\n \"reflect\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the rating\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"intlRating\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Rating\\\"\"\n }],\n \"text\": \"Localized string for \\\"Rating\\\" (used for aria label)\"\n },\n \"attribute\": \"intl-rating\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.rating\"\n },\n \"intlStars\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Stars: ${num}\\\"\"\n }],\n \"text\": \"Localized string for labelling each star, `${num}` in the string will be replaced by the number\"\n },\n \"attribute\": \"intl-stars\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.stars\"\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n }; }\n static get states() { return {\n \"hoverValue\": {},\n \"focusValue\": {},\n \"hasFocus\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteRatingChange\",\n \"name\": \"calciteRatingChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the rating value has changed.\"\n },\n \"complexType\": {\n \"original\": \"{ value: number }\",\n \"resolved\": \"{ value: number; }\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"blur\",\n \"method\": \"blurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-scrim.entry.cjs.js","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC;;ACVD,MAAM,eAAe,GAAG,2wCAA2wC;;ICStxC,YAAY;EACvB;;;;;;;;;;IASE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;IAKhC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;GACtB;;;;;;EAMD,MAAM;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC1C,MAAM,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,OAAO,GAAGA,OAAC,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9F,MAAM,WAAW,GAAG,UAAU,IAAIA,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,EAC/DA,OAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC;IAC3B,QAAQA,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,EACnC,UAAU,EACV,WAAW,CAAC,EAAE;GACjB;;;;;;;","names":["h"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/calcite-scrim.css?tag=calcite-scrim&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/calcite-scrim.js"],"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 scrim: \"scrim\",\n content: \"content\"\n};\nexport const TEXT = {\n loading: \"Loading\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n position: absolute;\n z-index: 50;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n@keyframes calcite-scrim-fade-in {\n 0% {\n --bg-opacity: 0;\n }\n\n 100% {\n --text-opacity: 1;\n }\n}\n\n.scrim {\n display: flex;\n position: absolute;\n overflow: hidden;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n align-content: center;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n animation: calcite-scrim-fade-in 250ms ease-in-out;\n background-color: var(--calcite-scrim-background);\n}\n\n.content {\n padding: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, h } from \"@stencil/core\";\nimport { CSS, TEXT } from \"./resources\";\n/**\n * @slot - A slot for adding custom content, primarily loading information.\n */\nexport class CalciteScrim {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /** string to override English loading text\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * Determines if the component will have the loader overlay.\n * Otherwise, will render opaque disabled state.\n */\n this.loading = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Method\n //\n // --------------------------------------------------------------------------\n render() {\n const { el, loading, intlLoading } = this;\n const hasContent = el.innerHTML.trim().length > 0;\n const loaderNode = loading ? h(\"calcite-loader\", { active: true, label: intlLoading }) : null;\n const contentNode = hasContent ? (h(\"div\", { class: CSS.content },\n h(\"slot\", null))) : null;\n return (h(\"div\", { class: CSS.scrim },\n loaderNode,\n contentNode));\n }\n static get is() { return \"calcite-scrim\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-scrim.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-scrim.css\"]\n }; }\n static get properties() { return {\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"string to override English loading text\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Determines if the component will have the loader overlay.\\nOtherwise, will render opaque disabled state.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-select.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,MAAM,EAAE,QAAQ;AAClB,CAAC;;ACRD,MAAM,gBAAgB,GAAG,kyHAAkyH;;ACW3zH,SAAS,QAAQ,CAAC,aAAa;EAC7B,OAAO,aAAa,CAAC,OAAO,KAAK,gBAAgB,CAAC;AACpD,CAAC;AACD,SAAS,aAAa,CAAC,aAAa;EAClC,OAAO,aAAa,CAAC,OAAO,KAAK,sBAAsB,CAAC;AAC1D,CAAC;IAIY,aAAa;EACxB;;;;;;;;;;;IASE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;IAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;;;;IAIlB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACpB,IAAI,CAAC,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;IACrC,IAAI,CAAC,gBAAgB,GAAGA,wBAAc,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACxF,IAAI,CAAC,0BAA0B,GAAG;MAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,e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E,IAAI,EAAE,CAAC,CAAC,EAAE;GACjD;;;;;;;;;;;","names":["createObserver","connectLabel","connectForm","disconnectLabel","disconnectForm","afterConnectDefaultValueSet","focusElement","h","CSS_UTILITY","getElementDir","Fragment","HiddenFormInputSlot"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-select/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-select/calcite-select.css?tag=calcite-select&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/calcite-select/calcite-select.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n icon: \"icon\",\n iconContainer: \"icon-container\",\n select: \"select\"\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 /* Component spacing variables */\n --calcite-icon-size: 1rem;\n --calcite-spacing-eighth: 0.125rem;\n --calcite-spacing-quarter: 0.25rem;\n --calcite-spacing-half: 0.5rem;\n --calcite-spacing-three-quarters: 0.75rem;\n --calcite-spacing: 1rem;\n --calcite-spacing-plus-quarter: 1.25rem;\n --calcite-spacing-plus-half: 1.5rem;\n --calcite-spacing-double: 2rem;\n --calcite-menu-min-width: 10rem;\n --calcite-header-min-height: 3rem;\n --calcite-footer-min-height: 3rem;\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-select-font-size: the font-size of items in the select\n* @prop --calcite-select-spacing: the padding around the selected option text\n*/\n\n:host {\n display: flex;\n align-items: stretch;\n position: relative;\n width: var(--select-width);\n}\n\n:host([scale=s]) {\n height: 1.5rem;\n --calcite-select-font-size: var(--calcite-font-size--2);\n --calcite-select-spacing: 0 2rem 0 0.5rem;\n --calcite-select-spacing-rtl: 0 0.5rem 0 2rem;\n}\n\n:host([scale=s]) .icon-container {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n:host([scale=m]) {\n height: 2rem;\n --calcite-select-font-size: var(--calcite-font-size--1);\n --calcite-select-spacing: 0 2.5rem 0 0.75rem;\n --calcite-select-spacing-rtl: 0 0.75rem 0 2.5rem;\n}\n\n:host([scale=m]) .icon-container {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n:host([scale=l]) {\n height: 44px;\n --calcite-select-font-size: var(--calcite-font-size-0);\n --calcite-select-spacing: 0 3rem 0 1rem;\n --calcite-select-spacing-rtl: 0 1rem 0 3rem;\n}\n\n:host([scale=l]) .icon-container {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n:host([width=auto]) {\n width: auto;\n}\n\n:host([width=half]) {\n width: 50%;\n}\n\n:host([width=full]) {\n width: 100%;\n}\n\n.select {\n -webkit-appearance: none;\n appearance: none;\n border-width: 1px;\n border-style: solid;\n border-right-width: 0;\n background-color: var(--calcite-ui-foreground-1);\n border-color: var(--calcite-ui-border-input);\n border-radius: 0;\n color: var(--calcite-ui-text-2);\n cursor: pointer;\n font-family: inherit;\n margin: 0;\n width: 100%;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--calcite-select-font-size);\n padding: var(--calcite-select-spacing);\n}\n\n.select:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.select:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.select.calcite--rtl {\n border-width: 1px;\n border-color: var(--calcite-ui-border-input);\n padding: var(--calcite-select-spacing-rtl);\n}\n\nselect:disabled {\n border-color: var(--calcite-ui-border-input);\n --bg-opacity: 1;\n}\n\n:host([disabled]) {\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n.icon-container {\n align-items: center;\n background-color: transparent;\n border-width: 0;\n border-right-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-input);\n border-left-width: 0;\n color: var(--calcite-ui-text-2);\n display: flex;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n}\n\n.icon-container.calcite--rtl {\n border-left-width: 1px;\n border-right-width: 0;\n left: 0;\n right: unset;\n}\n\n.select:focus ~ .icon-container {\n border-color: transparent;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Fragment, h, Listen, Method, Prop, Watch } from \"@stencil/core\";\nimport { focusElement, getElementDir } from \"../../utils/dom\";\nimport { connectLabel, disconnectLabel } from \"../../utils/label\";\nimport { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nimport { CSS } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { createObserver } from \"../../utils/observers\";\nfunction isOption(optionOrGroup) {\n return optionOrGroup.tagName === \"CALCITE-OPTION\";\n}\nfunction isOptionGroup(optionOrGroup) {\n return optionOrGroup.tagName === \"CALCITE-OPTION-GROUP\";\n}\n/**\n * @slot - A slot for adding `calcite-option`s.\n */\nexport class CalciteSelect {\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 /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /**\n * The component scale.\n */\n this.scale = \"m\";\n /** The value of the selectedOption */\n this.value = null;\n /**\n * The component width.\n */\n this.width = \"auto\";\n this.componentToNativeEl = new Map();\n this.mutationObserver = createObserver(\"mutation\", () => this.populateInternalSelect());\n this.handleInternalSelectChange = () => {\n const selected = this.selectEl.selectedOptions[0];\n this.selectFromNativeOption(selected);\n requestAnimationFrame(() => this.emitChangeEvent());\n };\n this.populateInternalSelect = () => {\n const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === \"CALCITE-OPTION\" || child.tagName === \"CALCITE-OPTION-GROUP\");\n this.clearInternalSelect();\n optionsAndGroups.forEach((optionOrGroup) => { var _a; return (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.append(this.toNativeElement(optionOrGroup)); });\n };\n this.storeSelectRef = (node) => {\n this.selectEl = node;\n this.populateInternalSelect();\n const selected = this.selectEl.selectedOptions[0];\n this.selectFromNativeOption(selected);\n };\n this.emitChangeEvent = () => {\n this.calciteSelectChange.emit();\n };\n }\n valueHandler(value) {\n const items = this.el.querySelectorAll(\"calcite-option\");\n items.forEach((item) => (item.selected = item.value === value));\n }\n selectedOptionHandler(selectedOption) {\n this.value = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n const { el } = this;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, {\n subtree: true,\n childList: true\n });\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n disconnectLabel(this);\n disconnectForm(this);\n }\n componentDidLoad() {\n var _a, _b;\n afterConnectDefaultValueSet(this, (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : \"\");\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.selectEl);\n }\n handleOptionOrGroupChange(event) {\n event.stopPropagation();\n const optionOrGroup = event.target;\n const nativeEl = this.componentToNativeEl.get(optionOrGroup);\n if (!nativeEl) {\n return;\n }\n this.updateNativeElement(optionOrGroup, nativeEl);\n if (isOption(optionOrGroup) && optionOrGroup.selected) {\n this.deselectAllExcept(optionOrGroup);\n }\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n updateNativeElement(optionOrGroup, nativeOptionOrGroup) {\n nativeOptionOrGroup.disabled = optionOrGroup.disabled;\n nativeOptionOrGroup.label = optionOrGroup.label;\n if (isOption(optionOrGroup)) {\n const option = nativeOptionOrGroup;\n option.selected = optionOrGroup.selected;\n option.value = optionOrGroup.value;\n // need to set innerText for mobile\n // see https://stackoverflow.com/questions/35021620/ios-safari-not-showing-all-options-for-select-menu/41749701\n option.innerText = optionOrGroup.label;\n }\n }\n clearInternalSelect() {\n this.componentToNativeEl.forEach((value) => value.remove());\n this.componentToNativeEl.clear();\n }\n selectFromNativeOption(nativeOption) {\n if (!nativeOption) {\n return;\n }\n let futureSelected;\n this.componentToNativeEl.forEach((nativeOptionOrGroup, optionOrGroup) => {\n if (isOption(optionOrGroup) && nativeOptionOrGroup === nativeOption) {\n optionOrGroup.selected = true;\n futureSelected = optionOrGroup;\n this.deselectAllExcept(optionOrGroup);\n }\n });\n if (futureSelected) {\n requestAnimationFrame(() => (this.selectedOption = futureSelected));\n }\n }\n toNativeElement(optionOrGroup) {\n if (isOption(optionOrGroup)) {\n const option = document.createElement(\"option\");\n this.updateNativeElement(optionOrGroup, option);\n this.componentToNativeEl.set(optionOrGroup, option);\n return option;\n }\n if (isOptionGroup(optionOrGroup)) {\n const group = document.createElement(\"optgroup\");\n this.updateNativeElement(optionOrGroup, group);\n Array.from(optionOrGroup.children).forEach((option) => {\n const nativeOption = this.toNativeElement(option);\n group.append(nativeOption);\n this.componentToNativeEl.set(optionOrGroup, nativeOption);\n });\n this.componentToNativeEl.set(optionOrGroup, group);\n return group;\n }\n throw new Error(\"unsupported element child provided\");\n }\n deselectAllExcept(except) {\n this.el.querySelectorAll(\"calcite-option\").forEach((option) => {\n if (option === except) {\n return;\n }\n option.selected = false;\n });\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n renderChevron(dir) {\n return (h(\"div\", { class: { [CSS.iconContainer]: true, [CSS_UTILITY.rtl]: dir === \"rtl\" } },\n h(\"calcite-icon\", { class: CSS.icon, icon: \"chevron-down\", scale: \"s\" })));\n }\n render() {\n const dir = getElementDir(this.el);\n return (h(Fragment, null,\n h(\"select\", { \"aria-label\": this.label, class: { [CSS.select]: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef },\n h(\"slot\", null)),\n this.renderChevron(dir),\n h(HiddenFormInputSlot, { component: this })));\n }\n static get is() { return \"calcite-select\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-select.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-select.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\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component's label. This is required for accessibility purposes.\"\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 select's name. Gets submitted with the form.\"\n },\n \"attribute\": \"name\",\n \"reflect\": false\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component scale.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the selectedOption\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n },\n \"selectedOption\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLCalciteOptionElement\",\n \"resolved\": \"HTMLCalciteOptionElement\",\n \"references\": {\n \"HTMLCalciteOptionElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"readonly\",\n \"text\": undefined\n }],\n \"text\": \"The currently selected option.\"\n }\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Width\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\" | \\\"half\\\"\",\n \"references\": {\n \"Width\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component width.\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteSelectChange\",\n \"name\": \"calciteSelectChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This event will fire whenever the selected option changes.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"value\",\n \"methodName\": \"valueHandler\"\n }, {\n \"propName\": \"selectedOption\",\n \"methodName\": \"selectedOptionHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteOptionChange\",\n \"method\": \"handleOptionOrGroupChange\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteOptionGroupChange\",\n \"method\": \"handleOptionOrGroupChange\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|