@esri/solutions-components 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -0,0 +1,36 @@
|
|
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{g as e,b as t,d as i}from"./p-f75876eb.js";import{r as n}from"./p-3ce922dd.js";import"./p-ee6eca93.js";function o(t,o){return new Promise((a=>{(function(t,o){return new Promise((a=>{(function(e,t,o=[]){return new Promise(((a,l)=>{(function(e,t,i={}){if(!e)return Promise.reject("Url must be provided");const o={authentication:t,rawResponse:!0,...i};return n(e,o).then((e=>e.blob()))}
|
7
|
+
/** @license
|
8
|
+
* Copyright 2018 Esri
|
9
|
+
*
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
* you may not use this file except in compliance with the License.
|
12
|
+
* You may obtain a copy of the License at
|
13
|
+
*
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
*
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
* See the License for the specific language governing permissions and
|
20
|
+
* limitations under the License.
|
21
|
+
*/)(e,t).then((e=>{r(e).then((e=>{"application/json"===e.type?i(e).then((t=>{if(t?.error){const e=t.error.code;void 0!==e&&o.indexOf(e)>=0?a(null):l(t)}else a(e)})):a(e)}),l)}),l)}))})(function(t,i){return`${function(t){return e(t,"portal")}(i)}/content/items/${t}/data`}(t,o),o,[400,500]).then((e=>a(r(e))),(()=>a(null)))}))})(t,o).then((e=>a(i(e))),(()=>a(null)))}))}function r(e){return new Promise(((i,n)=>{e&&e.size>0&&(e.type.startsWith("text/plain")||e.type.startsWith("application/json"))?t(e).then((t=>{try{JSON.parse(t),i(new Blob([e],{type:"application/json"}))}catch(n){t.length>4&&"PK"===t.substr(0,4)?i(new Blob([e],{type:"application/zip"})):t.startsWith("<")?i(new Blob([e],{type:"text/xml"})):i(e)}}),n):e?i(e):n()}))}
|
22
|
+
/** @license
|
23
|
+
* Copyright 2021 Esri
|
24
|
+
*
|
25
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
26
|
+
* you may not use this file except in compliance with the License.
|
27
|
+
* You may obtain a copy of the License at
|
28
|
+
*
|
29
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
30
|
+
*
|
31
|
+
* Unless required by applicable law or agreed to in writing, software
|
32
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
33
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
34
|
+
* See the License for the specific language governing permissions and
|
35
|
+
* limitations under the License.
|
36
|
+
*/function a(e){const t=function(e){const t=e.map((e=>e.itemId));return e.forEach((e=>{(e.dependencies||[]).forEach((e=>{const i=t.indexOf(e);i>=0&&t.splice(i,1)}))})),t}(e);return e.reduce(((i,n)=>(t.indexOf(n.itemId)>-1&&i.push(v(n,e)),i)),[])}function l(e,t){const i=[];return e.forEach((e=>{const n={id:e.itemId,title:e.item.title||e.item.name,type:e.type,value:void 0,dependencies:[{id:e.itemId,title:t.itemId,value:`{{${e.itemId}.itemId}}`}]};e.item.url&&n.dependencies.push({id:e.itemId,title:t.url,value:`{{${e.itemId}.url}}`}),"Feature Service"===e.type&&(n.dependencies.push({id:e.itemId,title:t.solutionExtent,value:`{{${e.itemId}.solutionExtent}}`}),u(e.properties.layers||[],n,e,t),u(e.properties.tables||[],n,e,t)),i.push(n)})),i}function u(e,t,i,n){e.forEach((e=>{const o=e.name&&e.name.indexOf("||")>-1?e.name.split("||")[1].replace("}}","").trim():e.name;t.dependencies.push({id:i.itemId,title:`${o} (${n.id})`,value:`{{${i.itemId}.layer${e.id}.id}}`}),t.dependencies.push({id:i.itemId,title:`${o} (${n.name})`,value:`{{${i.itemId}.layer${e.id}.name||${o}}}`})}))}function s(e){return[{id:"",title:e.geocodeUrl,value:"{{organization.helperServices.geocode:getDefaultLocatorURL}}"},{id:"",title:e.geometryUrl,value:"{{organization.helperServices.geometry.url}}"},{id:"",title:e.portalBaseUrl,value:"{{portalBaseUrl}}"},{id:"",title:e.routeUrl,value:"{{organization.helperServices.route.url}}"},{id:"",title:e.solutionItemExtent,value:"{{solutionItemExtent}}"}]}function d(e){const t=[],i={},n="undefined"!=typeof monaco;return e.forEach((e=>{var o,r,a,l;t.indexOf(e.itemId)<0&&(t.push(e.itemId),i[e.itemId]={dataModel:n?monaco.editor.createModel(JSON.stringify(e.data,null,"\t"),"json"):void 0,dataOriginValue:JSON.stringify(e.data),propsModel:n?monaco.editor.createModel(JSON.stringify(e.properties,null,"\t"),"json"):void 0,propsOriginValue:JSON.stringify(e.properties),propsDiffOriginValue:JSON.stringify(e.properties),state:void 0,shareInfo:void 0,isEditing:!1,itemId:e.itemId,updateItemValues:{},originalItemValues:{},name:null===(o=e.item)||void 0===o?void 0:o.name,title:null===(r=e.item)||void 0===r?void 0:r.title,itemOriginValue:JSON.stringify(e.item),spatialReference:null===(l=null===(a=e.properties)||void 0===a?void 0:a.service)||void 0===l?void 0:l.spatialReference})})),i}function c(t){return t.reduce(((t,i)=>{const n=i.item.title||i.item.name;if("Feature Service"===i.type&&i.item.typeKeywords.indexOf("View Service")<0&&t.indexOf(n)<0){const o=e(i,"properties.service.spatialReference.wkid");t.push({name:n,enabled:o.toString().startsWith("{{params.wkid||")})}return t}),[])}function p(t,i){const n={};t.forEach((e=>{n[e.name]=e.enabled}));const o=e(i,"params.wkid.default");return{enabled:void 0!==o&&""!==o,services:n,spatialReference:o?{wkid:o}:void 0}}function v(e,t){return{id:e.itemId||"",title:e.item.title||"",dependencies:f(e.dependencies||[],t),type:e.item.type||"",typeKeywords:e.item.typeKeywords||[],solutionItem:{itemId:e.itemId,itemDetails:(n=e.item,o="Group"===e.type,r=e.itemId,{itemId:r,thumbnail:n.thumbnail||"",title:n.title||"",snippet:n.snippet||"",description:n.description||"",tags:n.tags||[],accessInformation:o?"":n.accessInformation||"",licenseInfo:o?"":n.licenseInfo||""}),isResource:(i=e,"Group"!==i.type&&"{}"===JSON.stringify(i.data)),data:e.data,properties:e.properties,type:e.type,groupDetails:m(e,t)}};var i,n,o,r}function f(e,t){return t.reduce(((i,n)=>(e.indexOf(n.itemId)>-1&&i.push(v(n,t)),i)),[])}function m(e,t){return"Group"===e.type?t.reduce(((t,i)=>(i.itemId!==e.itemId&&"Group"!==i.type&&t.push({id:i.itemId,title:i.item.name||i.item.title,isShared:(i.groups||[]).indexOf(e.itemId)>-1,shareItem:(i.groups||[]).indexOf(e.itemId)>-1,type:i.type,typeKeywords:i.item.typeKeywords}),t)),[]):[]}export{d as a,c as b,p as c,a as d,l as e,s as f,o as g}
|
@@ -7,5 +7,4 @@
|
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
9
|
*/
|
10
|
-
const o={menuActions:"menu-actions",menuTooltip:"menu-tooltip"}
|
11
|
-
//# sourceMappingURL=p-9df9ac35.js.map
|
10
|
+
const o={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},e={more:"More"},n={menu:"ellipsis"};export{n as I,o as S,e as T}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as e,h as t,H as i,g as a}from"./p-2e1cd889.js";import{T as o,A as r,C as n}from"./p-af9be2ca.js";import{g as s}from"./p-ec178ea9.js";import{d as p,u as c,c as l,C as m}from"./p-fc1c8168.js";import{q as d}from"./p-e762b2d1.js";let f=class{constructor(t){e(this,t),this.offsetDistance=p,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.guid=`calcite-tooltip-${s()}`,this.setUpReferenceElement=()=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement();const{el:e,referenceElement:t,effectiveReferenceElement:i}=this;t&&!i&&console.warn(`${e.tagName}: reference-element id "${t}" was not found.`,{el:e}),this.addReferences(),this.createPopper()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();e.setAttribute(o,t),e.setAttribute(r,t)},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&(e.removeAttribute(o),e.removeAttribute(r))},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition()}placementHandler(){this.reposition()}referenceElementHandler(){this.setUpReferenceElement()}componentWillLoad(){this.setUpReferenceElement()}componentDidLoad(){this.reposition()}disconnectedCallback(){this.removeReferences(),this.destroyPopper()}async reposition(){const{popper:e,el:t,placement:i}=this,a=this.getModifiers();e?await c({el:t,modifiers:a,placement:i,popper:e}):this.createPopper()}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?d(t,`#${e}`):e)||null}getModifiers(){const{arrowEl:e,offsetDistance:t,offsetSkidding:i}=this;return[{name:"arrow",enabled:!0,options:{element:e}},{name:"offset",enabled:!0,options:{offset:[i,t]}}]}createPopper(){this.destroyPopper();const{el:e,placement:t,effectiveReferenceElement:i,overlayPositioning:a}=this,o=this.getModifiers();this.popper=l({el:e,modifiers:o,placement:t,overlayPositioning:a,referenceEl:i})}destroyPopper(){const{popper:e}=this;e&&e.destroy(),this.popper=null}render(){const{effectiveReferenceElement:e,label:a,open:o}=this,r=e&&o,s=!r;return t(i,{"aria-hidden":s.toString(),"aria-label":a,"calcite-hydrated-hidden":s,id:this.getId(),role:"tooltip"},t("div",{class:{[m.animation]:!0,[m.animationActive]:r}},t("div",{class:n.arrow,ref:e=>this.arrowEl=e}),t("div",{class:n.container},t("slot",null))))}get el(){return a(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};f.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999;transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;transition:var(--calcite-popper-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}.container{position:relative;background-color:var(--calcite-ui-foreground-1);display:flex;justify-content:flex-start;flex-direction:column;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;overflow:hidden;font-size:var(--calcite-font-size--2);line-height:1.375;border-radius:0.25rem;max-width:20rem;max-height:20rem}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';export{f as calcite_tooltip}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as i,g as a}from"./p-2e1cd889.js";import{a as o,C as n}from"./p-e762b2d1.js";import{g as r}from"./p-7df393df.js";import"./p-ec178ea9.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
+
*/let l=class{constructor(i){t(this,i),this.calciteCardSelect=e(this,"calciteCardSelect",7),this.loading=!1,this.selected=!1,this.selectable=!1,this.intlLoading="Loading",this.intlSelect="Select",this.intlDeselect="Deselect",this.cardSelectClick=()=>{this.selectCard()},this.cardSelectKeyDown=t=>{switch(r(t.key)){case" ":case"Enter":this.selectCard(),t.preventDefault()}}}render(){const t=o(this.el);return i("div",{class:{"calcite-card-container":!0,[n.rtl]:"rtl"===t}},this.loading?i("div",{class:"calcite-card-loader-container"},i("calcite-loader",{active:!0,label:this.intlLoading})):null,i("section",{"aria-busy":this.loading.toString(),class:{container:!0}},this.selectable?this.renderCheckbox():null,this.renderThumbnail(),this.renderHeader(),i("div",{class:"card-content"},i("slot",null)),this.renderFooter()))}selectCard(){this.selected=!this.selected,this.calciteCardSelect.emit()}renderThumbnail(){return this.el.querySelector("[slot=thumbnail]")?i("div",{class:"thumbnail-wrapper"},i("slot",{name:"thumbnail"})):null}renderCheckbox(){return i("calcite-label",{class:"checkbox-wrapper",onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown},i("calcite-checkbox",{checked:this.selected,label:this.selected?this.intlDeselect:this.intlSelect}))}renderHeader(){const t=this.el.querySelector("[slot=title]"),e=this.el.querySelector("[slot=subtitle]");return t||e?i("header",{class:"header"},i("slot",{name:"title"}),i("slot",{name:"subtitle"})):null}renderFooter(){const t=this.el.querySelector("[slot=footer-leading]"),e=this.el.querySelector("[slot=footer-trailing]");return t||e?i("footer",{class:"footer"},i("slot",{name:"footer-leading"}),i("slot",{name:"footer-trailing"})):null}get el(){return a(this)}};l.style="@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{max-width:100%;display:block}:host .calcite-card-container{display:flex;height:100%;flex-direction:column;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);position:relative;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-3);box-shadow:none}:host .calcite-card-container:hover{box-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);z-index:1}:host .calcite-card-container:active{box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);transition-duration:75ms;z-index:1}.container{flex:1 1 auto;display:flex;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){opacity:0;pointer-events:none}:host([loading]) .calcite-card-loader-container{display:flex;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0}.header,.footer{padding-top:0.75rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem;display:flex}.header{flex-direction:column}.footer{padding-top:0.25rem;padding-bottom:0.75rem;padding-left:0.75rem;padding-right:0.75rem;flex-direction:row;align-content:space-between;justify-content:space-between;margin-top:auto}.card-content{padding:0.75rem;color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1.375}:host([selectable]) .calcite-card-container:active{box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);margin:0;font-size:var(--calcite-font-size--1);line-height:1.375}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin:0;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){max-width:100%;min-width:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.thumbnail-wrapper{font-size:var(--calcite-font-size-0);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0;padding:0;top:0.5rem;right:0.5rem}.calcite--rtl .checkbox-wrapper{right:auto;left:0.5rem}";export{l as calcite_card}
|
@@ -7,5 +7,4 @@
|
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
9
|
*/
|
10
|
-
function e(e,
|
11
|
-
//# sourceMappingURL=p-a10dc180.js.map
|
10
|
+
function e(e,n,r){return new(function(e){return"intersection"===e?IntersectionObserver:"mutation"===e?MutationObserver:ResizeObserver}(e))(n,r)}export{e as c}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as a,H as r,g as i,F as o}from"./p-2e1cd889.js";import{g as n}from"./p-7df393df.js";import{a as s,C as c}from"./p-e762b2d1.js";import{s as l,b as h,i as d,l as p,c as u,n as g,e as f,f as m}from"./p-f187755e.js";import{C as v}from"./p-73e2d13f.js";import"./p-ec178ea9.js";let y=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",7),this.calciteDayHover=e(this,"calciteDayHover",7),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{const e=n(t.key);" "!==e&&"Enter"!==e||!this.disabled&&this.calciteDaySelect.emit()}}mouseoverHandler(){this.calciteDayHover.emit({disabled:this.disabled})}render(){const t=String(this.day).split("").map((t=>this.localeData.numerals[t])).join(""),e=s(this.el);return a(r,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},a("div",{class:{"day-v-wrapper":!0,[c.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}get el(){return i(this)}};y.style="@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;justify-content:center;outline:2px solid transparent;outline-offset:2px;color:var(--calcite-ui-text-3);cursor:pointer;min-width:0;width:14.2857142857%}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;justify-content:center;align-items:center;line-height:1;color:var(--calcite-ui-text-3);transition-property:all;opacity:var(--calcite-ui-opacity-disabled);background:none;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){z-index:1}:host(:focus:not([disabled])) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{border-top-left-radius:40%;border-bottom-left-radius:40%;box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{border-top-right-radius:40%;border-bottom-right-radius:40%;box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;box-shadow:none}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;box-shadow:none}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;box-shadow:none}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;box-shadow:none}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{border-top-right-radius:45%;border-bottom-right-radius:45%;box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{border-top-left-radius:45%;border-bottom-left-radius:45%;box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}";let w=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7),this.calciteDatePickerHover=e(this,"calciteDatePickerHover",7),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",7),this.calciteDatePickerMouseOut=e(this,"calciteDatePickerMouseOut",7),this.activeDate=new Date,this.keyDownHandler=t=>{const e="rtl"===this.el.dir;switch(n(t.key)){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;t.detail.disabled?this.calciteDatePickerMouseOut.emit():this.calciteDatePickerHover.emit(e.value)},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=this.activeDate.getFullYear(),i=this.localeData.weekStart%7,{abbreviated:o,short:n,narrow:c}=this.localeData.days,h="s"===this.scale?c||n||o:n||o||c,d=[...h.slice(i,7),...h.slice(0,i)],p=this.getCurrentMonthDays(t,e),u=this.getPrevMonthdays(t,e,i),g=this.getNextMonthDays(t,e,i),f=s(this.el),m=[...u.map((a=>{const r=new Date(e,t-1,a);return this.renderDateDay(!1,a,f,r)})),...p.map((a=>{const r=new Date(e,t,a),i=l(r,this.activeDate);return this.renderDateDay(i,a,f,r,!0,!0)})),...g.map((a=>{const r=new Date(e,t+1,a);return this.renderDateDay(!1,a,f,r)}))],v=[];for(let t=0;t<m.length;t+=7)v.push(m.slice(t,t+7));return a(r,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},d.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),v.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const r=new Date(e,t,0),i=r.getDate(),o=[];if(r.getDay()-6===a)return o;for(let t=r.getDay();t>=a;t--)o.push(i-t);return o}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),r=[];for(let t=0;t<a;t++)r.push(t+1);return r}getNextMonthDays(t,e,a){const r=new Date(e,t+1,0).getDay(),i=[];if(r===(a+6)%7)return i;for(let t=0;t<(6-(r-a))%7;t++)i.push(t+1);return i}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(l(t,this.selectedDate)||this.startDate&&l(t,this.startDate)||this.endDate&&l(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||l(this.startDate,this.endDate)||!l(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!l(this.startDate,this.endDate)&&l(this.endDate,t)||!this.endDate&&this.hoverRange&&l(this.startDate,this.hoverRange.end)&&l(t,this.hoverRange.end))}renderDateDay(t,e,r,i,o,n){var s;const c=this.isFocusedOnStart(),h=this.isHoverInRange()||!this.endDate&&this.hoverRange&&l(null===(s=this.hoverRange)||void 0===s?void 0:s.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&h,"hover--outside-range":this.startDate&&!h,"focused--start":c,"focused--end":!c},currentMonth:o,day:e,dir:r,disabled:!d(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!l(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{n&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,r=this.isFocusedOnStart(),i=this.isHoverInRange(),o=i&&(!r&&t>this.startDate&&(t<a||l(t,a))||r&&t<this.endDate&&(t>e||l(t,e))),n=!i&&(!r&&t>=this.endDate&&(t<a||l(t,a))||r&&(t<this.startDate||this.endDate&&l(t,this.startDate))&&(t>e||l(t,e)));return o||n}get el(){return i(this)}};w.style="@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}.calender{margin-bottom:0.25rem}.week-headers{display:flex;border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}.week-header{color:var(--calcite-ui-text-3);text-align:center;font-weight:var(--calcite-font-weight-bold);width:14.2857142857%}:host([scale=s]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.5rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}:host([scale=m]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.75rem;padding-bottom:1rem;padding-left:0;padding-right:0}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:1rem;padding-bottom:1.25rem;padding-left:0;padding-right:0}.week-days{outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:row;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px}";let x=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7),this.onYearKey=t=>{const e=t.target.value;switch(n(t.key)){case"ArrowDown":t.preventDefault(),this.setYear(e,-1);break;case"ArrowUp":t.preventDefault(),this.setYear(e,1)}},this.yearChanged=t=>{this.setYear(t.target.value)},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{const e=n(t.key);" "!==e&&"Enter"!==e||this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{const e=n(t.key);" "!==e&&"Enter"!==e||this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{null==t||t.preventDefault(),t.stopPropagation(),this.calciteDatePickerSelect.emit(e)}}connectedCallback(){this.setNextPrevMonthDates()}render(){const t=s(this.el);return a("div",{class:"header",dir:t},this.renderContent(t))}renderContent(t){var e;if(!this.activeDate||!this.localeData)return null;const r=this.activeDate.getMonth(),{months:i,unitOrder:n}=this.localeData,s=(i.wide||i.narrow||i.abbreviated)[r],c=p(this.activeDate.getFullYear(),this.localeData),l="l"===this.scale?"m":"s",h=u(n),d=h.indexOf("y")<h.indexOf("m"),g=null===(e=this.localeData.year)||void 0===e?void 0:e.suffix;return a(o,null,a("a",{"aria-disabled":(this.prevMonthDate.getMonth()===r).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===r?-1:0},a("calcite-icon",{dir:t,"flip-rtl":!0,icon:"chevron-left",scale:l})),a("div",{class:{text:!0,"text--reverse":d}},a(v,{class:"month",level:this.headingLevel},s),a("span",{class:"year-wrap"},a("input",{class:{year:!0,"year--suffix":!!g},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:c}),g&&a("span",{class:"suffix"},a("span",{"aria-hidden":"true",class:"suffix__invisible"},c)," "+g))),a("a",{"aria-disabled":(this.nextMonthDate.getMonth()===r).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===r?-1:0},a("calcite-icon",{dir:t,"flip-rtl":!0,icon:"chevron-right",scale:l})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=h(g(this.activeDate),this.min,this.max),this.prevMonthDate=h(f(this.activeDate),this.min,this.max))}setYear(t,e=0){const{min:a,max:r,activeDate:i,localeData:o,yearInput:n}=this,s=m(t,o),c=s.toString().length,l=!isNaN(s)&&s+e,d=l&&(!a||a.getFullYear()<=l)&&(!r||r.getFullYear()>=l);if(l&&d&&c===t.length){const t=new Date(i);t.setFullYear(l);const e=h(t,a,r);this.calciteDatePickerSelect.emit(e),n.value=p(e.getFullYear(),o)}else n.value=p(i.getFullYear(),o)}get el(){return i(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};x.style="@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}.header{display:flex;justify-content:space-between;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{font-size:var(--calcite-font-size--1);line-height:1rem;margin-top:0.5rem;margin-bottom:0.5rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-top:0.75rem;margin-bottom:0.75rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-top:1rem;margin-bottom:1rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{color:var(--calcite-ui-text-3);flex-grow:0;box-sizing:content-box;outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem;border-style:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);cursor:pointer;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{flex:1 1 auto;align-items:center;justify-content:center;line-height:1;margin-top:auto;margin-bottom:auto;text-align:center;width:100%}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;font-size:inherit}.year{font-family:inherit;text-align:center;border-style:none;width:3rem;background-color:transparent;position:relative;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;width:4rem;white-space:nowrap;text-align:left;top:0;left:0}.suffix__invisible{visibility:hidden}";export{y as calcite_date_picker_day,w as calcite_date_picker_month,x as calcite_date_picker_month_header}
|
@@ -0,0 +1,10 @@
|
|
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 e,h as t,F as a,g as n}from"./p-2e1cd889.js";import{H as o}from"./p-05c73b7d.js";import{b as r}from"./p-e762b2d1.js";import{C as s,c as l}from"./p-73e2d13f.js";import"./p-ec178ea9.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
+
*/const c=o+1;let d=class{constructor(t){i(this,t),this.calciteTipDismiss=e(this,"calciteTipDismiss",7),this.dismissed=!1,this.nonDismissible=!1,this.selected=!1,this.hideTip=()=>{this.dismissed=!0,this.calciteTipDismiss.emit()}}renderHeader(){var i;const{heading:e,headingLevel:a,el:n}=this,o=null===(i=n.closest("calcite-tip-manager"))||void 0===i?void 0:i.headingLevel,r=o?l(o+1):null;return e?t("header",{class:"header"},t(s,{class:"heading",level:a||r||c},e)):null}renderDismissButton(){const{nonDismissible:i,hideTip:e,intlClose:a}=this;return i?null:t("calcite-action",{class:"close",icon:"x",onClick:e,scale:"l",text:a||"Close"})}renderImageFrame(){const{el:i}=this;return r(i,"thumbnail")?t("div",{class:"image-frame"},t("slot",{name:"thumbnail"})):null}renderInfoNode(){return t("div",{class:"info"},t("slot",null))}renderContent(){return t("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return t(a,null,t("article",{class:"container"},this.renderHeader(),this.renderContent()),this.renderDismissButton())}get el(){return n(this)}};d.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{position:relative;display:flex;flex-direction:row;margin:1rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}:host *{box-sizing:border-box}.container{padding:1rem;width:100%}:host([dismissed]),:host([dismissed]) .container{display:none}:host([selected]) .container{border-style:none;margin:0;padding:0}.header{margin:0;display:flex;align-items:center;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{margin-bottom:0.5rem}.header .heading{color:var(--calcite-ui-text-1);padding:0}.container[hidden]{display:none}.content{display:flex}.info{padding-top:0;padding-bottom:0;padding-left:1rem;padding-right:1rem;width:70%}.info:only-child{width:100%;padding-left:0;padding-right:0}::slotted(p){margin-top:0}::slotted(a){outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;color:var(--calcite-ui-brand)}::slotted(a:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}";export{d as calcite_tip}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,h as i,H as n,g as a}from"./p-2e1cd889.js";import{a as e,C as o,f as s}from"./p-e762b2d1.js";import"./p-ec178ea9.js";let r=class{constructor(i){t(this,i),this.disabled=!1,this.childElType="span",this.storeTagRef=t=>{this.childEl=t}}hrefHandler(t){this.childElType=t?"a":"span"}connectedCallback(){this.childElType=this.href?"a":"span"}render(){const t=e(this.el),a=i("calcite-icon",{class:"calcite-link--icon icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),s=i("calcite-icon",{class:"calcite-link--icon icon-end",flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"}),r=this.childElType;return i(n,{role:"presentation"},i(r,{class:{[o.rtl]:"rtl"===t},dir:t,href:"a"===r&&this.href,ref:this.storeTagRef,rel:"a"===r&&this.rel,role:"span"===this.childElType?"link":null,tabIndex:this.disabled?-1:"span"===this.childElType?0:null,target:"a"===r&&this.target},this.iconStart?a:null,i("slot",null),this.iconEnd?s:null))}async setFocus(){s(this.childEl)}get el(){return a(this)}static get watchers(){return{href:["hrefHandler"]}}};r.style="@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 a,:host span{display:flex;position:relative;align-items:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;cursor:pointer;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{width:1em;height:1em;min-width:unset;min-height:unset}.calcite-link--icon{transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;vertical-align:text-top;margin-top:0.125rem}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-link--icon.icon-start{margin-right:0.5rem}.calcite--rtl .calcite-link--icon.icon-start{margin-right:0;margin-left:0.5rem}:host .calcite-link--icon.icon-end{margin-left:0.5rem}.calcite--rtl .calcite-link--icon.icon-end{margin-left:0;margin-right:0.5rem}:host span,:host a{display:inline;padding:0;border-style:none;background-color:transparent;position:relative;color:var(--calcite-ui-text-link);line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px;transition:all 0.15s ease-in-out, background-size 0.3s ease-in-out}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}span.calcite--rtl,a.calcite--rtl{background-position:100% 100%, 100% 100%}";export{r as calcite_link}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as i,H as a,g as o}from"./p-2e1cd889.js";import{f as r,a as n,C as s,b as l,e as c,i as d}from"./p-e762b2d1.js";import{g as h}from"./p-7df393df.js";import{c as m}from"./p-a10dc180.js";import"./p-ec178ea9.js";function u(t,e,i,a=20,o=0){let r=[];if(o>=a)return r;const n=t=>{const r=t.assignedNodes().filter((t=>1===t.nodeType));return r.length>0?u(r[0].parentElement,e,i,a,o+1):[]},s=Array.from(t.children||[]);for(const t of s)e(t)||(i(t)&&r.push(t),null!=t.shadowRoot?r.push(...u(t.shadowRoot,e,i,a,o+1)):"SLOT"===t.tagName?r.push(...n(t)):r.push(...u(t,e,i,a,o+1)));return r}function p(t){return t.hasAttribute("hidden")||t.hasAttribute("aria-hidden")&&"false"!==t.getAttribute("aria-hidden")||"none"===t.style.display||"0"===t.style.opacity||"hidden"===t.style.visibility||"collapse"===t.style.visibility}
|
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
|
+
*/
|
11
|
+
const b=t=>{return d(t)||"-1"!==(e=t).getAttribute("tabindex")&&!p(e)&&!function(t){return t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")}(e)&&(e.hasAttribute("tabindex")||(e instanceof HTMLAnchorElement||e instanceof HTMLAreaElement)&&e.hasAttribute("href")||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLIFrameElement);var e},f=t=>u(t,p,b);let g=class{constructor(i){t(this,i),this.calciteModalOpen=e(this,"calciteModalOpen",7),this.calciteModalClose=e(this,"calciteModalClose",7),this.active=!1,this.beforeClose=()=>Promise.resolve(),this.disableCloseButton=!1,this.disableOutsideClose=!1,this.intlClose="Close",this.disableEscape=!1,this.scale="m",this.width="m",this.backgroundColor="white",this.noPadding=!1,this.hasFooter=!0,this.mutationObserver=m("mutation",(()=>this.updateFooterVisibility())),this.activeTransitionProp="opacity",this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.active?this.calciteModalOpen.emit():this.calciteModalClose.emit())},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.disableOutsideClose||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.active=!1,r(this.previousActiveElement),this.removeOverflowHiddenClass()})),this.focusFirstElement=()=>{r(this.closeButtonEl)},this.focusLastElement=()=>{const t=f(this.el).filter((t=>!t.getAttribute("data-focus-fence")));r(t.length>0?t[t.length-1]:this.closeButtonEl)},this.updateFooterVisibility=()=>{this.hasFooter=!!this.el.querySelector("[slot=back], [slot=secondary], [slot=primary]")}}componentWillLoad(){this.active&&this.open()}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.updateFooterVisibility()}disconnectedCallback(){var t;this.removeOverflowHiddenClass(),null===(t=this.mutationObserver)||void 0===t||t.disconnect()}render(){const t=n(this.el);return i(a,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},i("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),i("div",{class:{modal:!0,[s.rtl]:"rtl"===t},onTransitionEnd:this.transitionEnd},i("div",{"data-focus-fence":!0,onFocus:this.focusLastElement,tabindex:"0"}),i("div",{class:"header"},this.renderCloseButton(),i("header",{class:"title"},i("slot",{name:"header"}))),i("div",{class:{content:!0,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:t=>this.modalContent=t},i("slot",{name:"content"})),this.renderFooter(),i("div",{"data-focus-fence":!0,onFocus:this.focusFirstElement,tabindex:"0"})))}renderFooter(){return this.hasFooter?i("div",{class:"footer"},i("span",{class:"back"},i("slot",{name:"back"})),i("span",{class:"secondary"},i("slot",{name:"secondary"})),i("span",{class:"primary"},i("slot",{name:"primary"}))):null}renderCloseButton(){return this.disableCloseButton?null:i("button",{"aria-label":this.intlClose,class:"close",onClick:this.close,ref:t=>this.closeButtonEl=t,title:this.intlClose},i("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"l"}))}renderStyle(){return isNaN(parseInt(`${this.width}`))?null:i("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)}handleEscape(t){this.active&&!this.disableEscape&&"Escape"===h(t.key)&&this.close()}async focusElement(t){return t&&t.focus(),this.setFocus()}async setFocus(t){const e=this.closeButtonEl;return r("close-button"===t?e:f(this.el)[0]||e)}async scrollContent(t=0,e=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:t,left:e,behavior:"smooth"}):(this.modalContent.scrollTop=t,this.modalContent.scrollLeft=e))}async toggleModal(t,e){t!==e&&(t?this.open():t||this.close())}open(){this.previousActiveElement=document.activeElement,this.el.addEventListener("calciteModalOpen",this.openEnd),this.active=!0;const t=l(this.el,"header"),e=l(this.el,"content");this.titleId=c(t),this.contentId=c(e),document.documentElement.classList.add("overflow-hidden")}removeOverflowHiddenClass(){document.documentElement.classList.remove("overflow-hidden")}get el(){return o(this)}static get watchers(){return{active:["toggleModal"]}}};g.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0;right:0;bottom:0;left:0;display:flex;overflow-y:hidden}.modal{display:flex;flex-direction:column;box-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);box-sizing:border-box;float:none;margin:1.5rem;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);width:100%;opacity:0;pointer-events:none;overflow:hidden;z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:translate3d(0, 20px, 0)}:host([active]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([active]) .modal{opacity:1;pointer-events:auto;visibility:visible;transform:translate3d(0, 0, 0);transition:transform 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{display:flex;max-width:100%;min-width:0;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);flex:0 0 auto;z-index:2}.close{margin:0;-webkit-appearance:none;appearance:none;border-style:none;color:var(--calcite-ui-text-3);order:2;cursor:pointer;border-top-right-radius:0.25rem;background-color:transparent;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-modal-padding);flex:0 0 auto;transition:all 0.15s ease-in-out}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.calcite--rtl .close{border-top-left-radius:0.25rem;border-top-right-radius:0}.title{display:flex;align-items:center;order:1;min-width:0;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}.content{position:relative;padding:0;height:100%;overflow:auto;display:block;background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;max-height:calc(100vh - 12rem);z-index:1}.content--spaced{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}.content--no-footer{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text)}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{display:flex;justify-content:space-between;margin-top:auto;box-sizing:border-box;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;width:100%;background-color:var(--calcite-ui-foreground-1);border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-right:auto}.calcite--rtl .back{margin-left:auto;margin-right:0}.secondary{display:block;margin-left:0.25rem;margin-right:0.25rem}slot[name=primary]{display:block}:host([width=small]) .modal{width:auto}:host([width=s]) .modal{max-width:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=s]) .content{flex:1 1 auto;max-height:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-width:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=m]) .content{flex:1 1 auto;max-height:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-width:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;border-radius:0}:host([width=l]) .content{flex:1 1 auto;max-height:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{height:100%;max-height:100%;width:100%;max-width:100%;margin:0;transform:translate3D(0, 20px, 0) scale(0.95)}:host([fullscreen]) .content{max-height:100%;flex:1 1 auto}:host([active][fullscreen]) .modal{transform:translate3D(0, 0, 0) scale(1)}:host([active][fullscreen]) .header{border-radius:0}:host([active][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{height:auto}:host([docked]) .content{height:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-radius:0 var(--calcite-border-radius) 0 0}}@media screen and (max-width: 860px){:host([docked]) .calcite--rtl .close{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0;border-top-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-bottom-right-radius:0;border-bottom-left-radius:0}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;bottom:0}}@media screen and (max-width: 480px){.footer{flex-direction:column}.calcite--rtl .back,.back,.secondary{margin:0;margin-bottom:0.25rem}}";export{g as calcite_modal}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as a,h as i,g as e}from"./p-2e1cd889.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
|
+
*/let n=class{constructor(i){t(this,i),this.calciteHandleNudge=a(this,"calciteHandleNudge",7),this.activated=!1,this.textTitle="handle",this.handleKeyDown=t=>{switch(t.key){case" ":this.activated=!this.activated;break;case"ArrowUp":case"ArrowDown":if(!this.activated)return;const a=t.key.toLowerCase().replace("arrow","");this.calciteHandleNudge.emit({handle:this.el,direction:a})}},this.handleBlur=()=>{this.activated=!1}}async setFocus(){this.handleButton.focus()}render(){return i("span",{"aria-pressed":this.activated.toString(),class:{handle:!0,"handle--activated":this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>{this.handleButton=t},role:"button",tabindex:"0",title:this.textTitle},i("calcite-icon",{icon:"drag",scale:"s"}))}get el(){return e(this)}};n.style="@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}.handle{display:flex;align-items:center;align-self:stretch;justify-content:center;background-color:transparent;border-style:none;cursor:move;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;color:var(--calcite-ui-border-3);padding:0.75rem 0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}";export{n as calcite_handle}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,h as i,F as e,g as n}from"./p-2e1cd889.js";import{b as a}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
+
*/let o=class{constructor(i){t(this,i),this.active=!1,this.disabled=!1,this.embed=!1,this.focused=!1,this.hidden=!1}renderTile(){const{icon:t,el:e,heading:n,description:o}=this,r=n&&t&&!o;return i("div",{class:{container:!0,"large-visual":r}},t&&i("div",{class:"icon"},i("calcite-icon",{icon:t,scale:"l",style:r?{height:"64px",width:"64px"}:void 0})),i("div",{class:"content-container"},a(e,"content-start")?i("div",{class:"content-slot-container"},i("slot",{name:"content-start"})):null,i("div",{class:"content"},n&&i("div",{class:"heading"},n),o&&i("div",{class:"description"},o)),a(e,"content-end")?i("div",{class:"content-slot-container"},i("slot",{name:"content-end"})):null))}render(){return i(e,null,this.href?i("calcite-link",{disabled:this.disabled,href:this.href},this.renderTile()):this.renderTile())}get el(){return n(this)}};o.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{background-color:var(--calcite-ui-foreground-1);box-sizing:border-box;color:var(--calcite-ui-text-3);display:inline-block;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-user-select:none;user-select:none}:host(:not([embed])){padding:0.75rem;box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0}:host([icon][heading]:not([description])) .icon{display:flex;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}.container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:0.5rem;gap:0.5rem;pointer-events:none}.content{justify-content:center;display:flex;flex:1 1 auto;flex-direction:column;grid-gap:0.5rem;gap:0.5rem;width:10%}.content-container{display:flex;flex:1 1 auto;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;align-items:stretch;padding:0;color:var(--calcite-ui-text-2);width:100%}.content-slot-container{display:flex;align-items:center;background-color:var(--calcite-ui-foreground-1)}.content-slot-container:first-child{padding-right:0.75rem}.content-slot-container:last-child{padding-left:0.75rem}.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-2);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);font-weight:var(--calcite-font-weight-medium);pointer-events:none;word-wrap:break-word;overflow-wrap:break-word}.large-visual{align-items:center;min-height:12rem}.large-visual .icon{align-self:flex-end}.large-visual .content-container{align-self:center}.description{font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";export{o as calcite_tile}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as i,F as a,g as r}from"./p-2e1cd889.js";import{f as n,C as o,a as c}from"./p-e762b2d1.js";import{c as s,d as l}from"./p-cb5cb9a8.js";import{c as h,d,a as p,H as m}from"./p-0b8525e2.js";import{c as u}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
|
+
*/function f(t){return"CALCITE-OPTION"===t.tagName}let g=class{constructor(i){t(this,i),this.calciteSelectChange=e(this,"calciteSelectChange",7),this.disabled=!1,this.required=!1,this.scale="m",this.value=null,this.width="auto",this.componentToNativeEl=new Map,this.mutationObserver=u("mutation",(()=>this.populateInternalSelect())),this.handleInternalSelectChange=()=>{this.selectFromNativeOption(this.selectEl.selectedOptions[0]),requestAnimationFrame((()=>this.emitChangeEvent()))},this.populateInternalSelect=()=>{const t=Array.from(this.el.children).filter((t=>"CALCITE-OPTION"===t.tagName||"CALCITE-OPTION-GROUP"===t.tagName));this.clearInternalSelect(),t.forEach((t=>{var e;return null===(e=this.selectEl)||void 0===e?void 0:e.append(this.toNativeElement(t))}))},this.storeSelectRef=t=>{this.selectEl=t,this.populateInternalSelect(),this.selectFromNativeOption(this.selectEl.selectedOptions[0])},this.emitChangeEvent=()=>{this.calciteSelectChange.emit()}}valueHandler(t){this.el.querySelectorAll("calcite-option").forEach((e=>e.selected=e.value===t))}selectedOptionHandler(t){this.value=null==t?void 0:t.value}connectedCallback(){var t;const{el:e}=this;null===(t=this.mutationObserver)||void 0===t||t.observe(e,{subtree:!0,childList:!0}),s(this),h(this)}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),l(this),d(this)}componentDidLoad(){var t,e;p(this,null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.value)&&void 0!==e?e:"")}async setFocus(){n(this.selectEl)}handleOptionOrGroupChange(t){t.stopPropagation();const e=t.target,i=this.componentToNativeEl.get(e);i&&(this.updateNativeElement(e,i),f(e)&&e.selected&&this.deselectAllExcept(e))}onLabelClick(){this.setFocus()}updateNativeElement(t,e){if(e.disabled=t.disabled,e.label=t.label,f(t)){const i=e;i.selected=t.selected,i.value=t.value,i.innerText=t.label}}clearInternalSelect(){this.componentToNativeEl.forEach((t=>t.remove())),this.componentToNativeEl.clear()}selectFromNativeOption(t){if(!t)return;let e;this.componentToNativeEl.forEach(((i,a)=>{f(a)&&i===t&&(a.selected=!0,e=a,this.deselectAllExcept(a))})),e&&requestAnimationFrame((()=>this.selectedOption=e))}toNativeElement(t){if(f(t)){const e=document.createElement("option");return this.updateNativeElement(t,e),this.componentToNativeEl.set(t,e),e}if(function(t){return"CALCITE-OPTION-GROUP"===t.tagName}(t)){const e=document.createElement("optgroup");return this.updateNativeElement(t,e),Array.from(t.children).forEach((i=>{const a=this.toNativeElement(i);e.append(a),this.componentToNativeEl.set(t,a)})),this.componentToNativeEl.set(t,e),e}throw new Error("unsupported element child provided")}deselectAllExcept(t){this.el.querySelectorAll("calcite-option").forEach((e=>{e!==t&&(e.selected=!1)}))}renderChevron(t){return i("div",{class:{"icon-container":!0,[o.rtl]:"rtl"===t}},i("calcite-icon",{class:"icon",icon:"chevron-down",scale:"s"}))}render(){const t=c(this.el);return i(a,null,i("select",{"aria-label":this.label,class:{select:!0,[o.rtl]:"rtl"===t},disabled:this.disabled,onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},i("slot",null)),this.renderChevron(t),i(m,{component:this}))}get el(){return r(this)}static get watchers(){return{value:["valueHandler"],selectedOption:["selectedOptionHandler"]}}};g.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;align-items:stretch;position:relative;width:var(--select-width)}:host([scale=s]){height:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing:0 2rem 0 0.5rem;--calcite-select-spacing-rtl:0 0.5rem 0 2rem}:host([scale=s]) .icon-container{padding-left:0.5rem;padding-right:0.5rem}:host([scale=m]){height:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing:0 2.5rem 0 0.75rem;--calcite-select-spacing-rtl:0 0.75rem 0 2.5rem}:host([scale=m]) .icon-container{padding-left:0.75rem;padding-right:0.75rem}:host([scale=l]){height:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing:0 3rem 0 1rem;--calcite-select-spacing-rtl:0 1rem 0 3rem}:host([scale=l]) .icon-container{padding-left:1rem;padding-right:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}.select{-webkit-appearance:none;appearance:none;border-width:1px;border-style:solid;border-right-width:0;background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-border-input);border-radius:0;color:var(--calcite-ui-text-2);cursor:pointer;font-family:inherit;margin:0;width:100%;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-select-font-size);padding:var(--calcite-select-spacing)}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}.select.calcite--rtl{border-width:1px;border-color:var(--calcite-ui-border-input);padding:var(--calcite-select-spacing-rtl)}select:disabled{border-color:var(--calcite-ui-border-input);--bg-opacity:1}:host([disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.icon-container{align-items:center;background-color:transparent;border-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;color:var(--calcite-ui-text-2);display:flex;pointer-events:none;position:absolute;right:0;top:0;bottom:0}.icon-container.calcite--rtl{border-left-width:1px;border-right-width:0;left:0;right:unset}.select:focus~.icon-container{border-color:transparent}::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}";export{g as calcite_select}
|
@@ -3,5 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,g as a}from"./p-2e1cd889.js";import{T as n,C as s,I as o,H as r}from"./p-05c73b7d.js";import{a as c}from"./p-e762b2d1.js";import{C as l}from"./p-73e2d13f.js";import{c as
|
7
|
-
//# sourceMappingURL=p-07099311.entry.js.map
|
6
|
+
import{r as t,c as i,h as e,g as a}from"./p-2e1cd889.js";import{T as n,C as s,I as o,H as r}from"./p-05c73b7d.js";import{a as c}from"./p-e762b2d1.js";import{C as l}from"./p-73e2d13f.js";import{c as h}from"./p-a10dc180.js";import"./p-ec178ea9.js";let d=class{constructor(e){t(this,e),this.calciteTipManagerToggle=i(this,"calciteTipManagerToggle",7),this.closed=!1,this.mutationObserver=h("mutation",(()=>this.setUpTips())),this.hideTipManager=()=>{this.closed=!0,this.calciteTipManagerToggle.emit()},this.previousClicked=()=>{this.previousTip()},this.nextClicked=()=>{this.nextTip()},this.tipManagerKeyUpHandler=t=>{if(t.target===this.container)switch(t.key){case"ArrowRight":t.preventDefault(),this.nextTip();break;case"ArrowLeft":t.preventDefault(),this.previousTip();break;case"Home":t.preventDefault(),this.selectedIndex=0;break;case"End":t.preventDefault(),this.selectedIndex=this.total-1}},this.storeContainerRef=t=>{this.container=t}}closedChangeHandler(){this.direction=null,this.calciteTipManagerToggle.emit()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}connectedCallback(){var t;this.setUpTips(),null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}async nextTip(){this.direction="advancing",this.selectedIndex=(this.selectedIndex+1+this.total)%this.total}async previousTip(){this.direction="retreating",this.selectedIndex=(this.selectedIndex-1+this.total)%this.total}setUpTips(){const t=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=t.length,0===this.total)return;const i=this.el.querySelector("calcite-tip[selected]");this.tips=t,this.selectedIndex=i?t.indexOf(i):0,t.forEach((t=>{t.nonDismissible=!0})),this.showSelectedTip(),this.updateGroupTitle()}showSelectedTip(){this.tips.forEach(((t,i)=>{const e=this.selectedIndex===i;t.selected=e,t.hidden=!e}))}updateGroupTitle(){const t=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=(null==t?void 0:t.groupTitle)||this.intlDefaultTitle||n.defaultGroupTitle}renderPagination(){const t=c(this.el),{selectedIndex:i,tips:a,total:r,intlNext:l,intlPrevious:h,intlPaginationLabel:d}=this,p=l||n.next,m=d||n.defaultPaginationLabel;return a.length>1?e("footer",{class:s.pagination},e("calcite-action",{class:s.pagePrevious,icon:"ltr"===t?o.chevronLeft:o.chevronRight,onClick:this.previousClicked,scale:"m",text:h||n.previous}),e("span",{class:s.pagePosition},`${m} ${i+1}/${r}`),e("calcite-action",{class:s.pageNext,icon:"ltr"===t?o.chevronRight:o.chevronLeft,onClick:this.nextClicked,scale:"m",text:p})):null}render(){const{closed:t,direction:i,headingLevel:a,groupTitle:c,selectedIndex:h,intlClose:d,total:p}=this,m=d||n.close;return 0===p?null:e("section",{"aria-hidden":t.toString(),class:s.container,hidden:t,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef,tabIndex:0},e("header",{class:s.header},e(l,{class:s.heading,level:a||r},c),e("calcite-action",{class:s.close,onClick:this.hideTipManager,scale:"m",text:m},e("calcite-icon",{icon:o.close,scale:"m"}))),e("div",{class:{[s.tipContainer]:!0,[s.tipContainerAdvancing]:!t&&"advancing"===i,[s.tipContainerRetreating]:!t&&"retreating"===i},key:h,tabIndex:0},e("slot",null)),this.renderPagination())}get el(){return a(this)}static get watchers(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}}};d.style="@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;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-tip-manager-height:19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.header{margin:0;display:flex;align-items:center;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-left:1rem;padding-right:0;padding-top:0;padding-bottom:0}.header h2.heading{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-1);line-height:1.5rem;padding:0}.container{overflow:hidden;position:relative;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;min-height:150px}.container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.tip-container{margin-top:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;margin-top:1px;animation-name:none;animation-duration:150ms;height:var(--calcite-tip-manager-height)}.tip-container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}::slotted(calcite-tip){border-style:none;padding:0.75rem;max-width:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-top:0.75rem;padding-bottom:0.5rem;padding-left:0;padding-right:0}.page-position{font-size:var(--calcite-font-size--2);line-height:1rem;margin-top:0;margin-bottom:0;margin-left:0.5rem;margin-right:0.5rem}:host-context([dir=rtl]) .header.header{padding-right:1rem;padding-left:0;padding-top:0;padding-bottom:0}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";export{d as calcite_tip_manager}
|
@@ -7,5 +7,4 @@
|
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
9
|
*/
|
10
|
-
function
|
11
|
-
//# sourceMappingURL=p-a9df64c4.js.map
|
10
|
+
function r(r){const{r:n,g:t,b:s}=r;return`#${n.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`.toLowerCase()}const n=/^[0-9A-F]$/i,t=/^#[0-9A-F]{3}$/i,s=/^#[0-9A-F]{6}$/i;function e(r){return u(r)||i(r)}function u(r){return r&&4===r.length&&t.test(r)}function i(r){return r&&7===r.length&&s.test(r)}function a(n){return(n=n.toLowerCase()).startsWith("#")||(n=`#${n}`),u(n)?r(f(n)):n}function f(r){if(!e(r))return null;if(3===(r=r.replace("#","")).length){const[n,t,s]=r.split("");return{r:parseInt(`${n}${n}`,16),g:parseInt(`${t}${t}`,16),b:parseInt(`${s}${s}`,16)}}return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}const c={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},o="rgb",l="rgba",h="hsl",$="hsla",b="hsv",g="hsva";function p(r){if("string"==typeof r){if(r.startsWith("#")){const{length:n}=r;if(4===n||7===n)return c.HEX;if(5===n||9===n)return c.HEXA}if(r.startsWith("rgba("))return c.RGBA_CSS;if(r.startsWith("rgb("))return c.RGB_CSS;if(r.startsWith("hsl("))return c.HSL_CSS;if(r.startsWith("hsla("))return c.HSLA_CSS}if("object"==typeof r){if(S(r,"r","g","b"))return S(r,"a")?l:o;if(S(r,"h","s","l"))return S(r,"a")?$:h;if(S(r,"h","s","v"))return S(r,"a")?g:b}return null}function S(r,...n){return n.every((n=>n&&r&&`${n}`in r))}function A(r,n){return(null==r?void 0:r.rgbNumber())===(null==n?void 0:n.rgbNumber())}export{c as C,i as a,n as b,A as c,f as h,e as i,a as n,p,r}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as i,g as a}from"./p-2e1cd889.js";import{a as o,C as n}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
+
*/const s={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right",valid:"check-circle",invalid:"exclamation-mark-triangle"};let c=class{constructor(i){t(this,i),this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",7),this.open=!1,this.toggleDisplay="button",this.handleHeaderKeyDown=t=>{" "!==t.key&&"Enter"!==t.key||(this.toggleSection(),t.preventDefault(),t.stopPropagation())},this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()}}renderStatusIcon(){var t;const{status:e}=this,a=null!==(t=s[e])&&void 0!==t&&t;return a?i("calcite-icon",{class:{"status-icon":!0,valid:"valid"==e,invalid:"invalid"==e},icon:a,scale:"s"}):null}render(){const{el:t,intlCollapse:e,intlExpand:a,open:c,text:l,toggleDisplay:r}=this,m=o(t),d=c?s.menuOpen:"rtl"===m?s.menuClosedLeft:s.menuClosedRight,g=c?e||"Collapse":a||"Expand",h="switch"===r?i("div",{"aria-label":g,class:{toggle:!0,"toggle--switch":!0},onClick:this.toggleSection,onKeyDown:this.handleHeaderKeyDown,tabIndex:0,title:g},i("div",{class:"toggle--switch__content"},i("span",{class:"toggle--switch__text"},l)),i("calcite-switch",{checked:c,label:g,scale:"s",tabIndex:-1}),this.renderStatusIcon()):i("button",{"aria-label":g,class:{"section-header":!0,toggle:!0},name:g,onClick:this.toggleSection},i("calcite-icon",{icon:d,scale:"s"}),i("span",{class:"section-header__text"},l),this.renderStatusIcon());return i("section",{"aria-expanded":c.toString(),class:{[n.rtl]:"rtl"===m}},h,i("div",{class:"content",hidden:!c},i("slot",null)))}get el(){return a(this)}};c.style="@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{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);display:block}:host([open]){border-style:solid;border-width:0;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px}:host(:last-child){border-bottom-width:0}.toggle{background-color:transparent;border-width:0;color:var(--calcite-ui-text-2);font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-medium);width:100%}.toggle--switch,.section-header{align-items:center;cursor:pointer;display:flex;margin-left:0;margin-right:0;margin-top:0.25rem;margin-bottom:0.25rem;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-user-select:none;user-select:none;font-size:var(--calcite-font-size--1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.toggle--switch:hover,.section-header:hover{color:var(--calcite-ui-text-1)}.section-header .status-icon{align-self:flex-end}.section-header__text{flex:1 1 auto;margin-left:0.75rem;margin-right:0.75rem;margin-top:0;margin-bottom:0;text-align:initial;word-wrap:anywhere}.toggle--switch calcite-switch{pointer-events:none;margin-left:0.25rem}.toggle--switch .status-icon{margin-left:0.5rem}.toggle--switch__content{display:flex;align-items:center;flex:1 1 auto}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:0.25rem}.calcite--rtl .toggle--switch .status-icon{margin-left:0;margin-right:0.5rem}";export{c as calcite_block_section}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,h as i,H as s,g as e}from"./p-2e1cd889.js";import{g as a,a as o,b as n,c as r,d as l,e as c,f as h}from"./p-9deb6df3.js";import{s as p}from"./p-ee6eca93.js";import{s as u}from"./p-172b8454.js";import{g as d,c as f,s as g,a as m}from"./p-f75876eb.js";import"./p-3ce922dd.js";import"./p-cef98db7.js";let b=class{constructor(i){t(this,i),this.modelsSet=!1,this.translations={},this.value={contents:[]},this.item={itemId:"",itemDetails:{},isResource:!1,data:{},properties:{},type:""},this.itemid="",this.treeOpen=!0,this.sourceItemData={}}connectedCallback(){this._initObserver()}render(){const t=d(p.spatialReferenceInfo,"spatialReference.wkid");return i(s,null,i("div",{class:"configuration-container"},i("div",{class:"configuration"},i("calcite-tabs",{class:"config-tabs"},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this.translations.definitionTab),i("calcite-tab-title",null,this.translations.spatialReferenceTab)),i("calcite-tab",{active:!0,class:"config-tab"},i("div",{class:"config-solution"},i("div",{class:this.treeOpen?"config-inventory":"config-inventory-hide"},i("solution-contents",{id:"configInventory",key:`${this.itemid}-contents`,translations:this.translations,value:this.value.contents})),i("calcite-button",{appearance:"transparent",class:"collapse-btn","icon-start":this.treeOpen?"chevrons-left":"chevrons-right",id:"collapse-vars",onClick:()=>this._toggleTree(),scale:"s",title:this.translations.cancelEdits}),i("div",{class:"config-item"},i("solution-item",{key:`${this.itemid}-item`,organizationVariables:this._organizationVariables,solutionVariables:this._solutionVariables,translations:this.translations,value:this.item})))),i("calcite-tab",{class:"config-tab"},i("div",{class:"config-solution"},i("solution-spatial-ref",{defaultWkid:t,id:"configure-solution-spatial-ref",key:`${this.itemid}-spatial-ref`,locked:!t,services:p.featureServices.map((t=>t.name)),translations:this.translations})))))))}_solutionItemSelected(t){this.item=t.detail}async getEditModels(){return Promise.resolve(p.models)}async getSpatialReferenceInfo(){return Promise.resolve(p.spatialReferenceInfo)}async getSourceTemplates(){return Promise.resolve(this.templates)}async save(){return Promise.resolve(this._save())}_initObserver(){this._templatesObserver=new MutationObserver((t=>{t.some((t=>{const i=t.target[t.attributeName];if("attributes"===t.type&&"itemid"===t.attributeName&&i&&i!==t.oldValue)return a(i,this.authentication).then((t=>{this.sourceItemData=t,this.templates=t.templates,this._initProps(this.templates),this._initState(this.templates)})),!0}))})),this._templatesObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_initState(t){p.models=o(t),p.featureServices=n(t),p.spatialReferenceInfo=r(p.featureServices,this.sourceItemData),this.modelsSet=!0}_initProps(t){this.value.contents=[...l(t)],this._solutionVariables=c(t,this.translations),this._organizationVariables=h(this.translations),this.item={itemId:"",itemDetails:{},isResource:!1,data:{},properties:{},type:""}}_toggleTree(){this.treeOpen=!this.treeOpen}async _save(){const t=await this._updateTemplates(),i=this._setSrInfo(t.templates);return 0===t.errors.length?u(this.itemid,i,this.authentication,this.translations,""):{success:!1,message:`The following templates have errors: ${t.errors.join(", ")}`}}async _updateTemplates(){const t=[],i=await this.getEditModels();let s=f(this.templates);return Object.keys(i).forEach((e=>{const a=i[e];s=s.map((i=>{if(i.itemId===a.itemId){this._setItem(i,a);const s=this._setData(i,a),e=this._setProps(i,a);(s||e)&&t.push(a.itemId)}return i}))})),t.concat(window.monaco.editor.getModelMarkers({})),Promise.resolve({templates:s,errors:t})}_setData(t,i){return this._setTemplateProp(t,i.dataOriginValue,i.dataModel.getValue(),"data")}_setProps(t,i){return this._setTemplateProp(t,i.propsOriginValue,i.propsModel.getValue(),"properties")}_setTemplateProp(t,i,s,e){let a=!1;try{const a=JSON.parse(i),o=JSON.parse(s);a&&o&&JSON.stringify(a)!==JSON.stringify(o)&&g(t,e,o)}catch(t){console.error(t),a=!0}return a}_setItem(t,i){i.updateItemValues&&Object.keys(i.updateItemValues).length>0&&Object.keys(i.updateItemValues).forEach((s=>{t.item[s]=i.updateItemValues[s]}))}_setSrInfo(t){const i=p.spatialReferenceInfo,s=void 0!==(null==i?void 0:i.services)&&Object.keys(i.services).some((t=>i.services[t])),e=f(this.sourceItemData);if(e.templates=t,i&&i.enabled&&s){const t=i.spatialReference.wkid.toString(),s={label:"Spatial Reference",default:t,valueType:"spatialReference",attributes:{required:"true"}},a=d(e,"params"),o=a&&a.wkid;m(e,o?"params.wkid.default":"params.wkid",o?t:a?s:t)}else i.enabled||d(e,"params.wkid")&&delete e.params.wkid;return e}get el(){return e(this)}};b.style='.configuration-container{position:relative;width:100%;height:100%}.configuration{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;padding:8px;border:1px gray solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:56px;right:-1px;bottom:-1px;left:-1px;display:flex;padding:8px}.config-inventory{display:inline;flex-grow:0;overflow-y:auto;max-width:min-content}.config-inventory-hide{display:none;flex-grow:0;overflow-y:auto;max-width:min-content}.config-item{display:inline;margin-left:8px;flex-grow:1;overflow-y:auto;position:relative}html[dir="rtl"] .config-item{margin-left:0;margin-right:8px}solution-contents{height:100%;position:relative}solution-item{height:100%;position:relative}solution-spatial-ref{width:100%;height:100%;position:relative;overflow-y:auto}';export{b as solution_configuration}
|
@@ -7,5 +7,4 @@
|
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
9
|
*/
|
10
|
-
const a={container:"container",arrow:"arrow"}
|
11
|
-
//# sourceMappingURL=p-af9be2ca.js.map
|
10
|
+
const a={container:"container",arrow:"arrow"},r=500,e="data-calcite-tooltip-reference",o="aria-describedby";export{o as A,a as C,e as T,r as a}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-2e1cd889.js";import{g as a}from"./p-7df393df.js";let n=class{constructor(s){t(this,s),this.calciteStepperItemChange=i(this,"calciteStepperItemChange",7),this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.items=[],this.sortedItems=[]}contentWatcher(){"horizontal"===this.layout&&(!this.stepperContentContainer&&this.requestedContent&&this.addHorizontalContentContainer(),this.updateContent(this.requestedContent))}componentDidLoad(){this.currentPosition||this.calciteStepperItemChange.emit({position:0})}componentWillLoad(){"horizontal"!==this.layout||this.stepperContentContainer||this.addHorizontalContentContainer()}render(){return s("slot",null)}calciteStepperItemKeyEvent(t){const i=t.detail.item,s=t.target,e=0===this.itemIndex(s),n=this.itemIndex(s)===this.sortedItems.length-1;switch(a(i.key)){case"ArrowDown":case"ArrowRight":n?this.focusFirstItem():this.focusNextItem(s);break;case"ArrowUp":case"ArrowLeft":e?this.focusLastItem():this.focusPrevItem(s);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem()}}registerItem(t){const i={item:t.target,position:t.detail.position,content:t.detail.content};i.content&&i.item.active&&(this.requestedContent=i.content),this.items.includes(i)||this.items.push(i),this.sortedItems=this.sortItems()}updateItem(t){t.detail.content&&(this.requestedContent=t.detail.content),this.currentPosition=t.detail.position,this.calciteStepperItemChange.emit({position:this.currentPosition})}async nextStep(){this.currentPosition=this.currentPosition+1<this.items.length?this.currentPosition+1:this.currentPosition,this.emitChangedItem()}async prevStep(){this.currentPosition=this.currentPosition-1>=0?this.currentPosition-1:this.currentPosition,this.emitChangedItem()}async goToStep(t){this.currentPosition=t-1,this.emitChangedItem()}async startStep(){this.currentPosition=0,this.emitChangedItem()}async endStep(){this.currentPosition=this.items.length-1,this.emitChangedItem()}addHorizontalContentContainer(){this.stepperContentContainer=document.createElement("div"),this.stepperContentContainer.classList.add("calcite-stepper-content"),this.el.insertAdjacentElement("beforeend",this.stepperContentContainer)}emitChangedItem(){this.calciteStepperItemChange.emit({position:this.currentPosition})}focusFirstItem(){this.focusElement(this.sortedItems[0])}focusLastItem(){this.focusElement(this.sortedItems[this.sortedItems.length-1])}focusNextItem(t){const i=this.itemIndex(t);this.focusElement(this.sortedItems[i+1]||this.sortedItems[0])}focusPrevItem(t){const i=this.itemIndex(t);this.focusElement(this.sortedItems[i-1]||this.sortedItems[this.sortedItems.length-1])}itemIndex(t){return this.sortedItems.indexOf(t)}focusElement(t){t.focus()}sortItems(){const t=Array.from(this.items).filter((t=>!t.item.disabled)).sort(((t,i)=>t.position-i.position)).map((t=>t.item));return[...Array.from(new Set(t))]}updateContent(t){this.stepperContentContainer.innerHTML="",this.stepperContentContainer.append(...t)}get el(){return e(this)}static get watchers(){return{requestedContent:["contentWatcher"]}}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex-direction:row;flex-wrap:wrap;position:relative;justify-content:space-between;align-items:stretch;width:100%;min-width:100%}:host([layout=vertical]){flex-direction:column;flex:1 1 auto}:host ::slotted(.calcite-stepper-content){display:flex;flex-direction:column;flex-wrap:wrap;width:100%;min-width:100%}";export{n as calcite_stepper}
|
@@ -0,0 +1,6 @@
|
|
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 s,g as e}from"./p-2e1cd889.js";import{s as r}from"./p-ee6eca93.js";import{g as a,a as i,b as o,c}from"./p-9deb6df3.js";import"./p-cef98db7.js";import"./p-f75876eb.js";import"./p-3ce922dd.js";let n=class{constructor(e){t(this,e),this.stateLoaded=s(this,"stateLoaded",7),this.value="",this.templates=[]}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const s=t.target[t.attributeName];if("attributes"===t.type&&"value"===t.attributeName&&s!==t.oldValue&&""!==s){const t=JSON.parse(s);return a(t,this.authentication).then((s=>{r.models=i(Array.isArray(t)?t:[t]),r.featureServices=o(Array.isArray(t)?t:[t]),r.spatialReferenceInfo=c(r.featureServices,s),this.templates=t,this.stateLoaded.emit(r)})),!0}}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}get el(){return e(this)}};export{n as store_manager}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,h as a,g as i}from"./p-2e1cd889.js";import{g as n}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 e(t,a,i){const n=a[0]-t[0];return n?(3*(a[1]-t[1])/n-i)/2:i}function s(t,a,i,n,e){const[s,r]=t,[o,h]=a,l=(o-s)/3;return`C ${e([s+l,r+l*i]).join(",")} ${e([o-l,h-l*n]).join(",")} ${e([o,h]).join(",")}`}let r=class{constructor(a){t(this,a),this.data=[],this.width=300,this.height=100,this.graphId=`calcite-graph-${n()}`}render(){const{data:t,colorStops:i,width:n,height:r,highlightMax:o,highlightMin:h,min:l,max:c}=this,m=this.graphId;if(!t||0===t.length)return a("svg",{class:"svg",height:r,preserveAspectRatio:"none",viewBox:`0 0 ${n} ${r}`,width:n});const{min:p,max:d}=function(t){const[a,i]=t[0];return t.reduce((({min:t,max:a},[i,n])=>({min:[Math.min(t[0],i),Math.min(t[1],n)],max:[Math.max(a[0],i),Math.max(a[1],n)]})),{min:[a,i],max:[a,i]})}(t);let $=p,g=d;(l<p[0]||l>p[0])&&($=[l,0]),(c>d[0]||c<d[0])&&(g=[c,d[1]]);const f=function({width:t,height:a,min:i,max:n}){const e=n[0]-i[0],s=n[1]-i[1];return n=>[(n[0]-i[0])/e*t,a-n[1]/s*a]}({min:$,max:g,width:n,height:r}),[u]=f([h,g[1]]),[y]=f([o,g[1]]),x=function({data:t,min:a,max:i,t:n}){if(0===t.length)return"";const[r,o]=n(t[0]),[h,l]=n(a),[c]=n(i);let m,p,d;const $=t.reduce(((a,i,r)=>{if(p=t[r-2],d=t[r-1],r>1){const t=function(t,a,i){const n=a[0]-t[0],e=i[0]-a[0],s=(a[1]-t[1])/(n||e<0&&0),r=(i[1]-a[1])/(e||n<0&&0),o=(s*e+r*n)/(n+e);return(Math.sign(s)+Math.sign(r))*Math.min(Math.abs(s),Math.abs(r),.5*Math.abs(o))||0}(p,d,i),r=void 0===m?e(p,d,t):m,o=s(p,d,r,t,n);return m=t,`${a} ${o}`}return a}),`M ${h},${l} L ${h},${o} L ${r},${o}`),g=t[t.length-1];return`${$} ${s(d,g,m,e(d,g,m),n)} L ${c},${l} Z`}({data:t,min:p,max:d,t:f}),w=i?`url(#linear-gradient-${m})`:void 0;return a("svg",{class:"svg",height:r,preserveAspectRatio:"none",viewBox:`0 0 ${n} ${r}`,width:n},i?a("defs",null,a("linearGradient",{id:`linear-gradient-${m}`,x1:"0",x2:"1",y1:"0",y2:"0"},i.map((({offset:t,color:i,opacity:n})=>a("stop",{offset:100*t+"%","stop-color":i,"stop-opacity":n}))))):null,void 0!==h?[a("mask",{height:"100%",id:`${m}1`,width:"100%",x:"0%",y:"0%"},a("path",{d:`\n M 0,0\n L ${u-1},0\n L ${u-1},${r}\n L 0,${r}\n Z\n `,fill:"white"})),a("mask",{height:"100%",id:`${m}2`,width:"100%",x:"0%",y:"0%"},a("path",{d:`\n M ${u+1},0\n L ${y-1},0\n L ${y-1},${r}\n L ${u+1}, ${r}\n Z\n `,fill:"white"})),a("mask",{height:"100%",id:`${m}3`,width:"100%",x:"0%",y:"0%"},a("path",{d:`\n M ${y+1},0\n L ${n},0\n L ${n},${r}\n L ${y+1}, ${r}\n Z\n `,fill:"white"})),a("path",{class:"graph-path",d:x,fill:w,mask:`url(#${m}1)`}),a("path",{class:"graph-path--highlight",d:x,fill:w,mask:`url(#${m}2)`}),a("path",{class:"graph-path",d:x,fill:w,mask:`url(#${m}3)`})]:a("path",{class:"graph-path",d:x,fill:w}))}get el(){return i(this)}};r.style="@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}";export{r as calcite_graph}
|
@@ -0,0 +1,10 @@
|
|
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,h as t,g as e}from"./p-2e1cd889.js";import{e as a,f as o}from"./p-228131f3.js";import{g as n}from"./p-ec178ea9.js";import{g as c,a as l,C as m}from"./p-e762b2d1.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
|
+
*/let s=class{constructor(t){i(this,t),this.guid=n(),this.scale="m"}connectedCallback(){this.ancestors=a(this.el),this.scale=c(this.el,"scale",this.scale)}render(){const{el:i,scale:e}=this,a=l(i),n=`label--indent-${o(i)}`;return t("ul",{"aria-labelledby":this.guid,class:{list:!0,[m.rtl]:"rtl"===a,[`scale--${e}`]:!0},role:"group"},t("li",{class:{label:!0,[n]:!0},id:this.guid,role:"presentation"},t("span",{class:"title"},this.label)),t("slot",null))}get el(){return e(this)}};s.style="@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{--calcite-combobox-item-indent-start-1:var(--calcite-combobox-item-spacing-indent-1);--calcite-combobox-item-indent-end-1:unset;--calcite-combobox-item-indent-start-2:var(--calcite-combobox-item-spacing-indent-2);--calcite-combobox-item-indent-end-2:unset}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent-1:0.5rem;--calcite-combobox-item-spacing-indent-2:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent-1:0.75rem;--calcite-combobox-item-spacing-indent-2:1.5rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent-1:1rem;--calcite-combobox-item-spacing-indent-2:2rem}.calcite--rtl{--calcite-combobox-item-indent-start-1:unset;--calcite-combobox-item-indent-end-1:var(--calcite-combobox-item-spacing-indent-1);--calcite-combobox-item-indent-start-2:unset;--calcite-combobox-item-indent-end-2:var(--calcite-combobox-item-spacing-indent-2)}:host,.list{display:flex;flex-direction:column;margin:0;padding:0;outline:2px solid transparent;outline-offset:2px}.label{box-sizing:border-box;width:100%;max-width:100%;min-width:0;color:var(--calcite-ui-text-3);display:flex}.label--indent-1{padding-left:var(--calcite-combobox-item-indent-start-1);padding-right:var(--calcite-combobox-item-indent-end-1)}.label--indent-2{padding-left:var(--calcite-combobox-item-indent-start-2);padding-right:var(--calcite-combobox-item-indent-end-2)}.title{border:0 solid;display:block;flex:1 1 0%;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px;color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-bold);word-wrap:break-word;word-break:break-word;padding:var(--calcite-combobox-item-spacing-unit-l) 0;margin-left:var(--calcite-combobox-item-spacing-unit-s);margin-right:var(--calcite-combobox-item-spacing-unit-s)}";export{s as calcite_combobox_item_group}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as e,H as a,g as o}from"./p-2e1cd889.js";import{a as n}from"./p-e762b2d1.js";import{g as r}from"./p-7df393df.js";import{c as s,d as c}from"./p-cb5cb9a8.js";import{c as l,d as m,H as d}from"./p-0b8525e2.js";import"./p-ec178ea9.js";let h=class{constructor(e){t(this,e),this.calciteRadioGroupChange=i(this,"calciteRadioGroupChange",7),this.appearance="solid",this.disabled=!1,this.required=!1,this.layout="horizontal",this.scale="m",this.value=null,this.width="auto",this.handleClick=t=>{"calcite-radio-group-item"===t.target.localName&&this.selectItem(t.target)}}valueHandler(t){this.getItems().forEach((i=>i.checked=i.value===t))}handleSelectedItemChange(t,i){if(this.value=null==t?void 0:t.value,t===i)return;const e=this.getItems(),a=Array.from(e).filter((i=>i===t)).pop();a?(this.selectItem(a),this.calciteRadioGroupChange.emit(a.value)):e[0]&&(e[0].tabIndex=0)}connectedCallback(){const t=this.getItems(),i=Array.from(t).filter((t=>t.checked)).pop();i?this.selectItem(i):t[0]&&(t[0].tabIndex=0),s(this),l(this)}disconnectedCallback(){c(this),m(this)}componentDidLoad(){this.hasLoaded=!0}render(){return e(a,{onClick:this.handleClick,role:"radiogroup",tabIndex:this.disabled?-1:null},e("slot",null),e(d,{component:this}))}handleSelected(t){this.hasLoaded&&(t.stopPropagation(),t.preventDefault(),this.selectItem(t.target))}handleKeyDown(t){const i=r(t.key),{el:e,selectedItem:a}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;let o=i;"rtl"===n(e)&&("ArrowRight"===i&&(o="ArrowLeft"),"ArrowLeft"===i&&(o="ArrowRight"));const s=this.getItems();let c=-1;switch(s.forEach(((t,i)=>{t===a&&(c=i)})),o){case"ArrowLeft":case"ArrowUp":t.preventDefault();const i=s.item(c<1?s.length-1:c-1);return void this.selectItem(i);case"ArrowRight":case"ArrowDown":t.preventDefault();const e=-1===c?s.item(1):s.item(c+1)||s.item(0);return void this.selectItem(e);case" ":return t.preventDefault(),void this.selectItem(t.target);default:return}}async setFocus(){var t;null===(t=this.selectedItem||this.getItems()[0])||void 0===t||t.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(t){if(t===this.selectedItem)return;const i=this.getItems();let e=null;i.forEach((i=>{const a=i.value===t.value;(a&&!i.checked||!a&&i.checked)&&(i.checked=a),i.tabIndex=a?0:-1,a&&(e=i)})),this.selectedItem=e,e&&e.focus()}get el(){return o(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};h.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;background-color:var(--calcite-ui-foreground-1);width:-moz-fit-content;width:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){width:100%;min-width:-moz-fit-content;min-width:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{h as calcite_radio_group}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as a,g as e}from"./p-2e1cd889.js";import{n,i as s,a as r,r as o,h as l,b as c}from"./p-a9df64c4.js";import{c as h}from"./p-1345c0c8.js";import{a as m,f as p}from"./p-e762b2d1.js";import{T as u}from"./p-f1867a12.js";import{g as f}from"./p-7df393df.js";import"./p-cef98db7.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 d=h();let g=class{constructor(a){t(this,a),this.calciteColorPickerHexInputChange=i(this,"calciteColorPickerHexInputChange",7),this.allowEmpty=!1,this.intlHex=u.hex,this.intlNoColor=u.noColor,this.scale="m",this.value=n(d.hex()),this.onCalciteInputBlur=()=>{const t=this.inputNode,i=t.value,a=`#${i}`;this.allowEmpty&&!i||s(a)&&r(a)||(t.value=this.allowEmpty&&!this.internalColor?"":this.formatForInternalInput(o(this.internalColor.object())))},this.onInputChange=()=>{const t=this.inputNode.value;let i;if(t){const a=t;if(!l(`#${a}`))return;i=n(a)}else this.allowEmpty&&(i=null);this.value=i,this.calciteColorPickerHexInputChange.emit()},this.internalColor=d,this.previousNonNullValue=this.value,this.storeInputRef=t=>{this.inputNode=t}}connectedCallback(){const{allowEmpty:t,value:i}=this;if(i){const t=n(i);s(t)&&(this.internalColor=h(t),this.value=t)}else t&&(this.internalColor=null,this.value=null)}handleValueChange(t,i){if(t){const i=n(t);if(s(i)){const{internalColor:t}=this,a=!t||i!==n(t.hex());return this.internalColor=h(i),this.previousNonNullValue=i,this.value=i,void(a&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void this.calciteColorPickerHexInputChange.emit();this.value=i}onInputKeyDown(t){const{altKey:i,ctrlKey:a,metaKey:e,shiftKey:s}=t,{internalColor:r,value:o}=this,l=f(t.key);if("Tab"===l||"Enter"===l)return void this.onInputChange();if("ArrowDown"===l||"ArrowUp"===l)return o?(this.value=n(this.nudgeRGBChannels(r,(s?10:1)*("ArrowUp"===l?1:-1)).hex()),void t.preventDefault()):(this.value=this.previousNonNullValue,void t.preventDefault());const h=i||a||e,m=1===l.length,p=c.test(l);!m||h||p||t.preventDefault()}render(){const{el:t,intlHex:i,value:e}=this,n=this.formatForInternalInput(e),s=m(t);return a("div",{class:"container"},a("calcite-input",{class:"input",dir:s,label:i,maxLength:6,onCalciteInputBlur:this.onCalciteInputBlur,onCalciteInputChange:this.onInputChange,prefixText:"#",ref:this.storeInputRef,scale:this.scale,value:n}),n?a("calcite-color-picker-swatch",{active:!0,class:"preview",color:`#${n}`,scale:this.scale}):null)}async setFocus(){p(this.inputNode)}formatForInternalInput(t){return t?t.replace("#",""):""}nudgeRGBChannels(t,i){return h.rgb(t.array().map((t=>t+i)))}get el(){return e(this)}static get watchers(){return{value:["handleValueChange"]}}};g.style="@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}.container{width:100%;display:inline-grid;align-items:center;grid-template-columns:1fr auto}.preview{grid-column:2/3;display:flex;align-items:center;pointer-events:none;margin-top:0;margin-bottom:0;margin-left:0.25rem;margin-right:0.25rem;z-index:1}.preview,.input{grid-row:1}.input{grid-column:1/3;text-transform:uppercase;width:100%}";export{g as calcite_color_picker_hex_input}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as s,H as a,g as n}from"./p-2e1cd889.js";import{g as o}from"./p-ec178ea9.js";import{a as e,f as r}from"./p-e762b2d1.js";import{c as h,d as c,g as d}from"./p-cb5cb9a8.js";import{c as l,d as m,H as p}from"./p-0b8525e2.js";import{g as u}from"./p-7df393df.js";import{g as f}from"./p-3e67ed97.js";
|
7
|
+
/*!
|
8
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
+
*/let g=class{constructor(s){t(this,s),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",7),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",7),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",7),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",7),this.checked=!1,this.disabled=!1,this.focused=!1,this.hidden=!1,this.hovered=!1,this.required=!1,this.scale="m",this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name)),this.isDefaultSelectable=()=>{const t=this.queryButtons();return!t.some((t=>t.checked))&&t[0]===this.el},this.check=()=>{this.disabled||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.calciteRadioButtonChange.emit(),this.setFocus())},this.clickHandler=()=>{this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const i=u(t.key),{el:s}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return void this.check();let a=i;"rtl"===e(s)&&("ArrowRight"===i&&(a="ArrowLeft"),"ArrowLeft"===i&&(a="ArrowRight"));const n=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let o=0;const r=n.length;switch(n.some(((t,i)=>{if(t.checked)return o=i,!0})),a){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(n,f(Math.max(o-1,-1),r));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(n,f(o+1,r));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.focused=!0,this.calciteInternalRadioButtonFocus.emit()}}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit(t)}nameChanged(){this.checkLastRadioButton();const t=this.rootNode.querySelector(`input[name="${this.name}"]:checked`);(null==t?void 0:t.value)||this.uncheckAllRadioButtonsInGroup()}async setFocus(){r(this.containerEl)}onLabelClick(t){if(!this.disabled&&!this.hidden){this.uncheckOtherRadioButtonsInGroup();const i=t.currentTarget,s=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);s&&(s.checked=!0,s.focused=!0),this.calciteRadioButtonChange.emit(),this.setFocus()}}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if((null==t?void 0:t.length)>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}mouseenter(){this.hovered=!0}mouseleave(){this.hovered=!1}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${o()}`,this.name&&this.checkLastRadioButton(),h(this),l(this)}componentDidLoad(){this.focused&&this.setFocus()}disconnectedCallback(){c(this),m(this)}render(){return s(a,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},s("div",{"aria-checked":this.checked.toString(),"aria-label":d(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,ref:this.setContainerEl,role:"radio",tabIndex:this.checked||this.isDefaultSelectable()?0:-1},s("calcite-radio",{checked:this.checked,disabled:this.disabled,focused:this.focused,hidden:this.hidden,hovered:this.hovered,scale:this.scale})),s(p,{component:this}))}get el(){return n(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};g.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{cursor:pointer;display:block}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host([disabled]){cursor:pointer}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{g as calcite_radio_button}
|