@esri/solutions-components 0.0.2 → 0.0.4
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,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,h as n,g as a}from"./p-2e1cd889.js";import{g as i}from"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/function s(t,n,a){const i=n[0]-t[0];const s=a[0]-n[0];const o=n[1]-t[1];const e=a[1]-n[1];const c=o/(i||s<0&&0);const r=e/(s||i<0&&0);const h=(c*s+r*i)/(i+s);return(Math.sign(c)+Math.sign(r))*Math.min(Math.abs(c),Math.abs(r),.5*Math.abs(h))||0}function o(t,n,a){const i=n[0]-t[0];const s=n[1]-t[1];return i?(3*s/i-a)/2:a}function e(t,n,a,i,s){const[o,e]=t;const[c,r]=n;const h=(c-o)/3;const l=s([o+h,e+h*a]).join(",");const m=s([c-h,r-h*i]).join(",");const p=s([c,r]).join(",");return`C ${l} ${m} ${p}`}function c({width:t,height:n,min:a,max:i}){const s=i[0]-a[0];const o=i[1]-a[1];return i=>{const e=(i[0]-a[0])/s*t;const c=n-i[1]/o*n;return[e,c]}}function r(t){const[n,a]=t[0];const i=[n,a];const s=[n,a];return t.reduce((({min:t,max:n},[a,i])=>({min:[Math.min(t[0],a),Math.min(t[1],i)],max:[Math.max(n[0],a),Math.max(n[1],i)]})),{min:i,max:s})}function h({data:t,min:n,max:a,t:i}){if(t.length===0){return""}const[c,r]=i(t[0]);const[h,l]=i(n);const[m]=i(a);let p;let d;let $;const f=t.reduce(((n,a,c)=>{d=t[c-2];$=t[c-1];if(c>1){const t=s(d,$,a);const c=p===undefined?o(d,$,t):p;const r=e(d,$,c,t,i);p=t;return`${n} ${r}`}return n}),`M ${h},${l} L ${h},${r} L ${c},${r}`);const g=t[t.length-1];const u=e($,g,p,o($,g,p),i);return`${f} ${u} L ${m},${l} Z`}const l="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0;padding:0;display:block}:host([data-style=slider-histogram]) svg{width:100%}:host([data-style=slider-histogram]) svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";let m=class{constructor(n){t(this,n);this.data=[];this.width=300;this.height=100;this.graphId=`calcite-graph-${i()}`}render(){const{data:t,colorStops:a,width:i,height:s,highlightMax:o,highlightMin:e,min:l,max:m}=this;const p=this.graphId;if(!t||t.length===0){return n("svg",{class:"svg",height:s,preserveAspectRatio:"none",viewBox:`0 0 ${i} ${s}`,width:i})}const{min:d,max:$}=r(t);let f=d;let g=$;if(l<d[0]||l>d[0]){f=[l,0]}if(m>$[0]||m<$[0]){g=[m,$[1]]}const u=c({min:f,max:g,width:i,height:s});const[y]=u([e,g[1]]);const[x]=u([o,g[1]]);const w=h({data:t,min:d,max:$,t:u});const M=a?`url(#linear-gradient-${p})`:undefined;return n("svg",{class:"svg",height:s,preserveAspectRatio:"none",viewBox:`0 0 ${i} ${s}`,width:i},a?n("defs",null,n("linearGradient",{id:`linear-gradient-${p}`,x1:"0",x2:"1",y1:"0",y2:"0"},a.map((({offset:t,color:a,opacity:i})=>n("stop",{offset:`${t*100}%`,"stop-color":a,"stop-opacity":i}))))):null,e!==undefined?[n("mask",{height:"100%",id:`${p}1`,width:"100%",x:"0%",y:"0%"},n("path",{d:`\n M 0,0\n L ${y-1},0\n L ${y-1},${s}\n L 0,${s}\n Z\n `,fill:"white"})),n("mask",{height:"100%",id:`${p}2`,width:"100%",x:"0%",y:"0%"},n("path",{d:`\n M ${y+1},0\n L ${x-1},0\n L ${x-1},${s}\n L ${y+1}, ${s}\n Z\n `,fill:"white"})),n("mask",{height:"100%",id:`${p}3`,width:"100%",x:"0%",y:"0%"},n("path",{d:`\n M ${x+1},0\n L ${i},0\n L ${i},${s}\n L ${x+1}, ${s}\n Z\n `,fill:"white"})),n("path",{class:"graph-path",d:w,fill:M,mask:`url(#${p}1)`}),n("path",{class:"graph-path--highlight",d:w,fill:M,mask:`url(#${p}2)`}),n("path",{class:"graph-path",d:w,fill:M,mask:`url(#${p}3)`})]:n("path",{class:"graph-path",d:w,fill:M}))}get el(){return a(this)}};m.style=l;export{m as calcite_graph};
|
11
|
-
//# sourceMappingURL=p-745f85bf.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-graph/util.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-graph/calcite-graph.css?tag=calcite-graph&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-graph/calcite-graph.js"],"names":["slope","p0","p1","p2","dx","dx1","dy","dy1","m","m1","p","Math","sign","min","abs","slopeSingle","bezier","m0","t","x0","y0","x1","y1","h1","join","h2","translate","width","height","max","rangeX","rangeY","point","x","y","range","data","startX","startY","reduce","area","length","minX","minY","maxX","commands","acc","i","undefined","command","last","end","calciteGraphCss","CalciteGraph","[object Object]","hostRef","this","graphId","guid","colorStops","highlightMax","highlightMin","id","h","class","preserveAspectRatio","viewBox","rangeMin","rangeMax","currentMin","currentMax","hMinX","hMaxX","areaPath","fill","x2","y2","map","offset","color","opacity","stop-color","stop-opacity","d","mask"],"mappings":"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","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\n/**\n * Calculate slope of the tangents\n * uses Steffen interpolation as it's monotonic\n * http://jrwalsh1.github.io/posts/interpolations/\n */\nfunction slope(p0, p1, p2) {\n const dx = p1[0] - p0[0];\n const dx1 = p2[0] - p1[0];\n const dy = p1[1] - p0[1];\n const dy1 = p2[1] - p1[1];\n const m = dy / (dx || (dx1 < 0 && 0));\n const m1 = dy1 / (dx1 || (dx < 0 && 0));\n const p = (m * dx1 + m1 * dx) / (dx + dx1);\n return (Math.sign(m) + Math.sign(m1)) * Math.min(Math.abs(m), Math.abs(m1), 0.5 * Math.abs(p)) || 0;\n}\n/**\n * Calculate slope for just one tangent (single-sided)\n */\nfunction slopeSingle(p0, p1, m) {\n const dx = p1[0] - p0[0];\n const dy = p1[1] - p0[1];\n return dx ? ((3 * dy) / dx - m) / 2 : m;\n}\n/**\n * Given two points and their tangent slopes,\n * calculate the bezier handle coordinates and return draw command.\n *\n * Translates Hermite Spline to Beziér curve:\n * stackoverflow.com/questions/42574940/\n */\nfunction bezier(p0, p1, m0, m1, t) {\n const [x0, y0] = p0;\n const [x1, y1] = p1;\n const dx = (x1 - x0) / 3;\n const h1 = t([x0 + dx, y0 + dx * m0]).join(\",\");\n const h2 = t([x1 - dx, y1 - dx * m1]).join(\",\");\n const p = t([x1, y1]).join(\",\");\n return `C ${h1} ${h2} ${p}`;\n}\n/**\n * Generate a function which will translate a point\n * from the data coordinate space to svg viewbox oriented pixels\n */\nexport function translate({ width, height, min, max }) {\n const rangeX = max[0] - min[0];\n const rangeY = max[1] - min[1];\n return (point) => {\n const x = ((point[0] - min[0]) / rangeX) * width;\n const y = height - (point[1] / rangeY) * height;\n return [x, y];\n };\n}\n/**\n * Get the min and max values from the dataset\n */\nexport function range(data) {\n const [startX, startY] = data[0];\n const min = [startX, startY];\n const max = [startX, startY];\n return data.reduce(({ min, max }, [x, y]) => ({\n min: [Math.min(min[0], x), Math.min(min[1], y)],\n max: [Math.max(max[0], x), Math.max(max[1], y)]\n }), { min, max });\n}\n/**\n * Generate drawing commands for an area graph\n * returns a string can can be passed directly to a path element's `d` attribute\n */\nexport function area({ data, min, max, t }) {\n if (data.length === 0) {\n return \"\";\n }\n // important points for beginning and ending the path\n const [startX, startY] = t(data[0]);\n const [minX, minY] = t(min);\n const [maxX] = t(max);\n // keep track of previous slope/points\n let m;\n let p0;\n let p1;\n // iterate over data points, calculating command for each\n const commands = data.reduce((acc, point, i) => {\n p0 = data[i - 2];\n p1 = data[i - 1];\n if (i > 1) {\n const m1 = slope(p0, p1, point);\n const m0 = m === undefined ? slopeSingle(p0, p1, m1) : m;\n const command = bezier(p0, p1, m0, m1, t);\n m = m1;\n return `${acc} ${command}`;\n }\n return acc;\n }, `M ${minX},${minY} L ${minX},${startY} L ${startX},${startY}`);\n // close the path\n const last = data[data.length - 1];\n const end = bezier(p1, last, m, slopeSingle(p1, last, m), t);\n return `${commands} ${end} L ${maxX},${minY} Z`;\n}\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n}\n\n.svg {\n fill: currentColor;\n stroke: transparent;\n margin: 0;\n padding: 0;\n display: block;\n}\n\n:host([data-style=slider-histogram]) svg {\n width: 100%;\n}\n\n:host([data-style=slider-histogram]) svg .graph-path--highlight {\n fill: var(--calcite-ui-brand);\n opacity: 0.5;\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 { guid } from \"../../utils/guid\";\nimport { area, range, translate } from \"./util\";\nexport class CalciteGraph {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * Array of tuples describing a single data point ([x, y])\n * These data points should be sorted by x-axis value\n */\n this.data = [];\n /** Width of graph in pixels*/\n this.width = 300;\n /** Width of graph in pixels*/\n this.height = 100;\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n this.graphId = `calcite-graph-${guid()}`;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const { data, colorStops, width, height, highlightMax, highlightMin, min, max } = this;\n const id = this.graphId;\n // if we have no data, return empty svg\n if (!data || data.length === 0) {\n return (h(\"svg\", { class: \"svg\", height: height, preserveAspectRatio: \"none\", viewBox: `0 0 ${width} ${height}`, width: width }));\n }\n const { min: rangeMin, max: rangeMax } = range(data);\n let currentMin = rangeMin;\n let currentMax = rangeMax;\n if (min < rangeMin[0] || min > rangeMin[0]) {\n currentMin = [min, 0];\n }\n if (max > rangeMax[0] || max < rangeMax[0]) {\n currentMax = [max, rangeMax[1]];\n }\n const t = translate({ min: currentMin, max: currentMax, width, height });\n const [hMinX] = t([highlightMin, currentMax[1]]);\n const [hMaxX] = t([highlightMax, currentMax[1]]);\n const areaPath = area({ data, min: rangeMin, max: rangeMax, t });\n const fill = colorStops ? `url(#linear-gradient-${id})` : undefined;\n return (h(\"svg\", { class: \"svg\", height: height, preserveAspectRatio: \"none\", viewBox: `0 0 ${width} ${height}`, width: width },\n colorStops ? (h(\"defs\", null,\n h(\"linearGradient\", { id: `linear-gradient-${id}`, x1: \"0\", x2: \"1\", y1: \"0\", y2: \"0\" }, colorStops.map(({ offset, color, opacity }) => (h(\"stop\", { offset: `${offset * 100}%`, \"stop-color\": color, \"stop-opacity\": opacity })))))) : null,\n highlightMin !== undefined ? ([\n h(\"mask\", { height: \"100%\", id: `${id}1`, width: \"100%\", x: \"0%\", y: \"0%\" },\n h(\"path\", { d: `\n M 0,0\n L ${hMinX - 1},0\n L ${hMinX - 1},${height}\n L 0,${height}\n Z\n `, fill: \"white\" })),\n h(\"mask\", { height: \"100%\", id: `${id}2`, width: \"100%\", x: \"0%\", y: \"0%\" },\n h(\"path\", { d: `\n M ${hMinX + 1},0\n L ${hMaxX - 1},0\n L ${hMaxX - 1},${height}\n L ${hMinX + 1}, ${height}\n Z\n `, fill: \"white\" })),\n h(\"mask\", { height: \"100%\", id: `${id}3`, width: \"100%\", x: \"0%\", y: \"0%\" },\n h(\"path\", { d: `\n M ${hMaxX + 1},0\n L ${width},0\n L ${width},${height}\n L ${hMaxX + 1}, ${height}\n Z\n `, fill: \"white\" })),\n h(\"path\", { class: \"graph-path\", d: areaPath, fill: fill, mask: `url(#${id}1)` }),\n h(\"path\", { class: \"graph-path--highlight\", d: areaPath, fill: fill, mask: `url(#${id}2)` }),\n h(\"path\", { class: \"graph-path\", d: areaPath, fill: fill, mask: `url(#${id}3)` })\n ]) : (h(\"path\", { class: \"graph-path\", d: areaPath, fill: fill }))));\n }\n static get is() { return \"calcite-graph\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-graph.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-graph.css\"]\n }; }\n static get properties() { return {\n \"data\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DataSeries\",\n \"resolved\": \"Point[]\",\n \"references\": {\n \"DataSeries\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Array of tuples describing a single data point ([x, y])\\nThese data points should be sorted by x-axis value\"\n },\n \"defaultValue\": \"[]\"\n },\n \"colorStops\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ColorStop[]\",\n \"resolved\": \"ColorStop[]\",\n \"references\": {\n \"ColorStop\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Array of values describing a single color stop ([offset, color, opacity])\\nThese color stops should be sorted by offset value\"\n }\n },\n \"width\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Width of graph in pixels\"\n },\n \"attribute\": \"width\",\n \"reflect\": false,\n \"defaultValue\": \"300\"\n },\n \"height\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Width of graph in pixels\"\n },\n \"attribute\": \"height\",\n \"reflect\": false,\n \"defaultValue\": \"100\"\n },\n \"highlightMin\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Start of highlight color if highlighting range\"\n },\n \"attribute\": \"highlight-min\",\n \"reflect\": false\n },\n \"highlightMax\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"End of highlight color if highlighting range\"\n },\n \"attribute\": \"highlight-max\",\n \"reflect\": false\n },\n \"min\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Lowest point of the range\"\n },\n \"attribute\": \"min\",\n \"reflect\": false\n },\n \"max\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Highest point of the range\"\n },\n \"attribute\": \"max\",\n \"reflect\": false\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as a,h as t}from"./p-2e1cd889.js";const i="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-right:1px;margin-bottom:1px}:host([layout=vertical]){flex-direction:column}";let n=class{constructor(t){a(this,t);this.layout="horizontal"}render(){return t("slot",null)}};n.style=i;export{n as calcite_tile_select_group};
|
7
|
-
//# sourceMappingURL=p-7480bdae.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css?tag=calcite-tile-select-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js"],"names":["calciteTileSelectGroupCss","CalciteTileSelectGroup","[object Object]","hostRef","this","layout","h"],"mappings":";;;;;2CAAA,MAAMA,EAA4B,86BCQrBC,EAAsB,MACjCC,YAAAC,aAOEC,KAAKC,OAAS,aAEhBH,SACE,OAAOI,EAAE,OAAQ","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex-wrap: wrap;\n}\n\n:host ::slotted(calcite-tile-select) {\n margin-right: 1px;\n margin-bottom: 1px;\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, h, Prop } from \"@stencil/core\";\n/**\n * @slot - A slot for adding `calcite-tile-select`s.\n */\nexport class CalciteTileSelectGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Tiles by default move horizontally, stacking with each row, vertical allows single-column layouts */\n this.layout = \"horizontal\";\n }\n render() {\n return h(\"slot\", null);\n }\n static get is() { return \"calcite-tile-select-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tile-select-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tile-select-group.css\"]\n }; }\n static get properties() { return {\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"TileSelectGroupLayout\",\n \"resolved\": \"\\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"TileSelectGroupLayout\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tiles by default move horizontally, stacking with each row, vertical allows single-column layouts\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n }\n }; }\n}\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as i,c as t,h as e,H as a,g as o}from"./p-2e1cd889.js";import{a as n,g as r}from"./p-e762b2d1.js";import{c as s}from"./p-a10dc180.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const l={input:"input"};const c={radioGroupItemIcon:"radio-group-item-icon"};const d="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;align-self:stretch;cursor:pointer;font-weight:var(--calcite-font-weight-normal);transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}:host label{display:flex;flex:1 1 0%;color:var(--calcite-ui-text-3);box-sizing:border-box;pointer-events:none;align-items:center;margin:0.125rem;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out, color 0.1s ease-in-out}.label--horizontal{justify-content:center}:host{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px;outline-offset:-1px}.label--scale-s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.125rem;padding-bottom:0.125rem}.label--scale-m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.375rem;padding-bottom:0.375rem}.label--scale-l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-left:1rem;padding-right:1rem;padding-top:0.625rem;padding-bottom:0.625rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand);cursor:default;color:var(--calcite-ui-background)}:host([checked]) .label--outline{background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}.radio-group-item-icon{display:inline-flex;position:relative;margin:0;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:1rem}";let m=class{constructor(e){i(this,e);this.calciteRadioGroupItemChange=t(this,"calciteRadioGroupItemChange",7);this.checked=false;this.iconFlipRtl=false;this.iconPosition="start";this.mutationObserver=s("mutation",(()=>this.syncFromExternalInput()))}handleCheckedChange(){this.calciteRadioGroupItemChange.emit();this.syncToExternalInput()}connectedCallback(){var i;const t=this.el.querySelector(`input[slot=${l.input}]`);if(t){this.value=t.value;this.checked=t.checked;(i=this.mutationObserver)===null||i===void 0?void 0:i.observe(t,{attributes:true})}this.inputProxy=t}disconnectedCallback(){var i;(i=this.mutationObserver)===null||i===void 0?void 0:i.disconnect()}componentWillLoad(){const i=this.el.querySelector("label");this.useFallback=!i||i.textContent===""}render(){const{checked:i,useFallback:t,value:o}=this;const s=n(this.el);const d=r(this.el,"scale","m");const m=r(this.el,"appearance","solid");const h=r(this.el,"layout","horizontal");const u=e("calcite-icon",{class:c.radioGroupItemIcon,dir:s,flipRtl:this.iconFlipRtl,icon:this.icon,scale:"s"});return e(a,{"aria-checked":i.toString(),role:"radio"},e("label",{class:{"label--scale-s":d==="s","label--scale-m":d==="m","label--scale-l":d==="l","label--horizontal":h==="horizontal","label--outline":m==="outline"}},this.icon&&this.iconPosition==="start"?u:null,e("slot",null,t?o:""),e("slot",{name:l.input}),this.icon&&this.iconPosition==="end"?u:null))}syncFromExternalInput(){if(this.inputProxy){this.value=this.inputProxy.value;this.checked=this.inputProxy.checked}}syncToExternalInput(){if(!this.inputProxy){return}this.inputProxy.value=this.value;if(this.checked){this.inputProxy.setAttribute("checked","")}else{this.inputProxy.removeAttribute("checked")}}get el(){return o(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};m.style=d;export{m as calcite_radio_group_item};
|
11
|
-
//# sourceMappingURL=p-7611d9ad.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"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"],"names":["SLOTS","input","CSS","radioGroupItemIcon","calciteRadioGroupItemCss","CalciteRadioGroupItem","[object Object]","hostRef","this","checked","iconFlipRtl","iconPosition","mutationObserver","createObserver","syncFromExternalInput","calciteRadioGroupItemChange","emit","syncToExternalInput","_a","inputProxy","el","querySelector","value","observe","attributes","disconnect","label","useFallback","textContent","dir","getElementDir","scale","getElementProp","appearance","layout","iconEl","h","class","flipRtl","icon","Host","aria-checked","toString","role","label--scale-s","label--scale-m","label--scale-l","label--horizontal","label--outline","name","setAttribute","removeAttribute"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAQ,CACnBC,MAAO,SAEF,MAAMC,EAAM,CACjBC,mBAAoB,yBCRtB,MAAMC,EAA2B,0oGCQpBC,EAAqB,MAChCC,YAAAC,sFAOEC,KAAKC,QAAU,MAEfD,KAAKE,YAAc,MAEnBF,KAAKG,aAAe,QACpBH,KAAKI,iBAAmBC,EAAe,YAAY,IAAML,KAAKM,0BAEhER,sBACEE,KAAKO,4BAA4BC,OACjCR,KAAKS,sBAOPX,oBACE,IAAIY,EACJ,MAAMC,EAAaX,KAAKY,GAAGC,cAAc,cAAcrB,EAAMC,UAC7D,GAAIkB,EAAY,CACdX,KAAKc,MAAQH,EAAWG,MACxBd,KAAKC,QAAUU,EAAWV,SACzBS,EAAKV,KAAKI,oBAAsB,MAAQM,SAAY,OAAS,EAAIA,EAAGK,QAAQJ,EAAY,CAAEK,WAAY,OAEzGhB,KAAKW,WAAaA,EAEpBb,uBACE,IAAIY,GACHA,EAAKV,KAAKI,oBAAsB,MAAQM,SAAY,OAAS,EAAIA,EAAGO,aAEvEnB,oBAGE,MAAMoB,EAAQlB,KAAKY,GAAGC,cAAc,SACpCb,KAAKmB,aAAeD,GAASA,EAAME,cAAgB,GAErDtB,SACE,MAAMG,QAAEA,EAAOkB,YAAEA,EAAWL,MAAEA,GAAUd,KACxC,MAAMqB,EAAMC,EAActB,KAAKY,IAC/B,MAAMW,EAAQC,EAAexB,KAAKY,GAAI,QAAS,KAC/C,MAAMa,EAAaD,EAAexB,KAAKY,GAAI,aAAc,SACzD,MAAMc,EAASF,EAAexB,KAAKY,GAAI,SAAU,cACjD,MAAMe,EAAUC,EAAE,eAAgB,CAAEC,MAAOnC,EAAIC,mBAAoB0B,IAAKA,EAAKS,QAAS9B,KAAKE,YAAa6B,KAAM/B,KAAK+B,KAAMR,MAAO,MAChI,OAAQK,EAAEI,EAAM,CAAEC,eAAgBhC,EAAQiC,WAAYC,KAAM,SAC1DP,EAAE,QAAS,CAAEC,MAAO,CAChBO,iBAAkBb,IAAU,IAC5Bc,iBAAkBd,IAAU,IAC5Be,iBAAkBf,IAAU,IAC5BgB,oBAAqBb,IAAW,aAChCc,iBAAkBf,IAAe,YAEnCzB,KAAK+B,MAAQ/B,KAAKG,eAAiB,QAAUwB,EAAS,KACtDC,EAAE,OAAQ,KAAMT,EAAcL,EAAQ,IACtCc,EAAE,OAAQ,CAAEa,KAAMjD,EAAMC,QACxBO,KAAK+B,MAAQ/B,KAAKG,eAAiB,MAAQwB,EAAS,OAO1D7B,wBACE,GAAIE,KAAKW,WAAY,CACnBX,KAAKc,MAAQd,KAAKW,WAAWG,MAC7Bd,KAAKC,QAAUD,KAAKW,WAAWV,SAGnCH,sBACE,IAAKE,KAAKW,WAAY,CACpB,OAEFX,KAAKW,WAAWG,MAAQd,KAAKc,MAC7B,GAAId,KAAKC,QAAS,CAChBD,KAAKW,WAAW+B,aAAa,UAAW,QAErC,CACH1C,KAAKW,WAAWgC,gBAAgB","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"]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as e,g as n}from"./p-2e1cd889.js";import{a,C as o}from"./p-e762b2d1.js";import{g as s}from"./p-ec178ea9.js";const c="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.root{background-color:var(--calcite-ui-foreground-1);box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host{display:block}:host(:hover) .root{z-index:20;box-shadow:0 0 0 1px var(--calcite-ui-border-1)}:host([checked]) .root{z-index:30;box-shadow:0 0 0 1px var(--calcite-ui-brand)}.root.focused{z-index:30}:host(:not([input-enabled]):hover) .root{box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host(:not([input-enabled])) .root.focused{box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host([width=full]) .root{max-width:none;display:flex}:host([width=full]) calcite-tile{flex:1 1 auto}:host([input-alignment=start][width=full]) calcite-tile{order:1;margin-inline-start:0.75rem}:host(:not([input-enabled])) ::slotted(calcite-checkbox),:host(:not([input-enabled])) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([heading]:not([icon]):not([description])) .root{align-items:center}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) .root,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:max-content 1fr}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-radio-button),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button){order:0}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) calcite-tile,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile{order:1}:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;left:0.75rem}:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-radio-button){right:0.75rem;left:unset}:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;right:0.75rem}:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-radio-button){right:unset;left:0.75rem}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:max-content 1fr}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-radio-button){justify-self:flex-end}:host([hidden]){display:none}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";let l=class{constructor(e){t(this,e);this.calciteTileSelectChange=i(this,"calciteTileSelectChange",7);this.checked=false;this.disabled=false;this.hidden=false;this.inputEnabled=false;this.inputAlignment="start";this.type="radio";this.width="auto";this.guid=`calcite-tile-select-${s()}`;this.focused=false}checkedChanged(t){this.input.checked=t}nameChanged(t){this.input.name=t}async setFocus(){this.input.setFocus()}checkboxChangeHandler(t){const i=t.target;if(i===this.input){this.checked=i.checked}t.stopPropagation();this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){const i=t.target;if(i===this.input){this.focused=t.detail}t.stopPropagation()}radioButtonChangeHandler(t){const i=t.target;if(i===this.input){this.checked=i.checked}t.stopPropagation();this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){const i=t.target;if(i===this.input){this.checked=i.checked}t.stopPropagation()}radioButtonFocusBlurHandler(t){const i=t.target;if(i===this.input){this.focused=i.focused}t.stopPropagation()}click(t){const i=t.target;const e=["calcite-tile","calcite-tile-select"];if(e.includes(i.localName)){this.input.click()}}mouseenter(){if(this.input.localName==="calcite-radio-button"){this.input.hovered=true}if(this.input.localName==="calcite-checkbox"){this.input.hovered=true}}mouseleave(){if(this.input.localName==="calcite-radio-button"){this.input.hovered=false}if(this.input.localName==="calcite-checkbox"){this.input.hovered=false}}connectedCallback(){this.renderInput()}disconnectedCallback(){this.input.parentNode.removeChild(this.input)}renderInput(){this.input=document.createElement(this.type==="radio"?"calcite-radio-button":"calcite-checkbox");this.input.checked=this.checked;this.input.disabled=this.disabled;this.input.hidden=this.hidden;this.input.id=this.guid;this.input.label=this.heading||this.name||"";if(this.name){this.input.name=this.name}if(this.value){this.input.value=this.value!=null?this.value.toString():""}this.el.insertAdjacentElement("beforeend",this.input)}render(){const t=a(this.el);return e("div",{class:{focused:this.focused,root:true,[o.rtl]:t==="rtl"}},e("calcite-tile",{active:this.checked,description:this.description,embed:true,heading:this.heading,icon:this.icon}),e("slot",null))}get el(){return n(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};l.style=c;export{l as calcite_tile_select};
|
7
|
-
//# sourceMappingURL=p-77b056db.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tile-select/calcite-tile-select.css?tag=calcite-tile-select&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tile-select/calcite-tile-select.js"],"names":["calciteTileSelectCss","CalciteTileSelect","[object Object]","hostRef","this","checked","disabled","hidden","inputEnabled","inputAlignment","type","width","guid","focused","newChecked","input","newName","name","setFocus","event","checkbox","target","stopPropagation","calciteTileSelectChange","emit","detail","radioButton","targets","includes","localName","click","hovered","renderInput","parentNode","removeChild","document","createElement","id","label","heading","value","toString","el","insertAdjacentElement","dir","getElementDir","h","class","root","CSS_UTILITY","rtl","active","description","embed","icon"],"mappings":"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","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.root {\n background-color: var(--calcite-ui-foreground-1);\n box-shadow: 0 0 0 1px var(--calcite-ui-border-2);\n box-sizing: border-box;\n cursor: pointer;\n display: inline-block;\n height: 100%;\n max-width: 300px;\n padding: 0.75rem;\n position: relative;\n transition: 150ms ease-in-out;\n vertical-align: top;\n z-index: 10;\n}\n\n:host {\n display: block;\n}\n\n:host(:hover) .root {\n z-index: 20;\n box-shadow: 0 0 0 1px var(--calcite-ui-border-1);\n}\n\n:host([checked]) .root {\n z-index: 30;\n box-shadow: 0 0 0 1px var(--calcite-ui-brand);\n}\n\n.root.focused {\n z-index: 30;\n}\n\n:host(:not([input-enabled]):hover) .root {\n box-shadow: 0 0 0 1px var(--calcite-ui-brand);\n}\n\n:host(:not([input-enabled])) .root.focused {\n box-shadow: 0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);\n}\n\n:host([width=full]) .root {\n max-width: none;\n display: flex;\n}\n\n:host([width=full]) calcite-tile {\n flex: 1 1 auto;\n}\n\n:host([input-alignment=start][width=full]) calcite-tile {\n order: 1;\n margin-inline-start: 0.75rem;\n}\n\n:host(:not([input-enabled])) ::slotted(calcite-checkbox),\n:host(:not([input-enabled])) ::slotted(calcite-radio-button) {\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:host([heading]:not([icon]):not([description])) .root {\n align-items: center;\n}\n\n:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) .root,\n:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) .root {\n display: inline-grid;\n grid-gap: 0.75rem;\n grid-template-columns: max-content 1fr;\n}\n\n:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-checkbox),\n:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-radio-button),\n:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),\n:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button) {\n order: 0;\n}\n\n:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) calcite-tile,\n:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile {\n order: 1;\n}\n\n:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-checkbox),\n:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button) {\n position: absolute;\n top: 0.75rem;\n left: 0.75rem;\n}\n\n:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-checkbox),\n:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-radio-button) {\n right: 0.75rem;\n left: unset;\n}\n\n:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),\n:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button) {\n position: absolute;\n top: 0.75rem;\n right: 0.75rem;\n}\n\n:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-checkbox),\n:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-radio-button) {\n right: unset;\n left: 0.75rem;\n}\n\n:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root {\n display: inline-grid;\n grid-gap: 0.75rem;\n grid-template-columns: max-content 1fr;\n}\n\n:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-checkbox),\n:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-radio-button) {\n justify-self: flex-end;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([disabled]) {\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: 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, Element, Event, h, Prop, Listen, Watch, State, Method } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { guid } from \"../../utils/guid\";\n/**\n * @slot - A slot for adding custom content.\n */\nexport class CalciteTileSelect {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The checked state of the tile select. */\n this.checked = false;\n /** The disabled state of the tile select. */\n this.disabled = false;\n /** The hidden state of the tile select. */\n this.hidden = false;\n /** Display an interactive radio or checkbox. */\n this.inputEnabled = false;\n /** The side of the tile that the radio or checkbox appears on when inputEnabled is true. */\n this.inputAlignment = \"start\";\n /** The selection mode of the tile select: radio (single) or checkbox (multiple). */\n this.type = \"radio\";\n /** specify the width of the tile, defaults to auto */\n this.width = \"auto\";\n this.guid = `calcite-tile-select-${guid()}`;\n //--------------------------------------------------------------------------\n //\n // State\n //\n //--------------------------------------------------------------------------\n /** The focused state of the tile-select. */\n this.focused = false;\n }\n checkedChanged(newChecked) {\n this.input.checked = newChecked;\n }\n nameChanged(newName) {\n this.input.name = newName;\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.input.setFocus();\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n checkboxChangeHandler(event) {\n const checkbox = event.target;\n if (checkbox === this.input) {\n this.checked = checkbox.checked;\n }\n event.stopPropagation();\n this.calciteTileSelectChange.emit();\n }\n checkboxFocusBlurHandler(event) {\n const checkbox = event.target;\n if (checkbox === this.input) {\n this.focused = event.detail;\n }\n event.stopPropagation();\n }\n radioButtonChangeHandler(event) {\n const radioButton = event.target;\n if (radioButton === this.input) {\n this.checked = radioButton.checked;\n }\n event.stopPropagation();\n this.calciteTileSelectChange.emit();\n }\n radioButtonCheckedChangeHandler(event) {\n const radioButton = event.target;\n if (radioButton === this.input) {\n this.checked = radioButton.checked;\n }\n event.stopPropagation();\n }\n radioButtonFocusBlurHandler(event) {\n const radioButton = event.target;\n if (radioButton === this.input) {\n this.focused = radioButton.focused;\n }\n event.stopPropagation();\n }\n click(event) {\n const target = event.target;\n const targets = [\"calcite-tile\", \"calcite-tile-select\"];\n if (targets.includes(target.localName)) {\n this.input.click();\n }\n }\n mouseenter() {\n if (this.input.localName === \"calcite-radio-button\") {\n this.input.hovered = true;\n }\n if (this.input.localName === \"calcite-checkbox\") {\n this.input.hovered = true;\n }\n }\n mouseleave() {\n if (this.input.localName === \"calcite-radio-button\") {\n this.input.hovered = false;\n }\n if (this.input.localName === \"calcite-checkbox\") {\n this.input.hovered = false;\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.renderInput();\n }\n disconnectedCallback() {\n this.input.parentNode.removeChild(this.input);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderInput() {\n this.input = document.createElement(this.type === \"radio\" ? \"calcite-radio-button\" : \"calcite-checkbox\");\n this.input.checked = this.checked;\n this.input.disabled = this.disabled;\n this.input.hidden = this.hidden;\n this.input.id = this.guid;\n this.input.label = this.heading || this.name || \"\";\n if (this.name) {\n this.input.name = this.name;\n }\n if (this.value) {\n this.input.value = this.value != null ? this.value.toString() : \"\";\n }\n this.el.insertAdjacentElement(\"beforeend\", this.input);\n }\n render() {\n const dir = getElementDir(this.el);\n return (h(\"div\", { class: { focused: this.focused, root: true, [CSS_UTILITY.rtl]: dir === \"rtl\" } },\n h(\"calcite-tile\", { active: this.checked, description: this.description, embed: true, heading: this.heading, icon: this.icon }),\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-tile-select\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tile-select.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tile-select.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 tile select.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The description text that appears beneath the heading of the tile.\"\n },\n \"attribute\": \"description\",\n \"reflect\": true\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The disabled state of the tile select.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The heading text that appears between the icon and description of the tile.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": true\n },\n \"hidden\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The hidden state of the tile select.\"\n },\n \"attribute\": \"hidden\",\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\": \"The icon that appears at the top of the tile.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"name\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the tile select. This name will appear in form submissions as either a radio or checkbox identifier based on the `type` property.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"inputEnabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Display an interactive radio or checkbox.\"\n },\n \"attribute\": \"input-enabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"inputAlignment\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"end\\\" | \\\"start\\\", Alignment>\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Alignment\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The side of the tile that the radio or checkbox appears on when inputEnabled is true.\"\n },\n \"attribute\": \"input-alignment\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"start\\\"\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"TileSelectType\",\n \"resolved\": \"\\\"checkbox\\\" | \\\"radio\\\"\",\n \"references\": {\n \"TileSelectType\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The selection mode of the tile select: radio (single) or checkbox (multiple).\"\n },\n \"attribute\": \"type\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"radio\\\"\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the tile select. This value will appear in form submissions when this tile select is checked.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\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 tile, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get states() { return {\n \"focused\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteTileSelectChange\",\n \"name\": \"calciteTileSelectChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emits a custom change event. For checkboxes, it emits when the checkbox is checked or unchecked. For radios it only emits when it is checked.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"checked\",\n \"methodName\": \"checkedChanged\"\n }, {\n \"propName\": \"name\",\n \"methodName\": \"nameChanged\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteCheckboxChange\",\n \"method\": \"checkboxChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalCheckboxFocus\",\n \"method\": \"checkboxFocusBlurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalCheckboxBlur\",\n \"method\": \"checkboxFocusBlurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteRadioButtonChange\",\n \"method\": \"radioButtonChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalRadioButtonCheckedChange\",\n \"method\": \"radioButtonCheckedChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalRadioButtonFocus\",\n \"method\": \"radioButtonFocusBlurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalRadioButtonBlur\",\n \"method\": \"radioButtonFocusBlurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"click\",\n \"method\": \"click\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\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"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/time.js"],"names":["maxTenthForMinuteAndSecond","getMeridiem","hour","isValidNumber","hourAsNumber","parseInt","getMeridiemHour","formatTimePart","parseTimeString","value","timeString","formatTimeString","minute","second","split","endsWith","startsWith","splitValue","length","minuteAsNumber","secondAsNumber","hourValid","minuteValid","secondValid","newValue","number","numberAsString","toString","padStart"],"mappings":";;;;;;;;;GAKY,MAACA,EAA6B,EACnC,SAASC,EAAYC,GAC1B,IAAKC,EAAcD,GAAO,CACxB,OAAO,KAET,MAAME,EAAeC,SAASH,GAC9B,OAAOE,GAAgB,GAAKA,GAAgB,GAAK,KAAO,KAEnD,SAASE,EAAgBJ,GAC9B,IAAKC,EAAcD,GAAO,CACxB,OAAO,KAET,MAAME,EAAeC,SAASH,GAC9B,GAAIE,IAAiB,EAAG,CACtB,MAAO,KAET,OAAOA,EAAe,GAAKG,EAAeH,EAAe,IAAMF,EAE1D,SAASM,EAAgBC,GAC9B,MAAMC,EAAaC,EAAiBF,GACpC,MAAOP,EAAMU,EAAQC,GAAUH,EAAaA,EAAWI,MAAM,KAAO,CAAC,KAAM,KAAM,MACjF,MAAO,CACLZ,KAAAA,EACAU,OAAAA,EACAC,OAAQA,IAAWX,GAAQU,EAAS,KAAO,OAGxC,SAASD,EAAiBF,GAC/B,IAAKA,GAASA,EAAMM,SAAS,MAAQN,EAAMO,WAAW,KAAM,CAC1D,OAAO,KAET,MAAMC,EAAaR,EAAMK,MAAM,KAC/B,GAAIG,EAAWC,OAAS,EAAG,CACzB,MAAOhB,EAAMU,EAAQC,GAAUI,EAC/B,MAAMb,EAAeC,SAASY,EAAW,IACzC,MAAME,EAAiBd,SAASY,EAAW,IAC3C,MAAMG,EAAiBf,SAASY,EAAW,IAC3C,MAAMI,EAAYlB,EAAcD,IAASE,GAAgB,GAAKA,EAAe,GAC7E,MAAMkB,EAAcnB,EAAcS,IAAWO,GAAkB,GAAKA,EAAiB,GACrF,MAAMI,EAAcpB,EAAcU,IAAWO,GAAkB,GAAKA,EAAiB,GACrF,GAAKC,GAAaC,IAAgBT,GAAYQ,GAAaC,GAAeC,EAAc,CACtF,IAAIC,EAAW,GAAGjB,EAAeH,MAAiBG,EAAeY,KACjE,GAAII,EAAa,CACfC,EAAW,GAAGA,KAAYjB,EAAea,KAE3C,OAAOI,GAGX,OAAO,KAEF,SAASjB,EAAekB,GAC7B,MAAMC,EAAiBD,EAAOE,WAC9B,OAAOF,GAAU,GAAKA,GAAU,EAAIC,EAAeE,SAAS,EAAG,KAAOF","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { isValidNumber } from \"./number\";\nexport const maxTenthForMinuteAndSecond = 5;\nexport function getMeridiem(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n return hourAsNumber >= 0 && hourAsNumber <= 11 ? \"AM\" : \"PM\";\n}\nexport function getMeridiemHour(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n if (hourAsNumber === 0) {\n return \"12\";\n }\n return hourAsNumber > 12 ? formatTimePart(hourAsNumber - 12) : hour;\n}\nexport function parseTimeString(value) {\n const timeString = formatTimeString(value);\n const [hour, minute, second] = timeString ? timeString.split(\":\") : [null, null, null];\n return {\n hour,\n minute,\n second: second || (hour && minute ? \"00\" : null)\n };\n}\nexport function formatTimeString(value) {\n if (!value || value.endsWith(\":\") || value.startsWith(\":\")) {\n return null;\n }\n const splitValue = value.split(\":\");\n if (splitValue.length > 1) {\n const [hour, minute, second] = splitValue;\n const hourAsNumber = parseInt(splitValue[0]);\n const minuteAsNumber = parseInt(splitValue[1]);\n const secondAsNumber = parseInt(splitValue[2]);\n const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;\n const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;\n const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;\n if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {\n let newValue = `${formatTimePart(hourAsNumber)}:${formatTimePart(minuteAsNumber)}`;\n if (secondValid) {\n newValue = `${newValue}:${formatTimePart(secondAsNumber)}`;\n }\n return newValue;\n }\n }\n return null;\n}\nexport function formatTimePart(number) {\n const numberAsString = number.toString();\n return number >= 0 && number <= 9 ? numberAsString.padStart(2, \"0\") : numberAsString;\n}\n"]}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as e,c as t,h as i,H as a,g as s,a as o}from"./p-2e1cd889.js";import{g as n}from"./p-ec178ea9.js";import{c,d as r,H as l}from"./p-0b8525e2.js";import{c as h,d,g as p}from"./p-cb5cb9a8.js";import{f as m,n as f,b as u,a as g,C as b,k}from"./p-e762b2d1.js";import{g as y}from"./p-7df393df.js";const v="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{overflow:hidden;display:block;background-color:var(--calcite-ui-foreground-1);pointer-events:none;box-sizing:border-box;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);stroke:currentColor;stroke-width:1;fill:currentColor;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);transition:150ms ease-in-out}:host([disabled]){cursor:default;opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";let w=class{constructor(i){e(this,i);this.calciteInternalCheckboxBlur=t(this,"calciteInternalCheckboxBlur",7);this.calciteCheckboxChange=t(this,"calciteCheckboxChange",7);this.calciteInternalCheckboxFocus=t(this,"calciteInternalCheckboxFocus",7);this.checked=false;this.disabled=false;this.hovered=false;this.indeterminate=false;this.required=false;this.scale="m";this.checkedPath="M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";this.indeterminatePath="M13 8v1H3V8z";this.getPath=()=>this.indeterminate?this.indeterminatePath:this.checked?this.checkedPath:"";this.toggle=()=>{if(!this.disabled){this.checked=!this.checked;this.setFocus();this.indeterminate=false;this.calciteCheckboxChange.emit()}};this.keyDownHandler=e=>{if(e.key===" "||e.key==="Enter"){this.toggle();e.preventDefault()}};this.clickHandler=()=>{this.toggle()};this.onToggleBlur=()=>{this.calciteInternalCheckboxBlur.emit(false)};this.onToggleFocus=()=>{this.calciteInternalCheckboxFocus.emit(true)};this.onLabelClick=()=>{this.toggle()}}async setFocus(){var e;(e=this.toggleEl)===null||e===void 0?void 0:e.focus()}connectedCallback(){this.guid=this.el.id||`calcite-checkbox-${n()}`;h(this);c(this)}disconnectedCallback(){d(this);r(this)}render(){return i(a,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},i("div",{"aria-checked":this.checked.toString(),"aria-label":p(this),class:"toggle",onBlur:this.onToggleBlur,onFocus:this.onToggleFocus,ref:e=>this.toggleEl=e,role:"checkbox",tabIndex:0},i("svg",{class:"check-svg",viewBox:"0 0 16 16"},i("path",{d:this.getPath()})),i("slot",null)),i(l,{component:this}))}get el(){return s(this)}};w.style=v;
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/var x;(function(e){e["Single"]="single";e["Multi"]="multi";e["Children"]="children";e["MultiChildren"]="multi-children";e["Ancestors"]="ancestors"})(x||(x={}));const _="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;outline:2px solid transparent;outline-offset:2px}";let D=class{constructor(i){e(this,i);this.calciteTreeSelect=t(this,"calciteTreeSelect",7);this.lines=false;this.inputEnabled=false;this.scale="m";this.selectionMode=x.Single}componentWillRender(){const e=this.el.parentElement.closest("calcite-tree");this.lines=e?e.lines:this.lines;this.scale=e?e.scale:this.scale;this.selectionMode=e?e.selectionMode:this.selectionMode;this.child=!!e}render(){return i(a,{"aria-multiselectable":(this.selectionMode===x.Multi||this.selectionMode===x.MultiChildren).toString(),role:!this.child?"tree":undefined,tabIndex:this.getRootTabIndex()},i("slot",null))}onFocus(){if(!this.child){const e=this.el.querySelector("calcite-tree-item[selected]")||this.el.querySelector("calcite-tree-item");m(e)}}onFocusIn(e){const t=e.relatedTarget===this.el||!this.el.contains(e.relatedTarget);if(t){this.el.tabIndex=-1}}onFocusOut(e){const t=!this.el.contains(e.relatedTarget);if(t){this.el.tabIndex=this.getRootTabIndex()}}onClick(e){const t=e.target;const i=f(t.querySelectorAll("calcite-tree-item"));if(this.child){return}if(!this.child){e.preventDefault();e.stopPropagation()}if(this.selectionMode===x.Ancestors&&!this.child){this.updateAncestorTree(e);return}const a=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode===x.Children||this.selectionMode===x.MultiChildren));const s=e.detail.modifyCurrentSelection&&(this.selectionMode===x.Multi||this.selectionMode===x.MultiChildren);const o=this.selectionMode===x.MultiChildren||this.selectionMode===x.Children;const n=!s&&((this.selectionMode===x.Single||this.selectionMode===x.Multi)&&i.length<=0||this.selectionMode===x.Children||this.selectionMode===x.MultiChildren);const c=this.selectionMode===x.Children||this.selectionMode===x.MultiChildren;if(!this.child){const r=[];if(a){r.push(t)}if(o){i.forEach((e=>{r.push(e)}))}if(n){const e=f(this.el.querySelectorAll("calcite-tree-item[selected]"));e.forEach((e=>{if(!r.includes(e)){e.selected=false}}))}if(c&&!e.detail.forceToggle){t.expanded=true}if(s){window.getSelection().removeAllRanges()}if(s&&t.selected||o&&e.detail.forceToggle){r.forEach((e=>{e.selected=false}))}else{r.forEach((e=>{e.selected=true}))}}this.calciteTreeSelect.emit({selected:f(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected))})}updateAncestorTree(e){const t=e.target;const i=t.querySelectorAll("calcite-tree-item");const a=[];let s=t.parentElement.closest("calcite-tree-item");while(s){a.push(s);s=s.parentElement.closest("calcite-tree-item")}t.selected=!t.selected;t.indeterminate=false;if(i===null||i===void 0?void 0:i.length){i.forEach((e=>{e.selected=t.selected;e.indeterminate=false}))}if(a){a.forEach((e=>{const t=f(e.querySelectorAll("calcite-tree-item"));const i=t.filter((e=>e.selected));if(i.length===0){e.selected=false;e.indeterminate=false;return}const a=i.length<t.length;e.indeterminate=a;e.selected=!a}))}this.calciteTreeSelect.emit({selected:f(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected))})}getRootTabIndex(){return!this.child?0:-1}get el(){return s(this)}};D.style=_;
|
11
|
-
/*!
|
12
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
13
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
14
|
-
*/const C={checkboxLabel:"checkbox-label",checkbox:"checkbox",chevron:"chevron",nodeContainer:"node-container",childrenContainer:"children-container",bulletPointIcon:"bullet-point",checkmarkIcon:"checkmark"};const z={children:"children"};const j={bulletPoint:"bullet-point",checkmark:"check",chevronRight:"chevron-right"};const I='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer;outline:2px solid transparent;outline-offset:2px;max-width:100%;color:var(--calcite-ui-text-3)}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-container{--calcite-tree-padding-y:0.25rem}:host([scale=s]) .node-container .checkbox,:host([scale=s]) .node-container .chevron,:host([scale=s]) .node-container .checkmark,:host([scale=s]) .node-container .bullet-point{margin-inline:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-container{--calcite-tree-padding-y:0.5rem}:host([scale=m]) .node-container .checkbox,:host([scale=m]) .node-container .chevron,:host([scale=m]) .node-container .checkmark,:host([scale=m]) .node-container .bullet-point{margin-inline:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-container{--calcite-tree-padding-y:0.75rem}:host([scale=l]) .node-container .checkbox,:host([scale=l]) .node-container .chevron,:host([scale=l]) .node-container .checkmark,:host([scale=l]) .node-container .bullet-point{margin-inline:0.75rem}:host([lines]) .children-container:after{transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;transition-property:background-color, border-color, color, fill, stroke;top:0;position:absolute;width:1px;height:96%;content:"";background-color:var(--calcite-ui-border-2);z-index:-1}:host(:not([lines])) .node-container:after{display:none}::slotted(*){word-wrap:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){width:100%;text-decoration:none}:host{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{outline:2px solid transparent;outline-offset:2px;line-height:0}.checkbox-label{display:flex;align-items:center;pointer-events:none}.children-container{position:relative;overflow:hidden;height:0;margin-inline-start:1.25rem;transform:scaleY(0);opacity:0;transition:0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out;transform-origin:top}:host([expanded])>.children-container{transform:scaleY(1);opacity:1;height:auto}.node-container{display:flex;align-items:center;position:relative;padding:var(--calcite-tree-padding-y) 0}.node-container .checkmark,.node-container .bullet-point{transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;opacity:0;color:var(--calcite-ui-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus) .node-container .checkmark,:host(:focus) .node-container .bullet-point{opacity:1}:host([selected])>.node-container,:host([selected])>.node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected])>.node-container .bullet-point,:host([selected])>.node-container .checkmark,:host([selected])>.node-container:hover .bullet-point,:host([selected])>.node-container:hover .checkmark{opacity:1;color:var(--calcite-ui-brand)}:host(:not([has-children])):host([scale=s])>.node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m])>.node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l])>.node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.75rem}:host([has-children])>.node-container[data-selection-mode=ancestors] .checkbox{margin-inline-start:0}:host([has-children])>.node-container .bullet-point,:host([has-children])>.node-container .checkmark{display:none}:host([has-children][expanded]:not([selected]))>.node-container ::slotted(*){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([has-children][selected])>.node-container[data-selection-mode=children],:host([has-children][selected])>.node-container[data-selection-mode=multi-children]{color:var(--calcite-ui-brand)}.chevron{transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;position:relative;align-self:center;color:var(--calcite-ui-text-3);flex:0 0 auto;transform:rotate(0deg)}.calcite--rtl .chevron{transform:rotate(180deg)}:host([expanded])>.node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-ui-brand)}';let T=class{constructor(i){e(this,i);this.calciteTreeItemSelect=t(this,"calciteTreeItemSelect",7);this.selected=false;this.expanded=false;this.parentExpanded=false;this.depth=-1;this.hasChildren=null;this.iconClickHandler=e=>{e.stopPropagation();this.expanded=!this.expanded;if(this.selectionMode!==x.Ancestors){this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:true})}};this.childrenClickHandler=e=>e.stopPropagation();this.updateParentIsExpanded=(e,t)=>{const i=u(e,z.children,{all:true,selector:"calcite-tree-item"});i.forEach((e=>e.parentExpanded=t))};this.updateAncestorTree=()=>{if(this.selected&&this.selectionMode===x.Ancestors){const e=[];let t=this.parentTreeItem;while(t){e.push(t);t=t.parentElement.closest("calcite-tree-item")}e.forEach((e=>e.indeterminate=true));return}}}expandedHandler(e){this.updateParentIsExpanded(this.el,e)}connectedCallback(){this.parentTreeItem=this.el.parentElement.closest("calcite-tree-item");if(this.parentTreeItem){const{expanded:e}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,e)}}componentWillRender(){this.hasChildren=!!this.el.querySelector("calcite-tree");this.depth=0;let e=this.el.closest("calcite-tree");if(!e){return}this.selectionMode=e.selectionMode;this.scale=e.scale||"m";this.lines=e.lines;let t;while(e){t=e.parentElement.closest("calcite-tree");if(t===e){break}else{e=t;this.depth=this.depth+1}}}componentDidLoad(){this.updateAncestorTree()}render(){const e=g(this.el)==="rtl";const t=this.selectionMode===x.Single||this.selectionMode===x.Children;const s=this.selectionMode===x.Multi||this.selectionMode===x.MultiChildren;const o=this.hasChildren?i("calcite-icon",{class:{[C.chevron]:true,[b.rtl]:e},"data-test-id":"icon",icon:j.chevronRight,onClick:this.iconClickHandler,scale:"s"}):null;const n=this.selectionMode===x.Ancestors?i("label",{class:C.checkboxLabel},i("calcite-checkbox",{checked:this.selected,class:C.checkbox,"data-test-id":"checkbox",indeterminate:this.hasChildren&&this.indeterminate,scale:this.scale,tabIndex:-1}),i("slot",null)):null;const c=t?j.bulletPoint:s?j.checkmark:null;const r=c?i("calcite-icon",{class:{[C.bulletPointIcon]:c===j.bulletPoint,[C.checkmarkIcon]:c===j.checkmark,[b.rtl]:e},icon:c,scale:"s"}):null;const l=!(this.parentExpanded||this.depth===1);return i(a,{"aria-expanded":this.hasChildren?this.expanded.toString():undefined,"aria-hidden":l.toString(),"aria-selected":this.selected?"true":s?"false":undefined,"calcite-hydrated-hidden":l,role:"treeitem",tabindex:this.parentExpanded||this.depth===1?"0":"-1"},i("div",{class:{[C.nodeContainer]:true,[b.rtl]:e},"data-selection-mode":this.selectionMode,ref:e=>this.defaultSlotWrapper=e},o,r,n?n:i("slot",null)),i("div",{class:{[C.childrenContainer]:true,[b.rtl]:e},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,ref:e=>this.childrenSlotWrapper=e,role:this.hasChildren?"group":undefined},i("slot",{name:z.children})))}onClick(e){const[t]=k(this.el,"a");if(t&&e.composedPath()[0].tagName.toLowerCase()!=="a"){const e=t.target===""?"_self":t.target;window.open(t.href,e)}this.expanded=!this.expanded;this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey||this.selectionMode===x.Ancestors,forceToggle:false})}keyDownHandler(e){let t;switch(y(e.key)){case" ":this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:false});e.preventDefault();e.stopPropagation();break;case"Enter":const i=f(this.el.children).find((e=>e.matches("a")));if(i){i.click();this.selected=true}else{this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:false})}e.preventDefault();e.stopPropagation();break;case"ArrowLeft":if(this.hasChildren&&this.expanded){this.expanded=false;e.preventDefault();e.stopPropagation();break}const a=this.parentTreeItem;if(a&&(!this.hasChildren||this.expanded===false)){a.focus();e.preventDefault();e.stopPropagation();break}break;case"ArrowRight":if(this.hasChildren&&this.expanded===false){this.expanded=true;e.preventDefault();e.stopPropagation();break}if(this.hasChildren&&this.expanded){this.el.querySelector("calcite-tree-item").focus();break}break;case"ArrowUp":const s=this.el.previousElementSibling;if(s&&s.matches("calcite-tree-item")){s.focus()}break;case"ArrowDown":const o=this.el.nextElementSibling;if(o&&o.matches("calcite-tree-item")){o.focus()}break;case"Home":t=this.el.closest("calcite-tree:not([child])");const n=t.querySelector("calcite-tree-item");n.focus();break;case"End":t=this.el.closest("calcite-tree:not([child])");let c=t.children[t.children.length-1];let r=f(c.children).find((e=>e.matches("calcite-tree")));while(r){c=r.children[t.children.length-1];r=f(c.children).find((e=>e.matches("calcite-tree")))}c.focus();break}}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"]}}};T.style=I;const S='.item-type-icon{margin-top:.15em !important;height:16px;margin-top:4px;min-width:16px;display:inline;fill:currentColor;pointer-events:none;vertical-align:middle;display:block;transform:rotate(\r\n 360deg\r\n )}.item-type-icon-margin{margin-right:6px;margin-left:0}.item-type-icon-margin[dir="rtl"]{margin-right:0;margin-left:6px}';let L=class{constructor(t){e(this,t);this.translations={};this.isPortal=false;this.type="";this.typeKeywords=[]}render(){return i("div",{title:this.type},i("img",{class:"item-type-icon item-type-icon-margin",height:"16",src:this._getIconUrl(this.type,this.typeKeywords),width:"16"}))}_getIconUrl(e,t){const i=e&&e.toLowerCase()||"",a="./item-icons/",s="16";let n=false,c=false,r=false,l=false,h=false,d=false,p="";t=t||[];if(i.indexOf("service")>0||i==="feature collection"||i==="kml"||i==="wms"||i==="wmts"||i==="wfs"){n=t.indexOf("Hosted Service")>-1;if(i==="feature service"||i==="feature collection"||i==="kml"||i==="wfs"){l=t.indexOf("Table")>-1;c=t.indexOf("Route Layer")>-1;r=t.indexOf("Markup")>-1;h=t.indexOf("Spatiotemporal")!==-1;p=h&&l?"spatiotemporaltable":l?"table":c?"routelayer":r?"markup":h?"spatiotemporal":n?"featureshosted":"features"}else if(i==="map service"||i==="wms"||i==="wmts"){h=t.indexOf("Spatiotemporal")!==-1;d=t.indexOf("Relational")!==-1;if(h||d){p="mapimages"}else{p=n||t.indexOf("Tiled")>-1||i==="wmts"?"maptiles":"mapimages"}}else if(i==="scene service"){if(t.indexOf("Line")>-1){p="sceneweblayerline"}else if(t.indexOf("3DObject")>-1){p="sceneweblayermultipatch"}else if(t.indexOf("Point")>-1){p="sceneweblayerpoint"}else if(t.indexOf("IntegratedMesh")>-1){p="sceneweblayermesh"}else if(t.indexOf("PointCloud")>-1){p="sceneweblayerpointcloud"}else if(t.indexOf("Polygon")>-1){p="sceneweblayerpolygon"}else if(t.indexOf("Building")>-1){p="sceneweblayerbuilding"}else{p="sceneweblayer"}}else if(i==="image service"){p=t.indexOf("Elevation 3D Layer")>-1?"elevationlayer":t.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery"}else if(i==="stream service"){p="streamlayer"}else if(i==="vector tile service"){p="vectortile"}else if(i==="datastore catalog service"){p="datastorecollection"}else if(i==="geocoding service"){p="geocodeservice"}else if(i==="geoprocessing service"){p=t.indexOf("Web Tool")>-1&&this.isPortal?"tool":"layers"}else{p="layers"}}else if(i==="web map"||i==="cityengine web scene"){p="maps"}else if(i==="web scene"){p=t.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal"}else if(i==="web mapping application"||i==="mobile application"||i==="application"||i==="operation view"||i==="desktop application"){p="apps"}else if(i==="map document"||i==="map package"||i==="published map"||i==="scene document"||i==="globe document"||i==="basemap package"||i==="mobile basemap package"||i==="mobile map package"||i==="project package"||i==="project template"||i==="pro map"||i==="layout"||i==="layer"&&t.indexOf("ArcGIS Pro")>-1||i==="explorer map"&&t.indexOf("Explorer Document")){p="mapsgray"}else if(i==="service definition"||i==="csv"||i==="shapefile"||i==="cad drawing"||i==="geojson"||i==="360 vr experience"||i==="netcdf"||i==="administrative report"){p="datafiles"}else if(i==="explorer add in"||i==="desktop add in"||i==="windows viewer add in"||i==="windows viewer configuration"){p="appsgray"}else if(i==="arcgis pro add in"||i==="arcgis pro configuration"){p="addindesktop"}else if(i==="rule package"||i==="file geodatabase"||i==="sqlite geodatabase"||i==="csv collection"||i==="kml collection"||i==="windows mobile package"||i==="map template"||i==="desktop application template"||i==="gml"||i==="arcpad package"||i==="code sample"||i==="form"||i==="document link"||i==="operations dashboard add in"||i==="rules package"||i==="image"||i==="workflow manager package"||(i==="explorer map"&&t.indexOf("Explorer Mapping Application")>-1||t.indexOf("Document")>-1)){p="datafilesgray"}else if(i==="network analysis service"||i==="geoprocessing service"||i==="geodata service"||i==="geometry service"||i==="geoprocessing package"||i==="locator package"||i==="geoprocessing sample"||i==="workflow manager service"){p="toolsgray"}else if(i==="layer"||i==="layer package"||i==="explorer layer"){p="layersgray"}else if(i==="scene package"){p="scenepackage"}else if(i==="mobile scene package"){p="mobilescenepackage"}else if(i==="tile package"||i==="compact tile package"){p="tilepackage"}else if(i==="task file"){p="taskfile"}else if(i==="report template"){p="report-template"}else if(i==="statistical data collection"){p="statisticaldatacollection"}else if(i==="insights workbook"){p="workbook"}else if(i==="insights model"){p="insightsmodel"}else if(i==="insights page"){p="insightspage"}else if(i==="insights theme"){p="insightstheme"}else if(i==="hub initiative"){p="hubinitiative"}else if(i==="hub page"){p="hubpage"}else if(i==="hub site application"){p="hubsite"}else if(i==="hub event"){p="hubevent"}else if(i==="relational database connection"){p="relationaldatabaseconnection"}else if(i==="big data file share"){p="datastorecollection"}else if(i==="image collection"){p="imagecollection"}else if(i==="desktop style"){p="desktopstyle"}else if(i==="style"){p="style"}else if(i==="dashboard"){p="dashboard"}else if(i==="raster function template"){p="rasterprocessingtemplate"}else if(i==="vector tile package"){p="vectortilepackage"}else if(i==="ortho mapping project"){p="orthomappingproject"}else if(i==="ortho mapping template"){p="orthomappingtemplate"}else if(i==="solution"){p="solutions"}else if(i==="geopackage"){p="geopackage"}else if(i==="deep learning package"){p="deeplearningpackage"}else if(i==="real time analytic"){p="realtimeanalytics"}else if(i==="big data analytic"){p="bigdataanalytics"}else if(i==="feed"){p="feed"}else if(i==="excalibur imagery project"){p="excaliburimageryproject"}else if(i==="notebook"){p="notebook"}else if(i==="storymap"){p="storymap"}else if(i==="survey123 add in"){p="survey123addin"}else if(i==="mission"){p="mission"}else if(i==="mission report"){p="missionreport"}else if(i==="quickcapture project"){p="quickcaptureproject"}else if(i==="pro report"){p="proreport"}else if(i==="urban model"){p="urbanmodel"}else if(i==="web experience"){p="experiencebuilder"}else if(i==="web experience template"){p="webexperiencetemplate"}else if(i==="workflow"){p="workflow"}else if(i==="kernel gateway connection"){p="kernelgatewayconnection"}else if(i==="insights script"){p="insightsscript"}else if(i==="hub initiative template"){p="hubinitiativetemplate"}else if(i==="storymap theme"){p="storymaptheme"}else if(i==="group"){p="group"}else{p="maps"}return p?o(a+p+s+".png"):null}static get assetsDirs(){return["item-icons"]}get el(){return s(this)}};L.style=S;export{w as calcite_checkbox,D as calcite_tree,T as calcite_tree_item,L as solution_item_icon};
|
15
|
-
//# sourceMappingURL=p-7cc15662.entry.js.map
|