@esri/solutions-components 0.0.2 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esri/solutions-components might be problematic. Click here for more details.
- package/README.md +6 -5
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
- package/dist/cjs/CalciteHeading-d765addc.js +0 -2
- package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
- package/dist/cjs/array-cd6c0c32.js +0 -2
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
- package/dist/cjs/calcite-action.cjs.entry.js +0 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
- package/dist/cjs/calcite-block.cjs.entry.js +0 -2
- package/dist/cjs/calcite-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-card.cjs.entry.js +0 -2
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
- package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
- package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
- package/dist/cjs/calcite-label.cjs.entry.js +0 -2
- package/dist/cjs/calcite-link.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-option.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
- package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
- package/dist/cjs/calcite-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
- package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
- package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
- package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
- package/dist/cjs/common-a4edb52d.js +216 -0
- package/dist/cjs/date-0554c4d1.js +0 -2
- package/dist/cjs/debounce-df22462b.js +0 -2
- package/dist/cjs/dom-62511f59.js +0 -2
- package/dist/cjs/editStore-36fc36e6.js +2024 -0
- package/dist/cjs/forIn-6a1c2f6d.js +0 -2
- package/dist/cjs/form-0b5b2d4e.js +0 -2
- package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
- package/dist/cjs/guid-c6be9504.js +0 -2
- package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
- package/dist/cjs/index-81c17948.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
- package/dist/cjs/key-2a6290c8.js +0 -2
- package/dist/cjs/label-46482470.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/locale-0db34680.js +0 -2
- package/dist/cjs/math-71f8de66.js +0 -2
- package/dist/cjs/number-697ce34c.js +0 -2
- package/dist/cjs/observers-88bbd6ef.js +0 -2
- package/dist/cjs/popper-8c8dc960.js +0 -2
- package/dist/cjs/request-6905140c.js +550 -0
- package/dist/cjs/resources-20f88094.js +0 -2
- package/dist/cjs/resources-27c22d8a.js +0 -2
- package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
- package/dist/cjs/resources-46af0638.js +0 -2
- package/dist/cjs/resources-509951f9.js +0 -2
- package/dist/cjs/resources-5b7958e4.js +0 -2
- package/dist/cjs/resources-a265534b.js +0 -2
- package/dist/cjs/resources-e231446d.js +0 -2
- package/dist/cjs/resources-ef6c71a1.js +0 -2
- package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
- package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
- package/dist/cjs/solutions.cjs.js +1 -3
- package/dist/cjs/sortable.esm-14548a17.js +0 -2
- package/dist/cjs/store-manager.cjs.entry.js +17 -8
- package/dist/cjs/templates-a0242ced.js +422 -0
- package/dist/cjs/time-c87dc79e.js +0 -2
- package/dist/cjs/utils-c19d354a.js +0 -2
- package/dist/cjs/utils-cb7373e6.js +0 -2
- package/dist/collection/assets/nls/fr/strings.js +2 -0
- package/dist/collection/assets/nls/strings.js +2 -0
- package/dist/collection/collection-manifest.json +9 -9
- package/dist/collection/components/json-editor/json-editor.js +40 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
- package/dist/collection/components/solution-contents/solution-contents.js +12 -3
- package/dist/collection/components/solution-item/solution-item.css +1 -0
- package/dist/collection/components/solution-item/solution-item.js +2 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
- package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
- package/dist/collection/components/solution-variables/solution-variables.js +2 -2
- package/dist/collection/components/store-manager/store-manager.js +49 -5
- package/dist/collection/demos/browse-solutions.html +136 -54
- package/dist/collection/demos/solution-configuration.html +139 -12
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/common.js +25 -77
- package/dist/collection/utils/common.ts +42 -73
- package/dist/collection/utils/editStore.js +0 -1
- package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
- package/dist/collection/utils/interfaces.ts +126 -0
- package/dist/collection/utils/templates.js +8 -6
- package/dist/collection/utils/templates.ts +19 -33
- package/dist/custom-elements/index.js +3161 -152
- package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
- package/dist/esm/CalciteHeading-79b4b347.js +0 -2
- package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
- package/dist/esm/array-71e0c501.js +0 -2
- package/dist/esm/calcite-accordion-item.entry.js +0 -2
- package/dist/esm/calcite-accordion.entry.js +0 -2
- package/dist/esm/calcite-action-bar.entry.js +0 -2
- package/dist/esm/calcite-action-group.entry.js +0 -2
- package/dist/esm/calcite-action-menu_3.entry.js +0 -2
- package/dist/esm/calcite-action-pad.entry.js +0 -2
- package/dist/esm/calcite-action.entry.js +0 -2
- package/dist/esm/calcite-alert.entry.js +0 -2
- package/dist/esm/calcite-avatar.entry.js +0 -2
- package/dist/esm/calcite-block-section.entry.js +0 -2
- package/dist/esm/calcite-block.entry.js +0 -2
- package/dist/esm/calcite-button.entry.js +0 -2
- package/dist/esm/calcite-card.entry.js +0 -2
- package/dist/esm/calcite-checkbox_4.entry.js +0 -2
- package/dist/esm/calcite-chip.entry.js +0 -2
- package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
- package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
- package/dist/esm/calcite-color-picker.entry.js +3 -4
- package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
- package/dist/esm/calcite-combobox-item.entry.js +0 -2
- package/dist/esm/calcite-combobox.entry.js +0 -2
- package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
- package/dist/esm/calcite-date-picker.entry.js +0 -2
- package/dist/esm/calcite-dropdown-group.entry.js +0 -2
- package/dist/esm/calcite-dropdown-item.entry.js +0 -2
- package/dist/esm/calcite-dropdown.entry.js +0 -2
- package/dist/esm/calcite-fab.entry.js +0 -2
- package/dist/esm/calcite-filter.entry.js +0 -2
- package/dist/esm/calcite-flow.entry.js +0 -2
- package/dist/esm/calcite-graph.entry.js +0 -2
- package/dist/esm/calcite-handle.entry.js +0 -2
- package/dist/esm/calcite-icon.entry.js +0 -2
- package/dist/esm/calcite-inline-editable.entry.js +0 -2
- package/dist/esm/calcite-input-date-picker.entry.js +0 -2
- package/dist/esm/calcite-input-message.entry.js +0 -2
- package/dist/esm/calcite-input-time-picker.entry.js +0 -2
- package/dist/esm/calcite-input_2.entry.js +0 -2
- package/dist/esm/calcite-label.entry.js +0 -2
- package/dist/esm/calcite-link.entry.js +0 -2
- package/dist/esm/calcite-list-item-group.entry.js +0 -2
- package/dist/esm/calcite-list-item.entry.js +0 -2
- package/dist/esm/calcite-list.entry.js +0 -2
- package/dist/esm/calcite-loader.entry.js +0 -2
- package/dist/esm/calcite-modal.entry.js +0 -2
- package/dist/esm/calcite-notice.entry.js +0 -2
- package/dist/esm/calcite-option-group.entry.js +0 -2
- package/dist/esm/calcite-option.entry.js +0 -2
- package/dist/esm/calcite-pagination.entry.js +0 -2
- package/dist/esm/calcite-panel_14.entry.js +37 -4
- package/dist/esm/calcite-pick-list-group.entry.js +0 -2
- package/dist/esm/calcite-pick-list-item.entry.js +0 -2
- package/dist/esm/calcite-pick-list.entry.js +0 -2
- package/dist/esm/calcite-popover-manager.entry.js +0 -2
- package/dist/esm/calcite-radio-button-group.entry.js +0 -2
- package/dist/esm/calcite-radio-button.entry.js +0 -2
- package/dist/esm/calcite-radio-group-item.entry.js +0 -2
- package/dist/esm/calcite-radio-group.entry.js +0 -2
- package/dist/esm/calcite-radio.entry.js +0 -2
- package/dist/esm/calcite-rating.entry.js +0 -2
- package/dist/esm/calcite-scrim.entry.js +0 -2
- package/dist/esm/calcite-select.entry.js +0 -2
- package/dist/esm/calcite-shell-center-row.entry.js +0 -2
- package/dist/esm/calcite-slider.entry.js +0 -2
- package/dist/esm/calcite-sortable-list.entry.js +0 -2
- package/dist/esm/calcite-split-button.entry.js +0 -2
- package/dist/esm/calcite-stepper-item.entry.js +0 -2
- package/dist/esm/calcite-stepper.entry.js +0 -2
- package/dist/esm/calcite-switch.entry.js +0 -2
- package/dist/esm/calcite-tile-select-group.entry.js +0 -2
- package/dist/esm/calcite-tile-select.entry.js +0 -2
- package/dist/esm/calcite-tile.entry.js +0 -2
- package/dist/esm/calcite-time-picker.entry.js +0 -2
- package/dist/esm/calcite-tip-group.entry.js +0 -2
- package/dist/esm/calcite-tip-manager.entry.js +0 -2
- package/dist/esm/calcite-tip.entry.js +0 -2
- package/dist/esm/calcite-tooltip.entry.js +0 -2
- package/dist/esm/calcite-value-list-item.entry.js +0 -2
- package/dist/esm/calcite-value-list.entry.js +0 -2
- package/dist/esm/common-70333fb9.js +213 -0
- package/dist/esm/date-5d75460a.js +0 -2
- package/dist/esm/debounce-23ad5849.js +0 -2
- package/dist/esm/dom-1cc617ae.js +0 -2
- package/dist/esm/editStore-197be454.js +2022 -0
- package/dist/esm/forIn-c922d47c.js +0 -2
- package/dist/esm/form-636dfed1.js +0 -2
- package/dist/esm/generalHelpers-91e92dc0.js +161 -0
- package/dist/esm/guid-740f1f1a.js +0 -2
- package/dist/esm/index-a3c3e3db.js +0 -2
- package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
- package/dist/esm/index.js +0 -2
- package/dist/esm/interfaces-4f07beec.js +0 -2
- package/dist/esm/key-1748eb79.js +0 -2
- package/dist/esm/label-851f8926.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/locale-31c8d43b.js +0 -2
- package/dist/esm/math-d8795f31.js +0 -2
- package/dist/esm/number-47ecb380.js +0 -2
- package/dist/esm/observers-b13ff24b.js +0 -2
- package/dist/esm/popper-25874f2f.js +0 -2
- package/dist/esm/request-9c2c9a49.js +548 -0
- package/dist/esm/resources-12c3b829.js +0 -2
- package/dist/esm/resources-32d7dd89.js +0 -2
- package/dist/esm/resources-466ccf86.js +0 -2
- package/dist/esm/resources-4cc0ef44.js +0 -2
- package/dist/esm/resources-861d0240.js +0 -2
- package/dist/esm/resources-b023c30a.js +0 -2
- package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
- package/dist/esm/resources-e56b6e53.js +0 -2
- package/dist/esm/resources-ec79cfd7.js +0 -2
- package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
- package/dist/esm/solution-configuration.entry.js +172 -14
- package/dist/esm/solution-contents_3.entry.js +42 -68
- package/dist/esm/solutions.js +1 -3
- package/dist/esm/sortable.esm-7856912e.js +0 -2
- package/dist/esm/store-manager.entry.js +17 -8
- package/dist/esm/templates-c15e0de2.js +414 -0
- package/dist/esm/time-a3b29c35.js +0 -2
- package/dist/esm/utils-021cb956.js +0 -2
- package/dist/esm/utils-5fdd203c.js +0 -2
- package/dist/solutions/assets/nls/fr/strings.js +2 -0
- package/dist/solutions/assets/nls/strings.js +2 -0
- package/dist/solutions/demos/browse-solutions.html +136 -54
- package/dist/solutions/demos/solution-configuration.html +139 -12
- package/dist/solutions/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions/index.esm.js +0 -2
- package/dist/solutions/p-03c9247d.entry.js +10 -0
- package/dist/solutions/p-03da5f23.entry.js +6 -0
- package/dist/solutions/p-054256c8.entry.js +10 -0
- package/dist/solutions/p-05c73b7d.js +1 -2
- package/dist/solutions/p-06c2b347.entry.js +6 -0
- package/dist/solutions/p-09a06209.entry.js +6 -0
- package/dist/solutions/p-09e5283f.entry.js +6 -0
- package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
- package/dist/solutions/p-0b8525e2.js +1 -2
- package/dist/solutions/p-0bddf168.entry.js +10 -0
- package/dist/solutions/p-0dd00bd7.entry.js +6 -0
- package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
- package/dist/solutions/p-1345c0c8.js +6 -0
- package/dist/solutions/p-1387e8ef.entry.js +10 -0
- package/dist/solutions/p-17195493.entry.js +6 -0
- package/dist/solutions/p-172b8454.js +38 -0
- package/dist/solutions/p-173c3a97.entry.js +10 -0
- package/dist/solutions/p-175fe700.entry.js +6 -0
- package/dist/solutions/p-17f21116.entry.js +6 -0
- package/dist/solutions/p-18657c74.entry.js +10 -0
- package/dist/solutions/p-20c8a31e.entry.js +14 -0
- package/dist/solutions/p-228131f3.js +3 -3
- package/dist/solutions/p-2480c2c3.entry.js +10 -0
- package/dist/solutions/p-291cbb4f.js +1 -2
- package/dist/solutions/p-29d230fb.entry.js +6 -0
- package/dist/solutions/p-2de43402.entry.js +10 -0
- package/dist/solutions/p-2e1cd889.js +1 -2
- package/dist/solutions/p-386bc1f5.entry.js +10 -0
- package/dist/solutions/p-3956acc6.entry.js +6 -0
- package/dist/solutions/p-3ce922dd.js +20 -0
- package/dist/solutions/p-3e67ed97.js +1 -2
- package/dist/solutions/p-3eac2c21.entry.js +10 -0
- package/dist/solutions/p-3fd65329.entry.js +6 -0
- package/dist/solutions/p-41c2e1cc.js +1 -2
- package/dist/solutions/p-42f5b6d1.entry.js +10 -0
- package/dist/solutions/p-44e661a2.js +1 -2
- package/dist/solutions/p-4847f326.entry.js +10 -0
- package/dist/solutions/p-4a5b86a0.entry.js +10 -0
- package/dist/solutions/p-4f8cae93.entry.js +10 -0
- package/dist/solutions/p-51c9f2db.entry.js +10 -0
- package/dist/solutions/p-52d835be.entry.js +10 -0
- package/dist/solutions/p-55dddf06.entry.js +10 -0
- package/dist/solutions/p-56a376ea.entry.js +6 -0
- package/dist/solutions/p-57e5029a.entry.js +6 -0
- package/dist/solutions/p-58b7f4aa.entry.js +10 -0
- package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
- package/dist/solutions/p-5dd4cf97.entry.js +6 -0
- package/dist/solutions/p-5edf418e.entry.js +10 -0
- package/dist/solutions/p-64711824.entry.js +10 -0
- package/dist/solutions/p-68bf7243.entry.js +11 -0
- package/dist/solutions/p-7096464e.js +3 -4
- package/dist/solutions/p-720922e5.entry.js +10 -0
- package/dist/solutions/p-73e2d13f.js +1 -2
- package/dist/solutions/p-73e8d41c.entry.js +10 -0
- package/dist/solutions/p-7804ce97.js +1 -2
- package/dist/solutions/p-79064f42.entry.js +6 -0
- package/dist/solutions/p-7976d171.entry.js +6 -0
- package/dist/solutions/p-7a98627f.entry.js +10 -0
- package/dist/solutions/p-7aaed3f1.entry.js +10 -0
- package/dist/solutions/p-7cc9c6af.js +2 -7
- package/dist/solutions/p-7df393df.js +1 -2
- package/dist/solutions/p-7f93b2dd.entry.js +6 -0
- package/dist/solutions/p-82ab483b.entry.js +10 -0
- package/dist/solutions/p-8565f0c1.entry.js +10 -0
- package/dist/solutions/p-85cf288c.js +1 -2
- package/dist/solutions/p-8701d184.entry.js +10 -0
- package/dist/solutions/p-946521e1.js +2 -3
- package/dist/solutions/p-974d27a4.entry.js +10 -0
- package/dist/solutions/p-9c08ce38.entry.js +6 -0
- package/dist/solutions/p-9deb6df3.js +36 -0
- package/dist/solutions/p-9df9ac35.js +1 -2
- package/dist/solutions/p-9ed0c781.entry.js +6 -0
- package/dist/solutions/p-9f3fa133.entry.js +10 -0
- package/dist/solutions/p-a10dc180.js +1 -2
- package/dist/solutions/p-a201c2ea.entry.js +6 -0
- package/dist/solutions/p-a598cbb6.entry.js +10 -0
- package/dist/solutions/p-a59dfe85.entry.js +6 -0
- package/dist/solutions/p-a5fbf459.entry.js +11 -0
- package/dist/solutions/p-a6faf819.entry.js +10 -0
- package/dist/solutions/p-a8b4d400.entry.js +10 -0
- package/dist/solutions/p-a93a4772.entry.js +10 -0
- package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
- package/dist/solutions/p-a9df64c4.js +1 -2
- package/dist/solutions/p-aa11e35b.entry.js +10 -0
- package/dist/solutions/p-ae4a329c.entry.js +6 -0
- package/dist/solutions/p-af9be2ca.js +1 -2
- package/dist/solutions/p-b16a91ae.entry.js +6 -0
- package/dist/solutions/p-b5693287.entry.js +6 -0
- package/dist/solutions/p-b5bbe558.entry.js +10 -0
- package/dist/solutions/p-b81ebd54.entry.js +10 -0
- package/dist/solutions/p-b85c1b6a.entry.js +6 -0
- package/dist/solutions/p-bb3adfc7.entry.js +10 -0
- package/dist/solutions/p-c11b966c.entry.js +10 -0
- package/dist/solutions/p-c1e7f656.entry.js +6 -0
- package/dist/solutions/p-c27b17b8.entry.js +10 -0
- package/dist/solutions/p-c34e0641.js +1 -2
- package/dist/solutions/p-c5216bba.entry.js +10 -0
- package/dist/solutions/p-c8a69756.entry.js +10 -0
- package/dist/solutions/p-cb35cbb3.entry.js +6 -0
- package/dist/solutions/p-cb5cb9a8.js +1 -2
- package/dist/solutions/p-cef98db7.js +6 -0
- package/dist/solutions/p-d69bc5fd.entry.js +10 -0
- package/dist/solutions/p-de45b192.entry.js +6 -0
- package/dist/solutions/p-e4edca3b.js +1 -2
- package/dist/solutions/p-e581f631.js +1 -2
- package/dist/solutions/p-e762b2d1.js +3 -3
- package/dist/solutions/p-eb2efc0f.js +1 -2
- package/dist/solutions/p-ec178ea9.js +1 -2
- package/dist/solutions/p-ed17446f.entry.js +6 -0
- package/dist/solutions/p-edd6d948.entry.js +10 -0
- package/dist/solutions/p-ee6eca93.js +18 -0
- package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
- package/dist/solutions/p-f187755e.js +1 -2
- package/dist/solutions/p-f49bc4a8.js +1 -2
- package/dist/solutions/p-f75876eb.js +21 -0
- package/dist/solutions/p-f780039d.js +1 -2
- package/dist/solutions/p-fa58627d.entry.js +10 -0
- package/dist/solutions/p-fbdf3e06.js +2 -3
- package/dist/solutions/p-fc1c8168.js +3 -3
- package/dist/solutions/p-fd2712a3.entry.js +10 -0
- package/dist/solutions/solutions.esm.js +1 -2
- package/dist/solutions/utils/common.ts +42 -73
- package/dist/solutions/utils/interfaces.ts +126 -0
- package/dist/solutions/utils/templates.ts +19 -33
- package/dist/types/components/json-editor/json-editor.d.ts +11 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
- package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
- package/dist/types/components/solution-item/solution-item.d.ts +1 -11
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
- package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
- package/dist/types/components/store-manager/store-manager.d.ts +9 -0
- package/dist/types/components.d.ts +49 -17
- package/dist/types/utils/common.d.ts +13 -38
- package/dist/types/utils/interfaces.d.ts +111 -0
- package/dist/types/utils/templates.d.ts +2 -25
- package/package.json +4 -3
- package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
- package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
- package/dist/cjs/array-cd6c0c32.js.map +0 -1
- package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
- package/dist/cjs/common-df66d950.js +0 -53
- package/dist/cjs/common-df66d950.js.map +0 -1
- package/dist/cjs/date-0554c4d1.js.map +0 -1
- package/dist/cjs/debounce-df22462b.js.map +0 -1
- package/dist/cjs/dom-62511f59.js.map +0 -1
- package/dist/cjs/editStore-7a250b85.js +0 -227
- package/dist/cjs/editStore-7a250b85.js.map +0 -1
- package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
- package/dist/cjs/form-0b5b2d4e.js.map +0 -1
- package/dist/cjs/guid-c6be9504.js.map +0 -1
- package/dist/cjs/index-706750dc.js.map +0 -1
- package/dist/cjs/index-81c17948.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
- package/dist/cjs/key-2a6290c8.js.map +0 -1
- package/dist/cjs/label-46482470.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/locale-0db34680.js.map +0 -1
- package/dist/cjs/math-71f8de66.js.map +0 -1
- package/dist/cjs/number-697ce34c.js.map +0 -1
- package/dist/cjs/observers-88bbd6ef.js.map +0 -1
- package/dist/cjs/popper-8c8dc960.js.map +0 -1
- package/dist/cjs/resources-20f88094.js.map +0 -1
- package/dist/cjs/resources-27c22d8a.js.map +0 -1
- package/dist/cjs/resources-369e7421.js.map +0 -1
- package/dist/cjs/resources-46af0638.js.map +0 -1
- package/dist/cjs/resources-509951f9.js.map +0 -1
- package/dist/cjs/resources-5b7958e4.js.map +0 -1
- package/dist/cjs/resources-a265534b.js.map +0 -1
- package/dist/cjs/resources-e231446d.js.map +0 -1
- package/dist/cjs/resources-ef6c71a1.js.map +0 -1
- package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/cjs/solutions.cjs.js.map +0 -1
- package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
- package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
- package/dist/cjs/templates-fe6dd431.js +0 -237
- package/dist/cjs/templates-fe6dd431.js.map +0 -1
- package/dist/cjs/time-c87dc79e.js.map +0 -1
- package/dist/cjs/utils-c19d354a.js.map +0 -1
- package/dist/cjs/utils-cb7373e6.js.map +0 -1
- package/dist/collection/components/json-editor/json-editor.js.map +0 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
- package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
- package/dist/collection/components/solution-item/solution-item.js.map +0 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
- package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
- package/dist/collection/components/store-manager/store-manager.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/common.js.map +0 -1
- package/dist/collection/utils/editStore.js.map +0 -1
- package/dist/collection/utils/templates.js.map +0 -1
- package/dist/custom-elements/index.js.map +0 -1
- package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
- package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
- package/dist/esm/array-71e0c501.js.map +0 -1
- package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
- package/dist/esm/calcite-accordion.entry.js.map +0 -1
- package/dist/esm/calcite-action-bar.entry.js.map +0 -1
- package/dist/esm/calcite-action-group.entry.js.map +0 -1
- package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
- package/dist/esm/calcite-action-pad.entry.js.map +0 -1
- package/dist/esm/calcite-action.entry.js.map +0 -1
- package/dist/esm/calcite-alert.entry.js.map +0 -1
- package/dist/esm/calcite-avatar.entry.js.map +0 -1
- package/dist/esm/calcite-block-section.entry.js.map +0 -1
- package/dist/esm/calcite-block.entry.js.map +0 -1
- package/dist/esm/calcite-button.entry.js.map +0 -1
- package/dist/esm/calcite-card.entry.js.map +0 -1
- package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
- package/dist/esm/calcite-chip.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
- package/dist/esm/calcite-color-picker.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
- package/dist/esm/calcite-combobox.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
- package/dist/esm/calcite-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
- package/dist/esm/calcite-dropdown.entry.js.map +0 -1
- package/dist/esm/calcite-fab.entry.js.map +0 -1
- package/dist/esm/calcite-filter.entry.js.map +0 -1
- package/dist/esm/calcite-flow.entry.js.map +0 -1
- package/dist/esm/calcite-graph.entry.js.map +0 -1
- package/dist/esm/calcite-handle.entry.js.map +0 -1
- package/dist/esm/calcite-icon.entry.js.map +0 -1
- package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
- package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input-message.entry.js.map +0 -1
- package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-input_2.entry.js.map +0 -1
- package/dist/esm/calcite-label.entry.js.map +0 -1
- package/dist/esm/calcite-link.entry.js.map +0 -1
- package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
- package/dist/esm/calcite-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-list.entry.js.map +0 -1
- package/dist/esm/calcite-loader.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-notice.entry.js.map +0 -1
- package/dist/esm/calcite-option-group.entry.js.map +0 -1
- package/dist/esm/calcite-option.entry.js.map +0 -1
- package/dist/esm/calcite-pagination.entry.js.map +0 -1
- package/dist/esm/calcite-panel_14.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-pick-list.entry.js.map +0 -1
- package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio-button.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
- package/dist/esm/calcite-radio-group.entry.js.map +0 -1
- package/dist/esm/calcite-radio.entry.js.map +0 -1
- package/dist/esm/calcite-rating.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-select.entry.js.map +0 -1
- package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
- package/dist/esm/calcite-slider.entry.js.map +0 -1
- package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
- package/dist/esm/calcite-split-button.entry.js.map +0 -1
- package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
- package/dist/esm/calcite-stepper.entry.js.map +0 -1
- package/dist/esm/calcite-switch.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
- package/dist/esm/calcite-tile-select.entry.js.map +0 -1
- package/dist/esm/calcite-tile.entry.js.map +0 -1
- package/dist/esm/calcite-time-picker.entry.js.map +0 -1
- package/dist/esm/calcite-tip-group.entry.js.map +0 -1
- package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
- package/dist/esm/calcite-tip.entry.js.map +0 -1
- package/dist/esm/calcite-tooltip.entry.js.map +0 -1
- package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
- package/dist/esm/calcite-value-list.entry.js.map +0 -1
- package/dist/esm/common-ccccf04d.js +0 -50
- package/dist/esm/common-ccccf04d.js.map +0 -1
- package/dist/esm/date-5d75460a.js.map +0 -1
- package/dist/esm/debounce-23ad5849.js.map +0 -1
- package/dist/esm/dom-1cc617ae.js.map +0 -1
- package/dist/esm/editStore-30a293f5.js +0 -225
- package/dist/esm/editStore-30a293f5.js.map +0 -1
- package/dist/esm/forIn-c922d47c.js.map +0 -1
- package/dist/esm/form-636dfed1.js.map +0 -1
- package/dist/esm/guid-740f1f1a.js.map +0 -1
- package/dist/esm/index-934f242e.js.map +0 -1
- package/dist/esm/index-a3c3e3db.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces-4f07beec.js.map +0 -1
- package/dist/esm/key-1748eb79.js.map +0 -1
- package/dist/esm/label-851f8926.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/locale-31c8d43b.js.map +0 -1
- package/dist/esm/math-d8795f31.js.map +0 -1
- package/dist/esm/number-47ecb380.js.map +0 -1
- package/dist/esm/observers-b13ff24b.js.map +0 -1
- package/dist/esm/popper-25874f2f.js.map +0 -1
- package/dist/esm/resources-12c3b829.js.map +0 -1
- package/dist/esm/resources-32d7dd89.js.map +0 -1
- package/dist/esm/resources-466ccf86.js.map +0 -1
- package/dist/esm/resources-4cc0ef44.js.map +0 -1
- package/dist/esm/resources-861d0240.js.map +0 -1
- package/dist/esm/resources-b023c30a.js.map +0 -1
- package/dist/esm/resources-c537bacb.js.map +0 -1
- package/dist/esm/resources-e56b6e53.js.map +0 -1
- package/dist/esm/resources-ec79cfd7.js.map +0 -1
- package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solutions.js.map +0 -1
- package/dist/esm/sortable.esm-7856912e.js.map +0 -1
- package/dist/esm/store-manager.entry.js.map +0 -1
- package/dist/esm/templates-3480c08e.js +0 -230
- package/dist/esm/templates-3480c08e.js.map +0 -1
- package/dist/esm/time-a3b29c35.js.map +0 -1
- package/dist/esm/utils-021cb956.js.map +0 -1
- package/dist/esm/utils-5fdd203c.js.map +0 -1
- package/dist/solutions/index.esm.js.map +0 -1
- package/dist/solutions/p-019fe34e.entry.js +0 -11
- package/dist/solutions/p-019fe34e.entry.js.map +0 -1
- package/dist/solutions/p-01d537aa.entry.js +0 -11
- package/dist/solutions/p-01d537aa.entry.js.map +0 -1
- package/dist/solutions/p-05c73b7d.js.map +0 -1
- package/dist/solutions/p-05da6de1.entry.js +0 -11
- package/dist/solutions/p-05da6de1.entry.js.map +0 -1
- package/dist/solutions/p-05eb87fc.entry.js +0 -11
- package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
- package/dist/solutions/p-07099311.entry.js.map +0 -1
- package/dist/solutions/p-07f15398.entry.js +0 -7
- package/dist/solutions/p-07f15398.entry.js.map +0 -1
- package/dist/solutions/p-093edbdc.entry.js +0 -11
- package/dist/solutions/p-093edbdc.entry.js.map +0 -1
- package/dist/solutions/p-0b8525e2.js.map +0 -1
- package/dist/solutions/p-0c91e100.js +0 -7
- package/dist/solutions/p-0c91e100.js.map +0 -1
- package/dist/solutions/p-0fcee724.entry.js +0 -7
- package/dist/solutions/p-0fcee724.entry.js.map +0 -1
- package/dist/solutions/p-17a2150d.entry.js +0 -11
- package/dist/solutions/p-17a2150d.entry.js.map +0 -1
- package/dist/solutions/p-1aaa9800.entry.js +0 -7
- package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
- package/dist/solutions/p-228131f3.js.map +0 -1
- package/dist/solutions/p-22d67647.entry.js +0 -11
- package/dist/solutions/p-22d67647.entry.js.map +0 -1
- package/dist/solutions/p-291cbb4f.js.map +0 -1
- package/dist/solutions/p-2a5c409a.entry.js +0 -7
- package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
- package/dist/solutions/p-2aca233c.entry.js +0 -11
- package/dist/solutions/p-2aca233c.entry.js.map +0 -1
- package/dist/solutions/p-2b6ef800.entry.js +0 -7
- package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
- package/dist/solutions/p-2bae730e.entry.js +0 -11
- package/dist/solutions/p-2bae730e.entry.js.map +0 -1
- package/dist/solutions/p-2d59c6d7.entry.js +0 -11
- package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
- package/dist/solutions/p-2e1cd889.js.map +0 -1
- package/dist/solutions/p-35eafdfb.entry.js +0 -11
- package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
- package/dist/solutions/p-372da016.entry.js +0 -7
- package/dist/solutions/p-372da016.entry.js.map +0 -1
- package/dist/solutions/p-37407f95.entry.js +0 -7
- package/dist/solutions/p-37407f95.entry.js.map +0 -1
- package/dist/solutions/p-3ae90cbb.entry.js +0 -7
- package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
- package/dist/solutions/p-3c3ccd03.entry.js +0 -11
- package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
- package/dist/solutions/p-3e168893.entry.js +0 -11
- package/dist/solutions/p-3e168893.entry.js.map +0 -1
- package/dist/solutions/p-3e67ed97.js.map +0 -1
- package/dist/solutions/p-3ed5096e.entry.js +0 -11
- package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
- package/dist/solutions/p-41c2e1cc.js.map +0 -1
- package/dist/solutions/p-44e661a2.js.map +0 -1
- package/dist/solutions/p-4573d7c2.js.map +0 -1
- package/dist/solutions/p-4635ae4a.entry.js +0 -11
- package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
- package/dist/solutions/p-46bcadbd.entry.js +0 -11
- package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
- package/dist/solutions/p-4b0b2534.entry.js +0 -11
- package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
- package/dist/solutions/p-51e4c002.entry.js +0 -7
- package/dist/solutions/p-51e4c002.entry.js.map +0 -1
- package/dist/solutions/p-520d8443.entry.js +0 -11
- package/dist/solutions/p-520d8443.entry.js.map +0 -1
- package/dist/solutions/p-591d5666.entry.js +0 -11
- package/dist/solutions/p-591d5666.entry.js.map +0 -1
- package/dist/solutions/p-5aff6fc3.entry.js +0 -11
- package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
- package/dist/solutions/p-5c95f5ee.entry.js +0 -11
- package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
- package/dist/solutions/p-606933f1.entry.js +0 -11
- package/dist/solutions/p-606933f1.entry.js.map +0 -1
- package/dist/solutions/p-62464fb3.entry.js +0 -11
- package/dist/solutions/p-62464fb3.entry.js.map +0 -1
- package/dist/solutions/p-6e970d4c.entry.js +0 -7
- package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
- package/dist/solutions/p-6f861da6.entry.js +0 -11
- package/dist/solutions/p-6f861da6.entry.js.map +0 -1
- package/dist/solutions/p-7096464e.js.map +0 -1
- package/dist/solutions/p-73e2d13f.js.map +0 -1
- package/dist/solutions/p-745f85bf.entry.js +0 -11
- package/dist/solutions/p-745f85bf.entry.js.map +0 -1
- package/dist/solutions/p-7480bdae.entry.js +0 -7
- package/dist/solutions/p-7480bdae.entry.js.map +0 -1
- package/dist/solutions/p-7611d9ad.entry.js +0 -11
- package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
- package/dist/solutions/p-77b056db.entry.js +0 -7
- package/dist/solutions/p-77b056db.entry.js.map +0 -1
- package/dist/solutions/p-7804ce97.js.map +0 -1
- package/dist/solutions/p-7cc15662.entry.js +0 -15
- package/dist/solutions/p-7cc15662.entry.js.map +0 -1
- package/dist/solutions/p-7cc9c6af.js.map +0 -1
- package/dist/solutions/p-7d84c932.entry.js +0 -11
- package/dist/solutions/p-7d84c932.entry.js.map +0 -1
- package/dist/solutions/p-7df393df.js.map +0 -1
- package/dist/solutions/p-7f49ef40.entry.js +0 -11
- package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
- package/dist/solutions/p-7f5c2987.entry.js +0 -7
- package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
- package/dist/solutions/p-7fd90af2.entry.js +0 -11
- package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
- package/dist/solutions/p-815449b1.entry.js +0 -11
- package/dist/solutions/p-815449b1.entry.js.map +0 -1
- package/dist/solutions/p-819aff56.entry.js +0 -11
- package/dist/solutions/p-819aff56.entry.js.map +0 -1
- package/dist/solutions/p-85cf288c.js.map +0 -1
- package/dist/solutions/p-87d812ce.entry.js +0 -7
- package/dist/solutions/p-87d812ce.entry.js.map +0 -1
- package/dist/solutions/p-8b616d33.entry.js +0 -7
- package/dist/solutions/p-8b616d33.entry.js.map +0 -1
- package/dist/solutions/p-8efca26d.entry.js +0 -7
- package/dist/solutions/p-8efca26d.entry.js.map +0 -1
- package/dist/solutions/p-946521e1.js.map +0 -1
- package/dist/solutions/p-970f1072.js +0 -22
- package/dist/solutions/p-970f1072.js.map +0 -1
- package/dist/solutions/p-9a953609.entry.js +0 -11
- package/dist/solutions/p-9a953609.entry.js.map +0 -1
- package/dist/solutions/p-9b381784.entry.js +0 -11
- package/dist/solutions/p-9b381784.entry.js.map +0 -1
- package/dist/solutions/p-9dad5583.entry.js +0 -11
- package/dist/solutions/p-9dad5583.entry.js.map +0 -1
- package/dist/solutions/p-9df9ac35.js.map +0 -1
- package/dist/solutions/p-9ee74ad4.entry.js +0 -7
- package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
- package/dist/solutions/p-9fab6046.entry.js +0 -22
- package/dist/solutions/p-9fab6046.entry.js.map +0 -1
- package/dist/solutions/p-9fc06fc3.entry.js +0 -15
- package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
- package/dist/solutions/p-a10dc180.js.map +0 -1
- package/dist/solutions/p-a1c40865.entry.js +0 -11
- package/dist/solutions/p-a1c40865.entry.js.map +0 -1
- package/dist/solutions/p-a3b16f15.entry.js +0 -7
- package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
- package/dist/solutions/p-a7906d52.entry.js +0 -11
- package/dist/solutions/p-a7906d52.entry.js.map +0 -1
- package/dist/solutions/p-a8a106f7.entry.js +0 -7
- package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
- package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
- package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
- package/dist/solutions/p-a98c5d29.entry.js +0 -11
- package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
- package/dist/solutions/p-a9df64c4.js.map +0 -1
- package/dist/solutions/p-ad54d2e2.entry.js +0 -11
- package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
- package/dist/solutions/p-adf3704d.entry.js +0 -11
- package/dist/solutions/p-adf3704d.entry.js.map +0 -1
- package/dist/solutions/p-af46b00f.entry.js +0 -11
- package/dist/solutions/p-af46b00f.entry.js.map +0 -1
- package/dist/solutions/p-af9be2ca.js.map +0 -1
- package/dist/solutions/p-b797d79b.entry.js +0 -23
- package/dist/solutions/p-b797d79b.entry.js.map +0 -1
- package/dist/solutions/p-c09fc04d.entry.js +0 -11
- package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
- package/dist/solutions/p-c11f84d9.entry.js +0 -11
- package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
- package/dist/solutions/p-c195dbb7.entry.js +0 -7
- package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
- package/dist/solutions/p-c34e0641.js.map +0 -1
- package/dist/solutions/p-c5428bbc.entry.js +0 -11
- package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
- package/dist/solutions/p-cb5cb9a8.js.map +0 -1
- package/dist/solutions/p-ce3e9060.entry.js +0 -11
- package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
- package/dist/solutions/p-d132d8ad.entry.js +0 -7
- package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
- package/dist/solutions/p-d320e3a2.entry.js +0 -7
- package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
- package/dist/solutions/p-d70ef015.entry.js +0 -11
- package/dist/solutions/p-d70ef015.entry.js.map +0 -1
- package/dist/solutions/p-e4edca3b.js.map +0 -1
- package/dist/solutions/p-e581f631.js.map +0 -1
- package/dist/solutions/p-e65a8700.entry.js +0 -11
- package/dist/solutions/p-e65a8700.entry.js.map +0 -1
- package/dist/solutions/p-e762b2d1.js.map +0 -1
- package/dist/solutions/p-eb2efc0f.js.map +0 -1
- package/dist/solutions/p-ec178ea9.js.map +0 -1
- package/dist/solutions/p-ecbfddde.js.map +0 -1
- package/dist/solutions/p-eceb11d1.js +0 -22
- package/dist/solutions/p-eceb11d1.js.map +0 -1
- package/dist/solutions/p-ede2beab.entry.js +0 -7
- package/dist/solutions/p-ede2beab.entry.js.map +0 -1
- package/dist/solutions/p-f0a6135d.entry.js +0 -11
- package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
- package/dist/solutions/p-f187755e.js.map +0 -1
- package/dist/solutions/p-f3c6b68d.entry.js +0 -7
- package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
- package/dist/solutions/p-f49bc4a8.js.map +0 -1
- package/dist/solutions/p-f6e8ee98.entry.js +0 -7
- package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
- package/dist/solutions/p-f780039d.js.map +0 -1
- package/dist/solutions/p-fa40e7e7.entry.js +0 -7
- package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
- package/dist/solutions/p-fb25fc4a.entry.js +0 -7
- package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
- package/dist/solutions/p-fbdf3e06.js.map +0 -1
- package/dist/solutions/p-fc1c8168.js.map +0 -1
- package/dist/solutions/p-ff3697a9.entry.js +0 -7
- package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
- package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item-group/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css?tag=calcite-list-item-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js"],"names":["CSS","heading","container","HEADING_LEVEL","calciteListItemGroupCss","CalciteListItemGroup","[object Object]","_a","el","headingLevel","this","parentLevel","closest","relativeLevel","constrainHeadingLevel","level","h","Host","CalciteHeading","class","role"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,QAAS,UACTC,UAAW,aAEN,MAAMC,EAAgB,ECR7B,MAAMC,EAA0B,iuCCWnBC,EAAoB,+BAM/BC,SACE,IAAIC,EACJ,MAAMC,GAAEA,EAAEP,QAAEA,EAAOQ,aAAEA,GAAiBC,KACtC,MAAMC,GAAeJ,EAAKC,EAAGI,QAAQ,4CAA8C,MAAQL,SAAY,OAAS,EAAIA,EAAGE,aACvH,MAAMI,EAAgBF,EAAcG,EAAsBH,EAAc,GAAK,KAC7E,MAAMI,EAAQN,GAAgBI,GAAiBV,EAC/C,OAAQa,EAAEC,EAAM,KACdhB,EAAWe,EAAEE,EAAgB,CAAEC,MAAOnB,EAAIC,QAASc,MAAOA,GAASd,GAAY,KAC/Ee,EAAE,MAAO,CAAEG,MAAOnB,EAAIE,UAAWkB,KAAM,SACrCJ,EAAE,OAAQ","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n heading: \"heading\",\n container: \"container\"\n};\nexport const HEADING_LEVEL = 3;\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n}\n\n.heading {\n font-family: var(--calcite-sans-family);\n background-color: var(--calcite-ui-foreground-2);\n font-size: var(--calcite-font-size--1);\n font-weight: var(--calcite-font-weight-bold);\n margin: 0;\n padding: 0.75rem;\n color: var(--calcite-ui-text-2);\n display: flex;\n flex: 1 1 0%;\n}\n\n.container {\n width: 100%;\n display: flex;\n flex-direction: column;\n background-color: var(--calcite-ui-foreground-1);\n}\n\n::slotted(calcite-list-item-group) {\n padding-left: 0.5rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, h, Host } from \"@stencil/core\";\nimport { CSS } from \"./resources\";\nimport { HEADING_LEVEL } from \"./resources\";\nimport { CalciteHeading, constrainHeadingLevel } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.\n */\nexport class CalciteListItemGroup {\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n var _a;\n const { el, heading, headingLevel } = this;\n const parentLevel = (_a = el.closest(\"calcite-list, calcite-list-item-group\")) === null || _a === void 0 ? void 0 : _a.headingLevel;\n const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;\n const level = headingLevel || relativeLevel || HEADING_LEVEL;\n return (h(Host, null,\n heading ? (h(CalciteHeading, { class: CSS.heading, level: level }, heading)) : null,\n h(\"div\", { class: CSS.container, role: \"group\" },\n h(\"slot\", null))));\n }\n static get is() { return \"calcite-list-item-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-list-item-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-list-item-group.css\"]\n }; }\n static get properties() { return {\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title used for all nested `calcite-list-item` rows.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": true\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -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 e,c as i,h as t,H as a,g as n}from"./p-2e1cd889.js";import{b as o}from"./p-e762b2d1.js";import{C as r}from"./p-73e2d13f.js";import"./p-ec178ea9.js";
|
7
|
-
/*!
|
8
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
10
|
-
*/const l={article:"article",content:"content",headerContainer:"header-container",icon:"icon",statusIcon:"status-icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",controlContainer:"control-container",valid:"valid",invalid:"invalid",loading:"loading"};const c={collapse:"Collapse",expand:"Expand",loading:"Loading",options:"Options"};const s={icon:"icon",control:"control",headerMenuActions:"header-menu-actions"};const d={opened:"chevron-up",closed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle",refresh:"refresh"};const m=4;const g='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex-grow:0;flex-shrink:0;flex-direction:column;padding:0;transition-property:margin;transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;flex-basis:auto}.header{margin:0;display:flex;align-items:center;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu";grid-column:header-start/menu-end;grid-row:1/2}.header-container>.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:flex;flex-wrap:nowrap;justify-content:space-between;font-family:inherit;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-align:initial;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-inline:0.75rem;padding-block:0px}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;line-height:1.25;transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.summary{padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);margin-top:0.125rem;word-wrap:break-word;word-break:break-word}.icon{margin-inline-start:0.75rem;margin-inline-end:0px}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.status-icon.loading{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}.toggle-icon{align-self:center;color:var(--calcite-ui-text-3);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:1rem;margin-inline-start:0px}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;position:relative;animation:in var(--calcite-animation-timing) ease-in-out}.control-container{display:flex;margin:0;grid-area:control}calcite-action-menu{grid-area:menu}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;pointer-events:none;user-select:none}:host([disabled]) .header-container{opacity:0.5}';let h=class{constructor(t){e(this,t);this.calciteBlockToggle=i(this,"calciteBlockToggle",7);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.intlLoading=c.loading;this.intlOptions=c.options;this.loading=false;this.open=false;this.onHeaderClick=()=>{this.open=!this.open;this.calciteBlockToggle.emit()}}renderScrim(){const{disabled:e,loading:i}=this;const a=t("slot",null);return[i||e?t("calcite-scrim",{loading:i}):null,a]}renderIcon(){const{el:e,status:i}=this;const a=this.loading&&!this.open;const n=a?d.refresh:d[i];const r=o(e,s.icon)||n;const c=!n?t("slot",{name:s.icon}):t("calcite-icon",{class:{[l.statusIcon]:true,[l.valid]:i=="valid",[l.invalid]:i=="invalid",[l.loading]:a},icon:n,scale:"m"});return r?t("div",{class:l.icon},c):null}render(){const{collapsible:e,disabled:i,el:n,heading:g,intlCollapse:h,intlExpand:p,loading:u,open:f,summary:b,intlLoading:v,headingLevel:x}=this;const y=f?h||c.collapse:p||c.expand;const w=t("header",{class:l.header},this.renderIcon(),t("div",{class:l.title},t(r,{class:l.heading,level:x||m},g),b?t("div",{class:l.summary},b):null));const k=!!o(n,s.control);const z=!!o(n,s.headerMenuActions);const _=f?d.opened:d.closed;const j=t("div",{class:l.headerContainer},this.dragHandle?t("calcite-handle",null):null,e?t("button",{"aria-expanded":e?f.toString():null,"aria-label":y,class:l.toggle,onClick:this.onHeaderClick,title:y},w,!k&&!z?t("calcite-icon",{"aria-hidden":"true",class:l.toggleIcon,icon:_,scale:"s"}):null):w,u?t("calcite-loader",{inline:true,"is-active":true,label:v}):k?t("div",{class:l.controlContainer},t("slot",{name:s.control})):null,z?t("calcite-action-menu",{label:this.intlOptions||c.options},t("slot",{name:s.headerMenuActions})):null);return t(a,{tabIndex:i?-1:null},t("article",{"aria-busy":u.toString(),class:{[l.article]:true}},j,t("div",{class:l.content,hidden:!f},this.renderScrim())))}get el(){return n(this)}};h.style=g;export{h as calcite_block};
|
11
|
-
//# sourceMappingURL=p-af46b00f.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-block/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-block/calcite-block.css?tag=calcite-block&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-block/calcite-block.js"],"names":["CSS","article","content","headerContainer","icon","statusIcon","toggle","toggleIcon","title","heading","header","button","summary","controlContainer","valid","invalid","loading","TEXT","collapse","expand","options","SLOTS","control","headerMenuActions","ICONS","opened","closed","refresh","HEADING_LEVEL","calciteBlockCss","CalciteBlock","[object Object]","hostRef","this","collapsible","disabled","dragHandle","intlLoading","intlOptions","open","onHeaderClick","calciteBlockToggle","emit","defaultSlot","h","el","status","showingLoadingStatus","hasIcon","getSlotted","iconEl","name","class","scale","intlCollapse","intlExpand","headingLevel","toggleLabel","headerContent","renderIcon","CalciteHeading","level","hasControl","hasMenuActions","collapseIcon","headerNode","aria-expanded","toString","aria-label","onClick","aria-hidden","inline","is-active","label","Host","tabIndex","aria-busy","hidden","renderScrim"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,QAAS,UACTC,QAAS,UACTC,gBAAiB,mBACjBC,KAAM,OACNC,WAAY,cACZC,OAAQ,SACRC,WAAY,cACZC,MAAO,QACPC,QAAS,UACTC,OAAQ,SACRC,OAAQ,SACRC,QAAS,UACTC,iBAAkB,oBAClBC,MAAO,QACPC,QAAS,UACTC,QAAS,WAEJ,MAAMC,EAAO,CAClBC,SAAU,WACVC,OAAQ,SACRH,QAAS,UACTI,QAAS,WAEJ,MAAMC,EAAQ,CACnBjB,KAAM,OACNkB,QAAS,UACTC,kBAAmB,uBAEd,MAAMC,EAAQ,CACnBC,OAAQ,aACRC,OAAQ,eACRZ,MAAO,eACPC,QAAS,4BACTY,QAAS,WAEJ,MAAMC,EAAgB,ECxC7B,MAAMC,EAAkB,0tJCcXC,EAAY,MACvBC,YAAAC,oEASEC,KAAKC,YAAc,MAInBD,KAAKE,SAAW,MAIhBF,KAAKG,WAAa,MAIlBH,KAAKI,YAAcpB,EAAKD,QAIxBiB,KAAKK,YAAcrB,EAAKG,QAIxBa,KAAKjB,QAAU,MAIfiB,KAAKM,KAAO,MAMZN,KAAKO,cAAgB,KACnBP,KAAKM,MAAQN,KAAKM,KAClBN,KAAKQ,mBAAmBC,QAQ5BX,cACE,MAAMI,SAAEA,EAAQnB,QAAEA,GAAYiB,KAC9B,MAAMU,EAAcC,EAAE,OAAQ,MAC9B,MAAO,CAAC5B,GAAWmB,EAAWS,EAAE,gBAAiB,CAAE5B,QAASA,IAAa,KAAM2B,GAEjFZ,aACE,MAAMc,GAAEA,EAAEC,OAAEA,GAAWb,KACvB,MAAMc,EAAuBd,KAAKjB,UAAYiB,KAAKM,KACnD,MAAMlC,EAAa0C,EAAuBvB,EAAMG,QAAUH,EAAMsB,GAChE,MAAME,EAAUC,EAAWJ,EAAIxB,EAAMjB,OAASC,EAC9C,MAAM6C,GAAU7C,EAAcuC,EAAE,OAAQ,CAAEO,KAAM9B,EAAMjB,OAAYwC,EAAE,eAAgB,CAAEQ,MAAO,CACzFrB,CAAC/B,EAAIK,YAAa,KAClB0B,CAAC/B,EAAIc,OAAQgC,GAAU,QACvBf,CAAC/B,EAAIe,SAAU+B,GAAU,UACzBf,CAAC/B,EAAIgB,SAAU+B,GACd3C,KAAMC,EAAYgD,MAAO,MAC9B,OAAOL,EAAUJ,EAAE,MAAO,CAAEQ,MAAOpD,EAAII,MAAQ8C,GAAU,KAE3DnB,SACE,MAAMG,YAAEA,EAAWC,SAAEA,EAAQU,GAAEA,EAAEpC,QAAEA,EAAO6C,aAAEA,EAAYC,WAAEA,EAAUvC,QAAEA,EAAOuB,KAAEA,EAAI3B,QAAEA,EAAOyB,YAAEA,EAAWmB,aAAEA,GAAiBvB,KAC5H,MAAMwB,EAAclB,EAAOe,GAAgBrC,EAAKC,SAAWqC,GAActC,EAAKE,OAC9E,MAAMuC,EAAiBd,EAAE,SAAU,CAAEQ,MAAOpD,EAAIU,QAC9CuB,KAAK0B,aACLf,EAAE,MAAO,CAAEQ,MAAOpD,EAAIQ,OACpBoC,EAAEgB,EAAgB,CAAER,MAAOpD,EAAIS,QAASoD,MAAOL,GAAgB5B,GAAiBnB,GAChFG,EAAUgC,EAAE,MAAO,CAAEQ,MAAOpD,EAAIY,SAAWA,GAAW,OAC1D,MAAMkD,IAAeb,EAAWJ,EAAIxB,EAAMC,SAC1C,MAAMyC,IAAmBd,EAAWJ,EAAIxB,EAAME,mBAC9C,MAAMyC,EAAezB,EAAOf,EAAMC,OAASD,EAAME,OACjD,MAAMuC,EAAcrB,EAAE,MAAO,CAAEQ,MAAOpD,EAAIG,iBACxC8B,KAAKG,WAAaQ,EAAE,iBAAkB,MAAQ,KAC9CV,EAAeU,EAAE,SAAU,CAAEsB,gBAAiBhC,EAAcK,EAAK4B,WAAa,KAAMC,aAAcX,EAAaL,MAAOpD,EAAIM,OAAQ+D,QAASpC,KAAKO,cAAehC,MAAOiD,GACpKC,GACCI,IAAeC,EAAkBnB,EAAE,eAAgB,CAAE0B,cAAe,OAAQlB,MAAOpD,EAAIO,WAAYH,KAAM4D,EAAcX,MAAO,MAAU,MAAK,EAChJrC,EAAW4B,EAAE,iBAAkB,CAAE2B,OAAQ,KAAMC,YAAa,KAAMC,MAAOpC,IAAkByB,EAAclB,EAAE,MAAO,CAAEQ,MAAOpD,EAAIa,kBAC7H+B,EAAE,OAAQ,CAAEO,KAAM9B,EAAMC,WAAe,KACzCyC,EAAkBnB,EAAE,sBAAuB,CAAE6B,MAAOxC,KAAKK,aAAerB,EAAKG,SAC3EwB,EAAE,OAAQ,CAAEO,KAAM9B,EAAME,qBAAyB,MACrD,OAAQqB,EAAE8B,EAAM,CAAEC,SAAUxC,GAAY,EAAI,MAC1CS,EAAE,UAAW,CAAEgC,YAAa5D,EAAQmD,WAAYf,MAAO,CACnDrB,CAAC/B,EAAIC,SAAU,OAEjBgE,EACArB,EAAE,MAAO,CAAEQ,MAAOpD,EAAIE,QAAS2E,QAAStC,GAAQN,KAAK6C","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 article: \"article\",\n content: \"content\",\n headerContainer: \"header-container\",\n icon: \"icon\",\n statusIcon: \"status-icon\",\n toggle: \"toggle\",\n toggleIcon: \"toggle-icon\",\n title: \"title\",\n heading: \"heading\",\n header: \"header\",\n button: \"button\",\n summary: \"summary\",\n controlContainer: \"control-container\",\n valid: \"valid\",\n invalid: \"invalid\",\n loading: \"loading\"\n};\nexport const TEXT = {\n collapse: \"Collapse\",\n expand: \"Expand\",\n loading: \"Loading\",\n options: \"Options\"\n};\nexport const SLOTS = {\n icon: \"icon\",\n control: \"control\",\n headerMenuActions: \"header-menu-actions\"\n};\nexport const ICONS = {\n opened: \"chevron-up\",\n closed: \"chevron-down\",\n valid: \"check-circle\",\n invalid: \"exclamation-mark-triangle\",\n refresh: \"refresh\"\n};\nexport const HEADING_LEVEL = 4;\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:host {\n /* Component spacing variables */\n --calcite-icon-size: 1rem;\n --calcite-spacing-eighth: 0.125rem;\n --calcite-spacing-quarter: 0.25rem;\n --calcite-spacing-half: 0.5rem;\n --calcite-spacing-three-quarters: 0.75rem;\n --calcite-spacing: 1rem;\n --calcite-spacing-plus-quarter: 1.25rem;\n --calcite-spacing-plus-half: 1.5rem;\n --calcite-spacing-double: 2rem;\n --calcite-menu-min-width: 10rem;\n --calcite-header-min-height: 3rem;\n --calcite-footer-min-height: 3rem;\n}\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-direction: column;\n padding: 0;\n transition-property: margin;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.215, 0.440, 0.420, 0.880);\n border-width: 0;\n border-bottom-width: 1px;\n border-color: var(--calcite-ui-border-3);\n border-style: solid;\n flex-basis: auto;\n}\n\n/* Shared styles for header elements */\n\n.header {\n margin: 0;\n display: flex;\n align-items: center;\n align-content: space-between;\n color: var(--calcite-ui-text-2);\n fill: ;\n}\n\n.heading {\n font-weight: var(--calcite-font-weight-medium);\n margin: 0;\n padding: 0;\n}\n\n.header .heading {\n flex: 1 1 auto;\n padding: 0.5rem;\n}\n\nh1.heading {\n font-size: var(--calcite-font-size-2);\n line-height: 1.5rem;\n}\n\nh2.heading {\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\nh4.heading,\nh5.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n.header {\n justify-content: flex-start;\n padding: 0;\n}\n\n.header,\n.toggle {\n grid-area: header;\n}\n\n.header-container {\n display: grid;\n align-items: stretch;\n grid-template: auto/auto 1fr auto auto;\n grid-template-areas: \"handle header control menu\";\n grid-column: header-start/menu-end;\n grid-row: 1/2;\n}\n\n.header-container > .header {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n padding-left: 0;\n padding-right: 0;\n}\n\n.toggle {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n font-family: inherit;\n align-items: center;\n margin: 0;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n padding-left: 0;\n padding-right: 0;\n border-style: none;\n cursor: pointer;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n text-align: initial;\n background-color: transparent;\n}\n\n.toggle:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n.toggle:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\ncalcite-loader[inline] {\n grid-area: control;\n align-self: center;\n}\n\ncalcite-handle {\n grid-area: handle;\n}\n\n.title {\n margin: 0;\n padding-inline: 0.75rem;\n padding-block: 0px;\n}\n\n.header .title .heading {\n padding: 0;\n font-size: var(--calcite-font-size--1);\n color: var(--calcite-ui-text-2);\n font-weight: var(--calcite-font-weight-medium);\n word-wrap: break-word;\n word-break: break-word;\n line-height: 1.25;\n transition-property: color;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.summary {\n padding: 0;\n font-size: var(--calcite-font-size--2);\n color: var(--calcite-ui-text-3);\n margin-top: 0.125rem;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.icon {\n margin-inline-start: 0.75rem;\n margin-inline-end: 0px;\n}\n\n.status-icon.valid {\n color: var(--calcite-ui-success);\n}\n\n.status-icon.invalid {\n color: var(--calcite-ui-danger);\n}\n\n.status-icon.loading {\n animation: spin 2s linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 50% {\n transform: rotate(180deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.toggle-icon {\n align-self: center;\n color: var(--calcite-ui-text-3);\n transition-property: color;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n margin-inline-end: 1rem;\n margin-inline-start: 0px;\n}\n\n.toggle:hover .toggle-icon {\n color: var(--calcite-ui-text-1);\n}\n\n.content {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n position: relative;\n animation: in var(--calcite-animation-timing) ease-in-out;\n}\n\n.control-container {\n display: flex;\n margin: 0;\n grid-area: control;\n}\n\ncalcite-action-menu {\n grid-area: menu;\n}\n\n:host([open]) {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n\n:host([open]) .header .title .heading {\n color: var(--calcite-ui-text-1);\n}\n\n:host([disabled]) {\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n pointer-events: none;\n user-select: none;\n}\n\n:host([disabled]) .header-container {\n opacity: 0.5;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Host, Prop } from \"@stencil/core\";\nimport { CSS, HEADING_LEVEL, ICONS, SLOTS, TEXT } from \"./resources\";\nimport { getSlotted } from \"../../utils/dom\";\nimport { CalciteHeading } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding content to the block.\n * @slot icon - A slot for adding a leading header icon.\n * @slot control - A slot for adding a single HTML input element in a header.\n * @slot header-menu-actions - a slot for adding an overflow menu with actions inside a dropdown.\n */\nexport class CalciteBlock {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When true, this block will be collapsible.\n */\n this.collapsible = false;\n /**\n * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\n */\n this.disabled = false;\n /**\n * When true, displays a drag handle in the header.\n */\n this.dragHandle = false;\n /** string to override English loading text\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /** Text string used for the actions menu\n * @default \"Options\"\n */\n this.intlOptions = TEXT.options;\n /**\n * When true, content is waiting to be loaded. This state shows a busy indicator.\n */\n this.loading = false;\n /**\n * When true, the block's content will be displayed.\n */\n this.open = false;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.onHeaderClick = () => {\n this.open = !this.open;\n this.calciteBlockToggle.emit();\n };\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderScrim() {\n const { disabled, loading } = this;\n const defaultSlot = h(\"slot\", null);\n return [loading || disabled ? h(\"calcite-scrim\", { loading: loading }) : null, defaultSlot];\n }\n renderIcon() {\n const { el, status } = this;\n const showingLoadingStatus = this.loading && !this.open;\n const statusIcon = showingLoadingStatus ? ICONS.refresh : ICONS[status];\n const hasIcon = getSlotted(el, SLOTS.icon) || statusIcon;\n const iconEl = !statusIcon ? (h(\"slot\", { name: SLOTS.icon })) : (h(\"calcite-icon\", { class: {\n [CSS.statusIcon]: true,\n [CSS.valid]: status == \"valid\",\n [CSS.invalid]: status == \"invalid\",\n [CSS.loading]: showingLoadingStatus\n }, icon: statusIcon, scale: \"m\" }));\n return hasIcon ? h(\"div\", { class: CSS.icon }, iconEl) : null;\n }\n render() {\n const { collapsible, disabled, el, heading, intlCollapse, intlExpand, loading, open, summary, intlLoading, headingLevel } = this;\n const toggleLabel = open ? intlCollapse || TEXT.collapse : intlExpand || TEXT.expand;\n const headerContent = (h(\"header\", { class: CSS.header },\n this.renderIcon(),\n h(\"div\", { class: CSS.title },\n h(CalciteHeading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading),\n summary ? h(\"div\", { class: CSS.summary }, summary) : null)));\n const hasControl = !!getSlotted(el, SLOTS.control);\n const hasMenuActions = !!getSlotted(el, SLOTS.headerMenuActions);\n const collapseIcon = open ? ICONS.opened : ICONS.closed;\n const headerNode = (h(\"div\", { class: CSS.headerContainer },\n this.dragHandle ? h(\"calcite-handle\", null) : null,\n collapsible ? (h(\"button\", { \"aria-expanded\": collapsible ? open.toString() : null, \"aria-label\": toggleLabel, class: CSS.toggle, onClick: this.onHeaderClick, title: toggleLabel },\n headerContent,\n !hasControl && !hasMenuActions ? (h(\"calcite-icon\", { \"aria-hidden\": \"true\", class: CSS.toggleIcon, icon: collapseIcon, scale: \"s\" })) : null)) : (headerContent),\n loading ? (h(\"calcite-loader\", { inline: true, \"is-active\": true, label: intlLoading })) : hasControl ? (h(\"div\", { class: CSS.controlContainer },\n h(\"slot\", { name: SLOTS.control }))) : null,\n hasMenuActions ? (h(\"calcite-action-menu\", { label: this.intlOptions || TEXT.options },\n h(\"slot\", { name: SLOTS.headerMenuActions }))) : null));\n return (h(Host, { tabIndex: disabled ? -1 : null },\n h(\"article\", { \"aria-busy\": loading.toString(), class: {\n [CSS.article]: true\n } },\n headerNode,\n h(\"div\", { class: CSS.content, hidden: !open }, this.renderScrim()))));\n }\n static get is() { return \"calcite-block\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-block.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-block.css\"]\n }; }\n static get properties() { return {\n \"collapsible\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, this block will be collapsible.\"\n },\n \"attribute\": \"collapsible\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"dragHandle\": {\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, displays a drag handle in the header.\"\n },\n \"attribute\": \"drag-handle\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Block heading.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"intlCollapse\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tooltip used for the toggle when expanded.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false\n },\n \"intlExpand\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tooltip used for the toggle when collapsed.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false\n },\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"string to override English loading text\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"intlOptions\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Options\\\"\"\n }],\n \"text\": \"Text string used for the actions menu\"\n },\n \"attribute\": \"intl-options\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.options\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, content is waiting to be loaded. This state shows a busy indicator.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"open\": {\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\": \"When true, the block's content will be displayed.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"status\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Status\",\n \"resolved\": \"\\\"idle\\\" | \\\"invalid\\\" | \\\"valid\\\"\",\n \"references\": {\n \"Status\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Block status. Updates or adds icon to show related icon and color.\"\n },\n \"attribute\": \"status\",\n \"reflect\": true\n },\n \"summary\": {\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\": \"Block summary.\"\n },\n \"attribute\": \"summary\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteBlockToggle\",\n \"name\": \"calciteBlockToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the header has been clicked.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tooltip/resources.js"],"names":["CSS","container","arrow","TOOLTIP_DELAY_MS","TOOLTIP_REFERENCE","ARIA_DESCRIBED_BY"],"mappings":";;;;;;;;;AAIY,MAACA,EAAM,CACjBC,UAAW,YACXC,MAAO,SAEG,MAACC,EAAmB,IACpB,MAACC,EAAoB,iCACrB,MAACC,EAAoB","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n container: \"container\",\n arrow: \"arrow\"\n};\nexport const TOOLTIP_DELAY_MS = 500;\nexport const TOOLTIP_REFERENCE = \"data-calcite-tooltip-reference\";\nexport const ARIA_DESCRIBED_BY = \"aria-describedby\";\n"]}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2021 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import{r as t,c as i,h as e,F as a,g as n,H as s}from"./p-2e1cd889.js";import{a as o,b as l,C as r,n as c,k as h,g as d}from"./p-e762b2d1.js";import{C as m}from"./p-73e2d13f.js";import{S as p}from"./p-f780039d.js";import{g as u}from"./p-ec178ea9.js";import{g as b}from"./p-7df393df.js";import{c as f}from"./p-a10dc180.js";import{s as g}from"./p-eceb11d1.js";import{g as v}from"./p-ecbfddde.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 w={backButton:"back-button",container:"container",header:"header",heading:"heading",summary:"summary",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",contentContainer:"content-container",fabContainer:"fab-container",footer:"footer",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};const x={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};const y={headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"};const k={back:"Back",close:"Close",open:"Open",options:"Options"};const _=3;const z="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:flex;align-items:center;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;align-items:stretch;background-color:var(--calcite-ui-foreground-1);justify-content:flex-start;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;flex:0 0 auto;min-height:3rem;z-index:2}.header-content{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:flex;flex-direction:column}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}.calcite--rtl .back-button{border-right-width:0;border-left-width:1px}.header-actions{display:flex;align-items:stretch;flex-direction:row;flex-wrap:nowrap}.header-actions--end{margin-left:auto}.menu-container:only-child{margin-left:auto}.menu-button{align-self:stretch;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;flex-flow:column nowrap}.content-wrapper{height:100%;overflow:auto}.content-container{align-items:stretch;background-color:var(--calcite-ui-background);display:flex;flex:1 1 auto;flex-wrap:nowrap;flex-direction:column}.footer{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:flex;justify-content:space-evenly;position:sticky;bottom:0;width:100%;flex:0 0 auto;min-height:3rem;padding:0.5rem}.calcite--rtl .header-content{margin-left:auto;margin-right:unset}.calcite--rtl .header-actions--end{margin-right:auto;margin-left:unset}.calcite--rtl .menu-container:only-child{margin-right:auto;margin-left:unset}.fab-container{display:block;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;width:-moz-fit-content;width:fit-content;z-index:1}";let C=class{constructor(e){t(this,e);this.calcitePanelDismissedChange=i(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=i(this,"calcitePanelScroll",7);this.calcitePanelBackClick=i(this,"calcitePanelBackClick",7);this.dismissed=false;this.disabled=false;this.dismissible=false;this.showBackButton=false;this.loading=false;this.menuOpen=false;this.setContainerRef=t=>{this.containerEl=t};this.setDismissRef=t=>{this.dismissButtonEl=t};this.setBackRef=t=>{this.backButtonEl=t};this.panelKeyUpHandler=t=>{if(t.key==="Escape"){this.dismiss()}};this.dismiss=()=>{this.dismissed=true};this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()};this.backButtonClick=()=>{this.calcitePanelBackClick.emit()}}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(t){var i,e,a;if(t==="dismiss-button"){(i=this.dismissButtonEl)===null||i===void 0?void 0:i.setFocus();return}if(t==="back-button"){(e=this.backButtonEl)===null||e===void 0?void 0:e.setFocus();return}(a=this.containerEl)===null||a===void 0?void 0:a.focus()}renderBackButton(){const{el:t}=this;const i=o(t)==="rtl";const{showBackButton:a,intlBack:n,backButtonClick:s}=this;const l=n||k.back;const r=i?x.backRight:x.backLeft;return a?e("calcite-action",{"aria-label":l,class:w.backButton,icon:r,key:"back-button",onClick:s,ref:this.setBackRef,scale:"s",slot:y.headerActionsStart,text:l}):null}renderHeaderContent(){const{heading:t,headingLevel:i,summary:a}=this;const n=t?e(m,{class:w.heading,level:i||_},t):null;const s=a?e("span",{class:w.summary},a):null;return n||s?e("div",{class:w.headerContent,key:"header-content"},n,s):null}renderHeaderSlottedContent(){return e("div",{class:w.headerContent,key:"header-content"},e("slot",{name:y.headerContent}))}renderHeaderStartActions(){const{el:t}=this;const i=l(t,y.headerActionsStart);return i?e("div",{class:{[w.headerActionsStart]:true,[w.headerActions]:true},key:"header-actions-start"},e("slot",{name:y.headerActionsStart})):null}renderHeaderActionsEnd(){const{dismiss:t,dismissible:i,el:a,intlClose:n}=this;const s=n||k.close;const o=i?e("calcite-action",{"aria-label":s,icon:x.close,onClick:t,ref:this.setDismissRef,text:s}):null;const r=e("slot",{name:y.headerActionsEnd});const c=l(a,y.headerActionsEnd);return c||o?e("div",{class:{[w.headerActionsEnd]:true,[w.headerActions]:true},key:"header-actions-end"},r,o):null}renderMenu(){const{el:t,intlOptions:i,menuOpen:a}=this;const n=l(t,y.headerMenuActions);return n?e("calcite-action-menu",{flipPlacements:["top","bottom"],label:i||k.options,open:a,placement:"bottom-end"},e("calcite-action",{icon:x.menu,slot:p.trigger,text:i||k.options}),e("slot",{name:y.headerMenuActions})):null}renderHeaderNode(){const{el:t,showBackButton:i}=this;const a=this.renderBackButton();const n=l(t,y.headerContent);const s=n?this.renderHeaderSlottedContent():this.renderHeaderContent();const o=this.renderHeaderStartActions();const r=this.renderHeaderActionsEnd();const c=this.renderMenu();return o||s||r||c||i?e("header",{class:w.header},a,o,s,r,c):null}renderFooterSlottedContent(){const{el:t}=this;const i=l(t,y.footer);return i?e("footer",{class:w.footer},e("slot",{name:y.footer})):null}renderFooterActions(){const{el:t}=this;const i=l(t,y.footerActions);return i?e("footer",{class:w.footer},e("slot",{name:y.footerActions})):null}renderContent(){return e("div",{class:w.contentWrapper,onScroll:this.panelScrollHandler,tabIndex:0},e("section",{class:w.contentContainer},e("slot",null)),this.renderFab())}renderFab(){const{el:t}=this;const i=l(t,y.fab);return i?e("div",{class:w.fabContainer},e("slot",{name:y.fab})):null}render(){const{dismissed:t,disabled:i,dismissible:n,el:s,loading:l,panelKeyUpHandler:c}=this;const h=o(s)==="rtl";const d=e("article",{"aria-busy":l.toString(),class:{[w.container]:true,[r.rtl]:h},hidden:n&&t,onKeyUp:c,ref:this.setContainerRef,tabIndex:n?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterSlottedContent()||this.renderFooterActions());return e(a,null,l||i?e("calcite-scrim",{loading:l}):null,d)}get el(){return n(this)}static get watchers(){return{dismissed:["dismissedHandler"]}}};C.style=z;
|
11
|
-
/*!
|
12
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
13
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
14
|
-
*/const D={main:"main",mainReversed:"main--reversed",content:"content",contentBehind:"content--behind",footer:"footer"};const T={centerRow:"center-row",primaryPanel:"primary-panel",contextualPanel:"contextual-panel",header:"header",footer:"footer"};const j="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{width:100%;height:100%;position:absolute;display:flex;flex-direction:column;overflow:hidden;top:0;right:0;bottom:0;left:0;--calcite-shell-tip-spacing:26vw}.main{height:100%;width:100%;flex:1 1 auto;display:flex;flex-direction:row;position:relative;justify-content:space-between;overflow:hidden}.main--reversed{flex-direction:row-reverse}.content{display:flex;flex-direction:column;flex-wrap:nowrap;height:100%;overflow:auto;width:100%}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){align-self:stretch;flex:1 1 auto;max-height:unset}.content--behind{border-width:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;display:initial}::slotted(calcite-shell-center-row){width:unset}::slotted(.header .heading){font-weight:var(--calcite-font-weight-normal);font-size:var(--calcite-font-size--2);line-height:1.375}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;border-left-width:0;border-right-width:0}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-left-width:1px;border-right-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){border-radius:0.25rem;box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);position:absolute;animation:in-up var(--calcite-animation-timing) ease-in-out;box-sizing:border-box;bottom:0.5rem;left:var(--calcite-shell-tip-spacing);right:var(--calcite-shell-tip-spacing);z-index:2}";let S=class{constructor(i){t(this,i);this.contentBehind=false}renderHeader(){const t=!!l(this.el,T.header);return t?e("slot",{name:T.header}):null}renderContent(){const t=!!this.contentBehind?[e("div",{class:{[D.content]:true,[D.contentBehind]:!!this.contentBehind}},e("slot",null)),e("slot",{name:T.centerRow})]:[e("div",{class:D.content},e("slot",null),e("slot",{name:T.centerRow}))];return t}renderFooter(){const t=!!l(this.el,T.footer);return t?e("div",{class:D.footer},e("slot",{name:T.footer})):null}renderMain(){const t=l(this.el,T.primaryPanel);const i={[D.main]:true,[D.mainReversed]:(t===null||t===void 0?void 0:t.position)==="end"};return e("div",{class:i},e("slot",{name:T.primaryPanel}),this.renderContent(),e("slot",{name:T.contextualPanel}))}render(){return e(a,null,this.renderHeader(),this.renderMain(),this.renderFooter())}get el(){return n(this)}};S.style=j;
|
15
|
-
/*!
|
16
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
17
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
18
|
-
*/const $={container:"container",content:"content",contentHeader:"content__header",contentBody:"content__body",contentDetached:"content--detached"};const H={actionBar:"action-bar",header:"header"};const I="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;align-items:stretch;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{box-sizing:border-box;display:flex;align-items:stretch;background-color:transparent;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}::slotted(calcite-panel),::slotted(calcite-flow){flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:flex;padding:0;pointer-events:auto;flex-direction:column;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:flex;flex-direction:column;flex:0 1 auto;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}";let B=class{constructor(e){t(this,e);this.calciteShellPanelToggle=i(this,"calciteShellPanelToggle",7);this.collapsed=false;this.detached=false;this.detachedHeightScale="l";this.widthScale="m"}watchHandler(){this.calciteShellPanelToggle.emit()}renderHeader(){const{el:t}=this;const i=l(t,H.header);return i?e("div",{class:$.contentHeader},e("slot",{name:H.header})):null}render(){const{collapsed:t,detached:i,position:a}=this;const n=e("div",{class:{[$.content]:true,[$.contentDetached]:i},hidden:t},this.renderHeader(),e("div",{class:$.contentBody},e("slot",null)));const s=e("slot",{name:H.actionBar});const o=[s,n];if(a==="end"){o.reverse()}return e("div",{class:{[$.container]:true}},o)}get el(){return n(this)}static get watchers(){return{collapsed:["watchHandler"]}}};B.style=I;const O="@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([active]) section{display:block}:host{display:none;color:var(--calcite-ui-text-3);width:100%;height:100%}:host([active]){display:block;width:100%;height:100%;overflow:auto}section{height:100%;width:100%;display:none}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem}";let A=class{constructor(e){t(this,e);this.calciteTabRegister=i(this,"calciteTabRegister",7);this.active=false;this.scale="m";this.guid=`calcite-tab-title-${u()}`}render(){const t=this.el.id||this.guid;return e(s,{"aria-expanded":this.active.toString(),"aria-labelledby":this.labeledBy,id:t,role:"tabpanel"},e("section",null,e("slot",null)))}componentDidLoad(){this.calciteTabRegister.emit()}componentWillRender(){var t;this.scale=(t=this.el.closest("calcite-tabs"))===null||t===void 0?void 0:t.scale}disconnectedCallback(){var t;(t=document.body)===null||t===void 0?void 0:t.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}tabChangeHandler(t){if(t.target.closest("calcite-tabs")!==this.el.closest("calcite-tabs")){return}if(this.tab){this.active=this.tab===t.detail.tab}else{this.getTabIndex().then((i=>{this.active=i===t.detail.tab}))}}async getTabIndex(){return Array.prototype.indexOf.call(c(this.el.parentElement.children).filter((t=>t.matches("calcite-tab"))),this.el)}async updateAriaInfo(t=[],i=[]){this.labeledBy=i[t.indexOf(this.el.id)]||null}get el(){return n(this)}};A.style=O;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{position:relative;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:flex;width:100%;overflow:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch;padding:0.25rem;margin:-0.25rem}:host([layout=center]) .tab-nav{justify-content:center}.tab-nav-active-indicator-container{width:100%;right:0;left:0;bottom:0;position:absolute;overflow:hidden;height:0.125rem}.tab-nav-active-indicator{position:absolute;bottom:0;display:block;transition-property:all;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);background-color:var(--calcite-ui-brand);height:0.125rem}:host([position=below]) .tab-nav-active-indicator{bottom:unset;top:0}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}";let F=class{constructor(e){t(this,e);this.calciteTabChange=i(this,"calciteTabChange",7);this.scale="m";this.layout="inline";this.position="below";this.bordered=false;this.animationActiveDuration=.3;this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s";this.updateOffsetPosition()}}async selectedTabChanged(){if(localStorage&&this.storageId&&this.selectedTab!==undefined&&this.selectedTab!==null){localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTab))}this.calciteTabChange.emit({tab:this.selectedTab});this.selectedTabEl=await this.getTabTitleById(this.selectedTab)}selectedTabElChanged(){this.updateOffsetPosition();this.updateActiveWidth();this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}componentWillLoad(){const t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){const i=JSON.parse(localStorage.getItem(t));this.selectedTab=i;this.calciteTabChange.emit({tab:this.selectedTab})}}componentWillRender(){var t,i,e,a;this.layout=(t=this.el.closest("calcite-tabs"))===null||t===void 0?void 0:t.layout;this.position=(i=this.el.closest("calcite-tabs"))===null||i===void 0?void 0:i.position;this.scale=(e=this.el.closest("calcite-tabs"))===null||e===void 0?void 0:e.scale;this.bordered=(a=this.el.closest("calcite-tabs"))===null||a===void 0?void 0:a.bordered;if(this.selectedTabEl){this.updateOffsetPosition()}}componentDidRender(){if(this.tabTitles.length&&this.tabTitles.every((t=>!t.active))&&!this.selectedTab){this.tabTitles[0].getTabIdentifier().then((t=>{this.calciteTabChange.emit({tab:t})}))}}render(){const t=o(this.el);const i=`${this.indicatorWidth}px`;const a=`${this.indicatorOffset}px`;const n=t!=="rtl"?{width:i,left:a}:{width:i,right:a};return e(s,{role:"tablist"},e("div",{class:"tab-nav",onScroll:this.handleContainerScroll,ref:t=>this.tabNavEl=t},e("div",{class:"tab-nav-active-indicator-container",ref:t=>this.activeIndicatorContainerEl=t},e("div",{class:"tab-nav-active-indicator",ref:t=>this.activeIndicatorEl=t,style:n})),e("slot",null)))}resizeHandler(){this.activeIndicatorEl.style.transitionDuration="0s";this.updateActiveWidth();this.updateOffsetPosition()}focusPreviousTabHandler(t){const i=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);const e=this.enabledTabTitles[i-1]||this.enabledTabTitles[this.enabledTabTitles.length-1];e.focus();t.stopPropagation();t.preventDefault()}focusNextTabHandler(t){const i=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);const e=this.enabledTabTitles[i+1]||this.enabledTabTitles[0];e.focus();t.stopPropagation();t.preventDefault()}activateTabHandler(t){this.selectedTab=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target);t.stopPropagation();t.preventDefault()}updateTabTitles(t){if(t.target.active){this.selectedTab=t.detail}}globalTabChangeHandler(t){if(this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTab!==t.detail.tab){this.selectedTab=t.detail.tab}}updateOffsetPosition(){var t,i,e,a,n;const s=o(this.el);const l=(t=this.activeIndicatorContainerEl)===null||t===void 0?void 0:t.offsetWidth;const r=(i=this.selectedTabEl)===null||i===void 0?void 0:i.offsetLeft;const c=(e=this.selectedTabEl)===null||e===void 0?void 0:e.offsetWidth;const h=l-(r+c);this.indicatorOffset=s!=="rtl"?r-((a=this.tabNavEl)===null||a===void 0?void 0:a.scrollLeft):h+((n=this.tabNavEl)===null||n===void 0?void 0:n.scrollLeft)}updateActiveWidth(){var t;this.indicatorWidth=(t=this.selectedTabEl)===null||t===void 0?void 0:t.offsetWidth}getIndexOfTabTitle(t,i=this.tabTitles){return i.indexOf(t)}async getTabTitleById(t){return Promise.all(this.tabTitles.map((t=>t.getTabIdentifier()))).then((i=>this.tabTitles[i.indexOf(t)]))}get tabTitles(){return h(this.el,"calcite-tab-title")}get enabledTabTitles(){return h(this.el,"calcite-tab-title:not([disabled])")}get el(){return n(this)}static get watchers(){return{selectedTab:["selectedTabChanged"],selectedTabEl:["selectedTabElChanged"]}}};F.style=R;const E="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;margin-right:1.25rem;margin-inline-start:0;margin-inline-end:1.25rem}:host([layout=center]){text-align:center;margin-top:0;margin-bottom:0;margin-left:1.25rem;margin-right:1.25rem;flex-basis:12rem}:host([position=below]) a{border-bottom-width:0;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host(:active) a,:host(:focus) a,:host(:hover) a{text-decoration:none;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-2)}:host([active]) a{color:var(--calcite-ui-text-1);border-color:transparent}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([scale=s]){margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) a,:host([scale=m]) span{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem}:host([scale=l]){margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem}a,span{box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;border-bottom-color:transparent;width:100%;height:100%;display:flex;justify-content:center;color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--1);line-height:1rem;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{display:inline-flex;position:relative;margin:0;align-self:center}.calcite-tab-title--icon svg{transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}.container--has-text .calcite-tab-title--icon.icon-start{margin-right:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{margin-left:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-right:0.5rem}.container--has-text.calcite--rtl .calcite-tab-title--icon.icon-end{margin-left:0;margin-right:0.5rem}.container--has-text.calcite--rtl .calcite-tab-title--icon.icon-start{margin-left:0.5rem;margin-right:0}:host([icon-start][icon-end]) .calcite--rtl .calcite-tab-title--icon:first-child{margin-left:0.5rem;margin-right:0}:host([bordered]){margin-inline-end:0}:host([bordered][active]){box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][active][position=below]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) a,:host([bordered]:focus) a,:host([bordered]:active) a{position:relative}:host([bordered]:hover) a{background-color:var(--calcite-button-transparent-hover);transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}:host([bordered]) a{border-bottom-style:unset}:host([bordered][position=below]) a{border-top-style:unset}:host([active][bordered]) a{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}";let L=class{constructor(e){t(this,e);this.calciteTabsActivate=i(this,"calciteTabsActivate",7);this.calciteTabsFocusNext=i(this,"calciteTabsFocusNext",7);this.calciteTabsFocusPrevious=i(this,"calciteTabsFocusPrevious",7);this.calciteTabTitleRegister=i(this,"calciteTabTitleRegister",7);this.active=false;this.disabled=false;this.bordered=false;this.mutationObserver=f("mutation",(()=>this.updateHasText()));this.hasText=false;this.guid=`calcite-tab-title-${u()}`}activeTabChanged(){if(this.active){this.emitActiveTab()}}connectedCallback(){this.setupTextContentObserver();this.parentTabNavEl=this.el.closest("calcite-tab-nav");this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=document.body)===null||i===void 0?void 0:i.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el}))}componentWillLoad(){{this.updateHasText()}if(this.tab&&this.active){this.emitActiveTab()}}componentWillRender(){if(this.parentTabsEl){this.layout=this.parentTabsEl.layout;this.position=this.parentTabsEl.position;this.scale=this.parentTabsEl.scale;this.bordered=this.parentTabsEl.bordered}if(!this.parentTabsEl&&this.parentTabNavEl){this.position=d(this.parentTabNavEl,"position",this.position);this.scale=d(this.parentTabNavEl,"scale",this.scale)}}render(){const t=o(this.el);const i=this.el.id||this.guid;const a=this.disabled?"span":"a";const n=this.bordered&&!this.disabled&&this.layout!=="center";const l=e("calcite-icon",{class:"calcite-tab-title--icon icon-start",dir:t,flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});const c=e("calcite-icon",{class:"calcite-tab-title--icon icon-end",dir:t,flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});return e(s,{"aria-controls":this.controls,"aria-expanded":this.active.toString(),id:i,role:"tab",tabindex:this.disabled?"-1":"0"},e(a,{class:{container:true,"container--has-text":this.hasText,[r.rtl]:t==="rtl"},style:n&&{width:`${this.parentTabNavEl.indicatorWidth}px`}},this.iconStart?l:null,e("slot",null),this.iconEnd?c:null))}async componentDidLoad(){this.calciteTabTitleRegister.emit(await this.getTabIdentifier())}tabChangeHandler(t){if(this.parentTabNavEl===t.target){if(this.tab){this.active=this.tab===t.detail.tab}else{this.getTabIndex().then((i=>{this.active=i===t.detail.tab}))}}}onClick(){this.emitActiveTab()}keyDownHandler(t){switch(b(t.key)){case" ":case"Enter":this.emitActiveTab();t.preventDefault();break;case"ArrowRight":if(o(this.el)==="ltr"){this.calciteTabsFocusNext.emit()}else{this.calciteTabsFocusPrevious.emit()}break;case"ArrowLeft":if(o(this.el)==="ltr"){this.calciteTabsFocusPrevious.emit()}else{this.calciteTabsFocusNext.emit()}break}}async getTabIndex(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(t=[],i=[]){this.controls=t[i.indexOf(this.el.id)]||null}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})}emitActiveTab(){if(!this.disabled){this.calciteTabsActivate.emit({tab:this.tab})}}get el(){return n(this)}static get watchers(){return{active:["activeTabChanged"]}}};L.style=E;
|
19
|
-
/*!
|
20
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
21
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
22
|
-
*/const P={tabNav:"tab-nav"};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{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}:host([position=below]) section{flex-direction:column-reverse;border-top-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-bottom-style:solid}";let V=class{constructor(i){t(this,i);this.layout="inline";this.position="above";this.scale="m";this.bordered=false;this.titles=[];this.tabs=[]}connectedCallback(){if(this.layout==="center"){this.bordered=false}}render(){return e(a,null,e("slot",{name:P.tabNav}),e("section",null,e("slot",null)))}calciteTabTitleRegister(t){this.titles=[...this.titles,t.target];this.registryHandler();t.stopPropagation()}calciteTabTitleUnregister(t){this.titles=this.titles.filter((i=>i!==t.detail));this.registryHandler();t.stopPropagation()}calciteTabRegister(t){this.tabs=[...this.tabs,t.target];this.registryHandler();t.stopPropagation()}calciteTabUnregister(t){this.tabs=this.tabs.filter((i=>i!==t.detail));this.registryHandler();t.stopPropagation()}async registryHandler(){let t;let i;if(this.tabs.some((t=>t.tab))||this.titles.some((t=>t.tab))){t=this.tabs.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id));i=this.titles.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id))}else{const e=await Promise.all(this.tabs.map((t=>t.getTabIndex())));const a=await Promise.all(this.titles.map((t=>t.getTabIndex())));t=e.reduce(((t,i,e)=>{t[i]=this.tabs[e].id;return t}),[]);i=a.reduce(((t,i,e)=>{t[i]=this.titles[e].id;return t}),[])}this.tabs.forEach((e=>e.updateAriaInfo(t,i)));this.titles.forEach((e=>e.updateAriaInfo(t,i)))}get el(){return n(this)}};V.style=M;const N=':host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:44px;background-color:#F4F4F4}.editor-buttons{float:right}html[dir="rtl"] .editor-buttons{float:left;padding-right:.25rem}.edit-button{padding:.25rem 0 0 .5rem}html[dir="rtl"] .edit-button{padding:.25rem .5rem 0 0}.editor-text{overflow-y:auto;background-color:white;width:100%}.edit-width{width:100%}.edit-parent{width:100%;height:calc(100% - 46px);box-sizing:border-box}.json-edit-container{width:100%;height:100%;border:1px solid grey}.padding-right{padding-right:2px}html[dir="rtl"] .padding-right{padding-left:2px}.btn-container{width:20%;height:calc(100vh - 16px);margin:0px;padding:0px;float:right}.btn{height:25px;width:120px;display:flex;margin-bottom:1rem;justify-content:center}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.not-visible{display:none}.json-editor-position{position:absolute;left:0;top:0;width:100%;height:100%;max-height:100% !important;margin:0;padding:0;overflow:hidden}';let W=class{constructor(i){t(this,i);this.original="";this.translations={};this.value=undefined;this.instanceid="";this.hasErrors=false;this._useDiffEditor=false;this._loaded=false}render(){return e(s,{class:"json-editor-position"},e("div",{id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},e("div",{class:"editor-controls"},e("div",{class:"editor-buttons"},e("calcite-button",{id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this.translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},e("calcite-icon",{icon:"undo",scale:"s"})),e("calcite-button",{id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this.translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},e("calcite-icon",{icon:"redo",scale:"s"})),e("calcite-button",{id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this.translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},e("calcite-icon",{icon:"compare",scale:"s"})),e("calcite-button",{id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this.translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},e("calcite-icon",{icon:"search",scale:"s"})),e("calcite-button",{id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:true,title:this.translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},e("calcite-icon",{icon:"reset",scale:"s"})))),e("div",{class:"edit-parent"},e("div",{id:`${this.instanceid}-container`,class:"json-edit-container"}),e("div",{id:`${this.instanceid}-diff-container`,class:"json-edit-container not-visible"}))))}componentWillLoad(){this._initValueObserver()}disconnectedCallback(){this._destroyEditor()}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{if(t.type==="attributes"&&t.attributeName==="value"){if(g&&g.models&&Object.keys(g.models).indexOf(this.value)>-1){const i=t.target[t.attributeName];if(i!==t.oldValue&&this._loaded){this._saveCurrentModel(t.oldValue);this._setEditModel(i)}else if(!this._loaded){this._setEditModel(this.value)}}}}))}));this._valueObserver.observe(this.el,{attributes:true,attributeOldValue:true})}organizationVariableSelected(t){if(this._isTabActive()){this._insertValue(t.detail.value)}}solutionVariableSelected(t){if(this._isTabActive()){this._insertValue(t.detail.value)}}_modelsChanged(){if(!this._loaded&&this.value){if(g&&g.models&&Object.keys(g.models).indexOf(this.value)>-1){this._setEditModel(this.value)}}}_solutionItemSelected(t){if(this.value&&t.detail.itemId!==this.value){this._saveCurrentModel(this.value)}}_initEditor(){if(monaco&&monaco.editor){this._editor=monaco.editor.create(document.getElementById(`${this.instanceid}-container`),{model:this.model,language:"json",readOnly:false,theme:"vs",minimap:{enabled:false},automaticLayout:true,scrollBeyondLastLine:false});this._currentModel=this._editor.getModel();this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));this._decorationsChanged=this._editor.onDidChangeModelDecorations(this._onDecorationsChange.bind(this));this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:true});this._setDiffModel();this._loaded=true}}_onEditorChange(){this._toggleUndoRedo()}_onDecorationsChange(){const t=this._editor.getModel();if(t===null){return}const i=t.getModeId();const e=monaco.editor.getModelMarkers({owner:i});this.hasErrors=e.length>0}_undo(){var t;if((t=this._currentModel)===null||t===void 0?void 0:t.canUndo()){this._currentModel.undo();this._toggleUndoRedo()}}_redo(){var t;if((t=this._currentModel)===null||t===void 0?void 0:t.canRedo()){this._currentModel.redo();this._toggleUndoRedo()}}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`);let i=document.getElementById(`${this.instanceid}-container`);if(this._useDiffEditor){this._setDiffModel();t.classList.remove("not-visible");i.classList.add("not-visible")}else{t.classList.add("not-visible");i.classList.remove("not-visible")}}_toggleUndoRedo(){var t,i,e,a;if((t=this._currentModel)===null||t===void 0?void 0:t.canUndo()){this._enableButton(`${this.instanceid}-undo`)}else{this._disableButton(`${this.instanceid}-undo`)}if((i=this._currentModel)===null||i===void 0?void 0:i.canRedo()){this._enableButton(`${this.instanceid}-redo`)}else{this._disableButton(`${this.instanceid}-redo`)}if(((e=this._currentModel)===null||e===void 0?void 0:e.canUndo())||((a=this._currentModel)===null||a===void 0?void 0:a.canRedo())){this._enableButton(`${this.instanceid}-reset`)}else{this._disableButton(`${this.instanceid}-reset`)}}_insertValue(t){const i=this._getEditor();const e=i.getSelection();this._currentModel.pushEditOperations([],[{forceMoveMarkers:true,text:t,range:e}]);i.revealRange(e)}_getEditor(){return this._useDiffEditor?this._diffEditor:this._editor}_destroyEditor(){var t,i,e,a,n,s;(t=this._searchBtnHandler)===null||t===void 0?void 0:t.removeEventListener("click",this._search);(i=this._cancelEditsBtnHandler)===null||i===void 0?void 0:i.removeEventListener("click",this._reset);(e=this._valueObserver)===null||e===void 0?void 0:e.disconnect();(a=this._contentChanged)===null||a===void 0?void 0:a.dispose();(n=this._decorationsChanged)===null||n===void 0?void 0:n.dispose();(s=this._editor)===null||s===void 0?void 0:s.dispose();this.original=""}_reset(){const t=this._getOriginalValue();this.model=monaco.editor.createModel(JSON.stringify(JSON.parse(t),null,"\t"),"json");this._editor.setModel(this.model);this._setCurrentModel();this._setDiffModel();this._saveCurrentModel(this.value);this._setEditorFocus();this._toggleUndoRedo()}_disableButton(t){var i;(i=document.getElementById(t))===null||i===void 0?void 0:i.setAttribute("disabled","")}_enableButton(t){var i;(i=document.getElementById(t))===null||i===void 0?void 0:i.removeAttribute("disabled")}_search(){const t=this._getEditor();t.focus();t.trigger("toggleFind","actions.find")}_saveCurrentModel(t){if(this._editor&&t&&Object.keys(g.models).indexOf(t)>-1){g.models[t][this._isData()?"dataModel":"propsModel"]=this.model;g.models[t].state=this._editor.saveViewState()}}_setEditModel(t){const i=g.models[t];this.model=this._isData()?i.dataModel:i.propsModel;this.original=this._isData()?i.dataOriginValue:i.propsOriginValue;if(this._editor){this._editor.setModel(this.model);if(i.state){this._editor.restoreViewState(i.state)}this._setDiffModel();this._setEditorFocus()}else{this._initEditor()}this._setCurrentModel();this._toggleUndoRedo()}_setCurrentModel(){this._currentModel=this._editor.getModel();if(this._contentChanged){this._contentChanged.dispose()}this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this))}_setDiffModel(){if(this._diffEditor){this._diffEditor.setModel({original:monaco.editor.createModel(JSON.stringify(JSON.parse(this.original),null,"\t"),"json"),modified:this._editor.getModel()})}}_setEditorFocus(){if(this._useDiffEditor){this._diffEditor.focus()}else{this._editor.focus()}}_isTabActive(){const t=document.getElementById(`${this.instanceid}-tab`);return t?t.active:true}_isData(){return this.instanceid==="data"}_getOriginalValue(){const t=g.models[this.value];const i=v(g,`spatialReferenceInfo.services.${t===null||t===void 0?void 0:t.name}`);const e=v(g,"spatialReferenceInfo.enabled");return i&&e&&!this._isData()?t.propsDiffOriginValue:this.original}static get assetsDirs(){return["assets"]}get el(){return n(this)}};W.style=N;const J=".inputBottomSeparation{margin:0 0 1.5rem 0}.icon-inline--on-left,.esriRtl .icon-inline--on-right{margin-right:6px;margin-left:0}.icon-inline--on-left,.icon-inline--on-right{display:inline;margin-top:-.15em}.font-size--3{font-size:0.8125rem;line-height:1.5}.scale-down{object-fit:scale-down}.btn-link{-webkit-appearance:none;cursor:pointer;padding:0;border:none;color:#6e6e6e;background:transparent}.btn-link:hover{text-decoration:underline}.inline-block{display:inline-block}.flex{display:flex}.img-container{display:inline;flex-grow:0}.summary-count-container{display:inline;flex-grow:1;margin-left:12px}.parent-container{max-width:100%;margin:1rem}.display-none{display:none}label{position:relative;display:block;margin:0 0 1.5rem 0}";let U=class{constructor(i){t(this,i);this.translations={};this.value={thumbnail:null,title:"",snippet:"",description:"",tags:[],accessInformation:"",licenseInfo:"",itemId:""};this.type=""}render(){this._validateValue();return e(s,null,e("div",{class:"parent-container"},e("div",{class:"inputBottomSeparation"},e("calcite-input",{id:"item-title",value:this.value.title})),e("div",{class:"inputBottomSeparation"},e("input",{accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),e("button",{class:"font-size--3 btn-link inline-block",onClick:()=>this._getThumbnail()},e("svg",{class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},e("path",{d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"}))," ",this.translations.editThumbnail),e("div",{class:"flex"},e("div",{class:"img-container"},e("img",{class:"scale-down",height:"133",ref:t=>this.thumbnail=t,width:"200"})),e("div",{class:"snippet-count-container"},e("calcite-input",{id:"item-snippet",maxlength:250,type:"textarea",value:this.value.snippet}),e("label",{class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),e("calcite-label",null,this.translations.description,e("label",{id:"item-description-label"},e("calcite-input",{id:"item-description",type:"textarea",value:this.value.description}))),e("calcite-label",null,this.translations.tags,e("label",{id:"item-tags-label"},e("calcite-input",{id:"item-tags",value:(this.value.tags&&Array.isArray(this.value.tags)?this.value.tags:[this.value.tags]).join(",")}))),this.type!=="Group"?e("calcite-label",null,this.translations.credits,e("label",{id:"item-credits-label"},e("calcite-input",{id:"item-credits",value:this.value.accessInformation}))):null,this.type!=="Group"?e("calcite-label",null,e("label",{id:"item-terms-label"},this.translations.termsOfUse,e("calcite-input",{id:"item-terms",type:"textarea",value:this.value.licenseInfo}))):null))}inputReceivedHandler(t){switch(t.target.id){case"item-title":this.value.title=t.target.value;this._updateStore("title",t.target.value);break;case"item-snippet":this.value.snippet=t.target.value;this._updateLengthLabel(this.value.snippet);this._updateStore("snippet",t.target.value);break;case"item-description":this.value.description=t.target.value;this._updateStore("description",t.target.value);break;case"item-tags":this.value.tags=t.target.value;this._updateStore("tags",t.target.value);break;case"item-credits":this.value.accessInformation=t.target.value;this._updateStore("accessInformation",t.target.value);break;case"item-terms":this.value.licenseInfo=t.target.value;this._updateStore("licenseInfo",t.target.value);break}}_getThumbnail(){this.browseForThumbnail.click()}_updateLengthLabel(t){this.itemSnippetCount.innerText=this.translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateThumbnail(t){const i=t.currentTarget.files;if(i&&i[0]){const t=new FileReader;t.onloadend=()=>{this.thumbnail.src=t.result};t.readAsDataURL(i[0])}}_validateValue(){const t=v(g,`models.${this.value.itemId}`);if(t){Object.keys(this.value).forEach((i=>{if(t.updateItemValues.hasOwnProperty(i)){this.value[i]=t.updateItemValues[i]}else if(t.originalItemValues.hasOwnProperty(i)){this.value[i]=t.originalItemValues[i]}}))}}_updateStore(t,i){const e=v(g,`models.${this.value.itemId}`);if(e.itemOriginValue){const a=JSON.parse(e.itemOriginValue);if(a.hasOwnProperty(t)){if(a[t]!==i){if(!e.originalItemValues.hasOwnProperty(t)){e.originalItemValues[t]=a[t]}e.updateItemValues[t]=i}else{delete e.updateItemValues[t]}}}}get el(){return n(this)}};U.style=J;const K=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";let G=class{constructor(i){t(this,i);this.translations={};this.value=[]}render(){return e(s,null,e("div",{class:"container-border"},this.renderItems(this.value)))}renderItems(t){return t.length>0?t.map((t=>e("calcite-label",{layout:"inline"},e("calcite-switch",{id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",switched:t.shareItem,value:"enabled"}),e("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),e("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const i=t.target.id;this.value=this.value.map((e=>{if(e.id===i){e.shareItem=t.target.switched;if(g===null||g===void 0?void 0:g.models[i]){let a=undefined;if(e.isShared&&!t.target.switched){a={type:"unshare",groupId:this.groupId}}else if(!e.isShared&&t.target.switched){a={type:"share",groupId:this.groupId}}g.models[i].shareInfo=a}}return e}))}get el(){return n(this)}};G.style=K;const q=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin:0rem 0rem 1rem 0rem}";let Q=class{constructor(e){t(this,e);this.organizationVariableSelected=i(this,"organizationVariableSelected",7);this.translations={};this.value=[]}render(){return e(s,null,e("div",null,e("h4",{class:"org-var-header"},this.translations.orgVariables)),e("div",{class:"container-border"},e("calcite-label",{id:"variable-label"},this.renderHierarchy(this.value))))}renderHierarchy(t){const i=t.map((t=>e("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)));return i}_treeItemSelected(t,i){this.organizationVariableSelected.emit({itemId:t,value:i})}get el(){return n(this)}};Q.style=q;const X=':host{display:block}.resource-item{padding:1rem;display:inline-block !important}.resource-button{margin-right:1rem}.resource-button[dir="rtl"]{margin-left:1rem}.display-none{display:none}.resource-progress{padding-top:1rem}';let Y=class{constructor(i){t(this,i);this.translations={};this.value={name:"",url:""}}valueWatchHandler(t,i){this.fileName=t.name!==i.name?t.name:this.fileName}componentWillLoad(){this.fileName=this.value.name}render(){return e(s,null,e("div",{class:"resource-item"},e("input",{accept:".zip",class:"display-none",onChange:t=>this._updateFile(t),ref:t=>this.browseForFile=t,type:"file"}),e("a",{class:"display-none",download:true,href:this.value.url,ref:t=>this.downloadFile=t}),e("calcite-label",null,this.fileName),e("calcite-button",{appearance:"solid",class:"resource-button",color:"blue","icon-start":"download",onClick:()=>this._downloadItem(),scale:"m"},this.translations.download),e("calcite-button",{appearance:"solid",class:"resource-button",color:"blue","icon-start":"upload",onClick:()=>this._updateItem(),scale:"m"},this.translations.update)))}_downloadItem(){this.downloadFile.click()}_updateItem(){this.browseForFile.click()}_updateFile(t){const i=t.currentTarget.files;if(i&&i[0]){const t=i[0].name;const e=new FileReader;e.onloadend=i=>{this.value={name:t,url:typeof i.target.result==="string"?i.target.result:""}};e.readAsDataURL(i[0])}}get el(){return n(this)}static get watchers(){return{value:["valueWatchHandler"]}}};Y.style=X;const Z=":host{display:flexbox}.solution-data-container{height:100%;max-width:100%;position:relative}.solution-data-child-container{height:100%;width:100%;display:flex;flex-direction:column;overflow:auto}.solution-data-child-container-collapsed{height:100%;width:50px;display:flex;flex-direction:column;overflow:auto}.inputBottomSeparation{margin:0 0 1.5rem 0}.json-editor{width:-webkit-fill-available;margin:1rem}.collapse-btn{padding:1rem 1rem 0 1rem}.org-vars{padding:1rem 1rem 0 1rem;max-height:45%}.sol-vars{padding:0 1rem 0 1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}.hide{display:none}";let tt=class{constructor(i){t(this,i);this.translations={};this.value={};this.isResource=false;this.instanceid="";this.itemid="";this.solutionVariables=[];this.organizationVariables=[];this.varsOpen=true}render(){return e(s,null,e("div",{class:"solution-data-container"},this.renderTemplateData(this.value)))}renderTemplateData(t){return this.isResource?this._resourceData(t):this._jsonData()}_jsonData(){return e("calcite-shell",{class:"light var-container",dir:"ltr"},e("calcite-panel",{class:"json-editor"},e("div",{class:"solution-data-child-container calcite-match-height"},e("json-editor",{instanceid:this.instanceid,translations:this.translations,value:this.itemid}))),e("calcite-shell-panel",{"height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},e("div",{class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},e("calcite-button",{appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.translations.cancelEdits}),e("div",{class:this.varsOpen?"org-vars":"org-vars hide",id:"orgVars"},e("solution-organization-variables",{translations:this.translations,value:this.organizationVariables})),e("div",{class:this.varsOpen?"sol-vars":"sol-vars hide",id:"solVars"},e("solution-variables",{translations:this.translations,value:this.solutionVariables})))))}_resourceData(t){return e("solution-resource-item",{translations:this.translations,value:t.resourceItem})}_toggleVars(){this.varsOpen=!this.varsOpen}get el(){return n(this)}};tt.style=Z;const it=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin:1rem 0rem 1rem 0rem}.icon-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";let et=class{constructor(e){t(this,e);this.solutionVariableSelected=i(this,"solutionVariableSelected",7);this.translations={};this.value=[]}render(){return e(s,null,e("div",null,e("h4",{class:"org-var-header"},this.translations.solVariables)),e("div",{class:"container-border"},e("calcite-label",{id:"variable-label"},this.renderHierarchy(this.value))))}renderHierarchy(t){const i=t.map((t=>t.dependencies&&t.dependencies.length>0?e("calcite-tree-item",null,e("solution-item-icon",{type:t.type}),e("span",{class:"icon-text",title:t.title},t.title),e("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):e("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)));return i}_treeItemSelected(t,i){this.solutionVariableSelected.emit({itemId:t,value:i})}get el(){return n(this)}};et.style=it;export{C as calcite_panel,S as calcite_shell,B as calcite_shell_panel,A as calcite_tab,F as calcite_tab_nav,L as calcite_tab_title,V as calcite_tabs,W as json_editor,U as solution_item_details,G as solution_item_sharing,Q as solution_organization_variables,Y as solution_resource_item,tt as solution_template_data,et as solution_variables};
|
23
|
-
//# sourceMappingURL=p-b797d79b.entry.js.map
|