@esri/solutions-components 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -3
- package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-893499a5.js} +3 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +9 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
- package/dist/collection/components/solution-item/solution-item.js +2 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
- package/dist/collection/utils/solution-store.js +2 -0
- package/dist/collection/utils/solution-store.js.map +1 -1
- package/dist/collection/utils/solution-store.ts +2 -0
- package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
- package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
- package/dist/esm/solution-configuration.entry.js +10 -3
- package/dist/esm/solution-configuration.entry.js.map +1 -1
- package/dist/esm/solution-contents_3.entry.js +3 -1
- package/dist/esm/solution-contents_3.entry.js.map +1 -1
- package/dist/esm/{solution-store-b3c65467.js → solution-store-0c58c852.js} +3 -1
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-b25f6ebe.js → p-659edb14.js} +3 -1
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-638738f2.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/{p-7e8985f2.entry.js → p-90629c1d.entry.js} +11 -4
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-542189bc.entry.js → p-984cb687.entry.js} +17 -7
- package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/solution-store.ts +2 -0
- package/dist/solutions-components_commit.txt +9 -6
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-e2fc11ac.js.map +0 -1
- package/dist/components/ExpandToggle.js +0 -112
- package/dist/components/ExpandToggle.js.map +0 -1
- package/dist/components/Heading.js +0 -24
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -24
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/action-bar.js +0 -278
- package/dist/components/action-bar.js.map +0 -1
- package/dist/components/action-group.js +0 -151
- package/dist/components/action-group.js.map +0 -1
- package/dist/components/action-menu.js +0 -358
- package/dist/components/action-menu.js.map +0 -1
- package/dist/components/action.js +0 -216
- package/dist/components/action.js.map +0 -1
- package/dist/components/array.js +0 -17
- package/dist/components/array.js.map +0 -1
- package/dist/components/buffer-tools.d.ts +0 -11
- package/dist/components/buffer-tools.js +0 -13
- package/dist/components/buffer-tools.js.map +0 -1
- package/dist/components/buffer-tools2.js +0 -256
- package/dist/components/buffer-tools2.js.map +0 -1
- package/dist/components/button.js +0 -265
- package/dist/components/button.js.map +0 -1
- package/dist/components/calcite-accordion-item.js +0 -246
- package/dist/components/calcite-accordion-item.js.map +0 -1
- package/dist/components/calcite-accordion.js +0 -182
- package/dist/components/calcite-accordion.js.map +0 -1
- package/dist/components/calcite-action-bar.js +0 -13
- package/dist/components/calcite-action-bar.js.map +0 -1
- package/dist/components/calcite-action-group.js +0 -13
- package/dist/components/calcite-action-group.js.map +0 -1
- package/dist/components/calcite-action-menu.js +0 -13
- package/dist/components/calcite-action-menu.js.map +0 -1
- package/dist/components/calcite-action-pad.js +0 -199
- package/dist/components/calcite-action-pad.js.map +0 -1
- package/dist/components/calcite-action.js +0 -13
- package/dist/components/calcite-action.js.map +0 -1
- package/dist/components/calcite-alert.js +0 -299
- package/dist/components/calcite-alert.js.map +0 -1
- package/dist/components/calcite-avatar.js +0 -184
- package/dist/components/calcite-avatar.js.map +0 -1
- package/dist/components/calcite-block-section.js +0 -157
- package/dist/components/calcite-block-section.js.map +0 -1
- package/dist/components/calcite-block.js +0 -277
- package/dist/components/calcite-block.js.map +0 -1
- package/dist/components/calcite-button.js +0 -13
- package/dist/components/calcite-button.js.map +0 -1
- package/dist/components/calcite-card.js +0 -189
- package/dist/components/calcite-card.js.map +0 -1
- package/dist/components/calcite-checkbox.js +0 -13
- package/dist/components/calcite-checkbox.js.map +0 -1
- package/dist/components/calcite-chip.js +0 -13
- package/dist/components/calcite-chip.js.map +0 -1
- package/dist/components/calcite-color-picker-hex-input.js +0 -13
- package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
- package/dist/components/calcite-color-picker-swatch.js +0 -13
- package/dist/components/calcite-color-picker-swatch.js.map +0 -1
- package/dist/components/calcite-color-picker.js +0 -1038
- package/dist/components/calcite-color-picker.js.map +0 -1
- package/dist/components/calcite-combobox-item-group.js +0 -77
- package/dist/components/calcite-combobox-item-group.js.map +0 -1
- package/dist/components/calcite-combobox-item.js +0 -13
- package/dist/components/calcite-combobox-item.js.map +0 -1
- package/dist/components/calcite-combobox.js +0 -13
- package/dist/components/calcite-combobox.js.map +0 -1
- package/dist/components/calcite-date-picker-day.js +0 -13
- package/dist/components/calcite-date-picker-day.js.map +0 -1
- package/dist/components/calcite-date-picker-month-header.js +0 -13
- package/dist/components/calcite-date-picker-month-header.js.map +0 -1
- package/dist/components/calcite-date-picker-month.js +0 -13
- package/dist/components/calcite-date-picker-month.js.map +0 -1
- package/dist/components/calcite-date-picker.js +0 -13
- package/dist/components/calcite-date-picker.js.map +0 -1
- package/dist/components/calcite-dropdown-group.js +0 -101
- package/dist/components/calcite-dropdown-group.js.map +0 -1
- package/dist/components/calcite-dropdown-item.js +0 -237
- package/dist/components/calcite-dropdown-item.js.map +0 -1
- package/dist/components/calcite-dropdown.js +0 -13
- package/dist/components/calcite-dropdown.js.map +0 -1
- package/dist/components/calcite-fab.js +0 -146
- package/dist/components/calcite-fab.js.map +0 -1
- package/dist/components/calcite-filter.js +0 -197
- package/dist/components/calcite-filter.js.map +0 -1
- package/dist/components/calcite-flow-item.js +0 -245
- package/dist/components/calcite-flow-item.js.map +0 -1
- package/dist/components/calcite-flow.js +0 -149
- package/dist/components/calcite-flow.js.map +0 -1
- package/dist/components/calcite-graph.js +0 -13
- package/dist/components/calcite-graph.js.map +0 -1
- package/dist/components/calcite-handle.js +0 -13
- package/dist/components/calcite-handle.js.map +0 -1
- package/dist/components/calcite-icon.js +0 -13
- package/dist/components/calcite-icon.js.map +0 -1
- package/dist/components/calcite-inline-editable.js +0 -296
- package/dist/components/calcite-inline-editable.js.map +0 -1
- package/dist/components/calcite-input-date-picker.js +0 -715
- package/dist/components/calcite-input-date-picker.js.map +0 -1
- package/dist/components/calcite-input-message.js +0 -13
- package/dist/components/calcite-input-message.js.map +0 -1
- package/dist/components/calcite-input-number.js +0 -639
- package/dist/components/calcite-input-number.js.map +0 -1
- package/dist/components/calcite-input-text.js +0 -402
- package/dist/components/calcite-input-text.js.map +0 -1
- package/dist/components/calcite-input-time-picker.js +0 -436
- package/dist/components/calcite-input-time-picker.js.map +0 -1
- package/dist/components/calcite-input.js +0 -13
- package/dist/components/calcite-input.js.map +0 -1
- package/dist/components/calcite-label.js +0 -13
- package/dist/components/calcite-label.js.map +0 -1
- package/dist/components/calcite-link.js +0 -13
- package/dist/components/calcite-link.js.map +0 -1
- package/dist/components/calcite-list-item-group.js +0 -67
- package/dist/components/calcite-list-item-group.js.map +0 -1
- package/dist/components/calcite-list-item.js +0 -13
- package/dist/components/calcite-list-item.js.map +0 -1
- package/dist/components/calcite-list.js +0 -13
- package/dist/components/calcite-list.js.map +0 -1
- package/dist/components/calcite-loader.js +0 -13
- package/dist/components/calcite-loader.js.map +0 -1
- package/dist/components/calcite-modal.js +0 -500
- package/dist/components/calcite-modal.js.map +0 -1
- package/dist/components/calcite-notice.js +0 -13
- package/dist/components/calcite-notice.js.map +0 -1
- package/dist/components/calcite-option-group.js +0 -66
- package/dist/components/calcite-option-group.js.map +0 -1
- package/dist/components/calcite-option.js +0 -13
- package/dist/components/calcite-option.js.map +0 -1
- package/dist/components/calcite-pagination.js +0 -260
- package/dist/components/calcite-pagination.js.map +0 -1
- package/dist/components/calcite-panel.js +0 -13
- package/dist/components/calcite-panel.js.map +0 -1
- package/dist/components/calcite-pick-list-group.js +0 -76
- package/dist/components/calcite-pick-list-group.js.map +0 -1
- package/dist/components/calcite-pick-list-item.js +0 -13
- package/dist/components/calcite-pick-list-item.js.map +0 -1
- package/dist/components/calcite-pick-list.js +0 -175
- package/dist/components/calcite-pick-list.js.map +0 -1
- package/dist/components/calcite-popover-manager.js +0 -96
- package/dist/components/calcite-popover-manager.js.map +0 -1
- package/dist/components/calcite-popover.js +0 -13
- package/dist/components/calcite-popover.js.map +0 -1
- package/dist/components/calcite-progress.js +0 -13
- package/dist/components/calcite-progress.js.map +0 -1
- package/dist/components/calcite-radio-button-group.js +0 -134
- package/dist/components/calcite-radio-button-group.js.map +0 -1
- package/dist/components/calcite-radio-button.js +0 -312
- package/dist/components/calcite-radio-button.js.map +0 -1
- package/dist/components/calcite-radio-group-item.js +0 -13
- package/dist/components/calcite-radio-group-item.js.map +0 -1
- package/dist/components/calcite-radio-group.js +0 -13
- package/dist/components/calcite-radio-group.js.map +0 -1
- package/dist/components/calcite-rating.js +0 -203
- package/dist/components/calcite-rating.js.map +0 -1
- package/dist/components/calcite-scrim.js +0 -13
- package/dist/components/calcite-scrim.js.map +0 -1
- package/dist/components/calcite-select.js +0 -13
- package/dist/components/calcite-select.js.map +0 -1
- package/dist/components/calcite-shell-center-row.js +0 -102
- package/dist/components/calcite-shell-center-row.js.map +0 -1
- package/dist/components/calcite-shell-panel.js +0 -13
- package/dist/components/calcite-shell-panel.js.map +0 -1
- package/dist/components/calcite-shell.js +0 -13
- package/dist/components/calcite-shell.js.map +0 -1
- package/dist/components/calcite-slider.js +0 -13
- package/dist/components/calcite-slider.js.map +0 -1
- package/dist/components/calcite-sortable-list.js +0 -204
- package/dist/components/calcite-sortable-list.js.map +0 -1
- package/dist/components/calcite-split-button.js +0 -170
- package/dist/components/calcite-split-button.js.map +0 -1
- package/dist/components/calcite-stepper-item.js +0 -273
- package/dist/components/calcite-stepper-item.js.map +0 -1
- package/dist/components/calcite-stepper.js +0 -258
- package/dist/components/calcite-stepper.js.map +0 -1
- package/dist/components/calcite-switch.js +0 -13
- package/dist/components/calcite-switch.js.map +0 -1
- package/dist/components/calcite-tab-nav.js +0 -13
- package/dist/components/calcite-tab-nav.js.map +0 -1
- package/dist/components/calcite-tab-title.js +0 -13
- package/dist/components/calcite-tab-title.js.map +0 -1
- package/dist/components/calcite-tab.js +0 -13
- package/dist/components/calcite-tab.js.map +0 -1
- package/dist/components/calcite-tabs.js +0 -13
- package/dist/components/calcite-tabs.js.map +0 -1
- package/dist/components/calcite-tile-select-group.js +0 -67
- package/dist/components/calcite-tile-select-group.js.map +0 -1
- package/dist/components/calcite-tile-select.js +0 -268
- package/dist/components/calcite-tile-select.js.map +0 -1
- package/dist/components/calcite-tile.js +0 -13
- package/dist/components/calcite-tile.js.map +0 -1
- package/dist/components/calcite-time-picker.js +0 -13
- package/dist/components/calcite-time-picker.js.map +0 -1
- package/dist/components/calcite-tip-group.js +0 -43
- package/dist/components/calcite-tip-group.js.map +0 -1
- package/dist/components/calcite-tip-manager.js +0 -225
- package/dist/components/calcite-tip-manager.js.map +0 -1
- package/dist/components/calcite-tip.js +0 -164
- package/dist/components/calcite-tip.js.map +0 -1
- package/dist/components/calcite-tooltip-manager.js +0 -59
- package/dist/components/calcite-tooltip-manager.js.map +0 -1
- package/dist/components/calcite-tooltip.js +0 -13
- package/dist/components/calcite-tooltip.js.map +0 -1
- package/dist/components/calcite-tree-item.js +0 -13
- package/dist/components/calcite-tree-item.js.map +0 -1
- package/dist/components/calcite-tree.js +0 -13
- package/dist/components/calcite-tree.js.map +0 -1
- package/dist/components/calcite-value-list-item.js +0 -13
- package/dist/components/calcite-value-list-item.js.map +0 -1
- package/dist/components/calcite-value-list.js +0 -13
- package/dist/components/calcite-value-list.js.map +0 -1
- package/dist/components/check-list.d.ts +0 -11
- package/dist/components/check-list.js +0 -13
- package/dist/components/check-list.js.map +0 -1
- package/dist/components/check-list2.js +0 -128
- package/dist/components/check-list2.js.map +0 -1
- package/dist/components/checkbox.js +0 -167
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/chip.js +0 -172
- package/dist/components/chip.js.map +0 -1
- package/dist/components/color-picker-hex-input.js +0 -365
- package/dist/components/color-picker-hex-input.js.map +0 -1
- package/dist/components/color-picker-swatch.js +0 -2036
- package/dist/components/color-picker-swatch.js.map +0 -1
- package/dist/components/combobox-item.js +0 -184
- package/dist/components/combobox-item.js.map +0 -1
- package/dist/components/combobox.js +0 -914
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/conditionalSlot.js +0 -52
- package/dist/components/conditionalSlot.js.map +0 -1
- package/dist/components/config-buffer-tools.d.ts +0 -11
- package/dist/components/config-buffer-tools.js +0 -185
- package/dist/components/config-buffer-tools.js.map +0 -1
- package/dist/components/config-draw-tools.d.ts +0 -11
- package/dist/components/config-draw-tools.js +0 -124
- package/dist/components/config-draw-tools.js.map +0 -1
- package/dist/components/config-layer-picker.d.ts +0 -11
- package/dist/components/config-layer-picker.js +0 -148
- package/dist/components/config-layer-picker.js.map +0 -1
- package/dist/components/config-pdf-download.d.ts +0 -11
- package/dist/components/config-pdf-download.js +0 -157
- package/dist/components/config-pdf-download.js.map +0 -1
- package/dist/components/date-picker-day.js +0 -113
- package/dist/components/date-picker-day.js.map +0 -1
- package/dist/components/date-picker-month-header.js +0 -226
- package/dist/components/date-picker-month-header.js.map +0 -1
- package/dist/components/date-picker-month.js +0 -346
- package/dist/components/date-picker-month.js.map +0 -1
- package/dist/components/date-picker.js +0 -577
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date.js +0 -182
- package/dist/components/date.js.map +0 -1
- package/dist/components/debounce.js +0 -489
- package/dist/components/debounce.js.map +0 -1
- package/dist/components/dom.js +0 -233
- package/dist/components/dom.js.map +0 -1
- package/dist/components/dropdown.js +0 -507
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/filter.js +0 -765
- package/dist/components/filter.js.map +0 -1
- package/dist/components/floating-ui.js +0 -1787
- package/dist/components/floating-ui.js.map +0 -1
- package/dist/components/form.js +0 -230
- package/dist/components/form.js.map +0 -1
- package/dist/components/graph.js +0 -256
- package/dist/components/graph.js.map +0 -1
- package/dist/components/guid.js +0 -26
- package/dist/components/guid.js.map +0 -1
- package/dist/components/handle.js +0 -121
- package/dist/components/handle.js.map +0 -1
- package/dist/components/icon.js +0 -204
- package/dist/components/icon.js.map +0 -1
- package/dist/components/index.d.ts +0 -48
- package/dist/components/index.js +0 -190
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js +0 -201
- package/dist/components/index2.js.map +0 -1
- package/dist/components/input-message.js +0 -103
- package/dist/components/input-message.js.map +0 -1
- package/dist/components/input.js +0 -742
- package/dist/components/input.js.map +0 -1
- package/dist/components/interactive.js +0 -53
- package/dist/components/interactive.js.map +0 -1
- package/dist/components/interfaces.js +0 -21
- package/dist/components/interfaces.js.map +0 -1
- package/dist/components/interfaces2.js +0 -23
- package/dist/components/interfaces2.js.map +0 -1
- package/dist/components/interfaces3.js +0 -72
- package/dist/components/interfaces3.js.map +0 -1
- package/dist/components/json-editor.d.ts +0 -11
- package/dist/components/json-editor.js +0 -13
- package/dist/components/json-editor.js.map +0 -1
- package/dist/components/json-editor2.js +0 -443
- package/dist/components/json-editor2.js.map +0 -1
- package/dist/components/key.js +0 -18
- package/dist/components/key.js.map +0 -1
- package/dist/components/label.js +0 -108
- package/dist/components/label.js.map +0 -1
- package/dist/components/label2.js +0 -133
- package/dist/components/label2.js.map +0 -1
- package/dist/components/labelFormats.js +0 -212
- package/dist/components/labelFormats.js.map +0 -1
- package/dist/components/link.js +0 -125
- package/dist/components/link.js.map +0 -1
- package/dist/components/list-item.js +0 -151
- package/dist/components/list-item.js.map +0 -1
- package/dist/components/list.js +0 -85
- package/dist/components/list.js.map +0 -1
- package/dist/components/loadModules.js +0 -30
- package/dist/components/loadModules.js.map +0 -1
- package/dist/components/loader.js +0 -118
- package/dist/components/loader.js.map +0 -1
- package/dist/components/locale.js +0 -414
- package/dist/components/locale.js.map +0 -1
- package/dist/components/locale2.js +0 -415
- package/dist/components/locale2.js.map +0 -1
- package/dist/components/map-draw-tools.d.ts +0 -11
- package/dist/components/map-draw-tools.js +0 -13
- package/dist/components/map-draw-tools.js.map +0 -1
- package/dist/components/map-draw-tools2.js +0 -230
- package/dist/components/map-draw-tools2.js.map +0 -1
- package/dist/components/map-layer-picker.d.ts +0 -11
- package/dist/components/map-layer-picker.js +0 -13
- package/dist/components/map-layer-picker.js.map +0 -1
- package/dist/components/map-layer-picker2.js +0 -190
- package/dist/components/map-layer-picker2.js.map +0 -1
- package/dist/components/map-search.d.ts +0 -11
- package/dist/components/map-search.js +0 -157
- package/dist/components/map-search.js.map +0 -1
- package/dist/components/map-select-tools.d.ts +0 -11
- package/dist/components/map-select-tools.js +0 -13
- package/dist/components/map-select-tools.js.map +0 -1
- package/dist/components/map-select-tools2.js +0 -555
- package/dist/components/map-select-tools2.js.map +0 -1
- package/dist/components/mapViewUtils.js +0 -131
- package/dist/components/mapViewUtils.js.map +0 -1
- package/dist/components/math.js +0 -26
- package/dist/components/math.js.map +0 -1
- package/dist/components/nonChromiumPlatformUtils.js +0 -505
- package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
- package/dist/components/notice.js +0 -194
- package/dist/components/notice.js.map +0 -1
- package/dist/components/observers.js +0 -58
- package/dist/components/observers.js.map +0 -1
- package/dist/components/openCloseComponent.js +0 -58
- package/dist/components/openCloseComponent.js.map +0 -1
- package/dist/components/option.js +0 -111
- package/dist/components/option.js.map +0 -1
- package/dist/components/panel.js +0 -461
- package/dist/components/panel.js.map +0 -1
- package/dist/components/pdf-download.d.ts +0 -11
- package/dist/components/pdf-download.js +0 -13
- package/dist/components/pdf-download.js.map +0 -1
- package/dist/components/pdf-download2.js +0 -243
- package/dist/components/pdf-download2.js.map +0 -1
- package/dist/components/pick-list-item.js +0 -257
- package/dist/components/pick-list-item.js.map +0 -1
- package/dist/components/popover.js +0 -502
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.js +0 -62
- package/dist/components/progress.js.map +0 -1
- package/dist/components/public-notification.d.ts +0 -11
- package/dist/components/public-notification.js +0 -784
- package/dist/components/public-notification.js.map +0 -1
- package/dist/components/publicNotificationStore.js +0 -40
- package/dist/components/publicNotificationStore.js.map +0 -1
- package/dist/components/queryUtils.js +0 -163
- package/dist/components/queryUtils.js.map +0 -1
- package/dist/components/radio-group-item.js +0 -103
- package/dist/components/radio-group-item.js.map +0 -1
- package/dist/components/radio-group.js +0 -237
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/refine-selection-tools.d.ts +0 -11
- package/dist/components/refine-selection-tools.js +0 -13
- package/dist/components/refine-selection-tools.js.map +0 -1
- package/dist/components/refine-selection-tools2.js +0 -500
- package/dist/components/refine-selection-tools2.js.map +0 -1
- package/dist/components/refine-selection.d.ts +0 -11
- package/dist/components/refine-selection.js +0 -13
- package/dist/components/refine-selection.js.map +0 -1
- package/dist/components/refine-selection2.js +0 -369
- package/dist/components/refine-selection2.js.map +0 -1
- package/dist/components/resources.js +0 -26
- package/dist/components/resources.js.map +0 -1
- package/dist/components/resources2.js +0 -23
- package/dist/components/resources2.js.map +0 -1
- package/dist/components/resources3.js +0 -40
- package/dist/components/resources3.js.map +0 -1
- package/dist/components/scrim.js +0 -85
- package/dist/components/scrim.js.map +0 -1
- package/dist/components/select.js +0 -261
- package/dist/components/select.js.map +0 -1
- package/dist/components/shared-list-render.js +0 -321
- package/dist/components/shared-list-render.js.map +0 -1
- package/dist/components/shell-panel.js +0 -283
- package/dist/components/shell-panel.js.map +0 -1
- package/dist/components/shell.js +0 -123
- package/dist/components/shell.js.map +0 -1
- package/dist/components/slider.js +0 -898
- package/dist/components/slider.js.map +0 -1
- package/dist/components/solution-configuration.d.ts +0 -11
- package/dist/components/solution-configuration.js +0 -2225
- package/dist/components/solution-configuration.js.map +0 -1
- package/dist/components/solution-contents.d.ts +0 -11
- package/dist/components/solution-contents.js +0 -13
- package/dist/components/solution-contents.js.map +0 -1
- package/dist/components/solution-contents2.js +0 -130
- package/dist/components/solution-contents2.js.map +0 -1
- package/dist/components/solution-item-details.d.ts +0 -11
- package/dist/components/solution-item-details.js +0 -13
- package/dist/components/solution-item-details.js.map +0 -1
- package/dist/components/solution-item-details2.js +0 -236
- package/dist/components/solution-item-details2.js.map +0 -1
- package/dist/components/solution-item-icon.d.ts +0 -11
- package/dist/components/solution-item-icon.js +0 -13
- package/dist/components/solution-item-icon.js.map +0 -1
- package/dist/components/solution-item-icon2.js +0 -344
- package/dist/components/solution-item-icon2.js.map +0 -1
- package/dist/components/solution-item-sharing.d.ts +0 -11
- package/dist/components/solution-item-sharing.js +0 -13
- package/dist/components/solution-item-sharing.js.map +0 -1
- package/dist/components/solution-item-sharing2.js +0 -169
- package/dist/components/solution-item-sharing2.js.map +0 -1
- package/dist/components/solution-item.d.ts +0 -11
- package/dist/components/solution-item.js +0 -13
- package/dist/components/solution-item.js.map +0 -1
- package/dist/components/solution-item2.js +0 -317
- package/dist/components/solution-item2.js.map +0 -1
- package/dist/components/solution-organization-variables.d.ts +0 -11
- package/dist/components/solution-organization-variables.js +0 -13
- package/dist/components/solution-organization-variables.js.map +0 -1
- package/dist/components/solution-organization-variables2.js +0 -134
- package/dist/components/solution-organization-variables2.js.map +0 -1
- package/dist/components/solution-resource-item.d.ts +0 -11
- package/dist/components/solution-resource-item.js +0 -13
- package/dist/components/solution-resource-item.js.map +0 -1
- package/dist/components/solution-resource-item2.js +0 -358
- package/dist/components/solution-resource-item2.js.map +0 -1
- package/dist/components/solution-spatial-ref.d.ts +0 -11
- package/dist/components/solution-spatial-ref.js +0 -13
- package/dist/components/solution-spatial-ref.js.map +0 -1
- package/dist/components/solution-spatial-ref2.js +0 -21448
- package/dist/components/solution-spatial-ref2.js.map +0 -1
- package/dist/components/solution-store.js +0 -4094
- package/dist/components/solution-store.js.map +0 -1
- package/dist/components/solution-template-data.d.ts +0 -11
- package/dist/components/solution-template-data.js +0 -13
- package/dist/components/solution-template-data.js.map +0 -1
- package/dist/components/solution-template-data2.js +0 -235
- package/dist/components/solution-template-data2.js.map +0 -1
- package/dist/components/solution-variables.d.ts +0 -11
- package/dist/components/solution-variables.js +0 -13
- package/dist/components/solution-variables.js.map +0 -1
- package/dist/components/solution-variables2.js +0 -152
- package/dist/components/solution-variables2.js.map +0 -1
- package/dist/components/sortable.esm.js +0 -3028
- package/dist/components/sortable.esm.js.map +0 -1
- package/dist/components/store-manager.d.ts +0 -11
- package/dist/components/store-manager.js +0 -85
- package/dist/components/store-manager.js.map +0 -1
- package/dist/components/switch.js +0 -141
- package/dist/components/switch.js.map +0 -1
- package/dist/components/tab-nav.js +0 -243
- package/dist/components/tab-nav.js.map +0 -1
- package/dist/components/tab-title.js +0 -278
- package/dist/components/tab-title.js.map +0 -1
- package/dist/components/tab.js +0 -156
- package/dist/components/tab.js.map +0 -1
- package/dist/components/tabs.js +0 -190
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tile.js +0 -131
- package/dist/components/tile.js.map +0 -1
- package/dist/components/time-picker.js +0 -945
- package/dist/components/time-picker.js.map +0 -1
- package/dist/components/tooltip.js +0 -401
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/tree-item.js +0 -296
- package/dist/components/tree-item.js.map +0 -1
- package/dist/components/tree.js +0 -329
- package/dist/components/tree.js.map +0 -1
- package/dist/components/utils.js +0 -121
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js +0 -53
- package/dist/components/utils2.js.map +0 -1
- package/dist/components/value-list-item.js +0 -206
- package/dist/components/value-list-item.js.map +0 -1
- package/dist/components/value-list.js +0 -335
- package/dist/components/value-list.js.map +0 -1
- package/dist/esm/solution-store-b3c65467.js.map +0 -1
- package/dist/solutions-components/p-542189bc.entry.js.map +0 -1
- package/dist/solutions-components/p-638738f2.entry.js.map +0 -1
- package/dist/solutions-components/p-7e8985f2.entry.js.map +0 -1
- package/dist/solutions-components/p-b25f6ebe.js.map +0 -1
@@ -1,369 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { c as ESelectionMode, a as EWorkflowType } from './interfaces3.js';
|
8
|
-
import { g as getLocaleComponentStrings } from './locale.js';
|
9
|
-
import { d as defineCustomElement$f } from './action.js';
|
10
|
-
import { d as defineCustomElement$e } from './chip.js';
|
11
|
-
import { d as defineCustomElement$d } from './combobox.js';
|
12
|
-
import { d as defineCustomElement$c } from './combobox-item.js';
|
13
|
-
import { d as defineCustomElement$b } from './icon.js';
|
14
|
-
import { d as defineCustomElement$a } from './label.js';
|
15
|
-
import { d as defineCustomElement$9 } from './list.js';
|
16
|
-
import { d as defineCustomElement$8 } from './list-item.js';
|
17
|
-
import { d as defineCustomElement$7 } from './loader.js';
|
18
|
-
import { d as defineCustomElement$6 } from './option.js';
|
19
|
-
import { d as defineCustomElement$5 } from './radio-group.js';
|
20
|
-
import { d as defineCustomElement$4 } from './radio-group-item.js';
|
21
|
-
import { d as defineCustomElement$3 } from './select.js';
|
22
|
-
import { d as defineCustomElement$2 } from './map-layer-picker2.js';
|
23
|
-
import { d as defineCustomElement$1 } from './refine-selection-tools2.js';
|
24
|
-
|
25
|
-
/** @license
|
26
|
-
* Copyright 2022 Esri
|
27
|
-
*
|
28
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
29
|
-
* you may not use this file except in compliance with the License.
|
30
|
-
* You may obtain a copy of the License at
|
31
|
-
*
|
32
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
33
|
-
*
|
34
|
-
* Unless required by applicable law or agreed to in writing, software
|
35
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
36
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
37
|
-
* See the License for the specific language governing permissions and
|
38
|
-
* limitations under the License.
|
39
|
-
*/
|
40
|
-
function getSelectionIds(selectionSets) {
|
41
|
-
return Object.keys(selectionSets).reduce((prev, cur) => {
|
42
|
-
return [
|
43
|
-
...prev,
|
44
|
-
...selectionSets[cur].download ? selectionSets[cur].selectedIds : []
|
45
|
-
];
|
46
|
-
}, []);
|
47
|
-
}
|
48
|
-
function getTotal(selectionSets) {
|
49
|
-
return [...new Set(getSelectionIds(selectionSets))].length;
|
50
|
-
}
|
51
|
-
|
52
|
-
const refineSelectionCss = ":host{display:block}";
|
53
|
-
|
54
|
-
const RefineSelection = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
55
|
-
constructor() {
|
56
|
-
super();
|
57
|
-
this.__registerHost();
|
58
|
-
this.selectionSetsChanged = createEvent(this, "selectionSetsChanged", 7);
|
59
|
-
/**
|
60
|
-
* boolean: Indicates if any new graphics should be added or removed
|
61
|
-
*/
|
62
|
-
this._addEnabled = true;
|
63
|
-
this.addresseeLayer = undefined;
|
64
|
-
this.mapView = undefined;
|
65
|
-
this.selectionSets = [];
|
66
|
-
this._translations = undefined;
|
67
|
-
}
|
68
|
-
/**
|
69
|
-
* Handles changes to refine selection ids.
|
70
|
-
*
|
71
|
-
*/
|
72
|
-
refineSelectionIdsChange(event) {
|
73
|
-
var _a, _b;
|
74
|
-
const addIds = ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.addIds) || [];
|
75
|
-
const removeIds = ((_b = event.detail) === null || _b === void 0 ? void 0 : _b.removeIds) || [];
|
76
|
-
this._updateSelectionSets(removeIds);
|
77
|
-
this._updateRefineSelectionSet(addIds, removeIds);
|
78
|
-
}
|
79
|
-
//--------------------------------------------------------------------------
|
80
|
-
//
|
81
|
-
// Functions (lifecycle)
|
82
|
-
//
|
83
|
-
//--------------------------------------------------------------------------
|
84
|
-
/**
|
85
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
86
|
-
*/
|
87
|
-
async componentWillLoad() {
|
88
|
-
await this._getTranslations();
|
89
|
-
}
|
90
|
-
/**
|
91
|
-
* Renders the component.
|
92
|
-
*/
|
93
|
-
render() {
|
94
|
-
return (h(Host, null, h("div", { class: "padding-1" }, h("div", null, h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, this._translations.add), h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, this._translations.remove)), h("refine-selection-tools", { border: true, ids: getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, useLayerPicker: false })), h("br", null), (h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
95
|
-
}
|
96
|
-
//--------------------------------------------------------------------------
|
97
|
-
//
|
98
|
-
// Functions (protected)
|
99
|
-
//
|
100
|
-
//--------------------------------------------------------------------------
|
101
|
-
/**
|
102
|
-
* Store the Add/Remove mode
|
103
|
-
*
|
104
|
-
* @protected
|
105
|
-
*/
|
106
|
-
_modeChanged(evt) {
|
107
|
-
this._addEnabled = evt.detail === ESelectionMode.ADD;
|
108
|
-
}
|
109
|
-
/**
|
110
|
-
* Set the refine tools selection mode
|
111
|
-
*
|
112
|
-
* @protected
|
113
|
-
*/
|
114
|
-
_setSelectionMode(mode) {
|
115
|
-
this._refineTools.mode = mode;
|
116
|
-
}
|
117
|
-
/**
|
118
|
-
* Create a list to show the number added/removed/total unique selected
|
119
|
-
*
|
120
|
-
* @returns the list node
|
121
|
-
* @protected
|
122
|
-
*/
|
123
|
-
_getRefineSelectionSetList() {
|
124
|
-
var _a, _b, _c;
|
125
|
-
const total = getTotal(this.selectionSets);
|
126
|
-
const refineSet = this._getRefineSelectionSet(this.selectionSets);
|
127
|
-
const numAdded = (refineSet === null || refineSet === void 0 ? void 0 : refineSet.refineIds.addIds.length) || 0;
|
128
|
-
const numRemoved = (refineSet === null || refineSet === void 0 ? void 0 : refineSet.refineIds.removeIds.length) || 0;
|
129
|
-
return [(h("calcite-list-item", { label: (_a = this._translations.featuresAdded) === null || _a === void 0 ? void 0 : _a.replace("{{n}}", numAdded.toString()) })), (h("calcite-list-item", { label: (_b = this._translations.featuresRemoved) === null || _b === void 0 ? void 0 : _b.replace("{{n}}", numRemoved.toString()) })), (h("calcite-list-item", { label: (_c = this._translations.totalSelected) === null || _c === void 0 ? void 0 : _c.replace("{{n}}", total.toString()) }))];
|
130
|
-
}
|
131
|
-
/**
|
132
|
-
* Fetch the refine selection set
|
133
|
-
*
|
134
|
-
* @returns the refine selection set
|
135
|
-
* @protected
|
136
|
-
*/
|
137
|
-
_getRefineSelectionSet(selectionSets) {
|
138
|
-
let refineSelectionSet;
|
139
|
-
selectionSets.some(ss => {
|
140
|
-
if (ss.workflowType === EWorkflowType.REFINE) {
|
141
|
-
refineSelectionSet = ss;
|
142
|
-
return true;
|
143
|
-
}
|
144
|
-
});
|
145
|
-
return refineSelectionSet;
|
146
|
-
}
|
147
|
-
/**
|
148
|
-
* Create a calcite action
|
149
|
-
*
|
150
|
-
* @param enabled controls the enabled state of the control
|
151
|
-
* @param icon the image to display in the action
|
152
|
-
* @param text and supporting text for the action
|
153
|
-
* @param onClick the fucntion the actio will execute
|
154
|
-
* @param indicator boolean to control if an indicator should be shown (default is false)
|
155
|
-
* @param slot the supporting slot to use
|
156
|
-
*
|
157
|
-
* @returns the calcite action node
|
158
|
-
* @protected
|
159
|
-
*/
|
160
|
-
_getAction(enabled, icon, text, onClick, indicator = false, slot = "") {
|
161
|
-
return (h("calcite-action", { disabled: !enabled, icon: icon, indicator: indicator, onClick: onClick, slot: slot, text: text }));
|
162
|
-
}
|
163
|
-
/**
|
164
|
-
* Remove ids from existing selection sets.
|
165
|
-
* Remove any selection sets than have no selected ids
|
166
|
-
* This can update any selection set not just the refine set.
|
167
|
-
* We do not do something similar for adds as we will only ever add from refine tools to the single REFINE selection set.
|
168
|
-
*
|
169
|
-
* @param removeIds the ids to remove
|
170
|
-
*
|
171
|
-
* @protected
|
172
|
-
*/
|
173
|
-
_updateSelectionSets(removeIds) {
|
174
|
-
if (removeIds.length > 0) {
|
175
|
-
this.selectionSets = this.selectionSets.reduce((prev, cur) => {
|
176
|
-
cur.selectedIds = cur.selectedIds.filter(id => removeIds.indexOf(id) < 0);
|
177
|
-
if (cur.selectedIds.length > 0) {
|
178
|
-
prev.push(cur);
|
179
|
-
}
|
180
|
-
return prev;
|
181
|
-
}, []);
|
182
|
-
this.selectionSetsChanged.emit(this.selectionSets);
|
183
|
-
}
|
184
|
-
}
|
185
|
-
/**
|
186
|
-
* Update the refine selection set with any adds or removes
|
187
|
-
*
|
188
|
-
* @param addIds any ids to add
|
189
|
-
* @param removeIds any ids to remove
|
190
|
-
*
|
191
|
-
* @returns Promise resolving when function is done
|
192
|
-
* @protected
|
193
|
-
*/
|
194
|
-
_updateRefineSelectionSet(addIds, removeIds) {
|
195
|
-
const selectionSet = this._getRefineSelectionSet(this.selectionSets);
|
196
|
-
this.selectionSets = selectionSet ?
|
197
|
-
this._updateRefineIds(selectionSet, addIds, removeIds) :
|
198
|
-
this._addRefineSelectionSet(addIds, removeIds);
|
199
|
-
this.selectionSetsChanged.emit(this.selectionSets);
|
200
|
-
}
|
201
|
-
/**
|
202
|
-
* Update the ids stored for the refine selection set
|
203
|
-
*
|
204
|
-
* @param selectionSet the refine selection set
|
205
|
-
* @param addIds any ids to add
|
206
|
-
* @param removeIds any ids to remove
|
207
|
-
*
|
208
|
-
* @returns updated selection sets
|
209
|
-
* @protected
|
210
|
-
*/
|
211
|
-
_updateRefineIds(selectionSet, addIds, removeIds) {
|
212
|
-
// remove ids if they exist in the current add or remove list
|
213
|
-
selectionSet.refineIds.addIds = selectionSet.refineIds.addIds.filter(id => removeIds.indexOf(id) < 0);
|
214
|
-
selectionSet.refineIds.removeIds = selectionSet.refineIds.removeIds.filter(id => addIds.indexOf(id) < 0);
|
215
|
-
const _addIds = [...new Set(selectionSet.refineIds.addIds.concat(addIds))];
|
216
|
-
const _removeIds = [...new Set(selectionSet.refineIds.removeIds.concat(removeIds))];
|
217
|
-
selectionSet.refineIds = {
|
218
|
-
addIds: _addIds.filter(id => _removeIds.indexOf(id) < 0),
|
219
|
-
removeIds: _removeIds.filter(id => _addIds.indexOf(id) < 0)
|
220
|
-
};
|
221
|
-
selectionSet.selectedIds = selectionSet.refineIds.addIds.length > 0 ?
|
222
|
-
[...new Set(selectionSet.selectedIds.concat(selectionSet.refineIds.addIds))] :
|
223
|
-
selectionSet.selectedIds.filter(id => selectionSet.refineIds.removeIds.indexOf(id) < 0);
|
224
|
-
return this.selectionSets.map(ss => {
|
225
|
-
return ss.workflowType === EWorkflowType.REFINE ? selectionSet : ss;
|
226
|
-
});
|
227
|
-
}
|
228
|
-
/**
|
229
|
-
* Add a new refine selection set
|
230
|
-
*
|
231
|
-
* @param addIds any ids to add
|
232
|
-
* @param removeIds any ids to remove
|
233
|
-
*
|
234
|
-
* @returns updated selection sets
|
235
|
-
* @protected
|
236
|
-
*/
|
237
|
-
_addRefineSelectionSet(addIds, removeIds) {
|
238
|
-
return [
|
239
|
-
...this.selectionSets,
|
240
|
-
({
|
241
|
-
buffer: undefined,
|
242
|
-
distance: 0,
|
243
|
-
download: true,
|
244
|
-
geometries: [],
|
245
|
-
id: Date.now(),
|
246
|
-
label: "Refine",
|
247
|
-
layerView: this.addresseeLayer,
|
248
|
-
refineSelectLayers: [],
|
249
|
-
searchResult: undefined,
|
250
|
-
selectedIds: addIds,
|
251
|
-
unit: "feet",
|
252
|
-
workflowType: EWorkflowType.REFINE,
|
253
|
-
refineIds: {
|
254
|
-
addIds: addIds,
|
255
|
-
removeIds: removeIds
|
256
|
-
}
|
257
|
-
})
|
258
|
-
];
|
259
|
-
}
|
260
|
-
/**
|
261
|
-
* Fetches the component's translations
|
262
|
-
*
|
263
|
-
* @protected
|
264
|
-
*/
|
265
|
-
async _getTranslations() {
|
266
|
-
const translations = await getLocaleComponentStrings(this.el);
|
267
|
-
this._translations = translations[0];
|
268
|
-
}
|
269
|
-
get el() { return this; }
|
270
|
-
static get style() { return refineSelectionCss; }
|
271
|
-
}, [0, "refine-selection", {
|
272
|
-
"addresseeLayer": [16],
|
273
|
-
"mapView": [16],
|
274
|
-
"selectionSets": [16],
|
275
|
-
"_translations": [32]
|
276
|
-
}, [[8, "refineSelectionIdsChange", "refineSelectionIdsChange"]]]);
|
277
|
-
function defineCustomElement() {
|
278
|
-
if (typeof customElements === "undefined") {
|
279
|
-
return;
|
280
|
-
}
|
281
|
-
const components = ["refine-selection", "calcite-action", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-icon", "calcite-label", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-option", "calcite-radio-group", "calcite-radio-group-item", "calcite-select", "map-layer-picker", "refine-selection-tools"];
|
282
|
-
components.forEach(tagName => { switch (tagName) {
|
283
|
-
case "refine-selection":
|
284
|
-
if (!customElements.get(tagName)) {
|
285
|
-
customElements.define(tagName, RefineSelection);
|
286
|
-
}
|
287
|
-
break;
|
288
|
-
case "calcite-action":
|
289
|
-
if (!customElements.get(tagName)) {
|
290
|
-
defineCustomElement$f();
|
291
|
-
}
|
292
|
-
break;
|
293
|
-
case "calcite-chip":
|
294
|
-
if (!customElements.get(tagName)) {
|
295
|
-
defineCustomElement$e();
|
296
|
-
}
|
297
|
-
break;
|
298
|
-
case "calcite-combobox":
|
299
|
-
if (!customElements.get(tagName)) {
|
300
|
-
defineCustomElement$d();
|
301
|
-
}
|
302
|
-
break;
|
303
|
-
case "calcite-combobox-item":
|
304
|
-
if (!customElements.get(tagName)) {
|
305
|
-
defineCustomElement$c();
|
306
|
-
}
|
307
|
-
break;
|
308
|
-
case "calcite-icon":
|
309
|
-
if (!customElements.get(tagName)) {
|
310
|
-
defineCustomElement$b();
|
311
|
-
}
|
312
|
-
break;
|
313
|
-
case "calcite-label":
|
314
|
-
if (!customElements.get(tagName)) {
|
315
|
-
defineCustomElement$a();
|
316
|
-
}
|
317
|
-
break;
|
318
|
-
case "calcite-list":
|
319
|
-
if (!customElements.get(tagName)) {
|
320
|
-
defineCustomElement$9();
|
321
|
-
}
|
322
|
-
break;
|
323
|
-
case "calcite-list-item":
|
324
|
-
if (!customElements.get(tagName)) {
|
325
|
-
defineCustomElement$8();
|
326
|
-
}
|
327
|
-
break;
|
328
|
-
case "calcite-loader":
|
329
|
-
if (!customElements.get(tagName)) {
|
330
|
-
defineCustomElement$7();
|
331
|
-
}
|
332
|
-
break;
|
333
|
-
case "calcite-option":
|
334
|
-
if (!customElements.get(tagName)) {
|
335
|
-
defineCustomElement$6();
|
336
|
-
}
|
337
|
-
break;
|
338
|
-
case "calcite-radio-group":
|
339
|
-
if (!customElements.get(tagName)) {
|
340
|
-
defineCustomElement$5();
|
341
|
-
}
|
342
|
-
break;
|
343
|
-
case "calcite-radio-group-item":
|
344
|
-
if (!customElements.get(tagName)) {
|
345
|
-
defineCustomElement$4();
|
346
|
-
}
|
347
|
-
break;
|
348
|
-
case "calcite-select":
|
349
|
-
if (!customElements.get(tagName)) {
|
350
|
-
defineCustomElement$3();
|
351
|
-
}
|
352
|
-
break;
|
353
|
-
case "map-layer-picker":
|
354
|
-
if (!customElements.get(tagName)) {
|
355
|
-
defineCustomElement$2();
|
356
|
-
}
|
357
|
-
break;
|
358
|
-
case "refine-selection-tools":
|
359
|
-
if (!customElements.get(tagName)) {
|
360
|
-
defineCustomElement$1();
|
361
|
-
}
|
362
|
-
break;
|
363
|
-
} });
|
364
|
-
}
|
365
|
-
defineCustomElement();
|
366
|
-
|
367
|
-
export { RefineSelection as R, getSelectionIds as a, defineCustomElement as d, getTotal as g };
|
368
|
-
|
369
|
-
//# sourceMappingURL=refine-selection2.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"refine-selection2.js","mappings":"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","names":["utils.getSelectionIds","utils.getTotal"],"sources":["./src/utils/publicNotificationUtils.ts","./src/components/refine-selection/refine-selection.css?tag=refine-selection","./src/components/refine-selection/refine-selection.tsx"],"sourcesContent":["/** @license\r\n * Copyright 2022 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n/*\r\n | Helper functions used in multiple components for public notification\r\n*/\r\n\r\nimport { ISelectionSet } from \"./interfaces\";\r\n\r\nexport function getSelectionIds(\r\n selectionSets: ISelectionSet[]\r\n): number[] {\r\n return Object.keys(selectionSets).reduce((prev, cur) => {\r\n return [\r\n ...prev,\r\n ...selectionSets[cur].download ? selectionSets[cur].selectedIds : []\r\n ]\r\n }, []);\r\n}\r\n\r\nexport function getTotal(\r\n selectionSets: ISelectionSet[]\r\n): number {\r\n return [...new Set(getSelectionIds(selectionSets))].length;\r\n}\r\n",":host {\r\n display: block;\r\n}\r\n","import { Component, Element, Event, EventEmitter, Host, h, Listen, Prop, State, VNode } from \"@stencil/core\";\r\nimport { ESelectionMode, EWorkflowType, ISelectionSet } from \"../../utils/interfaces\";\r\nimport * as utils from \"../../utils/publicNotificationUtils\";\r\nimport RefineSelection_T9n from \"../../assets/t9n/refine-selection/resources.json\";\r\nimport { getLocaleComponentStrings } from \"../../utils/locale\";\r\n\r\n@Component({\r\n tag: \"refine-selection\",\r\n styleUrl: \"refine-selection.css\",\r\n shadow: false,\r\n})\r\nexport class RefineSelection {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLRefineSelectionToolsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html\r\n */\r\n @Prop() addresseeLayer: __esri.FeatureLayerView;\r\n\r\n /**\r\n * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html\r\n */\r\n @Prop() mapView: __esri.MapView;\r\n\r\n /**\r\n * utils/interfaces/ISelectionSet: An array of user defined selection sets\r\n */\r\n @Prop() selectionSets: ISelectionSet[] = [];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n * All UI strings should be defined here.\r\n */\r\n @State() protected _translations: typeof RefineSelection_T9n;\r\n\r\n /**\r\n * boolean: Indicates if any new graphics should be added or removed\r\n */\r\n protected _addEnabled = true;\r\n\r\n /**\r\n * HTMLRefineSelectionToolsElement: The html element for the refine selection tools\r\n */\r\n protected _refineTools: HTMLRefineSelectionToolsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Watch handlers\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Methods (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Emitted on demand when selection sets change.\r\n *\r\n */\r\n @Event() selectionSetsChanged: EventEmitter<ISelectionSet[]>;\r\n\r\n /**\r\n * Handles changes to refine selection ids.\r\n *\r\n */\r\n @Listen(\"refineSelectionIdsChange\", { target: \"window\" })\r\n refineSelectionIdsChange(event: CustomEvent): void {\r\n const addIds = event.detail?.addIds || [];\r\n const removeIds = event.detail?.removeIds || [];\r\n\r\n this._updateSelectionSets(removeIds);\r\n this._updateRefineSelectionSet(addIds, removeIds);\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (lifecycle)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * StencilJS: Called once just after the component is first connected to the DOM.\r\n */\r\n async componentWillLoad(): Promise<void> {\r\n await this._getTranslations();\r\n }\r\n\r\n /**\r\n * Renders the component.\r\n */\r\n render(): VNode {\r\n return (\r\n <Host>\r\n <div class=\"padding-1\">\r\n <div>\r\n <calcite-radio-group\r\n class=\"w-100\"\r\n onCalciteRadioGroupChange={(evt) => this._modeChanged(evt)}\r\n >\r\n <calcite-radio-group-item\r\n checked={this._addEnabled}\r\n class=\"w-50\"\r\n onClick={() => this._setSelectionMode(ESelectionMode.ADD)}\r\n value={ESelectionMode.ADD}\r\n >\r\n {this._translations.add}\r\n </calcite-radio-group-item>\r\n <calcite-radio-group-item\r\n checked={!this._addEnabled}\r\n class=\"w-50\"\r\n onClick={() => this._setSelectionMode(ESelectionMode.REMOVE)}\r\n value={ESelectionMode.REMOVE}\r\n >\r\n {this._translations.remove}\r\n </calcite-radio-group-item>\r\n </calcite-radio-group>\r\n <refine-selection-tools\r\n border={true}\r\n ids={utils.getSelectionIds(this.selectionSets)}\r\n layerViews={[this.addresseeLayer]}\r\n mapView={this.mapView}\r\n mode={this._addEnabled ? ESelectionMode.ADD : ESelectionMode.REMOVE}\r\n ref={(el) => { this._refineTools = el }}\r\n useLayerPicker={false}\r\n />\r\n </div>\r\n <br />\r\n {\r\n (\r\n <calcite-list class=\"list-border\">\r\n {this._getRefineSelectionSetList()}\r\n </calcite-list>\r\n )\r\n }\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Functions (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Store the Add/Remove mode\r\n *\r\n * @protected\r\n */\r\n protected _modeChanged(\r\n evt: CustomEvent\r\n ): void {\r\n this._addEnabled = evt.detail === ESelectionMode.ADD;\r\n }\r\n\r\n /**\r\n * Set the refine tools selection mode\r\n *\r\n * @protected\r\n */\r\n protected _setSelectionMode(\r\n mode: ESelectionMode\r\n ): void {\r\n this._refineTools.mode = mode;\r\n }\r\n\r\n /**\r\n * Create a list to show the number added/removed/total unique selected\r\n *\r\n * @returns the list node\r\n * @protected\r\n */\r\n protected _getRefineSelectionSetList(): VNode[] {\r\n const total = utils.getTotal(this.selectionSets);\r\n const refineSet = this._getRefineSelectionSet(this.selectionSets);\r\n const numAdded = refineSet?.refineIds.addIds.length || 0;\r\n const numRemoved = refineSet?.refineIds.removeIds.length || 0;\r\n\r\n return [(\r\n <calcite-list-item\r\n label={this._translations.featuresAdded?.replace(\"{{n}}\", numAdded.toString())}\r\n />\r\n ),(\r\n <calcite-list-item\r\n label={this._translations.featuresRemoved?.replace(\"{{n}}\", numRemoved.toString())}\r\n />\r\n ), (\r\n <calcite-list-item\r\n label={this._translations.totalSelected?.replace(\"{{n}}\", total.toString())}\r\n />\r\n )];\r\n }\r\n\r\n /**\r\n * Fetch the refine selection set\r\n *\r\n * @returns the refine selection set\r\n * @protected\r\n */\r\n protected _getRefineSelectionSet(\r\n selectionSets: ISelectionSet[]\r\n ): ISelectionSet {\r\n let refineSelectionSet: ISelectionSet;\r\n selectionSets.some(ss => {\r\n if (ss.workflowType === EWorkflowType.REFINE) {\r\n refineSelectionSet = ss;\r\n return true;\r\n }\r\n });\r\n return refineSelectionSet;\r\n }\r\n\r\n /**\r\n * Create a calcite action\r\n *\r\n * @param enabled controls the enabled state of the control\r\n * @param icon the image to display in the action\r\n * @param text and supporting text for the action\r\n * @param onClick the fucntion the actio will execute\r\n * @param indicator boolean to control if an indicator should be shown (default is false)\r\n * @param slot the supporting slot to use\r\n *\r\n * @returns the calcite action node\r\n * @protected\r\n */\r\n protected _getAction(\r\n enabled: boolean,\r\n icon: string,\r\n text: string,\r\n onClick: any,\r\n indicator = false,\r\n slot = \"\"\r\n ): VNode {\r\n return (\r\n <calcite-action\r\n disabled={!enabled}\r\n icon={icon}\r\n indicator={indicator}\r\n onClick={onClick}\r\n slot={slot}\r\n text={text} />\r\n );\r\n }\r\n\r\n /**\r\n * Remove ids from existing selection sets.\r\n * Remove any selection sets than have no selected ids\r\n * This can update any selection set not just the refine set.\r\n * We do not do something similar for adds as we will only ever add from refine tools to the single REFINE selection set.\r\n *\r\n * @param removeIds the ids to remove\r\n *\r\n * @protected\r\n */\r\n protected _updateSelectionSets(\r\n removeIds: number[]\r\n ): void {\r\n if (removeIds.length > 0) {\r\n this.selectionSets = this.selectionSets.reduce((prev, cur) => {\r\n cur.selectedIds = cur.selectedIds.filter(id => removeIds.indexOf(id) < 0);\r\n if (cur.selectedIds.length > 0) {\r\n prev.push(cur);\r\n }\r\n return prev;\r\n }, []);\r\n this.selectionSetsChanged.emit(this.selectionSets);\r\n }\r\n }\r\n\r\n /**\r\n * Update the refine selection set with any adds or removes\r\n *\r\n * @param addIds any ids to add\r\n * @param removeIds any ids to remove\r\n *\r\n * @returns Promise resolving when function is done\r\n * @protected\r\n */\r\n protected _updateRefineSelectionSet(\r\n addIds: number[],\r\n removeIds: number[]\r\n ): void {\r\n const selectionSet = this._getRefineSelectionSet(this.selectionSets);\r\n this.selectionSets = selectionSet ?\r\n this._updateRefineIds(selectionSet, addIds, removeIds) :\r\n this._addRefineSelectionSet(addIds, removeIds);\r\n this.selectionSetsChanged.emit(this.selectionSets);\r\n }\r\n\r\n /**\r\n * Update the ids stored for the refine selection set\r\n *\r\n * @param selectionSet the refine selection set\r\n * @param addIds any ids to add\r\n * @param removeIds any ids to remove\r\n *\r\n * @returns updated selection sets\r\n * @protected\r\n */\r\n protected _updateRefineIds(\r\n selectionSet: ISelectionSet,\r\n addIds: number[],\r\n removeIds: number[]\r\n ): ISelectionSet[] {\r\n // remove ids if they exist in the current add or remove list\r\n selectionSet.refineIds.addIds = selectionSet.refineIds.addIds.filter(id => removeIds.indexOf(id) < 0)\r\n selectionSet.refineIds.removeIds = selectionSet.refineIds.removeIds.filter(id => addIds.indexOf(id) < 0)\r\n\r\n const _addIds = [...new Set(selectionSet.refineIds.addIds.concat(addIds))];\r\n const _removeIds = [...new Set(selectionSet.refineIds.removeIds.concat(removeIds))];\r\n selectionSet.refineIds = {\r\n addIds: _addIds.filter(id => _removeIds.indexOf(id) < 0),\r\n removeIds: _removeIds.filter(id => _addIds.indexOf(id) < 0)\r\n }\r\n selectionSet.selectedIds = selectionSet.refineIds.addIds.length > 0 ?\r\n [...new Set(selectionSet.selectedIds.concat(selectionSet.refineIds.addIds))] :\r\n selectionSet.selectedIds.filter(id => selectionSet.refineIds.removeIds.indexOf(id) < 0);\r\n\r\n return this.selectionSets.map(ss => {\r\n return ss.workflowType === EWorkflowType.REFINE ? selectionSet : ss;\r\n });\r\n }\r\n\r\n /**\r\n * Add a new refine selection set\r\n *\r\n * @param addIds any ids to add\r\n * @param removeIds any ids to remove\r\n *\r\n * @returns updated selection sets\r\n * @protected\r\n */\r\n protected _addRefineSelectionSet(\r\n addIds: number[],\r\n removeIds: number[]\r\n ): ISelectionSet[] {\r\n return [\r\n ...this.selectionSets,\r\n ({\r\n buffer: undefined,\r\n distance: 0,\r\n download: true,\r\n geometries: [],\r\n id: Date.now(),\r\n label: \"Refine\",\r\n layerView: this.addresseeLayer,\r\n refineSelectLayers: [],\r\n searchResult: undefined,\r\n selectedIds: addIds,\r\n unit: \"feet\",\r\n workflowType: EWorkflowType.REFINE,\r\n refineIds: {\r\n addIds: addIds,\r\n removeIds: removeIds\r\n }\r\n })\r\n ];\r\n }\r\n\r\n /**\r\n * Fetches the component's translations\r\n *\r\n * @protected\r\n */\r\n protected async _getTranslations(): Promise<void> {\r\n const translations = await getLocaleComponentStrings(this.el);\r\n this._translations = translations[0] as typeof RefineSelection_T9n;\r\n }\r\n\r\n}\r\n"],"version":3}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
/*!
|
7
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
|
-
* v1.0.0-beta.97
|
10
|
-
*/
|
11
|
-
const CSS = {
|
12
|
-
sticky: "sticky-pos"
|
13
|
-
};
|
14
|
-
var ICON_TYPES;
|
15
|
-
(function (ICON_TYPES) {
|
16
|
-
ICON_TYPES["circle"] = "circle";
|
17
|
-
ICON_TYPES["square"] = "square";
|
18
|
-
ICON_TYPES["grip"] = "grip";
|
19
|
-
})(ICON_TYPES || (ICON_TYPES = {}));
|
20
|
-
const SLOTS = {
|
21
|
-
menuActions: "menu-actions"
|
22
|
-
};
|
23
|
-
|
24
|
-
export { CSS as C, ICON_TYPES as I, SLOTS as S };
|
25
|
-
|
26
|
-
//# sourceMappingURL=resources.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"resources.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,GAAG,GAAG;AACnB,EAAE,MAAM,EAAE,YAAY;AACtB,EAAE;AACQ,IAAC,WAAW;AACtB,CAAC,UAAU,UAAU,EAAE;AACvB,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAClC,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAClC,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC9B,CAAC,EAAE,UAAU,KAAK,UAAU,GAAG,EAAE,CAAC,CAAC,CAAC;AAIxB,MAAC,KAAK,GAAG;AACrB,EAAE,WAAW,EAAE,cAAc;AAC7B;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/pick-list/resources.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n sticky: \"sticky-pos\"\n};\nexport var ICON_TYPES;\n(function (ICON_TYPES) {\n ICON_TYPES[\"circle\"] = \"circle\";\n ICON_TYPES[\"square\"] = \"square\";\n ICON_TYPES[\"grip\"] = \"grip\";\n})(ICON_TYPES || (ICON_TYPES = {}));\nexport const TEXT = {\n filterResults: \"Filter results\"\n};\nexport const SLOTS = {\n menuActions: \"menu-actions\"\n};\n"],"version":3}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
/*!
|
7
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
|
-
* v1.0.0-beta.97
|
10
|
-
*/
|
11
|
-
const CSS = {
|
12
|
-
heading: "heading",
|
13
|
-
container: "container",
|
14
|
-
indented: "container--indented"
|
15
|
-
};
|
16
|
-
const SLOTS = {
|
17
|
-
parentItem: "parent-item"
|
18
|
-
};
|
19
|
-
const HEADING_LEVEL = 3;
|
20
|
-
|
21
|
-
export { CSS as C, HEADING_LEVEL as H, SLOTS as S };
|
22
|
-
|
23
|
-
//# sourceMappingURL=resources2.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"resources2.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,GAAG,GAAG;AACnB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,QAAQ,EAAE,qBAAqB;AACjC,EAAE;AACU,MAAC,KAAK,GAAG;AACrB,EAAE,UAAU,EAAE,aAAa;AAC3B,EAAE;AACU,MAAC,aAAa,GAAG;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/resources.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n heading: \"heading\",\n container: \"container\",\n indented: \"container--indented\"\n};\nexport const SLOTS = {\n parentItem: \"parent-item\"\n};\nexport const HEADING_LEVEL = 3;\n"],"version":3}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
/*!
|
7
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
9
|
-
* v1.0.0-beta.97
|
10
|
-
*/
|
11
|
-
const CSS = {
|
12
|
-
header: "header",
|
13
|
-
heading: "heading",
|
14
|
-
close: "close",
|
15
|
-
container: "container",
|
16
|
-
tipContainer: "tip-container",
|
17
|
-
tipContainerAdvancing: "tip-container--advancing",
|
18
|
-
tipContainerRetreating: "tip-container--retreating",
|
19
|
-
pagination: "pagination",
|
20
|
-
pagePosition: "page-position",
|
21
|
-
pageNext: "page-next",
|
22
|
-
pagePrevious: "page-previous"
|
23
|
-
};
|
24
|
-
const ICONS = {
|
25
|
-
chevronLeft: "chevron-left",
|
26
|
-
chevronRight: "chevron-right",
|
27
|
-
close: "x"
|
28
|
-
};
|
29
|
-
const TEXT = {
|
30
|
-
defaultGroupTitle: "Tips",
|
31
|
-
defaultPaginationLabel: "Tip",
|
32
|
-
close: "Close",
|
33
|
-
previous: "Previous",
|
34
|
-
next: "Next"
|
35
|
-
};
|
36
|
-
const HEADING_LEVEL = 2;
|
37
|
-
|
38
|
-
export { CSS as C, HEADING_LEVEL as H, ICONS as I, TEXT as T };
|
39
|
-
|
40
|
-
//# sourceMappingURL=resources3.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"resources3.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,GAAG,GAAG;AACnB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,YAAY,EAAE,eAAe;AAC/B,EAAE,qBAAqB,EAAE,0BAA0B;AACnD,EAAE,sBAAsB,EAAE,2BAA2B;AACrD,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE,YAAY,EAAE,eAAe;AAC/B,EAAE,QAAQ,EAAE,WAAW;AACvB,EAAE,YAAY,EAAE,eAAe;AAC/B,EAAE;AACU,MAAC,KAAK,GAAG;AACrB,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE,YAAY,EAAE,eAAe;AAC/B,EAAE,KAAK,EAAE,GAAG;AACZ,EAAE;AACU,MAAC,IAAI,GAAG;AACpB,EAAE,iBAAiB,EAAE,MAAM;AAC3B,EAAE,sBAAsB,EAAE,KAAK;AAC/B,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE;AACU,MAAC,aAAa,GAAG;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/tip-manager/resources.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n header: \"header\",\n heading: \"heading\",\n close: \"close\",\n container: \"container\",\n tipContainer: \"tip-container\",\n tipContainerAdvancing: \"tip-container--advancing\",\n tipContainerRetreating: \"tip-container--retreating\",\n pagination: \"pagination\",\n pagePosition: \"page-position\",\n pageNext: \"page-next\",\n pagePrevious: \"page-previous\"\n};\nexport const ICONS = {\n chevronLeft: \"chevron-left\",\n chevronRight: \"chevron-right\",\n close: \"x\"\n};\nexport const TEXT = {\n defaultGroupTitle: \"Tips\",\n defaultPaginationLabel: \"Tip\",\n close: \"Close\",\n previous: \"Previous\",\n next: \"Next\"\n};\nexport const HEADING_LEVEL = 2;\n"],"version":3}
|
package/dist/components/scrim.js
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
7
|
-
import { d as defineCustomElement$1 } from './loader.js';
|
8
|
-
|
9
|
-
/*!
|
10
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
11
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
12
|
-
* v1.0.0-beta.97
|
13
|
-
*/
|
14
|
-
const CSS = {
|
15
|
-
scrim: "scrim",
|
16
|
-
content: "content"
|
17
|
-
};
|
18
|
-
const TEXT = {
|
19
|
-
loading: "Loading"
|
20
|
-
};
|
21
|
-
|
22
|
-
const scrimCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;z-index:700;display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}";
|
23
|
-
|
24
|
-
const Scrim = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
25
|
-
constructor() {
|
26
|
-
super();
|
27
|
-
this.__registerHost();
|
28
|
-
this.__attachShadow();
|
29
|
-
// --------------------------------------------------------------------------
|
30
|
-
//
|
31
|
-
// Properties
|
32
|
-
//
|
33
|
-
// --------------------------------------------------------------------------
|
34
|
-
/**
|
35
|
-
* Accessible name when the component is loading.
|
36
|
-
*
|
37
|
-
* @default "Loading"
|
38
|
-
*/
|
39
|
-
this.intlLoading = TEXT.loading;
|
40
|
-
/**
|
41
|
-
* When `true`, a busy indicator is displayed.
|
42
|
-
*/
|
43
|
-
this.loading = false;
|
44
|
-
}
|
45
|
-
// --------------------------------------------------------------------------
|
46
|
-
//
|
47
|
-
// Render Method
|
48
|
-
//
|
49
|
-
// --------------------------------------------------------------------------
|
50
|
-
render() {
|
51
|
-
const { el, loading, intlLoading } = this;
|
52
|
-
const hasContent = el.innerHTML.trim().length > 0;
|
53
|
-
const loaderNode = loading ? h("calcite-loader", { active: true, label: intlLoading }) : null;
|
54
|
-
const contentNode = hasContent ? (h("div", { class: CSS.content }, h("slot", null))) : null;
|
55
|
-
return (h("div", { class: CSS.scrim }, loaderNode, contentNode));
|
56
|
-
}
|
57
|
-
get el() { return this; }
|
58
|
-
static get style() { return scrimCss; }
|
59
|
-
}, [1, "calcite-scrim", {
|
60
|
-
"intlLoading": [1, "intl-loading"],
|
61
|
-
"loading": [516]
|
62
|
-
}]);
|
63
|
-
function defineCustomElement() {
|
64
|
-
if (typeof customElements === "undefined") {
|
65
|
-
return;
|
66
|
-
}
|
67
|
-
const components = ["calcite-scrim", "calcite-loader"];
|
68
|
-
components.forEach(tagName => { switch (tagName) {
|
69
|
-
case "calcite-scrim":
|
70
|
-
if (!customElements.get(tagName)) {
|
71
|
-
customElements.define(tagName, Scrim);
|
72
|
-
}
|
73
|
-
break;
|
74
|
-
case "calcite-loader":
|
75
|
-
if (!customElements.get(tagName)) {
|
76
|
-
defineCustomElement$1();
|
77
|
-
}
|
78
|
-
break;
|
79
|
-
} });
|
80
|
-
}
|
81
|
-
defineCustomElement();
|
82
|
-
|
83
|
-
export { Scrim as S, defineCustomElement as d };
|
84
|
-
|
85
|
-
//# sourceMappingURL=scrim.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"scrim.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC;;ACXD,MAAM,QAAQ,GAAG,4xDAA4xD;;MCUhyD,KAAK;EAChB;;;;;;;;;;;;;;IAWE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC;;;;IAIhC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;GACtB;;;;;;EAMD,MAAM;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC1C,MAAM,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,OAAO,GAAG,CAAC,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9F,MAAM,WAAW,GAAG,UAAU,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC;IAC5F,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE;GAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/scrim/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css?tag=calcite-scrim&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n scrim: \"scrim\",\n content: \"content\"\n};\nexport const TEXT = {\n loading: \"Loading\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\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@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n position: absolute;\n inset: 0px;\n z-index: 700;\n display: flex;\n block-size: 100%;\n inline-size: 100%;\n flex-direction: column;\n align-items: stretch;\n}\n\n@keyframes calcite-scrim-fade-in {\n 0% {\n --tw-bg-opacity: 0;\n }\n 100% {\n --tw-text-opacity: 1;\n }\n}\n.scrim {\n position: absolute;\n inset: 0px;\n display: flex;\n flex-direction: column;\n align-content: center;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n animation: calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;\n background-color: var(--calcite-scrim-background);\n}\n\n.content {\n padding: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h } from \"@stencil/core\";\nimport { CSS, TEXT } from \"./resources\";\n/**\n * @slot - A slot for adding custom content, primarily loading information.\n */\nexport class Scrim {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * Accessible name when the component is loading.\n *\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * When `true`, a busy indicator is displayed.\n */\n this.loading = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Method\n //\n // --------------------------------------------------------------------------\n render() {\n const { el, loading, intlLoading } = this;\n const hasContent = el.innerHTML.trim().length > 0;\n const loaderNode = loading ? h(\"calcite-loader\", { active: true, label: intlLoading }) : null;\n const contentNode = hasContent ? (h(\"div\", { class: CSS.content }, h(\"slot\", null))) : null;\n return (h(\"div\", { class: CSS.scrim }, loaderNode, contentNode));\n }\n static get is() { return \"calcite-scrim\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"scrim.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"scrim.css\"]\n };\n }\n static get properties() {\n return {\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"Accessible name when the component is loading.\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, a busy indicator is displayed.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|