@esri/solutions-components 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1095 -4
- 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-f0547fe7.js → solution-store-893499a5.js} +8 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +14 -11
- 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 +1095 -4
- 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-c1f6173a.js → solution-store-0c58c852.js} +4 -2
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-065830b8.js → p-659edb14.js} +4 -2
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-ee9be0ef.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/p-90629c1d.entry.js +1986 -0
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-0e7a0839.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 -7
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-f0547fe7.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 -1141
- 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-c1f6173a.js.map +0 -1
- package/dist/solutions-components/p-065830b8.js.map +0 -1
- package/dist/solutions-components/p-0e7a0839.entry.js.map +0 -1
- package/dist/solutions-components/p-401541a5.entry.js +0 -895
- package/dist/solutions-components/p-401541a5.entry.js.map +0 -1
- package/dist/solutions-components/p-ee9be0ef.entry.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"public-notification.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,qBAAqB,GAAG,+oEAA+oE;;MC+BhqEA,oBAAkB;;;;;;2BAkCF,IAAI;wBAKP,CAAC;qBAKO,SAAS,CAAC,IAAI;wBAKtB,KAAK;0BAKc,EAAE;kCAKX,aAAa,CAAC,MAAM;;;;;;;;;;;EA2CtD,MAAM,yBAAyB,CAC7B,CAAkB,EAClB,IAAqB;IAErB,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;MACnC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,YAAY,KAAK,aAAa,CAAC,MAAM,CAAC,CAAA;MAC9E,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;QAC9B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;OAC1B;KACF;GACF;;;;EAMD,MAAM,oBAAoB,CACxB,QAAmB,EACnB,WAAsB;IAEtB,IAAI,CAAC,eAAe,EAAE,CAAC;IAEvB,IAAI,WAAW,KAAK,SAAS,CAAC,MAAM,IAAI,WAAW,KAAK,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AAC;IACtB,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC;IACrC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC;GACnC;;;;;;EAOS,MAAM,kBAAkB;IAChC,IAAI,CAAC,eAAe,EAAE,CAAC;IACvB,MAAM,GAAG,GAAGA,eAAqB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACvD,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;MAClB,KAAK,CAAC,eAAe,GAAG,MAAM,iBAAiB,CAC7C,GAAG,EACH,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,CACb,CAAC;KACH;GACF;;;;;;EAOS,eAAe;;IACvB,MAAA,KAAK,CAAC,eAAe,0CAAE,MAAM,EAAE,CAAC;GACjC;;;;;;EAOS,MAAM,gBAAgB;IAC9B,MAAM,YAAY,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9D,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,CAAC,CAAqC,CAAC;GAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PublicNotification","utils.getTotal","utils.getSelectionIds"],"sources":["./src/components/public-notification/public-notification.css?tag=public-notification","./src/components/public-notification/public-notification.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 :host {\r\n display: block;\r\n }\r\n \r\n .border-bottom-1 {\r\n border-width: 0px;\r\n border-bottom-width: 1px;\r\n border-style: solid;\r\n border-color: var(--calcite-ui-border-3);\r\n }\r\n \r\n .action-bar-size {\r\n height: 3.5rem;\r\n width: 100%;\r\n }\r\n \r\n .w-1-3 {\r\n width: 33.3%;\r\n }\r\n \r\n .w-1-4 {\r\n width: 25%;\r\n }\r\n \r\n .action-center {\r\n -webkit-box-align: center;\r\n -webkit-align-items: center;\r\n -ms-grid-row-align: center;\r\n align-items: center;\r\n -webkit-align-content: center;\r\n align-content: center;\r\n -webkit-box-pack: center;\r\n -webkit-justify-content: center;\r\n justify-content: center;\r\n }\r\n \r\n .width-full {\r\n width: 100%;\r\n }\r\n \r\n .height-full {\r\n height: 100%;\r\n }\r\n \r\n .padding-1 {\r\n padding: 1rem;\r\n }\r\n \r\n .padding-top-sides-1 {\r\n padding-block-start: 1rem;\r\n padding-inline-start: 1rem;\r\n padding-inline-end: 1rem;\r\n }\r\n \r\n .padding-sides-1 {\r\n padding-inline-start: 1rem;\r\n padding-inline-end: 1rem;\r\n }\r\n \r\n .padding-end-1-2 {\r\n padding-inline-end: .5rem;\r\n }\r\n \r\n .padding-top-1-2 {\r\n padding-block-start: .5rem;\r\n }\r\n \r\n .padding-top-1 {\r\n padding-top: 1rem;\r\n }\r\n \r\n .padding-bottom-1 {\r\n padding-bottom: 1rem;\r\n }\r\n \r\n .info-blue {\r\n /* This would be better but not the right color in light theme */\r\n /* color: var(--calcite-ui-info); */\r\n \r\n /* This is --calcite-ui-info value for dark theme*/\r\n color: #00A0FF;\r\n }\r\n \r\n .info-message {\r\n justify-content: center;\r\n display: grid;\r\n }\r\n \r\n .font-bold {\r\n font-weight: bold;\r\n }\r\n \r\n .display-flex {\r\n display: flex;\r\n }\r\n \r\n .display-block {\r\n display: block;\r\n }\r\n \r\n .display-none {\r\n display: none;\r\n }\r\n \r\n .main-label {\r\n float: left;\r\n }\r\n \r\n html[dir=\"rtl\"] .main-label {\r\n float: right;\r\n }\r\n \r\n .back-label:hover {\r\n cursor: pointer;\r\n color: var(--calcite-ui-brand-hover);\r\n }\r\n \r\n .border-bottom {\r\n border-bottom: 1px solid var(--calcite-ui-border-2);\r\n }\r\n \r\n .margin-side-1 {\r\n margin-inline-start: 1rem;\r\n margin-inline-end: 1rem;\r\n }\r\n \r\n .border-top {\r\n border-top: 1px solid var(--calcite-ui-border-2);\r\n }\r\n \r\n .w-100 {\r\n width: 100%;\r\n }\r\n \r\n .w-50 {\r\n width: 50%;\r\n }\r\n \r\n .padding-1-2 {\r\n padding: 0.5rem;\r\n }\r\n \r\n .list-border {\r\n border: 1px solid var(--calcite-ui-border-2);\r\n }\r\n \r\n .margin-sides-1 {\r\n margin-inline-start: 1rem;\r\n margin-inline-end: 1rem;\r\n }\r\n \r\n .margin-start-1-2 {\r\n margin-inline-start: 0.5rem;\r\n }\r\n \r\n .position-right {\r\n position: absolute;\r\n right: 1rem;\r\n }\r\n \r\n .position-right[dir=\"rtl\"] {\r\n position: absolute;\r\n left: 1rem;\r\n }\r\n \r\n .position-left {\r\n position: absolute;\r\n left: 1rem;\r\n }\r\n \r\n .position-left[dir=\"rtl\"] {\r\n position: absolute;\r\n right: 1rem;\r\n }\r\n \r\n .margin-top-0 {\r\n margin-block-start: 0 !important;\r\n }\r\n \r\n .height-1-1-2 {\r\n height: 1.5rem;\r\n }\r\n \r\n .main-background {\r\n background-color: var(--calcite-ui-foreground-2);\r\n }\r\n ","/** @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\nimport { Component, Element, Host, h, Listen, Prop, State, VNode, Watch } from \"@stencil/core\";\r\nimport { loadModules } from \"../../utils/loadModules\";\r\nimport { EExportType, EPageType, EWorkflowType, ISelectionSet } from \"../../utils/interfaces\";\r\nimport { goToSelection, getMapLayerView, highlightFeatures } from \"../../utils/mapViewUtils\";\r\nimport { getSelectionSetQuery } from \"../../utils/queryUtils\";\r\nimport state from \"../../utils/publicNotificationStore\";\r\nimport NewPublicNotification_T9n from \"../../assets/t9n/public-notification/resources.json\";\r\nimport { getLocaleComponentStrings } from \"../../utils/locale\";\r\nimport * as utils from \"../../utils/publicNotificationUtils\";\r\n\r\n@Component({\r\n tag: \"public-notification\",\r\n styleUrl: \"public-notification.css\",\r\n shadow: false,\r\n})\r\nexport class PublicNotification {\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLPublicNotificationElement;\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 //\r\n // Properties (protected)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * boolean: Enabled when we have 1 or more selection sets that is enabled in the download pages.\r\n * By default all selection sets are enabled for download when they are first created.\r\n */\r\n @State() _downloadActive = true;\r\n\r\n /**\r\n * number: The number of selected features\r\n */\r\n @State() _numSelected = 0;\r\n\r\n /**\r\n * utils/interfaces/EPageType: LIST | SELECT | REFINE | PDF | CSV\r\n */\r\n @State() _pageType: EPageType = EPageType.LIST;\r\n\r\n /**\r\n * boolean: Save is enabled when we have 1 or more selected features\r\n */\r\n @State() _saveEnabled = false;\r\n\r\n /**\r\n * utils/interfaces/ISelectionSet: An array of user defined selection sets\r\n */\r\n @State() _selectionSets: ISelectionSet[] = [];\r\n\r\n /**\r\n * utils/interfaces/EWorkflowType: SEARCH | SELECT | SKETCH\r\n */\r\n @State() _selectionWorkflowType = EWorkflowType.SEARCH;\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 NewPublicNotification_T9n;\r\n\r\n /**\r\n * ISelectionSet: The current active selection set\r\n */\r\n protected _activeSelection: ISelectionSet;\r\n\r\n /**\r\n * HTMLPdfDownloadElement: The pdf tools element\r\n */\r\n protected _downloadTools: HTMLPdfDownloadElement;\r\n\r\n /**\r\n * esri/geometry/geometryEngine: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html\r\n */\r\n protected _geometryEngine: __esri.geometryEngine;\r\n\r\n /**\r\n * HTMLCalciteCheckboxElement: The remove duplicates checkbox element\r\n */\r\n protected _removeDuplicates: HTMLCalciteCheckboxElement;\r\n\r\n /**\r\n * HTMLMapSelectToolsElement: The select tools element\r\n */\r\n protected _selectTools: HTMLMapSelectToolsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Watch handlers\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Called each time the selectionSets prop is changed.\r\n */\r\n @Watch(\"_selectionSets\")\r\n async selectionSetsWatchHandler(\r\n v: ISelectionSet[],\r\n oldV: ISelectionSet[]\r\n ): Promise<void> {\r\n if (v && v !== oldV && v.length > 0) {\r\n const nonRefineSets = v.filter(ss => ss.workflowType !== EWorkflowType.REFINE)\r\n if (nonRefineSets.length === 0) {\r\n this._selectionSets = [];\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Called each time the pageType prop is changed.\r\n */\r\n @Watch(\"_pageType\")\r\n async pageTypeWatchHandler(\r\n pageType: EPageType,\r\n oldPageType: EPageType\r\n ): Promise<void> {\r\n this._clearHighlight();\r\n\r\n if (oldPageType === EPageType.SELECT || oldPageType === EPageType.REFINE) {\r\n // clear any draw shapes or buffers\r\n await this._clearSelection()\r\n }\r\n\r\n if (pageType !== EPageType.SELECT) {\r\n return this._highlightFeatures();\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 * Handle changes to the selection sets\r\n */\r\n @Listen(\"selectionSetsChanged\", { target: \"window\" })\r\n selectionSetsChanged(event: CustomEvent): void {\r\n this._selectionSets = [...event.detail];\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 await this._initModules();\r\n }\r\n\r\n /**\r\n * Renders the component.\r\n */\r\n render():void {\r\n const hasSelections = this._selectionSets.length > 0;\r\n return (\r\n <Host>\r\n <calcite-shell>\r\n <calcite-action-bar class=\"border-bottom-1 action-bar-size\" expand-disabled layout=\"horizontal\" slot=\"header\">\r\n {this._getActionGroup(\"list-check\", false, EPageType.LIST, this._translations?.myLists)}\r\n {this._getActionGroup(\"test-data\", !hasSelections, EPageType.REFINE, this._translations?.refineSelection)}\r\n {this._getActionGroup(\"file-pdf\", !hasSelections, EPageType.PDF, this._translations?.downloadPDF)}\r\n {this._getActionGroup(\"file-csv\", !hasSelections, EPageType.CSV, this._translations?.downloadCSV)}\r\n </calcite-action-bar>\r\n {this._getPage(this._pageType)}\r\n </calcite-shell>\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 * Load esri javascript api modules\r\n *\r\n * @returns Promise resolving when function is done\r\n *\r\n * @protected\r\n */\r\n protected async _initModules(): Promise<void> {\r\n const [geometryEngine]: [\r\n __esri.geometryEngine\r\n ] = await loadModules([\r\n \"esri/geometry/geometryEngine\"\r\n ]);\r\n this._geometryEngine = geometryEngine;\r\n }\r\n\r\n /**\r\n * Get a calcite action group for the current action\r\n *\r\n * @param icon the icon to display for the current action\r\n * @param disabled should the action be disabled\r\n * @param pageType what page type will the action navigate to\r\n * @param tip information tip to display helpful details to end user\r\n *\r\n * @protected\r\n */\r\n protected _getActionGroup(\r\n icon: string,\r\n disabled: boolean,\r\n pageType: EPageType,\r\n tip: string\r\n ): VNode {\r\n return (\r\n <calcite-action-group class={\"action-center w-1-4\"} layout=\"horizontal\">\r\n <calcite-action\r\n active={this._pageType === pageType}\r\n alignment=\"center\"\r\n class=\"width-full height-full\"\r\n compact={false}\r\n disabled={disabled}\r\n icon={icon}\r\n id={icon}\r\n onClick={() => { this._setPageType(pageType) }}\r\n text=\"\"\r\n />\r\n <calcite-tooltip label=\"\" placement=\"bottom\" reference-element={icon}>\r\n <span>{tip}</span>\r\n </calcite-tooltip>\r\n </calcite-action-group>\r\n );\r\n }\r\n\r\n /**\r\n * Navigate to the defined page type\r\n *\r\n * @param pageType what page type will the action navigate to\r\n *\r\n * @protected\r\n */\r\n protected _setPageType(\r\n pageType: EPageType\r\n ): void {\r\n this._pageType = pageType;\r\n }\r\n\r\n /**\r\n * Navigate to the defined page type\r\n *\r\n * @param pageType what page type will the action navigate to\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n _getPage(\r\n pageType: EPageType\r\n ): VNode {\r\n let page: VNode;\r\n switch (pageType) {\r\n case EPageType.LIST:\r\n page = this._getListPage();\r\n break;\r\n\r\n case EPageType.SELECT:\r\n page = this._getSelectPage();\r\n break;\r\n\r\n case EPageType.REFINE:\r\n page = this._getRefinePage();\r\n break;\r\n\r\n case EPageType.PDF:\r\n page = this._getPDFPage();\r\n break;\r\n\r\n case EPageType.CSV:\r\n page = this._getCSVPage();\r\n break;\r\n\r\n }\r\n return page;\r\n }\r\n\r\n /**\r\n * Create the List page that shows as the initial home screen\r\n * This page is also used to show and selection sets that have been created\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getListPage(): VNode {\r\n const hasSets = this._selectionSets.filter(ss => ss.workflowType !== EWorkflowType.REFINE).length > 0;\r\n const total = utils.getTotal(this._selectionSets);\r\n return hasSets ? (\r\n <calcite-panel>\r\n <div class=\"padding-top-sides-1\">\r\n <calcite-label class=\"font-bold\">{this._translations?.myLists}</calcite-label>\r\n </div>\r\n {this._getNotice(this._translations?.listHasSetsTip, \"padding-sides-1 padding-bottom-1\")}\r\n <div class=\"display-flex padding-sides-1\">\r\n <calcite-label class=\"font-bold width-full\">{this._translations?.addresseeLayer}\r\n <map-layer-picker\r\n mapView={this.mapView}\r\n onLayerSelectionChange={(evt) => this._layerSelectionChange(evt)}\r\n selectedLayers={this.addresseeLayer ? [this.addresseeLayer?.layer.title] : []}\r\n selectionMode={\"single\"}\r\n />\r\n </calcite-label>\r\n </div>\r\n <div class=\"padding-sides-1 height-1-1-2\">\r\n <div class=\"position-left\">\r\n <calcite-label alignment=\"start\" class=\"font-bold\">{this._translations?.notifications}</calcite-label>\r\n </div>\r\n <div class=\"position-right\">\r\n <calcite-input-message active class=\"info-blue margin-top-0\" scale=\"m\">{this._translations?.uniqueCout.replace(\"{{n}}\", total.toString())}</calcite-input-message>\r\n </div>\r\n </div>\r\n {\r\n hasSets ? this._getSelectionSetList() : (\r\n <div class=\"info-message\">\r\n <calcite-input-message active class=\"info-blue\" scale=\"m\">{this._translations?.noNotifications}</calcite-input-message>\r\n </div>\r\n )\r\n }\r\n <div class=\"display-flex padding-1\">\r\n <calcite-button onClick={() => { this._setPageType(EPageType.SELECT) }} width=\"full\">{this._translations?.add}</calcite-button>\r\n </div>\r\n </calcite-panel>\r\n ) : (\r\n <calcite-panel>\r\n <div class=\"padding-top-sides-1\">\r\n <calcite-label class=\"font-bold\">{this._translations?.myLists}</calcite-label>\r\n </div>\r\n <div class=\"padding-sides-1\">\r\n <calcite-label>{this._translations?.notifications}</calcite-label>\r\n </div>\r\n <div class=\"info-message padding-bottom-1\">\r\n <calcite-input-message active class=\"info-blue\" scale=\"m\">{this._translations?.noNotifications}</calcite-input-message>\r\n </div>\r\n {this._getNotice(this._translations?.selectLayerAndAdd, \"padding-sides-1 padding-bottom-1\")}\r\n <div class=\"display-flex padding-sides-1\">\r\n <calcite-label class=\"font-bold width-full\">{this._translations?.addresseeLayer}\r\n <map-layer-picker\r\n mapView={this.mapView}\r\n onLayerSelectionChange={(evt) => this._layerSelectionChange(evt)}\r\n selectedLayers={this.addresseeLayer ? [this.addresseeLayer?.layer.title] : []}\r\n selectionMode={\"single\"}\r\n />\r\n </calcite-label>\r\n </div>\r\n <div class=\"display-flex padding-1\">\r\n <calcite-button onClick={() => { this._setPageType(EPageType.SELECT) }} width=\"full\">{this._translations?.add}</calcite-button>\r\n </div>\r\n </calcite-panel>\r\n );\r\n }\r\n\r\n /**\r\n * Create the selection sets list node for the List page\r\n *\r\n * @returns selection sets list node\r\n * @protected\r\n */\r\n protected _getSelectionSetList(): VNode {\r\n return (\r\n <calcite-list class=\"list-border margin-sides-1\">\r\n {\r\n // REFINE is handled seperately from the core selection sets\r\n // You can only access after clicking the refine action\r\n this._selectionSets.reduce((prev, cur, i) => {\r\n if (cur.workflowType !== EWorkflowType.REFINE) {\r\n prev.push((\r\n <calcite-list-item\r\n description={this._translations.selectedFeatures.replace(\"{{n}}\", cur.selectedIds.length.toString())}\r\n label={cur.label}\r\n onClick={() => goToSelection(cur.selectedIds, cur.layerView, this.mapView)}\r\n >\r\n {this._getAction(true, \"pencil\", \"\", (evt): void => this._openSelection(cur, evt), false, \"actions-end\")}\r\n {this._getAction(true, \"x\", \"\", (evt): Promise<void> => this._deleteSelection(i, evt), false, \"actions-end\")}\r\n </calcite-list-item>\r\n ));\r\n }\r\n return prev;\r\n }, [])\r\n }\r\n </calcite-list>\r\n );\r\n }\r\n\r\n /**\r\n * Create the Select page that shows the selection workflows\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getSelectPage(): VNode {\r\n const searchTip = `${this._translations?.selectSearchTip} ${this._translations?.optionalSearchDistance}`;\r\n const selectTip = `${this._translations?.selectLayerTip} ${this._translations?.optionalSearchDistance}`;\r\n const sketchTip = `${this._translations?.selectSketchTip} ${this._translations?.optionalSearchDistance}`;\r\n\r\n const noticeText = this._selectionWorkflowType === EWorkflowType.SELECT ? selectTip :\r\n this._selectionWorkflowType === EWorkflowType.SKETCH ? sketchTip : searchTip;\r\n\r\n return (\r\n <calcite-panel>\r\n {this._getLabel(this._translations?.stepTwoFull, true)}\r\n {this._getNotice(noticeText)}\r\n <div class={\"padding-1\"}>\r\n <map-select-tools\r\n class=\"font-bold\"\r\n isUpdate={!!this._activeSelection}\r\n mapView={this.mapView}\r\n onSelectionSetChange={(evt) => this._updateForSelection(evt)}\r\n onWorkflowTypeChange={(evt) => this._updateForWorkflowType(evt)}\r\n ref={(el) => { this._selectTools = el }}\r\n selectLayerView={this.addresseeLayer}\r\n selectionSet={this._activeSelection}\r\n />\r\n </div>\r\n <div class=\"padding-sides-1 padding-bottom-1\" style={{ \"align-items\": \"end\", \"display\": \"flex\" }}>\r\n <calcite-icon class=\"info-blue padding-end-1-2\" icon=\"feature-layer\" scale=\"s\" />\r\n <calcite-input-message active class=\"info-blue\" scale=\"m\">\r\n {this._translations?.selectedAddresses.replace(\"{{n}}\", this._numSelected.toString())}\r\n </calcite-input-message>\r\n </div>\r\n {\r\n this._getPageNavButtons(\r\n this._translations?.done,\r\n this._numSelected === 0,\r\n (): void => { void this._saveSelection() },\r\n this._translations?.cancel,\r\n false,\r\n (): void => { void this._home() }\r\n )\r\n }\r\n </calcite-panel>\r\n );\r\n }\r\n\r\n /**\r\n * Create the Refine page that users can interactively add/remove features from existing selection sets\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getRefinePage(): VNode {\r\n return (\r\n <calcite-panel>\r\n {this._getLabel(this._translations?.refineSelection)}\r\n {this._getNotice(this._translations?.refineTip, \"padding-sides-1\")}\r\n <refine-selection\r\n addresseeLayer={this.addresseeLayer}\r\n mapView={this.mapView}\r\n selectionSets={this._selectionSets}\r\n />\r\n </calcite-panel>\r\n );\r\n }\r\n\r\n /**\r\n * Create the PDF download page that shows the download options\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getPDFPage(): VNode {\r\n return this._getDownloadPage(EExportType.PDF);\r\n }\r\n\r\n /**\r\n * Create the CSV download page that shows the download options\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getCSVPage(): VNode {\r\n return this._getDownloadPage(EExportType.CSV);\r\n }\r\n\r\n /**\r\n * Create the main download page that has the shared aspects of both PDF and CSV\r\n * But only show the current PDF or CSV page content\r\n *\r\n * @param type EExportType of the current type expected\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getDownloadPage(\r\n type: EExportType\r\n ): VNode {\r\n const isPdf = type === EExportType.PDF;\r\n return (\r\n <calcite-panel>\r\n <div>\r\n <div class=\"padding-top-sides-1\">\r\n <calcite-label class=\"font-bold\">\r\n {isPdf ? this._translations?.pdfDownloads : this._translations?.csvDownloads}\r\n </calcite-label>\r\n <calcite-label>{this._translations?.notifications}</calcite-label>\r\n </div>\r\n {this._getSelectionLists()}\r\n <div class=\"margin-side-1 padding-top-1 border-bottom\" />\r\n <div class=\"padding-top-sides-1\">\r\n <calcite-label disabled={!this._downloadActive} layout=\"inline\">\r\n <calcite-checkbox disabled={!this._downloadActive} ref={(el) => { this._removeDuplicates = el }} />\r\n {this._translations?.removeDuplicate}\r\n </calcite-label>\r\n </div>\r\n <div class={isPdf ? \"\" : \"display-none\"}>\r\n {this._getLabel(this._translations?.selectPDFLabelOption, false, !this._downloadActive)}\r\n <div class={\"padding-sides-1\"}>\r\n <pdf-download\r\n disabled={!this._downloadActive}\r\n layerView={this.addresseeLayer}\r\n ref={(el) => { this._downloadTools = el }}\r\n />\r\n </div>\r\n </div>\r\n <div class=\"padding-1 display-flex\">\r\n <calcite-button\r\n disabled={!this._downloadActive}\r\n onClick={isPdf ? () => this._downloadPDF() : () => this._downloadCSV()}\r\n width=\"full\"\r\n >\r\n {isPdf ? this._translations?.downloadPDF : this._translations?.downloadCSV}\r\n </calcite-button>\r\n </div>\r\n </div>\r\n </calcite-panel>\r\n );\r\n }\r\n\r\n /**\r\n * Create the stacked navigation buttons for a page\r\n *\r\n * @param topLabel the label to use for the button on top\r\n * @param topDisabled should the button be disabled\r\n * @param topFunc the fucntion to execute when the button is clicked\r\n * @param bottomLabel the label to use for the button on bottom\r\n * @param bottomDisabled should the button be disabled\r\n * @param bottomFunc the fucntion to execute when the button is clicked\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _getPageNavButtons(\r\n topLabel: string,\r\n topDisabled: boolean,\r\n topFunc: () => void,\r\n bottomLabel: string,\r\n bottomDisabled: boolean,\r\n bottomFunc: () => void\r\n ): VNode {\r\n return (\r\n <div>\r\n <div class=\"display-flex padding-top-sides-1\">\r\n <calcite-button\r\n disabled={topDisabled}\r\n onClick={topFunc}\r\n width=\"full\"\r\n >\r\n {topLabel}\r\n </calcite-button>\r\n </div>\r\n <div class=\"display-flex padding-top-1-2 padding-sides-1\">\r\n <calcite-button\r\n appearance=\"outline\"\r\n disabled={bottomDisabled}\r\n onClick={bottomFunc}\r\n width=\"full\"\r\n >\r\n {bottomLabel}\r\n </calcite-button>\r\n </div>\r\n </div>\r\n )\r\n }\r\n\r\n /**\r\n * Create an informational notice\r\n *\r\n * @param message the message to display in the notice\r\n * @param noticeClass any custom css for the notice (default is \"padding-1\")\r\n *\r\n * @returns the notice node\r\n * @protected\r\n */\r\n protected _getNotice(\r\n message: string,\r\n noticeClass = \"padding-1\"\r\n ): VNode {\r\n return (\r\n <calcite-notice active class={noticeClass} color=\"green\" icon=\"lightbulb\">\r\n <div slot=\"message\">{message}</div>\r\n </calcite-notice>\r\n );\r\n }\r\n\r\n /**\r\n * Create a calcite label\r\n *\r\n * @param label value to display in the label\r\n * @param disableSpacing should extra calcite defined spacing be applied\r\n * @param disabled should the label be disabled\r\n *\r\n * @returns the label node\r\n * @protected\r\n */\r\n protected _getLabel(\r\n label: string,\r\n disableSpacing = false,\r\n disabled = false\r\n ): VNode {\r\n return (\r\n <div class=\"padding-top-sides-1\">\r\n <calcite-label\r\n class=\"font-bold\"\r\n disable-spacing={disableSpacing}\r\n disabled={disabled}\r\n >\r\n {label}\r\n </calcite-label>\r\n </div>\r\n );\r\n }\r\n\r\n /**\r\n * Get selection set list node with checkbox for Download pages\r\n *\r\n * @returns the list node\r\n * @protected\r\n */\r\n protected _getSelectionLists(): VNode {\r\n return this._selectionSets.reduce((prev, cur) => {\r\n if (cur.workflowType !== EWorkflowType.REFINE) {\r\n if (!this._downloadActive && cur.download) {\r\n this._downloadActive = true;\r\n }\r\n prev.push((\r\n <div class=\"display-flex padding-sides-1 padding-bottom-1\">\r\n <calcite-checkbox checked={cur.download} onClick={() => { void this._toggleDownload(cur.id) }} />\r\n <calcite-list class=\"list-border margin-start-1-2 w-100\" id=\"download-list\">\r\n <calcite-list-item\r\n description={this._translations.selectedFeatures.replace(\"{{n}}\", cur.selectedIds.length.toString())}\r\n disabled={!cur.download}\r\n label={cur.label}\r\n onClick={() => { void this._toggleDownload(cur.id) }}\r\n />\r\n </calcite-list>\r\n </div>\r\n ));\r\n }\r\n return prev;\r\n }, []) || (<div />);\r\n }\r\n\r\n /**\r\n * Toggle the disabled state for the download options based on user selection\r\n *\r\n * @param id the selection set id to toggle\r\n *\r\n * @protected\r\n */\r\n protected async _toggleDownload(\r\n id: number\r\n ): Promise<void> {\r\n let isActive = false;\r\n this._selectionSets = this._selectionSets.map(ss => {\r\n ss.download = ss.id === id ? !ss.download : ss.download;\r\n isActive = ss.download ? true : isActive;\r\n return ss;\r\n });\r\n this._downloadActive = isActive;\r\n await this._highlightFeatures();\r\n }\r\n\r\n /**\r\n * Download all selection sets as PDF\r\n *\r\n * @protected\r\n */\r\n protected _downloadPDF(): Promise<void> {\r\n const ids = utils.getSelectionIds(this._getDownloadSelectionSets());\r\n return this._downloadTools.downloadPDF(ids, this._removeDuplicates.checked);\r\n }\r\n\r\n /**\r\n * Download all selection sets as CSV\r\n *\r\n * @protected\r\n */\r\n protected _downloadCSV(): Promise<void> {\r\n const ids = utils.getSelectionIds(this._getDownloadSelectionSets());\r\n return this._downloadTools.downloadCSV(ids, this._removeDuplicates.checked);\r\n }\r\n\r\n /**\r\n * Get all enabled selection sets\r\n *\r\n * @returns the selection sets\r\n * @protected\r\n */\r\n protected _getDownloadSelectionSets(): ISelectionSet[] {\r\n return this._selectionSets.filter(ss => {\r\n return ss.download || ss.workflowType === EWorkflowType.REFINE;\r\n });\r\n }\r\n\r\n /**\r\n * Store the current workflow type\r\n *\r\n * @protected\r\n */\r\n protected _updateForWorkflowType(\r\n evt: CustomEvent\r\n ): void {\r\n this._selectionWorkflowType = evt.detail;\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 * Store the number of selected features and if it's more than one enable save\r\n *\r\n * @returns the page node\r\n * @protected\r\n */\r\n protected _updateForSelection(evt: CustomEvent): void {\r\n this._numSelected = evt.detail;\r\n this._saveEnabled = this._numSelected > 0;\r\n }\r\n\r\n /**\r\n * Clear the selection and navigate to the home page\r\n *\r\n * @returns Promise when the function has completed\r\n * @protected\r\n */\r\n protected async _home(): Promise<void> {\r\n await this._clearSelection();\r\n this._setPageType(EPageType.LIST);\r\n }\r\n\r\n /**\r\n * Fetch the layer defined in the selection change event\r\n *\r\n * @returns Promise when the function has completed\r\n * @protected\r\n */\r\n protected async _layerSelectionChange(\r\n evt: CustomEvent\r\n ): Promise<void> {\r\n const title: string = evt?.detail?.length > 0 ? evt.detail[0] : \"\";\r\n if (title !== this.addresseeLayer?.layer.title) {\r\n this.addresseeLayer = await getMapLayerView(this.mapView, title);\r\n await this._updateSelectionSets(this.addresseeLayer);\r\n }\r\n }\r\n\r\n /**\r\n * Update selection sets when the addressee layer changes.\r\n * Will remove any \"refine\" selection set.\r\n * Will use stored search, select, and sketch geometries and any buffers to select from the new addressee layer.\r\n *\r\n * @param layerView The new addressee layer view to select from\r\n *\r\n * @returns Promise when the function has completed\r\n * @protected\r\n */\r\n protected async _updateSelectionSets(\r\n layerView: __esri.FeatureLayerView\r\n ): Promise<void> {\r\n const _selectionSets = this._selectionSets.filter(\r\n selectionSet => selectionSet.workflowType !== EWorkflowType.REFINE\r\n );\r\n const oidDefs = [];\r\n _selectionSets.forEach(selectionSet => {\r\n selectionSet.layerView = layerView;\r\n selectionSet.selectedIds = [];\r\n oidDefs.push(getSelectionSetQuery(selectionSet, this._geometryEngine));\r\n });\r\n\r\n return Promise.all(oidDefs).then(async (results): Promise<void> => {\r\n results.forEach((result, i) => {\r\n _selectionSets[i].selectedIds = result;\r\n });\r\n await this._highlightFeatures();\r\n this._selectionSets = [\r\n ..._selectionSets\r\n ];\r\n });\r\n }\r\n\r\n /**\r\n * Update the selection sets with any new selections from the select tools\r\n *\r\n * @returns Promise when the function has completed\r\n * @protected\r\n */\r\n protected async _saveSelection(): Promise<void> {\r\n const results = await this._selectTools?.getSelection();\r\n const isUpdate = this._selectTools?.isUpdate;\r\n\r\n this._selectionSets = isUpdate ? this._selectionSets.map(ss => {\r\n return ss.id === results.id ? results : ss;\r\n }) : [\r\n ...this._selectionSets,\r\n results\r\n ];\r\n return this._home();\r\n }\r\n\r\n /**\r\n * Clear any selections\r\n *\r\n * @returns Promise when the function has completed\r\n * @protected\r\n */\r\n protected async _clearSelection(): Promise<void> {\r\n await this._selectTools?.clearSelection();\r\n this._numSelected = 0;\r\n this._activeSelection = undefined;\r\n }\r\n\r\n /**\r\n * Delete the selection at the defined index\r\n *\r\n * @param index number that defines what selection set to delete\r\n *\r\n * @protected\r\n */\r\n protected _deleteSelection(\r\n index: number,\r\n evt: CustomEvent\r\n ): Promise<void> {\r\n evt.stopPropagation();\r\n this._selectionSets = this._selectionSets.filter((ss, i) => {\r\n if (i !== index) {\r\n return ss;\r\n }\r\n });\r\n return this._highlightFeatures();\r\n }\r\n\r\n /**\r\n * Open the selection set for further adjustment\r\n *\r\n * @protected\r\n */\r\n protected _openSelection(\r\n selectionSet: ISelectionSet,\r\n evt: CustomEvent\r\n ): void {\r\n evt.stopPropagation();\r\n this._activeSelection = selectionSet;\r\n this._pageType = EPageType.SELECT;\r\n }\r\n\r\n /**\r\n * Highlight any selected features in the map\r\n *\r\n * @protected\r\n */\r\n protected async _highlightFeatures(): Promise<void> {\r\n this._clearHighlight();\r\n const ids = utils.getSelectionIds(this._selectionSets);\r\n if (ids.length > 0) {\r\n state.highlightHandle = await highlightFeatures(\r\n ids,\r\n this.addresseeLayer,\r\n this.mapView\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * Clear any highlighted features in the map\r\n *\r\n * @protected\r\n */\r\n protected _clearHighlight(): void {\r\n state.highlightHandle?.remove();\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 NewPublicNotification_T9n;\r\n }\r\n}\r\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
|
-
import { c as createStore } from './index2.js';
|
|
7
|
-
|
|
8
|
-
/** @license
|
|
9
|
-
* Copyright 2022 Esri
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
const { state, onChange } = createStore({
|
|
24
|
-
// List of layers added and managed by the component
|
|
25
|
-
managedLayers: [],
|
|
26
|
-
// Handle: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#Handle
|
|
27
|
-
highlightHandle: undefined
|
|
28
|
-
});
|
|
29
|
-
const managedLayersChangedEvent = new CustomEvent("managedLayersChanged", {
|
|
30
|
-
bubbles: true,
|
|
31
|
-
cancelable: false,
|
|
32
|
-
composed: true
|
|
33
|
-
});
|
|
34
|
-
onChange("managedLayers", () => {
|
|
35
|
-
dispatchEvent(managedLayersChangedEvent);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export { state as s };
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=publicNotificationStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"publicNotificationStore.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;MAkBM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;;EAEpC,aAAa,EAAE,EAAE;;EAEjB,eAAe,EAAE,SAAS;CAC7B,EAAE;AAEH,MAAM,yBAAyB,GAAG,IAAI,WAAW,CAAC,sBAAsB,EAAE;EACtE,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,KAAK;EACjB,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC;AAEH,QAAQ,CAAC,eAAe,EAAE;EACtB,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC7C,CAAC,CAAC;;;;","names":[],"sources":["./src/utils/publicNotificationStore.ts"],"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\nimport { createStore } from \"@stencil/store\";\r\n\r\nconst { state, onChange } = createStore({\r\n // List of layers added and managed by the component\r\n managedLayers: [],\r\n // Handle: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#Handle\r\n highlightHandle: undefined\r\n});\r\n\r\nconst managedLayersChangedEvent = new CustomEvent(\"managedLayersChanged\", {\r\n bubbles: true,\r\n cancelable: false,\r\n composed: true\r\n});\r\n\r\nonChange(\"managedLayers\", () => {\r\n dispatchEvent(managedLayersChangedEvent);\r\n});\r\n\r\nexport default state;"],"version":3}
|
|
@@ -1,163 +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 { a as EWorkflowType } from './interfaces3.js';
|
|
7
|
-
|
|
8
|
-
/** @license
|
|
9
|
-
* Copyright 2022 Esri
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Query the layer for OIDs based on any user drawn geometries or buffers
|
|
25
|
-
*
|
|
26
|
-
* @param geometries Array of geometries used for the selection of ids from the layer
|
|
27
|
-
* @param layer the layer to retrieve ids from
|
|
28
|
-
*
|
|
29
|
-
* @returns Promise with the OIDs of features from the layer that interset the provided geometries
|
|
30
|
-
*/
|
|
31
|
-
async function queryObjectIds(geometries, layer) {
|
|
32
|
-
let ids = [];
|
|
33
|
-
const queryDefs = geometries.map(g => _intersectQuery(g, layer));
|
|
34
|
-
const results = await Promise.all(queryDefs);
|
|
35
|
-
results.forEach(resultIds => {
|
|
36
|
-
ids = [
|
|
37
|
-
...ids,
|
|
38
|
-
...resultIds
|
|
39
|
-
];
|
|
40
|
-
});
|
|
41
|
-
return ids;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Query the layer for features that have the provided OIDs
|
|
45
|
-
*
|
|
46
|
-
* @param ids array of ObjectIDs to be used to query for features in a layer
|
|
47
|
-
* @param layer the layer to retrieve features from
|
|
48
|
-
*
|
|
49
|
-
* @returns Promise with the featureSet from the layer that match the provided ids
|
|
50
|
-
*/
|
|
51
|
-
async function queryFeaturesByID(ids, layer) {
|
|
52
|
-
const q = layer.createQuery();
|
|
53
|
-
q.outFields = ["*"];
|
|
54
|
-
q.objectIds = ids;
|
|
55
|
-
return layer.queryFeatures(q);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Query the layer for features that intersect the provided geometry
|
|
59
|
-
*
|
|
60
|
-
* @param start zero-based index indicating where to begin retrieving features
|
|
61
|
-
* @param layer the layer to retrieve features from
|
|
62
|
-
* @param geometry the geometry to apply to the spatial filter
|
|
63
|
-
* @param featuresCollection
|
|
64
|
-
*
|
|
65
|
-
* @returns Promise with the featureSet from the layer that match the provided ids
|
|
66
|
-
*/
|
|
67
|
-
async function queryFeaturesByGeometry(start, layer, geometry, featuresCollection) {
|
|
68
|
-
const num = layer.capabilities.query.maxRecordCount;
|
|
69
|
-
const query = {
|
|
70
|
-
start,
|
|
71
|
-
num,
|
|
72
|
-
outFields: ["*"],
|
|
73
|
-
returnGeometry: true,
|
|
74
|
-
geometry
|
|
75
|
-
};
|
|
76
|
-
const result = await layer.queryFeatures(query);
|
|
77
|
-
featuresCollection[layer.title] = featuresCollection[layer.title].concat(result.features);
|
|
78
|
-
return result.exceededTransferLimit ?
|
|
79
|
-
queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :
|
|
80
|
-
Promise.resolve(featuresCollection);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Query the layer for the extent of features with the provided OIDs
|
|
84
|
-
*
|
|
85
|
-
* @param ids array of ObjectIDs to be used to query for features in a layer
|
|
86
|
-
* @param layer the layer to query
|
|
87
|
-
*
|
|
88
|
-
* @returns Promise with the Extent of all features that match the provided ids
|
|
89
|
-
*/
|
|
90
|
-
async function queryExtent(ids, layer) {
|
|
91
|
-
const query = layer.createQuery();
|
|
92
|
-
query.objectIds = ids;
|
|
93
|
-
return layer.queryExtent(query);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Union geometries based on geometry type
|
|
97
|
-
*
|
|
98
|
-
* @param geometries Array of geometries to union
|
|
99
|
-
* @param geometryEngine the geometry engine instance to perform the unions
|
|
100
|
-
*
|
|
101
|
-
* @returns Array of single unioned geometry for each geometry type
|
|
102
|
-
*/
|
|
103
|
-
function getQueryGeoms(geometries, geometryEngine) {
|
|
104
|
-
// sort and union by geom type so we have a single geom for each type to query with
|
|
105
|
-
return [
|
|
106
|
-
..._unionGeoms(geometries, "polygon", geometryEngine),
|
|
107
|
-
..._unionGeoms(geometries, "polyline", geometryEngine),
|
|
108
|
-
..._unionGeoms(geometries, "point", geometryEngine)
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Get the appropriate ObjectIds query for the provided selection set
|
|
113
|
-
*
|
|
114
|
-
* @param selectionSet the current selection set to fetch the query for
|
|
115
|
-
* @param geometryEngine the geometry engine instance to perform the union of the user drawn graphics or buffers
|
|
116
|
-
*
|
|
117
|
-
* @returns A promise that will resolve with ids that intersect the selection sets geometries
|
|
118
|
-
*/
|
|
119
|
-
function getSelectionSetQuery(selectionSet, geometryEngine) {
|
|
120
|
-
let q = Promise.resolve([]);
|
|
121
|
-
if (selectionSet.workflowType !== EWorkflowType.REFINE) {
|
|
122
|
-
if (!selectionSet.buffer) {
|
|
123
|
-
const queryGeoms = getQueryGeoms(selectionSet.geometries, geometryEngine);
|
|
124
|
-
q = queryObjectIds(queryGeoms, selectionSet.layerView.layer);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
// buffer is a single unioned geom
|
|
128
|
-
q = queryObjectIds([selectionSet.buffer], selectionSet.layerView.layer);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return q;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Union geometries based on geometry type
|
|
135
|
-
*
|
|
136
|
-
* @param geometries array of geometries to union
|
|
137
|
-
* @param type the current geometry type to union
|
|
138
|
-
* @param geometryEngine the geometry engine instance to perform the unions
|
|
139
|
-
*
|
|
140
|
-
* @returns Array of single unioned geometry for the provided geometry type
|
|
141
|
-
*/
|
|
142
|
-
function _unionGeoms(geometries, type, geometryEngine) {
|
|
143
|
-
const geoms = geometries.filter(g => g.type === type);
|
|
144
|
-
return geoms.length <= 1 ? geoms : [geometryEngine.union(geoms)];
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Query the layer for ObjectIds of features that intersect the provided geometry
|
|
148
|
-
*
|
|
149
|
-
* @param geometry Geometry used for the selection of ids from the select layer view
|
|
150
|
-
* @param layer the layer to query
|
|
151
|
-
*
|
|
152
|
-
* @returns Promise that will contain the selected ids
|
|
153
|
-
*/
|
|
154
|
-
async function _intersectQuery(geometry, layer) {
|
|
155
|
-
const q = layer.createQuery();
|
|
156
|
-
q.spatialRelationship = "intersects";
|
|
157
|
-
q.geometry = geometry;
|
|
158
|
-
return layer.queryObjectIds(q);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export { getQueryGeoms as a, queryFeaturesByID as b, queryFeaturesByGeometry as c, queryExtent as d, getSelectionSetQuery as g, queryObjectIds as q };
|
|
162
|
-
|
|
163
|
-
//# sourceMappingURL=queryUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"queryUtils.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;AAkBA;;;;;;;;AAQO,eAAe,cAAc,CAClC,UAA6B,EAC7B,KAA0B;EAE1B,IAAI,GAAG,GAAG,EAAE,CAAC;EACb,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;EAChE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;EAC7C,OAAO,CAAC,OAAO,CAAC,SAAS;IACvB,GA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KAA0B;EAE1B,MAAM,CAAC,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;EAC9B,CAAC,CAAC,mBAAmB,GAAG,YAAY,CAAC;EACrC,CAAC,CAAC,QAAQ,GAAG,QAAQ,CAAC;EACtB,OAAO,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AACjC;;;;","names":[],"sources":["./src/utils/queryUtils.ts"],"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\nimport { EWorkflowType, ISelectionSet, IQueryExtentResponse } from \"./interfaces\";\r\n\r\n/**\r\n * Query the layer for OIDs based on any user drawn geometries or buffers\r\n *\r\n * @param geometries Array of geometries used for the selection of ids from the layer\r\n * @param layer the layer to retrieve ids from\r\n *\r\n * @returns Promise with the OIDs of features from the layer that interset the provided geometries\r\n */\r\nexport async function queryObjectIds(\r\n geometries: __esri.Geometry[],\r\n layer: __esri.FeatureLayer\r\n): Promise<number[]> {\r\n let ids = [];\r\n const queryDefs = geometries.map(g => _intersectQuery(g, layer))\r\n const results = await Promise.all(queryDefs);\r\n results.forEach(resultIds => {\r\n ids = [\r\n ...ids,\r\n ...resultIds\r\n ]\r\n });\r\n return ids;\r\n}\r\n\r\n/**\r\n * Query the layer for features that have the provided OIDs\r\n *\r\n * @param ids array of ObjectIDs to be used to query for features in a layer\r\n * @param layer the layer to retrieve features from\r\n *\r\n * @returns Promise with the featureSet from the layer that match the provided ids\r\n */\r\n export async function queryFeaturesByID(\r\n ids: number[],\r\n layer: __esri.FeatureLayer\r\n): Promise<__esri.FeatureSet> {\r\n const q = layer.createQuery();\r\n q.outFields = [\"*\"];\r\n q.objectIds = ids;\r\n return layer.queryFeatures(q);\r\n}\r\n\r\n/**\r\n * Query the layer for features that intersect the provided geometry\r\n *\r\n * @param start zero-based index indicating where to begin retrieving features\r\n * @param layer the layer to retrieve features from\r\n * @param geometry the geometry to apply to the spatial filter\r\n * @param featuresCollection\r\n *\r\n * @returns Promise with the featureSet from the layer that match the provided ids\r\n */\r\nexport async function queryFeaturesByGeometry(\r\n start: number,\r\n layer: __esri.FeatureLayer,\r\n geometry: __esri.Geometry,\r\n featuresCollection: {[key: string]: __esri.Graphic[]}\r\n): Promise<{[key: string]: __esri.Graphic[]}> {\r\n const num = layer.capabilities.query.maxRecordCount;\r\n const query = {\r\n start,\r\n num,\r\n outFields: [\"*\"],\r\n returnGeometry: true,\r\n geometry\r\n };\r\n\r\n const result = await layer.queryFeatures(query);\r\n featuresCollection[layer.title] = featuresCollection[layer.title].concat(\r\n result.features\r\n );\r\n\r\n return result.exceededTransferLimit ?\r\n queryFeaturesByGeometry(start += num, layer, geometry, featuresCollection) :\r\n Promise.resolve(featuresCollection);\r\n}\r\n\r\n/**\r\n * Query the layer for the extent of features with the provided OIDs\r\n *\r\n * @param ids array of ObjectIDs to be used to query for features in a layer\r\n * @param layer the layer to query\r\n *\r\n * @returns Promise with the Extent of all features that match the provided ids\r\n */\r\n export async function queryExtent(\r\n ids: number[],\r\n layer: __esri.FeatureLayer\r\n): Promise<IQueryExtentResponse> {\r\n const query = layer.createQuery();\r\n query.objectIds = ids;\r\n return layer.queryExtent(query);\r\n}\r\n\r\n/**\r\n * Union geometries based on geometry type\r\n *\r\n * @param geometries Array of geometries to union\r\n * @param geometryEngine the geometry engine instance to perform the unions\r\n *\r\n * @returns Array of single unioned geometry for each geometry type\r\n */\r\nexport function getQueryGeoms(\r\n geometries: __esri.Geometry[],\r\n geometryEngine: __esri.geometryEngine\r\n): __esri.Geometry[] {\r\n // sort and union by geom type so we have a single geom for each type to query with\r\n return [\r\n ..._unionGeoms(geometries, \"polygon\", geometryEngine),\r\n ..._unionGeoms(geometries, \"polyline\", geometryEngine),\r\n ..._unionGeoms(geometries, \"point\", geometryEngine)\r\n ];\r\n}\r\n\r\n/**\r\n * Get the appropriate ObjectIds query for the provided selection set\r\n *\r\n * @param selectionSet the current selection set to fetch the query for\r\n * @param geometryEngine the geometry engine instance to perform the union of the user drawn graphics or buffers\r\n *\r\n * @returns A promise that will resolve with ids that intersect the selection sets geometries\r\n */\r\nexport function getSelectionSetQuery(\r\n selectionSet: ISelectionSet,\r\n geometryEngine: __esri.geometryEngine\r\n): Promise<number[]> {\r\n let q = Promise.resolve([]);\r\n if (selectionSet.workflowType !== EWorkflowType.REFINE) {\r\n if (!selectionSet.buffer) {\r\n const queryGeoms = getQueryGeoms(\r\n selectionSet.geometries,\r\n geometryEngine\r\n );\r\n q = queryObjectIds(\r\n queryGeoms,\r\n selectionSet.layerView.layer\r\n );\r\n } else {\r\n // buffer is a single unioned geom\r\n q = queryObjectIds(\r\n [selectionSet.buffer],\r\n selectionSet.layerView.layer\r\n );\r\n }\r\n }\r\n return q;\r\n}\r\n\r\n/**\r\n * Union geometries based on geometry type\r\n *\r\n * @param geometries array of geometries to union\r\n * @param type the current geometry type to union\r\n * @param geometryEngine the geometry engine instance to perform the unions\r\n *\r\n * @returns Array of single unioned geometry for the provided geometry type\r\n */\r\n function _unionGeoms(\r\n geometries: __esri.Geometry[],\r\n type: string,\r\n geometryEngine: __esri.geometryEngine\r\n): __esri.Geometry[] {\r\n const geoms = geometries.filter(g => g.type === type);\r\n return geoms.length <= 1 ? geoms : [geometryEngine.union(geoms)];\r\n}\r\n\r\n/**\r\n * Query the layer for ObjectIds of features that intersect the provided geometry\r\n *\r\n * @param geometry Geometry used for the selection of ids from the select layer view\r\n * @param layer the layer to query\r\n *\r\n * @returns Promise that will contain the selected ids\r\n */\r\nasync function _intersectQuery(\r\n geometry: __esri.Geometry,\r\n layer: __esri.FeatureLayer\r\n): Promise<number[]> {\r\n const q = layer.createQuery();\r\n q.spatialRelationship = \"intersects\";\r\n q.geometry = geometry;\r\n return layer.queryObjectIds(q);\r\n}\r\n"],"version":3}
|
|
@@ -1,103 +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 { g as getElementProp, t as toAriaBoolean } from './dom.js';
|
|
8
|
-
import { d as defineCustomElement$1 } from './icon.js';
|
|
9
|
-
|
|
10
|
-
/*!
|
|
11
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
12
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
13
|
-
* v1.0.0-beta.97
|
|
14
|
-
*/
|
|
15
|
-
const SLOTS = {
|
|
16
|
-
input: "input"
|
|
17
|
-
};
|
|
18
|
-
const CSS = {
|
|
19
|
-
radioGroupItemIcon: "radio-group-item-icon"
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const radioGroupItemCss = "@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{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}:host([icon-start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{-webkit-margin-start:1rem;margin-inline-start:1rem}";
|
|
23
|
-
|
|
24
|
-
const RadioGroupItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
this.__registerHost();
|
|
28
|
-
this.__attachShadow();
|
|
29
|
-
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 6);
|
|
30
|
-
//--------------------------------------------------------------------------
|
|
31
|
-
//
|
|
32
|
-
// Properties
|
|
33
|
-
//
|
|
34
|
-
//--------------------------------------------------------------------------
|
|
35
|
-
/** When `true`, the component is checked. */
|
|
36
|
-
this.checked = false;
|
|
37
|
-
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
|
38
|
-
this.iconFlipRtl = false;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the placement of the icon.
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use either `iconStart` or `iconEnd` but do not combine them with `icon` and `iconPosition`.
|
|
43
|
-
*/
|
|
44
|
-
this.iconPosition = "start";
|
|
45
|
-
}
|
|
46
|
-
handleCheckedChange() {
|
|
47
|
-
this.calciteInternalRadioGroupItemChange.emit();
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const { checked, value } = this;
|
|
51
|
-
const scale = getElementProp(this.el, "scale", "m");
|
|
52
|
-
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
53
|
-
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
54
|
-
const iconStartEl = this.iconStart ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
55
|
-
const iconEndEl = this.iconEnd ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
56
|
-
const iconEl = (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, key: "icon", scale: "s" }));
|
|
57
|
-
const iconAtStart = this.icon && this.iconPosition === "start" && !this.iconStart ? iconEl : null;
|
|
58
|
-
const iconAtEnd = this.icon && this.iconPosition === "end" && !this.iconEnd ? iconEl : null;
|
|
59
|
-
return (h(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, h("label", { class: {
|
|
60
|
-
"label--scale-s": scale === "s",
|
|
61
|
-
"label--scale-m": scale === "m",
|
|
62
|
-
"label--scale-l": scale === "l",
|
|
63
|
-
"label--horizontal": layout === "horizontal",
|
|
64
|
-
"label--outline": appearance === "outline"
|
|
65
|
-
} }, iconAtStart, this.iconStart ? iconStartEl : null, h("slot", null, value), h("slot", { name: SLOTS.input }), iconAtEnd, this.iconEnd ? iconEndEl : null)));
|
|
66
|
-
}
|
|
67
|
-
get el() { return this; }
|
|
68
|
-
static get watchers() { return {
|
|
69
|
-
"checked": ["handleCheckedChange"]
|
|
70
|
-
}; }
|
|
71
|
-
static get style() { return radioGroupItemCss; }
|
|
72
|
-
}, [1, "calcite-radio-group-item", {
|
|
73
|
-
"checked": [1540],
|
|
74
|
-
"icon": [513],
|
|
75
|
-
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
76
|
-
"iconPosition": [513, "icon-position"],
|
|
77
|
-
"iconStart": [513, "icon-start"],
|
|
78
|
-
"iconEnd": [513, "icon-end"],
|
|
79
|
-
"value": [1032]
|
|
80
|
-
}]);
|
|
81
|
-
function defineCustomElement() {
|
|
82
|
-
if (typeof customElements === "undefined") {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const components = ["calcite-radio-group-item", "calcite-icon"];
|
|
86
|
-
components.forEach(tagName => { switch (tagName) {
|
|
87
|
-
case "calcite-radio-group-item":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
customElements.define(tagName, RadioGroupItem);
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case "calcite-icon":
|
|
93
|
-
if (!customElements.get(tagName)) {
|
|
94
|
-
defineCustomElement$1();
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
} });
|
|
98
|
-
}
|
|
99
|
-
defineCustomElement();
|
|
100
|
-
|
|
101
|
-
export { RadioGroupItem as R, defineCustomElement as d };
|
|
102
|
-
|
|
103
|
-
//# sourceMappingURL=radio-group-item.js.map
|
|
@@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EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC,EAAE;GAClK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/radio-group-item/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/radio-group-item/radio-group-item.css?tag=calcite-radio-group-item&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/radio-group-item/radio-group-item.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 SLOTS = {\n input: \"input\"\n};\nexport const CSS = {\n radioGroupItemIcon: \"radio-group-item-icon\"\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 display: flex;\n cursor: pointer;\n align-self: stretch;\n font-weight: var(--calcite-font-weight-normal);\n transition: background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out;\n}\n\n:host label {\n pointer-events: none;\n margin: 0.125rem;\n box-sizing: border-box;\n display: flex;\n flex: 1 1 0%;\n align-items: center;\n color: var(--calcite-ui-text-3);\n transition: background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out;\n}\n\n.label--horizontal {\n justify-content: center;\n}\n\n:host {\n outline-color: transparent;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -1px;\n}\n\n.label--scale-s {\n padding-inline: 0.5rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-block: 0.125rem;\n}\n\n.label--scale-m {\n padding-inline: 0.75rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-block: 0.375rem;\n}\n\n.label--scale-l {\n padding-inline: 1rem;\n padding-block: 0.625rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host(:hover) label {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n\n:host(:active) label {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n:host([checked]) label {\n cursor: default;\n border-color: var(--calcite-ui-brand);\n background-color: var(--calcite-ui-brand);\n color: var(--calcite-ui-background);\n}\n\n:host([checked]) .label--outline {\n border-color: var(--calcite-ui-brand);\n background-color: var(--calcite-ui-foreground-1);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n}\n\n::slotted(input) {\n display: none;\n}\n\n@media (forced-colors: active) {\n :host([checked]) label {\n background-color: highlight;\n }\n\n :host([checked]) .label--outline {\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n\n :host([checked]) label:not([class~=label--outline]) .radio-group-item-icon {\n color: highlightText;\n }\n}\n.radio-group-item-icon {\n position: relative;\n margin: 0px;\n display: inline-flex;\n line-height: inherit;\n}\n\n:host([icon-position=start]) .label--scale-s .radio-group-item-icon {\n margin-inline-end: 0.5rem;\n}\n\n:host([icon-position=end]) .label--scale-s .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 0.5rem;\n}\n\n:host([icon-position=start]) .label--scale-m .radio-group-item-icon {\n margin-inline-end: 0.75rem;\n}\n\n:host([icon-position=end]) .label--scale-m .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 0.75rem;\n}\n\n:host([icon-position=start]) .label--scale-l .radio-group-item-icon {\n margin-inline-end: 1rem;\n}\n\n:host([icon-position=end]) .label--scale-l .radio-group-item-icon {\n margin-inline-end: unset;\n margin-inline-start: 1rem;\n}\n\n:host([icon-start]) .label--scale-s .radio-group-item-icon {\n margin-inline-end: 0.5rem;\n}\n\n:host([icon-end]) .label--scale-s .radio-group-item-icon {\n margin-inline-start: 0.5rem;\n}\n\n:host([icon-start]) .label--scale-m .radio-group-item-icon {\n margin-inline-end: 0.75rem;\n}\n\n:host([icon-end]) .label--scale-m .radio-group-item-icon {\n margin-inline-start: 0.75rem;\n}\n\n:host([icon-start]) .label--scale-l .radio-group-item-icon {\n margin-inline-end: 1rem;\n}\n\n:host([icon-end]) .label--scale-l .radio-group-item-icon {\n margin-inline-start: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { getElementProp, toAriaBoolean } from \"../../utils/dom\";\nimport { SLOTS, CSS } from \"./resources\";\nexport class RadioGroupItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** When `true`, the component is checked. */\n this.checked = false;\n /** When `true`, the icon will be flipped when the element direction is right-to-left (`\"rtl\"`). */\n this.iconFlipRtl = false;\n /**\n * Specifies the placement of the icon.\n *\n * @deprecated Use either `iconStart` or `iconEnd` but do not combine them with `icon` and `iconPosition`.\n */\n this.iconPosition = \"start\";\n }\n handleCheckedChange() {\n this.calciteInternalRadioGroupItemChange.emit();\n }\n render() {\n const { checked, value } = this;\n const scale = getElementProp(this.el, \"scale\", \"m\");\n const appearance = getElementProp(this.el, \"appearance\", \"solid\");\n const layout = getElementProp(this.el, \"layout\", \"horizontal\");\n const iconStartEl = this.iconStart ? (h(\"calcite-icon\", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: \"icon-start\", scale: \"s\" })) : null;\n const iconEndEl = this.iconEnd ? (h(\"calcite-icon\", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: \"icon-end\", scale: \"s\" })) : null;\n const iconEl = (h(\"calcite-icon\", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, key: \"icon\", scale: \"s\" }));\n const iconAtStart = this.icon && this.iconPosition === \"start\" && !this.iconStart ? iconEl : null;\n const iconAtEnd = this.icon && this.iconPosition === \"end\" && !this.iconEnd ? iconEl : null;\n return (h(Host, { \"aria-checked\": toAriaBoolean(checked), \"aria-label\": value, role: \"radio\" }, h(\"label\", { class: {\n \"label--scale-s\": scale === \"s\",\n \"label--scale-m\": scale === \"m\",\n \"label--scale-l\": scale === \"l\",\n \"label--horizontal\": layout === \"horizontal\",\n \"label--outline\": appearance === \"outline\"\n } }, iconAtStart, this.iconStart ? iconStartEl : null, h(\"slot\", null, value), h(\"slot\", { name: SLOTS.input }), iconAtEnd, this.iconEnd ? iconEndEl : null)));\n }\n static get is() { return \"calcite-radio-group-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"radio-group-item.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"radio-group-item.css\"]\n };\n }\n static get properties() {\n return {\n \"checked\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is checked.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use either `iconStart` or `iconEnd` but do not combine them with `icon` and `iconPosition`.\"\n }],\n \"text\": \"Specifies an icon to display.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"iconFlipRtl\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the icon will be flipped when the element direction is right-to-left (`\\\"rtl\\\"`).\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"iconPosition\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use either `iconStart` or `iconEnd` but do not combine them with `icon` and `iconPosition`.\"\n }],\n \"text\": \"Specifies the placement of the icon.\"\n },\n \"attribute\": \"icon-position\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"start\\\"\"\n },\n \"iconStart\": {\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\": \"Specifies an icon to display at the start of the component.\"\n },\n \"attribute\": \"icon-start\",\n \"reflect\": true\n },\n \"iconEnd\": {\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\": \"Specifies an icon to display at the end of the component.\"\n },\n \"attribute\": \"icon-end\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"any | null\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component's value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteInternalRadioGroupItemChange\",\n \"name\": \"calciteInternalRadioGroupItemChange\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Fires when the item has been selected.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"checked\",\n \"methodName\": \"handleCheckedChange\"\n }];\n }\n}\n"],"version":3}
|