@esri/solutions-components 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1,230 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
/** @license
|
7
|
-
* Copyright 2021 Esri
|
8
|
-
*
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
-
* you may not use this file except in compliance with the License.
|
11
|
-
* You may obtain a copy of the License at
|
12
|
-
*
|
13
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
-
*
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
-
* See the License for the specific language governing permissions and
|
19
|
-
* limitations under the License.
|
20
|
-
*/
|
21
|
-
function getInventoryItems(templates) {
|
22
|
-
const topLevelItemIds = _getTopLevelItemIds(templates);
|
23
|
-
return templates.reduce((prev, cur) => {
|
24
|
-
if (topLevelItemIds.indexOf(cur.itemId) > -1) {
|
25
|
-
prev.push(_getItemFromTemplate(cur, templates));
|
26
|
-
}
|
27
|
-
return prev;
|
28
|
-
}, []);
|
29
|
-
}
|
30
|
-
function getSolutionVariables(templates, translations) {
|
31
|
-
const vars = [];
|
32
|
-
templates.forEach(t => {
|
33
|
-
const item = {
|
34
|
-
id: t.itemId,
|
35
|
-
title: t.item.title || t.item.name,
|
36
|
-
type: t.type,
|
37
|
-
value: undefined,
|
38
|
-
dependencies: [{
|
39
|
-
id: t.itemId,
|
40
|
-
title: translations.itemId,
|
41
|
-
value: `{{${t.itemId}.itemId}}`,
|
42
|
-
}]
|
43
|
-
};
|
44
|
-
if (t.item.url) {
|
45
|
-
item.dependencies.push({
|
46
|
-
id: t.itemId,
|
47
|
-
title: translations.url,
|
48
|
-
value: `{{${t.itemId}.url}}`,
|
49
|
-
});
|
50
|
-
}
|
51
|
-
if (t.type === "Feature Service") {
|
52
|
-
// TODO need to set source service name var...
|
53
|
-
// TODO need to set soure service shape field name "{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape"
|
54
|
-
item.dependencies.push({
|
55
|
-
id: t.itemId,
|
56
|
-
title: translations.solutionExtent,
|
57
|
-
value: `{{${t.itemId}.solutionExtent}}`,
|
58
|
-
});
|
59
|
-
_addLayersOrTables(t.properties.layers || [], item, t, translations);
|
60
|
-
_addLayersOrTables(t.properties.tables || [], item, t, translations);
|
61
|
-
}
|
62
|
-
vars.push(item);
|
63
|
-
});
|
64
|
-
return vars;
|
65
|
-
}
|
66
|
-
function _addLayersOrTables(children, item, t, translations) {
|
67
|
-
children.forEach(l => {
|
68
|
-
const name = l.name && l.name.indexOf("||") > -1 ? l.name.split("||")[1].replace("}}", "").trim() : l.name;
|
69
|
-
item.dependencies.push({
|
70
|
-
id: t.itemId,
|
71
|
-
title: `${name} (${translations.id})`,
|
72
|
-
value: `{{${t.itemId}.layer${l.id}.id}}`,
|
73
|
-
});
|
74
|
-
item.dependencies.push({
|
75
|
-
id: t.itemId,
|
76
|
-
title: `${name} (${translations.name})`,
|
77
|
-
value: `{{${t.itemId}.layer${l.id}.name||${name}}}`,
|
78
|
-
});
|
79
|
-
});
|
80
|
-
}
|
81
|
-
function getOrganizationVariables(translations) {
|
82
|
-
const orgVars = [{
|
83
|
-
id: "",
|
84
|
-
title: translations.geocodeUrl,
|
85
|
-
value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
|
86
|
-
}, {
|
87
|
-
id: "",
|
88
|
-
title: translations.geometryUrl,
|
89
|
-
value: "{{organization.helperServices.geometry.url}}"
|
90
|
-
}, {
|
91
|
-
id: "",
|
92
|
-
title: translations.portalBaseUrl,
|
93
|
-
value: "{{portalBaseUrl}}"
|
94
|
-
}, {
|
95
|
-
id: "",
|
96
|
-
title: translations.routeUrl,
|
97
|
-
value: "{{organization.helperServices.route.url}}"
|
98
|
-
}, {
|
99
|
-
id: "",
|
100
|
-
title: translations.solutionItemExtent,
|
101
|
-
value: "{{solutionItemExtent}}"
|
102
|
-
}];
|
103
|
-
return orgVars;
|
104
|
-
}
|
105
|
-
function getModels(templates) {
|
106
|
-
const ids = [];
|
107
|
-
const models = {};
|
108
|
-
const monacoDefined = typeof (monaco) !== "undefined";
|
109
|
-
templates.forEach(t => {
|
110
|
-
var _a, _b, _c, _d;
|
111
|
-
if (ids.indexOf(t.itemId) < 0) {
|
112
|
-
ids.push(t.itemId);
|
113
|
-
models[t.itemId] = {
|
114
|
-
dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\t'), "json") : undefined,
|
115
|
-
dataOriginValue: JSON.stringify(t.data),
|
116
|
-
propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\t'), "json") : undefined,
|
117
|
-
propsOriginValue: JSON.stringify(t.properties),
|
118
|
-
propsDiffOriginValue: JSON.stringify(t.properties),
|
119
|
-
state: undefined,
|
120
|
-
shareInfo: undefined,
|
121
|
-
isEditing: false,
|
122
|
-
itemId: t.itemId,
|
123
|
-
updateItemValues: {},
|
124
|
-
originalItemValues: {},
|
125
|
-
name: (_a = t.item) === null || _a === void 0 ? void 0 : _a.name,
|
126
|
-
title: (_b = t.item) === null || _b === void 0 ? void 0 : _b.title,
|
127
|
-
itemOriginValue: JSON.stringify(t.item),
|
128
|
-
spatialReference: (_d = (_c = t.properties) === null || _c === void 0 ? void 0 : _c.service) === null || _d === void 0 ? void 0 : _d.spatialReference
|
129
|
-
};
|
130
|
-
}
|
131
|
-
});
|
132
|
-
return models;
|
133
|
-
}
|
134
|
-
function getFeatureServices(templates) {
|
135
|
-
return templates.reduce((prev, cur) => {
|
136
|
-
const name = cur.item.title || cur.item.name;
|
137
|
-
if (cur.type === "Feature Service" &&
|
138
|
-
cur.item.typeKeywords.indexOf("View Service") < 0 &&
|
139
|
-
prev.indexOf(name) < 0) {
|
140
|
-
prev.push(name);
|
141
|
-
}
|
142
|
-
return prev;
|
143
|
-
}, []);
|
144
|
-
}
|
145
|
-
function getSpatialReferenceInfo(services) {
|
146
|
-
const defaultServices = {};
|
147
|
-
services.forEach(service => {
|
148
|
-
defaultServices[service] = true;
|
149
|
-
});
|
150
|
-
return {
|
151
|
-
enabled: false,
|
152
|
-
services: defaultServices,
|
153
|
-
spatialReference: undefined
|
154
|
-
};
|
155
|
-
}
|
156
|
-
function _getItemFromTemplate(t, templates) {
|
157
|
-
return {
|
158
|
-
id: t.itemId || "",
|
159
|
-
title: t.item.title || "",
|
160
|
-
dependencies: _getDependencies(t.dependencies || [], templates),
|
161
|
-
type: t.item.type || "",
|
162
|
-
typeKeywords: t.item.typeKeywords || [],
|
163
|
-
solutionItem: {
|
164
|
-
itemId: t.itemId,
|
165
|
-
itemDetails: _getItemDetails(t.item, t.type === "Group", t.itemId),
|
166
|
-
isResource: _getIsResource(t),
|
167
|
-
data: t.data,
|
168
|
-
properties: t.properties,
|
169
|
-
type: t.type,
|
170
|
-
groupDetails: _getGroupDetails(t, templates)
|
171
|
-
}
|
172
|
-
};
|
173
|
-
}
|
174
|
-
function _getDependencies(dependencies, templates) {
|
175
|
-
return templates.reduce((prev, curr) => {
|
176
|
-
if (dependencies.indexOf(curr.itemId) > -1) {
|
177
|
-
prev.push(_getItemFromTemplate(curr, templates));
|
178
|
-
}
|
179
|
-
return prev;
|
180
|
-
}, []);
|
181
|
-
}
|
182
|
-
function _getItemDetails(item, isGroup, itemId) {
|
183
|
-
return {
|
184
|
-
itemId,
|
185
|
-
thumbnail: item.thumbnail || "",
|
186
|
-
title: item.title || "",
|
187
|
-
snippet: item.snippet || "",
|
188
|
-
description: item.description || "",
|
189
|
-
tags: item.tags || [],
|
190
|
-
accessInformation: !isGroup ? item.accessInformation || "" : "",
|
191
|
-
licenseInfo: !isGroup ? item.licenseInfo || "" : ""
|
192
|
-
};
|
193
|
-
}
|
194
|
-
function _getGroupDetails(t, templates) {
|
195
|
-
return t.type === "Group" ? templates.reduce((prev, cur) => {
|
196
|
-
if (cur.itemId !== t.itemId && cur.type !== "Group") {
|
197
|
-
prev.push({
|
198
|
-
id: cur.itemId,
|
199
|
-
title: cur.item.name || cur.item.title,
|
200
|
-
isShared: (cur.groups || []).indexOf(t.itemId) > -1,
|
201
|
-
shareItem: (cur.groups || []).indexOf(t.itemId) > -1,
|
202
|
-
type: cur.type,
|
203
|
-
typeKeywords: cur.item.typeKeywords
|
204
|
-
});
|
205
|
-
}
|
206
|
-
return prev;
|
207
|
-
}, []) : [];
|
208
|
-
}
|
209
|
-
function _getIsResource(template) {
|
210
|
-
return template.type !== "Group" && JSON.stringify(template.data) === "{}";
|
211
|
-
}
|
212
|
-
function _getTopLevelItemIds(templates) {
|
213
|
-
// Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on
|
214
|
-
const topLevelItemCandidateIds = templates.map((template) => template.itemId);
|
215
|
-
templates.forEach((template) => {
|
216
|
-
(template.dependencies || []).forEach((dependencyId) => {
|
217
|
-
const iNode = topLevelItemCandidateIds.indexOf(dependencyId);
|
218
|
-
if (iNode >= 0) {
|
219
|
-
// Node is somebody's dependency, so remove the node from the list of top-level nodes
|
220
|
-
// If iNode == -1, then it's a shared dependency and it has already been removed
|
221
|
-
topLevelItemCandidateIds.splice(iNode, 1);
|
222
|
-
}
|
223
|
-
});
|
224
|
-
});
|
225
|
-
return topLevelItemCandidateIds;
|
226
|
-
}
|
227
|
-
|
228
|
-
export { getFeatureServices as a, getSpatialReferenceInfo as b, getInventoryItems as c, getSolutionVariables as d, getOrganizationVariables as e, getModels as g };
|
229
|
-
|
230
|
-
//# sourceMappingURL=templates-3480c08e.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"templates-3480c08e.js","mappings":";;;;;AAAA;;;;;;;;;;;;;;;SAgDgB,iBAAiB,CAC/B,SAAgB;EAEhB,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;EACvD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG;IAChC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;MAC5C,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;KAChD;IACD,OAAO,IAAI,CAAC;GACb,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;SAEe,oBAAoB,CAClC,SAAgB,EAChB,YAAiB;EAEjB,MAAM,IAAI,GAAoB,EAAE,CAAC;EACjC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjB,MAAM,IAAI,GAAG;MACX,EAAE,EAAE,CAAC,CAAC,MAAM;MACZ,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;MAClC,IAAI,EA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AAC,CAAC,QAAQ;IACzB,CAAC,QAAQ,CAAC,YAAY,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,YAAY;MACjD,MAAM,KAAK,GAAG,wBAAwB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;MAC7D,IAAI,KAAK,IAAI,CAAC,EAAE;;;QAGd,wBAAwB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;OAC3C;KACF,CAAC,CAAC;GACJ,CAAC,CAAC;EACH,OAAO,wBAAwB,CAAC;AAClC;;;;","names":[],"sources":["./src/utils/templates.ts"],"sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n/*\r\n | Helper functions to get required values from solutions templates\r\n*/\r\n\r\nimport { IItemDetails } from \"../components/solution-item-details/solution-item-details\";\r\nimport { IInventoryItem } from \"../components/solution-contents/solution-contents\";\r\nimport { IItemShare } from \"../components/solution-item-sharing/solution-item-sharing\";\r\nimport { IVariableItem } from \"../components/solution-variables/solution-variables\";\r\nimport { IOrganizationVariableItem } from \"../components/solution-organization-variables/solution-organization-variables\";\r\n\r\nexport interface ISolutionModel {\r\n dataModel: monaco.editor.ITextModel;\r\n dataOriginValue: string;\r\n propsModel: monaco.editor.ITextModel;\r\n propsOriginValue: string;\r\n propsDiffOriginValue: string;\r\n state: any;\r\n shareInfo: any;\r\n isEditing: boolean;\r\n itemId: string;\r\n updateItemValues: any;\r\n originalItemValues: any;\r\n name: string;\r\n title: string;\r\n itemOriginValue: string;\r\n spatialReference: any;\r\n}\r\n\r\ninterface ISolutionModels {\r\n [key: string]: ISolutionModel;\r\n} \r\n\r\nexport function getInventoryItems(\r\n templates: any[]\r\n): IInventoryItem[] {\r\n const topLevelItemIds = _getTopLevelItemIds(templates);\r\n return templates.reduce((prev, cur) => {\r\n if (topLevelItemIds.indexOf(cur.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(cur, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSolutionVariables(\r\n templates: any[],\r\n translations: any\r\n): IVariableItem[] {\r\n const vars: IVariableItem[] = [];\r\n templates.forEach(t => {\r\n const item = {\r\n id: t.itemId,\r\n title: t.item.title || t.item.name,\r\n type: t.type,\r\n value: undefined,\r\n dependencies: [{\r\n id: t.itemId,\r\n title: translations.itemId,\r\n value: `{{${t.itemId}.itemId}}`,\r\n }]\r\n };\r\n if (t.item.url) {\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.url,\r\n value: `{{${t.itemId}.url}}`,\r\n });\r\n }\r\n if (t.type === \"Feature Service\") {\r\n // TODO need to set source service name var...\r\n // TODO need to set soure service shape field name \"{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape\"\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.solutionExtent,\r\n value: `{{${t.itemId}.solutionExtent}}`,\r\n })\r\n _addLayersOrTables(t.properties.layers || [], item, t, translations);\r\n _addLayersOrTables(t.properties.tables || [], item, t, translations);\r\n }\r\n vars.push(item);\r\n })\r\n\r\n return vars;\r\n}\r\n\r\nfunction _addLayersOrTables(\r\n children: any[],\r\n item: any,\r\n t: any,\r\n translations: any\r\n): void {\r\n children.forEach(l => {\r\n const name = l.name && l.name.indexOf(\"||\") > -1 ? l.name.split(\"||\")[1].replace(\"}}\", \"\").trim() : l.name;\r\n\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.id})`,\r\n value: `{{${t.itemId}.layer${l.id}.id}}`,\r\n });\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.name})`,\r\n value: `{{${t.itemId}.layer${l.id}.name||${name}}}`,\r\n });\r\n });\r\n} \r\n\r\nexport function getOrganizationVariables(\r\n translations: any\r\n): IOrganizationVariableItem[] {\r\n const orgVars: IOrganizationVariableItem[] = [{\r\n id: \"\",\r\n title: translations.geocodeUrl,\r\n value: \"{{organization.helperServices.geocode:getDefaultLocatorURL}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.geometryUrl,\r\n value: \"{{organization.helperServices.geometry.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.portalBaseUrl,\r\n value: \"{{portalBaseUrl}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.routeUrl,\r\n value: \"{{organization.helperServices.route.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.solutionItemExtent,\r\n value: \"{{solutionItemExtent}}\"\r\n }];\r\n return orgVars;\r\n}\r\n\r\nexport function getModels(templates: any[]): ISolutionModels {\r\n const ids: string[] = [];\r\n const models: ISolutionModels = {};\r\n const monacoDefined = typeof(monaco) !== \"undefined\";\r\n templates.forEach(t => {\r\n if (ids.indexOf(t.itemId) < 0) {\r\n ids.push(t.itemId);\r\n models[t.itemId] = {\r\n dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\\t'), \"json\") : undefined,\r\n dataOriginValue: JSON.stringify(t.data),\r\n propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\\t'), \"json\") : undefined,\r\n propsOriginValue: JSON.stringify(t.properties),\r\n propsDiffOriginValue: JSON.stringify(t.properties),\r\n state: undefined,\r\n shareInfo: undefined,\r\n isEditing: false,\r\n itemId: t.itemId,\r\n updateItemValues: {},\r\n originalItemValues: {},\r\n name: t.item?.name,\r\n title: t.item?.title,\r\n itemOriginValue: JSON.stringify(t.item),\r\n spatialReference: t.properties?.service?.spatialReference\r\n };\r\n }\r\n });\r\n return models;\r\n}\r\n\r\nexport function getFeatureServices(\r\n templates: any[]\r\n): any[] {\r\n return templates.reduce((prev, cur) => {\r\n const name: string = cur.item.title || cur.item.name;\r\n if (cur.type === \"Feature Service\" &&\r\n cur.item.typeKeywords.indexOf(\"View Service\") < 0 &&\r\n prev.indexOf(name) < 0\r\n ) {\r\n prev.push(name)\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSpatialReferenceInfo(\r\n services: string[]\r\n): any {\r\n const defaultServices: any = {};\r\n services.forEach(service => {\r\n defaultServices[service] = true;\r\n });\r\n return {\r\n enabled: false,\r\n services: defaultServices,\r\n spatialReference: undefined\r\n }\r\n}\r\n\r\nfunction _getItemFromTemplate(\r\n t: any,\r\n templates: any[]\r\n): IInventoryItem {\r\n return {\r\n id: t.itemId || \"\",\r\n title: t.item.title || \"\",\r\n dependencies: _getDependencies(t.dependencies || [], templates),\r\n type: t.item.type || \"\",\r\n typeKeywords: t.item.typeKeywords || [],\r\n solutionItem: {\r\n itemId: t.itemId,\r\n itemDetails: _getItemDetails(t.item, t.type === \"Group\", t.itemId),\r\n isResource: _getIsResource(t),\r\n data: t.data,\r\n properties: t.properties,\r\n type: t.type,\r\n groupDetails: _getGroupDetails(t, templates)\r\n }\r\n };\r\n}\r\n\r\nfunction _getDependencies(\r\n dependencies: string[],\r\n templates: any[]\r\n): IInventoryItem[] {\r\n return templates.reduce((prev, curr) => {\r\n if (dependencies.indexOf(curr.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(curr, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nfunction _getItemDetails(\r\n item: any,\r\n isGroup: boolean,\r\n itemId: string\r\n): IItemDetails {\r\n return {\r\n itemId,\r\n thumbnail: item.thumbnail || \"\",\r\n title: item.title || \"\",\r\n snippet: item.snippet || \"\",\r\n description: item.description || \"\",\r\n tags: item.tags || [],\r\n accessInformation: !isGroup ? item.accessInformation || \"\" : \"\",\r\n licenseInfo: !isGroup ? item.licenseInfo || \"\" : \"\"\r\n };\r\n}\r\n\r\nfunction _getGroupDetails(\r\n t: any,\r\n templates: any[]\r\n): IItemShare[] {\r\n return t.type === \"Group\" ? templates.reduce((prev, cur) => {\r\n if (cur.itemId !== t.itemId && cur.type !== \"Group\") {\r\n prev.push({\r\n id: cur.itemId,\r\n title: cur.item.name || cur.item.title,\r\n isShared: (cur.groups || []).indexOf(t.itemId) > -1,\r\n shareItem: (cur.groups || []).indexOf(t.itemId) > -1,\r\n type: cur.type,\r\n typeKeywords: cur.item.typeKeywords\r\n });\r\n }\r\n return prev;\r\n }, []) : [];\r\n}\r\n\r\nfunction _getIsResource(\r\n template: any\r\n): boolean {\r\n return template.type !== \"Group\" && JSON.stringify(template.data) === \"{}\";\r\n}\r\n\r\nfunction _getTopLevelItemIds(templates: any[]) {\r\n // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on\r\n const topLevelItemCandidateIds = templates.map((template) => template.itemId);\r\n templates.forEach((template) => {\r\n (template.dependencies || []).forEach((dependencyId) => {\r\n const iNode = topLevelItemCandidateIds.indexOf(dependencyId);\r\n if (iNode >= 0) {\r\n // Node is somebody's dependency, so remove the node from the list of top-level nodes\r\n // If iNode == -1, then it's a shared dependency and it has already been removed\r\n topLevelItemCandidateIds.splice(iNode, 1);\r\n }\r\n });\r\n });\r\n return topLevelItemCandidateIds;\r\n}\r\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"time-a3b29c35.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AAEY,MAAC,0BAA0B,GAAG,EAAE;AACrC,SAAS,WAAW,CAAC,IAAI,EAAE;AAClC,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;AAC5B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,EAAE,OAAO,YAAY,IAAI,CAAC,IAAI,YAAY,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/D,CAAC;AACM,SAAS,eA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AC,GAAG,cAAc,CAAC;AACvF;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/time.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { isValidNumber } from \"./number\";\nexport const maxTenthForMinuteAndSecond = 5;\nexport function getMeridiem(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n return hourAsNumber >= 0 && hourAsNumber <= 11 ? \"AM\" : \"PM\";\n}\nexport function getMeridiemHour(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n if (hourAsNumber === 0) {\n return \"12\";\n }\n return hourAsNumber > 12 ? formatTimePart(hourAsNumber - 12) : hour;\n}\nexport function parseTimeString(value) {\n const timeString = formatTimeString(value);\n const [hour, minute, second] = timeString ? timeString.split(\":\") : [null, null, null];\n return {\n hour,\n minute,\n second: second || (hour && minute ? \"00\" : null)\n };\n}\nexport function formatTimeString(value) {\n if (!value || value.endsWith(\":\") || value.startsWith(\":\")) {\n return null;\n }\n const splitValue = value.split(\":\");\n if (splitValue.length > 1) {\n const [hour, minute, second] = splitValue;\n const hourAsNumber = parseInt(splitValue[0]);\n const minuteAsNumber = parseInt(splitValue[1]);\n const secondAsNumber = parseInt(splitValue[2]);\n const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;\n const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;\n const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;\n if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {\n let newValue = `${formatTimePart(hourAsNumber)}:${formatTimePart(minuteAsNumber)}`;\n if (secondValid) {\n newValue = `${newValue}:${formatTimePart(secondAsNumber)}`;\n }\n return newValue;\n }\n }\n return null;\n}\nexport function formatTimePart(number) {\n const numberAsString = number.toString();\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,CAAC,KAAK,EAAE,EAAE;AACzI,CAAC;AACM,SAAS,eAAe,CAAC,IAAI,EAAE;AACtC,EAAE,OAAO,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC,CAAC;AACzE,CAAC;AACM,SAAS,iBAAiB,CAAC,IAAI,EAAE;AACxC,EAAE,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAChF,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1D,CAAC;AACM,SAAS,QAAQ,CAAC,OAAO,EAAE;AAIlC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,yEAAyE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;AAC7K,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/utils.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const ComboboxItem = \"CALCITE-COMBOBOX-ITEM\";\nexport const ComboboxItemGroup = \"CALCITE-COMBOBOX-ITEM-GROUP\";\nexport const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;\nexport const ComboboxDefaultPlacement = \"bottom-leading\";\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { nodeListToArray } from \"../../utils/dom\";\nimport { ComboboxChildSelector } from \"./resources\";\nimport { Build } from \"@stencil/core\";\nexport function getAncestors(element) {\n var _a, _b;\n const parent = (_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.closest(ComboboxChildSelector);\n const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);\n return [parent, grandparent].filter((el) => el);\n}\nexport function getItemAncestors(item) {\n var _a;\n return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === \"CALCITE-COMBOBOX-ITEM\")) || []);\n}\nexport function getItemChildren(item) {\n return nodeListToArray(item.querySelectorAll(\"calcite-combobox-item\"));\n}\nexport function hasActiveChildren(node) {\n const items = nodeListToArray(node.querySelectorAll(\"calcite-combobox-item\"));\n return items.filter((item) => item.selected).length > 0;\n}\nexport function getDepth(element) {\n if (!Build.isBrowser) {\n return 0;\n }\n const result = document.evaluate(\"ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group\", element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n return result.snapshotLength;\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"utils-5fdd203c.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;AAC5B,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;AAClF,KAAK,QAAQ,CAAC,EAAE,CAAC;AACjB,KAAK,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACtC,CAAC;AACW,MAAC,OAAO,GAAG,cAAc;AACrC,M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AAG,EAAE,GAAG,CAAC,EAAE;AAChD,MAAM,OAAO,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC;AACvF,KAAK;AACL,IAAI,IAAI,WAAW,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;AAChD,MAAM,OAAO,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC;AACvF,KAAK;AACL,IAAI,IAAI,WAAW,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;AAChD,MAAM,OAAO,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC;AACvF,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,CAAC;AACD,SAAS,WAAW,CAAC,WAAW,EAAE,GAAG,QAAQ,EAAE;AAC/C,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,OAAO,IAAI,WAAW,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC;AAC5F,CAAC;AACM,SAAS,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE;AAC3C,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,OAAO,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;AACvJ;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker/utils.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport function rgbToHex(color) {\n const { r, g, b } = color;\n return `#${r.toString(16).padStart(2, \"0\")}${g.toString(16).padStart(2, \"0\")}${b\n .toString(16)\n .padStart(2, \"0\")}`.toLowerCase();\n}\nexport const hexChar = /^[0-9A-F]$/i;\nconst shortHandHex = /^#[0-9A-F]{3}$/i;\nconst longhandHex = /^#[0-9A-F]{6}$/i;\nexport function isValidHex(hex) {\n return isShorthandHex(hex) || isLonghandHex(hex);\n}\nexport function isShorthandHex(hex) {\n return hex && hex.length === 4 && shortHandHex.test(hex);\n}\nexport function isLonghandHex(hex) {\n return hex && hex.length === 7 && longhandHex.test(hex);\n}\nexport function normalizeHex(hex) {\n hex = hex.toLowerCase();\n if (!hex.startsWith(\"#\")) {\n hex = `#${hex}`;\n }\n if (isShorthandHex(hex)) {\n return rgbToHex(hexToRGB(hex));\n }\n return hex;\n}\nexport function hexToRGB(hex) {\n if (!isValidHex(hex)) {\n return null;\n }\n hex = hex.replace(\"#\", \"\");\n if (hex.length === 3) {\n const [first, second, third] = hex.split(\"\");\n const r = parseInt(`${first}${first}`, 16);\n const g = parseInt(`${second}${second}`, 16);\n const b = parseInt(`${third}${third}`, 16);\n return { r, g, b };\n }\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return { r, g, b };\n}\n// these utils allow users to pass enum values as strings without having to access the enum\n// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,\nconst enumify = (x) => x;\nexport const CSSColorMode = enumify({\n HEX: \"hex\",\n HEXA: \"hexa\",\n RGB_CSS: \"rgb-css\",\n RGBA_CSS: \"rgba-css\",\n HSL_CSS: \"hsl-css\",\n HSLA_CSS: \"hsla-css\"\n});\nexport const ObjectColorMode = enumify({\n RGB: \"rgb\",\n RGBA: \"rgba\",\n HSL: \"hsl\",\n HSLA: \"hsla\",\n HSV: \"hsv\",\n HSVA: \"hsva\"\n});\nexport function parseMode(colorValue) {\n if (typeof colorValue === \"string\") {\n if (colorValue.startsWith(\"#\")) {\n const { length } = colorValue;\n if (length === 4 || length === 7) {\n return CSSColorMode.HEX;\n }\n if (length === 5 || length === 9) {\n return CSSColorMode.HEXA;\n }\n }\n if (colorValue.startsWith(\"rgba(\")) {\n return CSSColorMode.RGBA_CSS;\n }\n if (colorValue.startsWith(\"rgb(\")) {\n return CSSColorMode.RGB_CSS;\n }\n if (colorValue.startsWith(\"hsl(\")) {\n return CSSColorMode.HSL_CSS;\n }\n if (colorValue.startsWith(\"hsla(\")) {\n return CSSColorMode.HSLA_CSS;\n }\n }\n if (typeof colorValue === \"object\") {\n if (hasChannels(colorValue, \"r\", \"g\", \"b\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"l\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"v\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;\n }\n }\n return null;\n}\nfunction hasChannels(colorObject, ...channels) {\n return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);\n}\nexport function colorEqual(value1, value2) {\n return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());\n}\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as a,c as t,h as e,g as i}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
|
-
*/const n={handle:"handle",handleActivated:"handle--activated"};const o={drag:"drag"};const r="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex}.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}";let c=class{constructor(e){a(this,e);this.calciteHandleNudge=t(this,"calciteHandleNudge",7);this.activated=false;this.textTitle="handle";this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated;break;case"ArrowUp":case"ArrowDown":if(!this.activated){return}const t=a.key.toLowerCase().replace("arrow","");this.calciteHandleNudge.emit({handle:this.el,direction:t});break}};this.handleBlur=()=>{this.activated=false}}async setFocus(){this.handleButton.focus()}render(){return e("span",{"aria-pressed":this.activated.toString(),class:{[n.handle]:true,[n.handleActivated]:this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:a=>{this.handleButton=a},role:"button",tabindex:"0",title:this.textTitle},e("calcite-icon",{icon:o.drag,scale:"s"}))}get el(){return i(this)}};c.style=r;export{c as calcite_handle};
|
11
|
-
//# sourceMappingURL=p-019fe34e.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-handle/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-handle/calcite-handle.css?tag=calcite-handle&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-handle/calcite-handle.js"],"names":["CSS","handle","handleActivated","ICONS","drag","calciteHandleCss","CalciteHandle","[object Object]","hostRef","this","activated","textTitle","handleKeyDown","event","key","direction","toLowerCase","replace","calciteHandleNudge","emit","el","handleBlur","handleButton","focus","h","aria-pressed","toString","class","onBlur","onKeyDown","ref","role","tabindex","title","icon","scale"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,OAAQ,SACRC,gBAAiB,qBAEZ,MAAMC,EAAQ,CACnBC,KAAM,QCTR,MAAMC,EAAmB,i8CCMZC,EAAa,MACxBC,YAAAC,oEASEC,KAAKC,UAAY,MAIjBD,KAAKE,UAAY,SAMjBF,KAAKG,cAAiBC,IACpB,OAAQA,EAAMC,KACZ,IAAK,IACHL,KAAKC,WAAaD,KAAKC,UACvB,MACF,IAAK,UACL,IAAK,YACH,IAAKD,KAAKC,UAAW,CACnB,OAEF,MAAMK,EAAYF,EAAMC,IAAIE,cAAcC,QAAQ,QAAS,IAC3DR,KAAKS,mBAAmBC,KAAK,CAAElB,OAAQQ,KAAKW,GAAIL,UAAAA,IAChD,QAGNN,KAAKY,WAAa,KAChBZ,KAAKC,UAAY,OASrBH,iBACEE,KAAKa,aAAaC,QAOpBhB,SACE,OAEAiB,EAAE,OAAQ,CAAEC,eAAgBhB,KAAKC,UAAUgB,WAAYC,MAAO,CAAEpB,CAACP,EAAIC,QAAS,KAAMM,CAACP,EAAIE,iBAAkBO,KAAKC,WAAakB,OAAQnB,KAAKY,WAAYQ,UAAWpB,KAAKG,cAAekB,IAAMV,IACvLX,KAAKa,aAAeF,GACnBW,KAAM,SAAUC,SAAU,IAAKC,MAAOxB,KAAKE,WAC9Ca,EAAE,eAAgB,CAAEU,KAAM/B,EAAMC,KAAM+B,MAAO","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n handle: \"handle\",\n handleActivated: \"handle--activated\"\n};\nexport const ICONS = {\n drag: \"drag\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n}\n\n.handle {\n display: flex;\n align-items: center;\n align-self: stretch;\n justify-content: center;\n background-color: transparent;\n border-style: none;\n cursor: move;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n color: var(--calcite-ui-border-3);\n padding: 0.75rem 0.25rem;\n line-height: 0;\n}\n\n.handle:hover {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n.handle:focus {\n color: var(--calcite-ui-text-1);\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.handle--activated {\n background-color: var(--calcite-ui-foreground-3);\n color: var(--calcite-ui-text-1);\n}\n\n.handle calcite-icon {\n color: inherit;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Method, Prop, h } from \"@stencil/core\";\nimport { CSS, ICONS } from \"./resources\";\nexport class CalciteHandle {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * @internal - stores the activated state of the drag handle.\n */\n this.activated = false;\n /**\n * Value for the button title attribute\n */\n this.textTitle = \"handle\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.handleKeyDown = (event) => {\n switch (event.key) {\n case \" \":\n this.activated = !this.activated;\n break;\n case \"ArrowUp\":\n case \"ArrowDown\":\n if (!this.activated) {\n return;\n }\n const direction = event.key.toLowerCase().replace(\"arrow\", \"\");\n this.calciteHandleNudge.emit({ handle: this.el, direction });\n break;\n }\n };\n this.handleBlur = () => {\n this.activated = false;\n };\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.handleButton.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (\n // Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486\n h(\"span\", { \"aria-pressed\": this.activated.toString(), class: { [CSS.handle]: true, [CSS.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {\n this.handleButton = el;\n }, role: \"button\", tabindex: \"0\", title: this.textTitle },\n h(\"calcite-icon\", { icon: ICONS.drag, scale: \"s\" })));\n }\n static get is() { return \"calcite-handle\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-handle.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-handle.css\"]\n }; }\n static get properties() { return {\n \"activated\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"- stores the activated state of the drag handle.\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"activated\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"textTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Value for the button title attribute\"\n },\n \"attribute\": \"text-title\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"handle\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteHandleNudge\",\n \"name\": \"calciteHandleNudge\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the the handle is activated and the up or down arrow key is pressed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as a,H as e,g as o}from"./p-2e1cd889.js";import{I as s}from"./p-291cbb4f.js";import{g as n}from"./p-ec178ea9.js";import{C as r,S as c}from"./p-44e661a2.js";import{b as l}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
|
-
*/const d={drag:"drag"};const h={actionsEnd:"actions-end",actionsStart:"actions-start"};const m="@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);margin-bottom:1px;display:flex;box-shadow:0 1px 0 var(--calcite-ui-border-3);transition:background-color 150ms ease-in-out, box-shadow 150ms ease-in-out}:host *{box-sizing:border-box}calcite-pick-list-item{box-shadow:none;flex-grow:1;position:relative;margin:0}:host([active]),:host([selected]){box-shadow:0 0 0 1px var(--calcite-ui-brand)}.handle{display:flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;background-color:transparent;border-style:none;color:var(--calcite-ui-text-1);cursor:move;color:var(--calcite-ui-border-1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{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}";let u=class{constructor(a){t(this,a);this.calciteListItemRemove=i(this,"calciteListItemRemove",7);this.disabled=false;this.disableDeselect=false;this.nonInteractive=false;this.handleActivated=false;this.icon=null;this.removable=false;this.selected=false;this.pickListItem=null;this.guid=`calcite-value-list-item-${n()}`;this.getPickListRef=t=>this.pickListItem=t;this.handleKeyDown=t=>{if(t.key===" "){this.handleActivated=!this.handleActivated}};this.handleBlur=()=>{this.handleActivated=false};this.handleSelectChange=t=>{this.selected=t.detail.selected}}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){var t;(t=this.pickListItem)===null||t===void 0?void 0:t.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;const i=l(t,h.actionsEnd);return i?a("slot",{name:h.actionsEnd,slot:c.actionsEnd}):null}renderActionsStart(){const{el:t}=this;const i=l(t,h.actionsStart);return i?a("slot",{name:h.actionsStart,slot:c.actionsStart}):null}renderHandle(){const{icon:t}=this;if(t===s.grip){return a("span",{"aria-pressed":this.handleActivated.toString(),class:{[r.handle]:true,[r.handleActivated]:this.handleActivated},"data-js-handle":true,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0"},a("calcite-icon",{icon:d.drag,scale:"s"}))}}render(){return a(e,{id:this.el.id||this.guid},this.renderHandle(),a("calcite-pick-list-item",{description:this.description,disableDeselect:this.disableDeselect,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,ref:this.getPickListRef,removable:this.removable,selected:this.selected,value:this.value},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return o(this)}};u.style=m;export{u as calcite_value_list_item};
|
11
|
-
//# sourceMappingURL=p-01d537aa.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-value-list-item/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css?tag=calcite-value-list-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js"],"names":["ICONS","drag","SLOTS","actionsEnd","actionsStart","calciteValueListItemCss","CalciteValueListItem","[object Object]","hostRef","this","disabled","disableDeselect","nonInteractive","handleActivated","icon","removable","selected","pickListItem","guid","getPickListRef","el","handleKeyDown","event","key","handleBlur","handleSelectChange","detail","coerce","toggleSelected","_a","setFocus","item","hasActionsEnd","getSlotted","h","name","slot","PICK_LIST_SLOTS","hasActionsStart","ICON_TYPES","grip","aria-pressed","toString","class","CSS","handle","data-js-handle","onBlur","onKeyDown","role","tabindex","scale","Host","id","renderHandle","description","label","metadata","onCalciteListItemChange","ref","value","renderActionsStart","renderActionsEnd"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAQ,CACnBC,KAAM,QAED,MAAMC,EAAQ,CACnBC,WAAY,cACZC,aAAc,iBCThB,MAAMC,EAA0B,o6DCenBC,EAAoB,MAC/BC,YAAAC,0EAIEC,KAAKC,SAAW,MAIhBD,KAAKE,gBAAkB,MAIvBF,KAAK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SAAUC,SAAU,KAC7GhB,EAAE,eAAgB,CAAEpB,KAAMd,EAAMC,KAAMkD,MAAO,QAGnD5C,SACE,OAAQ2B,EAAEkB,EAAM,CAAEC,GAAI5C,KAAKW,GAAGiC,IAAM5C,KAAKS,MACvCT,KAAK6C,eACLpB,EAAE,yBAA0B,CAAEqB,YAAa9C,KAAK8C,YAAa5C,gBAAiBF,KAAKE,gBAAiBD,SAAUD,KAAKC,SAAU8C,MAAO/C,KAAK+C,MAAOC,SAAUhD,KAAKgD,SAAU7C,eAAgBH,KAAKG,eAAgB8C,wBAAyBjD,KAAKgB,mBAAoBkC,IAAKlD,KAAKU,eAAgBJ,UAAWN,KAAKM,UAAWC,SAAUP,KAAKO,SAAU4C,MAAOnD,KAAKmD,OACxVnD,KAAKoD,qBACLpD,KAAKqD","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const ICONS = {\n drag: \"drag\"\n};\nexport const SLOTS = {\n actionsEnd: \"actions-end\",\n actionsStart: \"actions-start\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n margin-bottom: 1px;\n display: flex;\n box-shadow: 0 1px 0 var(--calcite-ui-border-3);\n transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\ncalcite-pick-list-item {\n box-shadow: none;\n flex-grow: 1;\n position: relative;\n margin: 0;\n}\n\n:host([active]),\n:host([selected]) {\n box-shadow: 0 0 0 1px var(--calcite-ui-brand);\n}\n\n.handle {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n background-color: transparent;\n border-style: none;\n color: var(--calcite-ui-text-1);\n cursor: move;\n color: var(--calcite-ui-border-1);\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n.handle:hover {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n.handle:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.handle--activated {\n background-color: var(--calcite-ui-foreground-3);\n color: var(--calcite-ui-text-1);\n}\n\n.handle calcite-icon {\n color: inherit;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Host, Listen, Method, Prop } from \"@stencil/core\";\nimport { ICON_TYPES } from \"../calcite-pick-list/resources\";\nimport { guid } from \"../../utils/guid\";\nimport { CSS } from \"../calcite-pick-list-item/resources\";\nimport { ICONS, SLOTS } from \"./resources\";\nimport { SLOTS as PICK_LIST_SLOTS } from \"../calcite-pick-list-item/resources\";\nimport { getSlotted } from \"../../utils/dom\";\n/**\n * @slot actions-end - A slot for adding actions or content to the end side of the item.\n * @slot actions-start - A slot for adding actions or content to the start side of the item.\n */\nexport class CalciteValueListItem {\n constructor() {\n /**\n * When true, the item cannot be clicked and is visually muted\n */\n this.disabled = false;\n /**\n * @internal When false, the item cannot be deselected by user interaction.\n */\n this.disableDeselect = false;\n /**\n * When true, prevents the content of the list item from user interaction.\n */\n this.nonInteractive = false;\n /**\n * @internal - stores the activated state of the drag handle.\n */\n this.handleActivated = false;\n /**\n * Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\n * @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\n */\n this.icon = null;\n /**\n * Set this to true to display a remove action that removes the item from the list.\n */\n this.removable = false;\n /**\n * Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\n */\n this.selected = false;\n this.pickListItem = null;\n this.guid = `calcite-value-list-item-${guid()}`;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.getPickListRef = (el) => (this.pickListItem = el);\n this.handleKeyDown = (event) => {\n if (event.key === \" \") {\n this.handleActivated = !this.handleActivated;\n }\n };\n this.handleBlur = () => {\n this.handleActivated = false;\n };\n this.handleSelectChange = (event) => {\n this.selected = event.detail.selected;\n };\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Used to toggle the selection state. By default this won't trigger an event.\n * The first argument allows the value to be coerced, rather than swapping values.\n */\n async toggleSelected(coerce) {\n this.pickListItem.toggleSelected(coerce);\n }\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.pickListItem) === null || _a === void 0 ? void 0 : _a.setFocus();\n }\n calciteListItemChangeHandler(event) {\n // adjust item payload from wrapped item before bubbling\n event.detail.item = this.el;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderActionsEnd() {\n const { el } = this;\n const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);\n return hasActionsEnd ? (h(\"slot\", { name: SLOTS.actionsEnd, slot: PICK_LIST_SLOTS.actionsEnd })) : null;\n }\n renderActionsStart() {\n const { el } = this;\n const hasActionsStart = getSlotted(el, SLOTS.actionsStart);\n return hasActionsStart ? (h(\"slot\", { name: SLOTS.actionsStart, slot: PICK_LIST_SLOTS.actionsStart })) : null;\n }\n renderHandle() {\n const { icon } = this;\n if (icon === ICON_TYPES.grip) {\n return (h(\"span\", { \"aria-pressed\": this.handleActivated.toString(), class: {\n [CSS.handle]: true,\n [CSS.handleActivated]: this.handleActivated\n }, \"data-js-handle\": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: \"button\", tabindex: \"0\" },\n h(\"calcite-icon\", { icon: ICONS.drag, scale: \"s\" })));\n }\n }\n render() {\n return (h(Host, { id: this.el.id || this.guid },\n this.renderHandle(),\n h(\"calcite-pick-list-item\", { description: this.description, disableDeselect: this.disableDeselect, disabled: this.disabled, label: this.label, metadata: this.metadata, nonInteractive: this.nonInteractive, onCalciteListItemChange: this.handleSelectChange, ref: this.getPickListRef, removable: this.removable, selected: this.selected, value: this.value },\n this.renderActionsStart(),\n this.renderActionsEnd())));\n }\n static get is() { return \"calcite-value-list-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-value-list-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-value-list-item.css\"]\n }; }\n static get properties() { return {\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An optional description for this item. Will appear below the label text.\"\n },\n \"attribute\": \"description\",\n \"reflect\": true\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, the item cannot be clicked and is visually muted\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableDeselect\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"When false, the item cannot be deselected by user interaction.\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"disable-deselect\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"nonInteractive\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, prevents the content of the list item from user interaction.\"\n },\n \"attribute\": \"non-interactive\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"handleActivated\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"- stores the activated state of the drag handle.\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"handle-activated\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ICON_TYPES | null\",\n \"resolved\": \"ICON_TYPES.circle | ICON_TYPES.grip | ICON_TYPES.square\",\n \"references\": {\n \"ICON_TYPES\": {\n \"location\": \"import\",\n \"path\": \"../calcite-pick-list/resources\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-pick-list/resources.ts#L5)\"\n }],\n \"text\": \"Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main label for this item. Appears next to the icon.\"\n },\n \"attribute\": \"label\",\n \"reflect\": true\n },\n \"metadata\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Record<string, unknown>\",\n \"resolved\": \"{ [x: string]: unknown; }\",\n \"references\": {\n \"Record\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to provide additional metadata to an item, primarily used when the parent list has a filter.\"\n }\n },\n \"removable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to display a remove action that removes the item from the list.\"\n },\n \"attribute\": \"removable\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The item's associated value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteListItemRemove\",\n \"name\": \"calciteListItemRemove\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the remove button is pressed.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"toggleSelected\": {\n \"complexType\": {\n \"signature\": \"(coerce?: boolean) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Used to toggle the selection state. By default this won't trigger an event.\\nThe first argument allows the value to be coerced, rather than swapping values.\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"calciteListItemChange\",\n \"method\": \"calciteListItemChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tip-manager/resources.js"],"names":["CSS","header","heading","close","container","tipContainer","tipContainerAdvancing","tipContainerRetreating","pagination","pagePosition","pageNext","pagePrevious","ICONS","chevronLeft","chevronRight","TEXT","defaultGroupTitle","defaultPaginationLabel","previous","next","HEADING_LEVEL"],"mappings":";;;;;;;;;AAIY,MAACA,EAAM,CACjBC,OAAQ,SACRC,QAAS,UACTC,MAAO,QACPC,UAAW,YACXC,aAAc,gBACdC,sBAAuB,2BACvBC,uBAAwB,4BACxBC,WAAY,aACZC,aAAc,gBACdC,SAAU,YACVC,aAAc,iBAEJ,MAACC,EAAQ,CACnBC,YAAa,eACbC,aAAc,gBACdX,MAAO,KAEG,MAACY,EAAO,CAClBC,kBAAmB,OACnBC,uBAAwB,MACxBd,MAAO,QACPe,SAAU,WACVC,KAAM,QAEI,MAACC,EAAgB","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n header: \"header\",\n heading: \"heading\",\n close: \"close\",\n container: \"container\",\n tipContainer: \"tip-container\",\n tipContainerAdvancing: \"tip-container--advancing\",\n tipContainerRetreating: \"tip-container--retreating\",\n pagination: \"pagination\",\n pagePosition: \"page-position\",\n pageNext: \"page-next\",\n pagePrevious: \"page-previous\"\n};\nexport const ICONS = {\n chevronLeft: \"chevron-left\",\n chevronRight: \"chevron-right\",\n close: \"x\"\n};\nexport const TEXT = {\n defaultGroupTitle: \"Tips\",\n defaultPaginationLabel: \"Tip\",\n close: \"Close\",\n previous: \"Previous\",\n next: \"Next\"\n};\nexport const HEADING_LEVEL = 2;\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as a,g as s}from"./p-2e1cd889.js";import{g as e}from"./p-e762b2d1.js";import{c as n,d as r,g as l}from"./p-cb5cb9a8.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const o={wrapper:"wrapper",confirmChangesButton:"confirm-changes-button",cancelEditingButton:"cancel-editing-button",inputWrapper:"input-wrapper",cancelEditingButtonWrapper:"cancel-editing-button-wrapper",enableEditingButton:"enable-editing-button",controlsWrapper:"controls-wrapper"};const c={intlEnablingEditing:"Click to edit",intlCancelEditing:"Cancel",intlConfirmChanges:"Save"};const h="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) .controls-wrapper{height:1.5rem}:host([scale=m]) .controls-wrapper{height:2rem}:host([scale=l]) .controls-wrapper{height:2.75rem}:host(:not([editing-enabled]):not([disabled])) .wrapper:hover{background-color:var(--calcite-ui-foreground-2)}.wrapper{box-sizing:border-box;display:flex;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}.wrapper .input-wrapper{flex:1 1 0%}.controls-wrapper{display:flex}:host([disabled]) .cancel-editing-button-wrapper{border-color:var(--calcite-ui-border-2)}";let d=class{constructor(a){t(this,a);this.calciteInlineEditableEditingCancel=i(this,"calciteInlineEditableEditingCancel",7);this.calciteInlineEditableChangesConfirm=i(this,"calciteInlineEditableChangesConfirm",7);this.calciteInlineEditableEnableEditingChange=i(this,"calciteInlineEditableEnableEditingChange",7);this.disabled=false;this.editingEnabled=false;this.loading=false;this.controls=false;this.intlEnableEditing=c.intlEnablingEditing;this.intlCancelEditing=c.intlCancelEditing;this.intlConfirmChanges=c.intlConfirmChanges;this.transitionEnd=t=>{if(!this.editingEnabled&&!!this.shouldEmitCancel){this.calciteInlineEditableEditingCancel.emit(t)}};this.enableEditing=()=>{this.valuePriorToEditing=this.inputElement.value;this.editingEnabled=true;this.inputElement.setFocus();this.calciteInlineEditableEnableEditingChange.emit()};this.disableEditing=()=>{this.editingEnabled=false};this.cancelEditing=()=>{this.inputElement.value=this.valuePriorToEditing;this.disableEditing();this.enableEditingButton.setFocus()};this.escapeKeyHandler=async t=>{if(t.key!=="Escape"){if(t.key==="Tab"&&this.shouldShowControls){if(!t.shiftKey&&t.target===this.inputElement){t.preventDefault();this.cancelEditingButton.setFocus()}if(!!t.shiftKey&&t.target===this.cancelEditingButton){t.preventDefault();t.stopPropagation();this.inputElement.setFocus()}}return}this.cancelEditing()};this.cancelEditingHandler=async t=>{t.preventDefault();t.stopPropagation();this.cancelEditing()};this.enableEditingHandler=async t=>{t.preventDefault();t.stopPropagation();if(this.disabled){return}if(!this.editingEnabled){this.enableEditing()}};this.confirmChangesHandler=async t=>{t.preventDefault();t.stopPropagation();this.calciteInlineEditableChangesConfirm.emit();try{if(this.afterConfirm){this.loading=true;await this.afterConfirm();this.disableEditing();this.enableEditingButton.setFocus()}}catch(t){}finally{this.loading=false}}}disabledWatcher(t){this.inputElement.disabled=t}editingEnabledWatcher(t,i){this.inputElement.editingEnabled=t;if(!t&&!!i){this.shouldEmitCancel=true}}connectedCallback(){n(this)}disconnectedCallback(){r(this)}componentWillLoad(){this.inputElement=this.el.querySelector("calcite-input");this.inputElement.disabled=this.disabled;this.inputElement.label=this.inputElement.label||l(this);this.scale=this.scale||this.inputElement.scale||e(this.el,"scale",undefined)}render(){return a("div",{class:o.wrapper,onClick:this.enableEditingHandler,onKeyDown:this.escapeKeyHandler,onTransitionEnd:this.transitionEnd},a("div",{class:o.inputWrapper},a("slot",null)),a("div",{class:o.controlsWrapper},a("calcite-button",{appearance:"transparent",class:o.enableEditingButton,color:"neutral",disabled:this.disabled,iconStart:"pencil",label:this.intlEnableEditing,onClick:this.enableEditingHandler,ref:t=>this.enableEditingButton=t,scale:this.scale,style:{opacity:this.editingEnabled?"0":"1",width:this.editingEnabled?"0":"inherit"}}),this.shouldShowControls&&[a("div",{class:o.cancelEditingButtonWrapper},a("calcite-button",{appearance:"transparent",class:o.cancelEditingButton,color:"neutral",disabled:this.disabled,iconStart:"x",label:this.intlCancelEditing,onClick:this.cancelEditingHandler,ref:t=>this.cancelEditingButton=t,scale:this.scale})),a("calcite-button",{appearance:"solid",class:o.confirmChangesButton,color:"blue",disabled:this.disabled,iconStart:"check",label:this.intlConfirmChanges,loading:this.loading,onClick:this.confirmChangesHandler,scale:this.scale})]))}blurHandler(){if(!this.controls){this.disableEditing()}}async setFocus(){var t,i;if(this.editingEnabled){(t=this.inputElement)===null||t===void 0?void 0:t.setFocus()}else{(i=this.enableEditingButton)===null||i===void 0?void 0:i.setFocus()}}onLabelClick(){this.setFocus()}get shouldShowControls(){return this.editingEnabled&&this.controls}get el(){return s(this)}static get watchers(){return{disabled:["disabledWatcher"],editingEnabled:["editingEnabledWatcher"]}}};d.style=h;export{d as calcite_inline_editable};
|
11
|
-
//# sourceMappingURL=p-05da6de1.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-inline-editable/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css?tag=calcite-inline-editable&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js"],"names":["CSS","wrapper","confirmChangesButton","cancelEditingButton","inputWrapper","cancelEditingButtonWrapper","enableEditingButton","controlsWrapper","TEXT","intlEnablingEditing","intlCancelEditing","intlConfirmChanges","calciteInlineEditableCss","CalciteInlineEditable","[object Object]","hostRef","this","disabled","editingEnabled","loading","controls","intlEnableEditing","transitionEnd","event","shouldEmitCancel","calciteInlineEditableEditingCancel","emit","enableEditing","valuePriorToEditing","inputElement","value","setFocus","calciteInlineEditableEnableEditingChange","disableEditing","cancelEditing","escapeKeyHandler","async","e","key","shouldShowControls","shiftKey","target","preventDefault","stopPropagation","cancelEditingHandler","enableEditingHandler","confirmChangesHandler","calciteInlineEditableChangesConfirm","afterConfirm","newValue","oldValue","connectLabel","disconnectLabel","el","querySelector","label","getLabelText","scale","getElementProp","undefined","h","class","onClick","onKeyDown","onTransitionEnd","appearance","color","iconStart","ref","style","opacity","width","_a","_b"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,QAAS,UACTC,qBAAsB,yBACtBC,oBAAqB,wBACrBC,aAAc,gBACdC,2BAA4B,gCAC5BC,oBAAqB,wBACrBC,gBAAiB,oBAEZ,MAAMC,EAAO,CAClBC,oBAAqB,gBACrBC,kBAAmB,SACnBC,mBAAoB,QChBtB,MAAMC,EAA2B,w5CCWpBC,EAAqB,MAChCC,YAAAC,gSAOEC,KAAKC,SAAW,MAEhBD,KAAKE,eAAiB,MAEtBF,KAAKG,QAAU,MAEfH,KAAKI,SAAW,MAIhBJ,KAAKK,kBAAoBb,EAAKC,oBAI9BO,KAAKN,kBAAoBF,EAAKE,kBAI9BM,KAAKL,mBAAqBH,EAAKG,mBAC/BK,KAAKM,cAAiBC,IACpB,IAAKP,KAAKE,kBAAoBF,KAAKQ,iBAAkB,CACnDR,KAAKS,mCAAmCC,KAAKH,KAGjDP,KAAKW,cAAgB,KACnBX,KAAKY,oBAAsBZ,KAAKa,aAAaC,MAC7Cd,KAAKE,eAAiB,KACtBF,KAAKa,aAAaE,WACl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KG,QAAS2C,QAAS9C,KAAK8B,sBAAuBW,MAAOzC,KAAKyC,WAQxP3C,cACE,IAAKE,KAAKI,SAAU,CAClBJ,KAAKiB,kBAQTnB,iBACE,IAAI0D,EAAIC,EACR,GAAIzD,KAAKE,eAAgB,EACtBsD,EAAKxD,KAAKa,gBAAkB,MAAQ2C,SAAY,OAAS,EAAIA,EAAGzC,eAE9D,EACF0C,EAAKzD,KAAKV,uBAAyB,MAAQmE,SAAY,OAAS,EAAIA,EAAG1C,YAQ5EjB,eACEE,KAAKe,WAEPQ,yBACE,OAAOvB,KAAKE,gBAAkBF,KAAKI","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n wrapper: \"wrapper\",\n confirmChangesButton: \"confirm-changes-button\",\n cancelEditingButton: \"cancel-editing-button\",\n inputWrapper: \"input-wrapper\",\n cancelEditingButtonWrapper: \"cancel-editing-button-wrapper\",\n enableEditingButton: \"enable-editing-button\",\n controlsWrapper: \"controls-wrapper\"\n};\nexport const TEXT = {\n intlEnablingEditing: \"Click to edit\",\n intlCancelEditing: \"Cancel\",\n intlConfirmChanges: \"Save\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([scale=s]) .controls-wrapper {\n height: 1.5rem;\n}\n\n:host([scale=m]) .controls-wrapper {\n height: 2rem;\n}\n\n:host([scale=l]) .controls-wrapper {\n height: 2.75rem;\n}\n\n:host(:not([editing-enabled]):not([disabled])) .wrapper:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.wrapper {\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n background-color: var(--calcite-ui-foreground-1);\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n}\n\n.wrapper .input-wrapper {\n flex: 1 1 0%;\n}\n\n.controls-wrapper {\n display: flex;\n}\n\n:host([disabled]) .cancel-editing-button-wrapper {\n border-color: var(--calcite-ui-border-2);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Listen, Method, Prop, Watch } from \"@stencil/core\";\nimport { getElementProp } from \"../../utils/dom\";\nimport { TEXT, CSS } from \"./resources\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\n/**\n * @slot - A slot for adding a `calcite-input`.\n */\nexport class CalciteInlineEditable {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Props\n //\n //--------------------------------------------------------------------------\n /** specify whether editing can be enabled */\n this.disabled = false;\n /** specify whether the wrapped input element is editable, defaults to false */\n this.editingEnabled = false;\n /** specify whether the confirm button should display a loading state, defaults to false */\n this.loading = false;\n /** specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false */\n this.controls = false;\n /** specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`\n * @default \"Click to edit\"\n */\n this.intlEnableEditing = TEXT.intlEnablingEditing;\n /** specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`\n * @default \"Cancel\"\n */\n this.intlCancelEditing = TEXT.intlCancelEditing;\n /** specify text to be user for the confirm changes button's aria-label, defaults to `Save`\n * @default \"Save\"\n */\n this.intlConfirmChanges = TEXT.intlConfirmChanges;\n this.transitionEnd = (event) => {\n if (!this.editingEnabled && !!this.shouldEmitCancel) {\n this.calciteInlineEditableEditingCancel.emit(event);\n }\n };\n this.enableEditing = () => {\n this.valuePriorToEditing = this.inputElement.value;\n this.editingEnabled = true;\n this.inputElement.setFocus();\n this.calciteInlineEditableEnableEditingChange.emit();\n };\n this.disableEditing = () => {\n this.editingEnabled = false;\n };\n this.cancelEditing = () => {\n this.inputElement.value = this.valuePriorToEditing;\n this.disableEditing();\n this.enableEditingButton.setFocus();\n };\n this.escapeKeyHandler = async (e) => {\n if (e.key !== \"Escape\") {\n if (e.key === \"Tab\" && this.shouldShowControls) {\n if (!e.shiftKey && e.target === this.inputElement) {\n e.preventDefault();\n this.cancelEditingButton.setFocus();\n }\n if (!!e.shiftKey && e.target === this.cancelEditingButton) {\n e.preventDefault();\n e.stopPropagation();\n this.inputElement.setFocus();\n }\n }\n return;\n }\n this.cancelEditing();\n };\n this.cancelEditingHandler = async (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.cancelEditing();\n };\n this.enableEditingHandler = async (e) => {\n e.preventDefault();\n e.stopPropagation();\n if (this.disabled) {\n return;\n }\n if (!this.editingEnabled) {\n this.enableEditing();\n }\n };\n this.confirmChangesHandler = async (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.calciteInlineEditableChangesConfirm.emit();\n try {\n if (this.afterConfirm) {\n this.loading = true;\n await this.afterConfirm();\n this.disableEditing();\n this.enableEditingButton.setFocus();\n }\n }\n catch (e) {\n }\n finally {\n this.loading = false;\n }\n };\n }\n disabledWatcher(disabled) {\n this.inputElement.disabled = disabled;\n }\n editingEnabledWatcher(newValue, oldValue) {\n this.inputElement.editingEnabled = newValue;\n if (!newValue && !!oldValue) {\n this.shouldEmitCancel = true;\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n connectLabel(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n }\n componentWillLoad() {\n this.inputElement = this.el.querySelector(\"calcite-input\");\n this.inputElement.disabled = this.disabled;\n this.inputElement.label = this.inputElement.label || getLabelText(this);\n this.scale =\n this.scale || this.inputElement.scale || getElementProp(this.el, \"scale\", undefined);\n }\n render() {\n return (h(\"div\", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd },\n h(\"div\", { class: CSS.inputWrapper },\n h(\"slot\", null)),\n h(\"div\", { class: CSS.controlsWrapper },\n h(\"calcite-button\", { appearance: \"transparent\", class: CSS.enableEditingButton, color: \"neutral\", disabled: this.disabled, iconStart: \"pencil\", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {\n opacity: this.editingEnabled ? \"0\" : \"1\",\n width: this.editingEnabled ? \"0\" : \"inherit\"\n } }),\n this.shouldShowControls && [\n h(\"div\", { class: CSS.cancelEditingButtonWrapper },\n h(\"calcite-button\", { appearance: \"transparent\", class: CSS.cancelEditingButton, color: \"neutral\", disabled: this.disabled, iconStart: \"x\", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),\n h(\"calcite-button\", { appearance: \"solid\", class: CSS.confirmChangesButton, color: \"blue\", disabled: this.disabled, iconStart: \"check\", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })\n ])));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n blurHandler() {\n if (!this.controls) {\n this.disableEditing();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n async setFocus() {\n var _a, _b;\n if (this.editingEnabled) {\n (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();\n }\n else {\n (_b = this.enableEditingButton) === null || _b === void 0 ? void 0 : _b.setFocus();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.setFocus();\n }\n get shouldShowControls() {\n return this.editingEnabled && this.controls;\n }\n static get is() { return \"calcite-inline-editable\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-inline-editable.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-inline-editable.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether editing can be enabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"editingEnabled\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether the wrapped input element is editable, defaults to false\"\n },\n \"attribute\": \"editing-enabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether the confirm button should display a loading state, defaults to false\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"controls\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false\"\n },\n \"attribute\": \"controls\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlEnableEditing\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Click to edit\\\"\"\n }],\n \"text\": \"specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`\"\n },\n \"attribute\": \"intl-enable-editing\",\n \"reflect\": true,\n \"defaultValue\": \"TEXT.intlEnablingEditing\"\n },\n \"intlCancelEditing\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Cancel\\\"\"\n }],\n \"text\": \"specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`\"\n },\n \"attribute\": \"intl-cancel-editing\",\n \"reflect\": true,\n \"defaultValue\": \"TEXT.intlCancelEditing\"\n },\n \"intlConfirmChanges\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Save\\\"\"\n }],\n \"text\": \"specify text to be user for the confirm changes button's aria-label, defaults to `Save`\"\n },\n \"attribute\": \"intl-confirm-changes\",\n \"reflect\": true,\n \"defaultValue\": \"TEXT.intlConfirmChanges\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the inline-editable component, defaults to the scale of the wrapped calcite-input or the scale of the closest wrapping component with a set scale\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n },\n \"afterConfirm\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"() => Promise<void>\",\n \"resolved\": \"() => Promise<void>\",\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"when controls, specify a callback to be executed prior to disabling editing. when provided, loading state will be handled automatically.\"\n }\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteInlineEditableEditingCancel\",\n \"name\": \"calciteInlineEditableEditingCancel\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInlineEditableChangesConfirm\",\n \"name\": \"calciteInlineEditableChangesConfirm\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInlineEditableEnableEditingChange\",\n \"name\": \"calciteInlineEditableEnableEditingChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"disabled\",\n \"methodName\": \"disabledWatcher\"\n }, {\n \"propName\": \"editingEnabled\",\n \"methodName\": \"editingEnabledWatcher\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteInputBlur\",\n \"method\": \"blurHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as e,H as s,g as a}from"./p-2e1cd889.js";import{g as o}from"./p-7df393df.js";import{a as r,C as n,f as c}from"./p-e762b2d1.js";import{C as p,u as l,c as d}from"./p-fc1c8168.js";import{c as h}from"./p-a10dc180.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const m="bottom-leading";const w={dropdownTrigger:"dropdown-trigger"};const f="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-flex;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .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}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{background-color:var(--calcite-ui-foreground-1);overflow:hidden;overflow-y:auto;width:auto;max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{display:flex;flex:1 1 auto;position:relative}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}:host([scale=s]){--calcite-dropdown-group-padding:0.5rem 0;--calcite-dropdown-item-padding:0.25rem 0.75rem 0.25rem 1.5rem}:host([scale=m]){--calcite-dropdown-group-padding:0.5rem 0;--calcite-dropdown-item-padding:0.5rem 0.75rem 0.5rem 1.5rem}:host([scale=l]){--calcite-dropdown-group-padding:0.75rem 0;--calcite-dropdown-item-padding:0.5rem 0.75rem 0.5rem 1.5rem}:host([scale=s]) .calcite--rtl{--calcite-dropdown-item-padding:0.25rem 1.5rem 0.25rem 0.75rem}:host([scale=m]) .calcite--rtl{--calcite-dropdown-item-padding:0.5rem 1.5rem 0.5rem 0.75rem}:host([scale=l]) .calcite--rtl{--calcite-dropdown-item-padding:0.5rem 1.5rem 0.5rem 0.75rem}";let u=class{constructor(e){t(this,e);this.calciteDropdownSelect=i(this,"calciteDropdownSelect",7);this.calciteDropdownOpen=i(this,"calciteDropdownOpen",7);this.calciteDropdownClose=i(this,"calciteDropdownClose",7);this.active=false;this.disableCloseOnSelect=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.placement=m;this.scale="m";this.selectedItems=[];this.type="click";this.width="m";this.items=[];this.activeTransitionProp="opacity";this.mutationObserver=h("mutation",(()=>this.updateItems()));this.updateItems=()=>{this.updateSelectedItems();this.triggers=Array.from(this.el.querySelectorAll("[slot=dropdown-trigger]"));this.items=Array.from(this.el.querySelectorAll("calcite-dropdown-item"));this.reposition()};this.setMaxScrollerHeight=()=>{const{scrollerEl:t}=this;if(t){const i=this.getMaxScrollerHeight();t.style.maxHeight=i>0?`${i}px`:""}};this.setScrollerEl=t=>{this.scrollerEl=t};this.transitionEnd=t=>{if(t.propertyName===this.activeTransitionProp){this.active?this.calciteDropdownOpen.emit():this.calciteDropdownClose.emit()}};this.setReferenceEl=t=>{this.referenceEl=t};this.setMenuEl=t=>{this.menuEl=t};this.keyDownHandler=t=>{const i=t.target;const e=o(t.key);if(this.triggers.includes(i)||this.triggers.some((t=>t.contains(i)))){if(i.nodeName!=="BUTTON"&&i.nodeName!=="CALCITE-BUTTON"){switch(e){case" ":case"Enter":this.openCalciteDropdown();break;case"Escape":this.closeCalciteDropdown();break}}else if(this.active&&(e==="Escape"||t.shiftKey&&e==="Tab")){this.closeCalciteDropdown()}}};this.focusOnFirstActiveOrFirstItem=()=>{this.getFocusableElement(this.items.find((t=>t.active))||this.items[0])};this.toggleOpenEnd=()=>{this.focusOnFirstActiveOrFirstItem();this.el.removeEventListener("calciteDropdownOpen",this.toggleOpenEnd)};this.openCalciteDropdown=()=>{this.active=!this.active;if(this.active){this.el.addEventListener("calciteDropdownOpen",this.toggleOpenEnd)}}}activeHandler(){this.reposition()}maxItemsHandler(){this.reposition()}placementHandler(){this.reposition()}connectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.createPopper();this.updateItems()}componentDidLoad(){this.reposition()}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper()}render(){const{active:t}=this;const i=r(this.el);return e(s,{tabIndex:this.disabled?-1:null},e("div",{class:{["calcite-dropdown-trigger-container"]:true,[n.rtl]:i==="rtl"},onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},e("slot",{"aria-expanded":t.toString(),"aria-haspopup":"true",name:w.dropdownTrigger})),e("div",{"aria-hidden":(!t).toString(),class:"calcite-dropdown-wrapper",ref:this.setMenuEl},e("div",{class:{["calcite-dropdown-content"]:true,[p.animation]:true,[p.animationActive]:t},onTransitionEnd:this.transitionEnd,ref:this.setScrollerEl},e("slot",null))))}async reposition(){const{popper:t,menuEl:i,placement:e}=this;this.setMaxScrollerHeight();const s=this.getModifiers();t?await l({el:i,modifiers:s,placement:e,popper:t}):this.createPopper()}closeCalciteDropdownOnClick(t){if(!this.active||t.composedPath().includes(this.el)){return}this.closeCalciteDropdown()}closeCalciteDropdownOnEvent(){this.closeCalciteDropdown()}closeCalciteDropdownOnOpenEvent(t){if(t.composedPath().includes(this.el)){return}this.active=false}mouseEnterHandler(){if(this.type==="hover"){this.openCalciteDropdown()}}mouseLeaveHandler(){if(this.type==="hover"){this.closeCalciteDropdown()}}calciteDropdownItemKeyEvent(t){const{keyboardEvent:i}=t.detail;const e=i.target;const s=e.nodeName!=="A"?e:e.parentNode;const a=this.itemIndex(s)===0;const r=this.itemIndex(s)===this.items.length-1;switch(o(i.key)){case"Tab":if(r&&!i.shiftKey){this.closeCalciteDropdown()}else if(a&&i.shiftKey){this.closeCalciteDropdown()}else if(i.shiftKey){this.focusPrevItem(s)}else{this.focusNextItem(s)}break;case"ArrowDown":this.focusNextItem(s);break;case"ArrowUp":this.focusPrevItem(s);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}t.stopPropagation()}handleItemSelect(t){this.updateSelectedItems();t.stopPropagation();this.calciteDropdownSelect.emit();if(!this.disableCloseOnSelect||t.detail.requestedDropdownGroup.selectionMode==="none"){this.closeCalciteDropdown()}}getModifiers(){const t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]}createPopper(){this.destroyPopper();const{menuEl:t,referenceEl:i,placement:e,overlayPositioning:s}=this;const a=this.getModifiers();this.popper=d({el:t,modifiers:a,overlayPositioning:s,placement:e,referenceEl:i})}destroyPopper(){const{popper:t}=this;if(t){t.destroy()}this.popper=null}updateSelectedItems(){const t=Array.from(this.el.querySelectorAll("calcite-dropdown-item"));this.selectedItems=t.filter((t=>t.active))}getMaxScrollerHeight(){const t=Array.from(this.el.querySelectorAll("calcite-dropdown-group"));const{maxItems:i}=this;let e=0;let s=0;let a;t.forEach((t=>{if(i>0&&e<i){Array.from(t.children).forEach(((t,o)=>{if(o===0){if(isNaN(a)){a=t.offsetTop}s+=a}if(e<i){s+=t.offsetHeight;e+=1}}))}}));return s}closeCalciteDropdown(){this.active=false;c(this.triggers[0])}focusFirstItem(){const t=this.items[0];this.getFocusableElement(t)}focusLastItem(){const t=this.items[this.items.length-1];this.getFocusableElement(t)}focusNextItem(t){const i=this.itemIndex(t);const e=this.items[i+1]||this.items[0];this.getFocusableElement(e)}focusPrevItem(t){const i=this.itemIndex(t);const e=this.items[i-1]||this.items[this.items.length-1];this.getFocusableElement(e)}itemIndex(t){return this.items.indexOf(t)}getFocusableElement(t){if(!t){return}const i=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;c(i)}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],placement:["placementHandler"]}}};u.style=f;export{u as calcite_dropdown};
|
11
|
-
//# sourceMappingURL=p-05eb87fc.entry.js.map
|