@esri/solutions-components 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +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,507 +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 { t as toAriaBoolean, i as isPrimaryPointerButton, f as focusElement } from './dom.js';
|
8
|
-
import { d as defaultMenuPlacement, f as filterComputedPlacements, c as connectFloatingUI, u as updateAfterClose, a as disconnectFloatingUI, F as FloatingCSS, r as reposition } from './floating-ui.js';
|
9
|
-
import { c as createObserver } from './observers.js';
|
10
|
-
import { u as updateHostInteraction } from './interactive.js';
|
11
|
-
import { c as connectOpenCloseComponent, d as disconnectOpenCloseComponent } from './openCloseComponent.js';
|
12
|
-
import { g as guid } from './guid.js';
|
13
|
-
import { i as isActivationKey } from './key.js';
|
14
|
-
|
15
|
-
/*!
|
16
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
17
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
18
|
-
* v1.0.0-beta.97
|
19
|
-
*/
|
20
|
-
const SLOTS = {
|
21
|
-
dropdownTrigger: "dropdown-trigger"
|
22
|
-
};
|
23
|
-
|
24
|
-
const dropdownCss = "@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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-flex;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:flex;flex:1 1 auto}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
25
|
-
|
26
|
-
const Dropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
27
|
-
constructor() {
|
28
|
-
super();
|
29
|
-
this.__registerHost();
|
30
|
-
this.__attachShadow();
|
31
|
-
this.calciteDropdownSelect = createEvent(this, "calciteDropdownSelect", 6);
|
32
|
-
this.calciteDropdownBeforeClose = createEvent(this, "calciteDropdownBeforeClose", 6);
|
33
|
-
this.calciteDropdownClose = createEvent(this, "calciteDropdownClose", 6);
|
34
|
-
this.calciteDropdownBeforeOpen = createEvent(this, "calciteDropdownBeforeOpen", 6);
|
35
|
-
this.calciteDropdownOpen = createEvent(this, "calciteDropdownOpen", 6);
|
36
|
-
//--------------------------------------------------------------------------
|
37
|
-
//
|
38
|
-
// Public Properties
|
39
|
-
//
|
40
|
-
//--------------------------------------------------------------------------
|
41
|
-
/**
|
42
|
-
* Opens or closes the dropdown
|
43
|
-
*
|
44
|
-
* @deprecated use open instead.
|
45
|
-
*/
|
46
|
-
this.active = false;
|
47
|
-
/** When true, opens the dropdown */
|
48
|
-
this.open = false;
|
49
|
-
/**
|
50
|
-
allow the dropdown to remain open after a selection is made
|
51
|
-
if the selection-mode of the selected item's containing group is "none", the dropdown will always close
|
52
|
-
*/
|
53
|
-
this.disableCloseOnSelect = false;
|
54
|
-
/** is the dropdown disabled */
|
55
|
-
this.disabled = false;
|
56
|
-
/**
|
57
|
-
specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
|
58
|
-
this value does not include groupTitles passed to calcite-dropdown-group
|
59
|
-
*/
|
60
|
-
this.maxItems = 0;
|
61
|
-
/**
|
62
|
-
* Determines the type of positioning to use for the overlaid content.
|
63
|
-
*
|
64
|
-
* Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
|
65
|
-
*
|
66
|
-
* `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
67
|
-
*
|
68
|
-
*/
|
69
|
-
this.overlayPositioning = "absolute";
|
70
|
-
/**
|
71
|
-
* Determines where the dropdown will be positioned relative to the button.
|
72
|
-
*
|
73
|
-
* @default "bottom-start"
|
74
|
-
*/
|
75
|
-
this.placement = defaultMenuPlacement;
|
76
|
-
/** specify the scale of dropdown, defaults to m */
|
77
|
-
this.scale = "m";
|
78
|
-
/**
|
79
|
-
* **read-only** The currently selected items
|
80
|
-
*
|
81
|
-
* @readonly
|
82
|
-
*/
|
83
|
-
this.selectedItems = [];
|
84
|
-
/** specify whether the dropdown is opened by hover or click of a trigger element */
|
85
|
-
this.type = "click";
|
86
|
-
this.items = [];
|
87
|
-
this.groups = [];
|
88
|
-
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
89
|
-
this.resizeObserver = createObserver("resize", (entries) => this.resizeObserverCallback(entries));
|
90
|
-
this.openTransitionProp = "visibility";
|
91
|
-
this.guid = `calcite-dropdown-${guid()}`;
|
92
|
-
this.defaultAssignedElements = [];
|
93
|
-
//--------------------------------------------------------------------------
|
94
|
-
//
|
95
|
-
// Private Methods
|
96
|
-
//
|
97
|
-
//--------------------------------------------------------------------------
|
98
|
-
this.slotChangeHandler = (event) => {
|
99
|
-
this.defaultAssignedElements = event.target.assignedElements({
|
100
|
-
flatten: true
|
101
|
-
});
|
102
|
-
this.updateItems();
|
103
|
-
};
|
104
|
-
this.setFilteredPlacements = () => {
|
105
|
-
const { el, flipPlacements } = this;
|
106
|
-
this.filteredFlipPlacements = flipPlacements
|
107
|
-
? filterComputedPlacements(flipPlacements, el)
|
108
|
-
: null;
|
109
|
-
};
|
110
|
-
this.updateTriggers = (event) => {
|
111
|
-
this.triggers = event.target.assignedElements({
|
112
|
-
flatten: true
|
113
|
-
});
|
114
|
-
this.reposition(true);
|
115
|
-
};
|
116
|
-
this.updateItems = () => {
|
117
|
-
this.items = this.groups
|
118
|
-
.map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll("calcite-dropdown-item")))
|
119
|
-
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
120
|
-
this.updateSelectedItems();
|
121
|
-
this.reposition(true);
|
122
|
-
};
|
123
|
-
this.updateGroups = (event) => {
|
124
|
-
const groups = event.target
|
125
|
-
.assignedElements({ flatten: true })
|
126
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-dropdown-group"));
|
127
|
-
this.groups = groups;
|
128
|
-
this.updateItems();
|
129
|
-
};
|
130
|
-
this.resizeObserverCallback = (entries) => {
|
131
|
-
entries.forEach((entry) => {
|
132
|
-
const { target } = entry;
|
133
|
-
if (target === this.referenceEl) {
|
134
|
-
this.setDropdownWidth();
|
135
|
-
}
|
136
|
-
else if (target === this.scrollerEl) {
|
137
|
-
this.setMaxScrollerHeight();
|
138
|
-
}
|
139
|
-
});
|
140
|
-
};
|
141
|
-
this.setDropdownWidth = () => {
|
142
|
-
const { referenceEl, scrollerEl } = this;
|
143
|
-
const referenceElWidth = referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.clientWidth;
|
144
|
-
if (!referenceElWidth || !scrollerEl) {
|
145
|
-
return;
|
146
|
-
}
|
147
|
-
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
148
|
-
};
|
149
|
-
this.setMaxScrollerHeight = () => {
|
150
|
-
const { scrollerEl } = this;
|
151
|
-
if (!scrollerEl) {
|
152
|
-
return;
|
153
|
-
}
|
154
|
-
this.reposition(true);
|
155
|
-
const maxScrollerHeight = this.getMaxScrollerHeight();
|
156
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
157
|
-
this.reposition(true);
|
158
|
-
};
|
159
|
-
this.setScrollerAndTransitionEl = (el) => {
|
160
|
-
this.resizeObserver.observe(el);
|
161
|
-
this.scrollerEl = el;
|
162
|
-
this.transitionEl = el;
|
163
|
-
connectOpenCloseComponent(this);
|
164
|
-
};
|
165
|
-
this.setReferenceEl = (el) => {
|
166
|
-
this.referenceEl = el;
|
167
|
-
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
168
|
-
this.resizeObserver.observe(el);
|
169
|
-
};
|
170
|
-
this.setFloatingEl = (el) => {
|
171
|
-
this.floatingEl = el;
|
172
|
-
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
173
|
-
};
|
174
|
-
this.keyDownHandler = (event) => {
|
175
|
-
const target = event.target;
|
176
|
-
if (target !== this.referenceEl) {
|
177
|
-
return;
|
178
|
-
}
|
179
|
-
const { defaultPrevented, key } = event;
|
180
|
-
if (defaultPrevented) {
|
181
|
-
return;
|
182
|
-
}
|
183
|
-
if (this.open) {
|
184
|
-
if (key === "Escape") {
|
185
|
-
this.closeCalciteDropdown();
|
186
|
-
event.preventDefault();
|
187
|
-
return;
|
188
|
-
}
|
189
|
-
else if (event.shiftKey && key === "Tab") {
|
190
|
-
this.closeCalciteDropdown();
|
191
|
-
event.preventDefault();
|
192
|
-
return;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
if (isActivationKey(key)) {
|
196
|
-
this.openCalciteDropdown();
|
197
|
-
event.preventDefault();
|
198
|
-
}
|
199
|
-
else if (key === "Escape") {
|
200
|
-
this.closeCalciteDropdown();
|
201
|
-
event.preventDefault();
|
202
|
-
}
|
203
|
-
};
|
204
|
-
this.focusOnFirstActiveOrFirstItem = () => {
|
205
|
-
this.getFocusableElement(this.items.find((item) => item.selected) || this.items[0]);
|
206
|
-
};
|
207
|
-
this.toggleOpenEnd = () => {
|
208
|
-
this.focusOnFirstActiveOrFirstItem();
|
209
|
-
this.el.removeEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
210
|
-
};
|
211
|
-
this.openCalciteDropdown = () => {
|
212
|
-
this.open = !this.open;
|
213
|
-
if (this.open) {
|
214
|
-
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
215
|
-
}
|
216
|
-
};
|
217
|
-
}
|
218
|
-
activeHandler(value) {
|
219
|
-
this.open = value;
|
220
|
-
}
|
221
|
-
openHandler(value) {
|
222
|
-
if (!this.disabled) {
|
223
|
-
if (value) {
|
224
|
-
this.reposition(true);
|
225
|
-
}
|
226
|
-
else {
|
227
|
-
updateAfterClose(this.floatingEl);
|
228
|
-
}
|
229
|
-
this.active = value;
|
230
|
-
return;
|
231
|
-
}
|
232
|
-
if (!value) {
|
233
|
-
updateAfterClose(this.floatingEl);
|
234
|
-
}
|
235
|
-
this.open = false;
|
236
|
-
}
|
237
|
-
handleDisabledChange(value) {
|
238
|
-
if (!value) {
|
239
|
-
this.open = false;
|
240
|
-
}
|
241
|
-
}
|
242
|
-
flipPlacementsHandler() {
|
243
|
-
this.setFilteredPlacements();
|
244
|
-
this.reposition(true);
|
245
|
-
}
|
246
|
-
maxItemsHandler() {
|
247
|
-
this.setMaxScrollerHeight();
|
248
|
-
}
|
249
|
-
overlayPositioningHandler() {
|
250
|
-
this.reposition(true);
|
251
|
-
}
|
252
|
-
placementHandler() {
|
253
|
-
this.reposition(true);
|
254
|
-
}
|
255
|
-
//--------------------------------------------------------------------------
|
256
|
-
//
|
257
|
-
// Lifecycle
|
258
|
-
//
|
259
|
-
//--------------------------------------------------------------------------
|
260
|
-
connectedCallback() {
|
261
|
-
var _a;
|
262
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
263
|
-
this.setFilteredPlacements();
|
264
|
-
this.reposition(true);
|
265
|
-
if (this.open) {
|
266
|
-
this.openHandler(this.open);
|
267
|
-
}
|
268
|
-
if (this.active) {
|
269
|
-
this.activeHandler(this.active);
|
270
|
-
}
|
271
|
-
connectOpenCloseComponent(this);
|
272
|
-
}
|
273
|
-
componentDidLoad() {
|
274
|
-
this.reposition(true);
|
275
|
-
}
|
276
|
-
componentDidRender() {
|
277
|
-
updateHostInteraction(this);
|
278
|
-
}
|
279
|
-
disconnectedCallback() {
|
280
|
-
var _a, _b;
|
281
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
282
|
-
disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
283
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
284
|
-
disconnectOpenCloseComponent(this);
|
285
|
-
}
|
286
|
-
render() {
|
287
|
-
const { open, guid } = this;
|
288
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper", ref: this.setFloatingEl }, h("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
289
|
-
["calcite-dropdown-content"]: true,
|
290
|
-
[FloatingCSS.animation]: true,
|
291
|
-
[FloatingCSS.animationActive]: open
|
292
|
-
}, id: `${guid}-menu`, ref: this.setScrollerAndTransitionEl, role: "menu" }, h("slot", { onSlotchange: this.updateGroups })))));
|
293
|
-
}
|
294
|
-
//--------------------------------------------------------------------------
|
295
|
-
//
|
296
|
-
// Public Methods
|
297
|
-
//
|
298
|
-
//--------------------------------------------------------------------------
|
299
|
-
/**
|
300
|
-
* Updates the position of the component.
|
301
|
-
*
|
302
|
-
* @param delayed
|
303
|
-
*/
|
304
|
-
async reposition(delayed = false) {
|
305
|
-
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
306
|
-
return reposition(this, {
|
307
|
-
floatingEl,
|
308
|
-
referenceEl,
|
309
|
-
overlayPositioning,
|
310
|
-
placement,
|
311
|
-
flipPlacements: filteredFlipPlacements,
|
312
|
-
type: "menu"
|
313
|
-
}, delayed);
|
314
|
-
}
|
315
|
-
closeCalciteDropdownOnClick(event) {
|
316
|
-
if (!isPrimaryPointerButton(event) || !this.open || event.composedPath().includes(this.el)) {
|
317
|
-
return;
|
318
|
-
}
|
319
|
-
this.closeCalciteDropdown(false);
|
320
|
-
}
|
321
|
-
closeCalciteDropdownOnEvent(event) {
|
322
|
-
this.closeCalciteDropdown();
|
323
|
-
event.stopPropagation();
|
324
|
-
}
|
325
|
-
closeCalciteDropdownOnOpenEvent(event) {
|
326
|
-
if (event.composedPath().includes(this.el)) {
|
327
|
-
return;
|
328
|
-
}
|
329
|
-
this.open = false;
|
330
|
-
}
|
331
|
-
mouseEnterHandler() {
|
332
|
-
if (this.type === "hover") {
|
333
|
-
this.openCalciteDropdown();
|
334
|
-
}
|
335
|
-
}
|
336
|
-
mouseLeaveHandler() {
|
337
|
-
if (this.type === "hover") {
|
338
|
-
this.closeCalciteDropdown();
|
339
|
-
}
|
340
|
-
}
|
341
|
-
calciteInternalDropdownItemKeyEvent(event) {
|
342
|
-
const { keyboardEvent } = event.detail;
|
343
|
-
// handle edge
|
344
|
-
const target = keyboardEvent.target;
|
345
|
-
const itemToFocus = target.nodeName !== "A" ? target : target.parentNode;
|
346
|
-
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
347
|
-
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
348
|
-
switch (keyboardEvent.key) {
|
349
|
-
case "Tab":
|
350
|
-
if (isLastItem && !keyboardEvent.shiftKey) {
|
351
|
-
this.closeCalciteDropdown();
|
352
|
-
}
|
353
|
-
else if (isFirstItem && keyboardEvent.shiftKey) {
|
354
|
-
this.closeCalciteDropdown();
|
355
|
-
}
|
356
|
-
else if (keyboardEvent.shiftKey) {
|
357
|
-
this.focusPrevItem(itemToFocus);
|
358
|
-
}
|
359
|
-
else {
|
360
|
-
this.focusNextItem(itemToFocus);
|
361
|
-
}
|
362
|
-
break;
|
363
|
-
case "ArrowDown":
|
364
|
-
this.focusNextItem(itemToFocus);
|
365
|
-
break;
|
366
|
-
case "ArrowUp":
|
367
|
-
this.focusPrevItem(itemToFocus);
|
368
|
-
break;
|
369
|
-
case "Home":
|
370
|
-
this.focusFirstItem();
|
371
|
-
break;
|
372
|
-
case "End":
|
373
|
-
this.focusLastItem();
|
374
|
-
break;
|
375
|
-
}
|
376
|
-
event.stopPropagation();
|
377
|
-
}
|
378
|
-
handleItemSelect(event) {
|
379
|
-
this.updateSelectedItems();
|
380
|
-
event.stopPropagation();
|
381
|
-
this.calciteDropdownSelect.emit({
|
382
|
-
item: event.detail.requestedDropdownItem
|
383
|
-
});
|
384
|
-
if (!this.disableCloseOnSelect ||
|
385
|
-
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
386
|
-
this.closeCalciteDropdown();
|
387
|
-
}
|
388
|
-
event.stopPropagation();
|
389
|
-
}
|
390
|
-
onBeforeOpen() {
|
391
|
-
this.calciteDropdownBeforeOpen.emit();
|
392
|
-
}
|
393
|
-
onOpen() {
|
394
|
-
this.calciteDropdownOpen.emit();
|
395
|
-
}
|
396
|
-
onBeforeClose() {
|
397
|
-
this.calciteDropdownBeforeClose.emit();
|
398
|
-
}
|
399
|
-
onClose() {
|
400
|
-
this.calciteDropdownClose.emit();
|
401
|
-
}
|
402
|
-
updateSelectedItems() {
|
403
|
-
this.selectedItems = this.items.filter((item) => item.selected);
|
404
|
-
}
|
405
|
-
getMaxScrollerHeight() {
|
406
|
-
const { maxItems, items } = this;
|
407
|
-
let itemsToProcess = 0;
|
408
|
-
let maxScrollerHeight = 0;
|
409
|
-
let groupHeaderHeight;
|
410
|
-
this.groups.forEach((group) => {
|
411
|
-
if (maxItems > 0 && itemsToProcess < maxItems) {
|
412
|
-
Array.from(group.children).forEach((item, index) => {
|
413
|
-
if (index === 0) {
|
414
|
-
if (isNaN(groupHeaderHeight)) {
|
415
|
-
groupHeaderHeight = item.offsetTop;
|
416
|
-
}
|
417
|
-
maxScrollerHeight += groupHeaderHeight;
|
418
|
-
}
|
419
|
-
if (itemsToProcess < maxItems) {
|
420
|
-
maxScrollerHeight += item.offsetHeight;
|
421
|
-
itemsToProcess += 1;
|
422
|
-
}
|
423
|
-
});
|
424
|
-
}
|
425
|
-
});
|
426
|
-
return items.length > maxItems ? maxScrollerHeight : 0;
|
427
|
-
}
|
428
|
-
closeCalciteDropdown(focusTrigger = true) {
|
429
|
-
this.open = false;
|
430
|
-
if (focusTrigger) {
|
431
|
-
focusElement(this.triggers[0]);
|
432
|
-
}
|
433
|
-
}
|
434
|
-
focusFirstItem() {
|
435
|
-
const firstItem = this.items[0];
|
436
|
-
this.getFocusableElement(firstItem);
|
437
|
-
}
|
438
|
-
focusLastItem() {
|
439
|
-
const lastItem = this.items[this.items.length - 1];
|
440
|
-
this.getFocusableElement(lastItem);
|
441
|
-
}
|
442
|
-
focusNextItem(el) {
|
443
|
-
const index = this.itemIndex(el);
|
444
|
-
const nextItem = this.items[index + 1] || this.items[0];
|
445
|
-
this.getFocusableElement(nextItem);
|
446
|
-
}
|
447
|
-
focusPrevItem(el) {
|
448
|
-
const index = this.itemIndex(el);
|
449
|
-
const prevItem = this.items[index - 1] || this.items[this.items.length - 1];
|
450
|
-
this.getFocusableElement(prevItem);
|
451
|
-
}
|
452
|
-
itemIndex(el) {
|
453
|
-
return this.items.indexOf(el);
|
454
|
-
}
|
455
|
-
getFocusableElement(item) {
|
456
|
-
if (!item) {
|
457
|
-
return;
|
458
|
-
}
|
459
|
-
const target = item.attributes.isLink
|
460
|
-
? item.shadowRoot.querySelector("a")
|
461
|
-
: item;
|
462
|
-
focusElement(target);
|
463
|
-
}
|
464
|
-
get el() { return this; }
|
465
|
-
static get watchers() { return {
|
466
|
-
"active": ["activeHandler"],
|
467
|
-
"open": ["openHandler"],
|
468
|
-
"disabled": ["handleDisabledChange"],
|
469
|
-
"flipPlacements": ["flipPlacementsHandler"],
|
470
|
-
"maxItems": ["maxItemsHandler"],
|
471
|
-
"overlayPositioning": ["overlayPositioningHandler"],
|
472
|
-
"placement": ["placementHandler"]
|
473
|
-
}; }
|
474
|
-
static get style() { return dropdownCss; }
|
475
|
-
}, [1, "calcite-dropdown", {
|
476
|
-
"active": [1540],
|
477
|
-
"open": [1540],
|
478
|
-
"disableCloseOnSelect": [516, "disable-close-on-select"],
|
479
|
-
"disabled": [516],
|
480
|
-
"flipPlacements": [16],
|
481
|
-
"maxItems": [514, "max-items"],
|
482
|
-
"overlayPositioning": [513, "overlay-positioning"],
|
483
|
-
"placement": [513],
|
484
|
-
"scale": [513],
|
485
|
-
"selectedItems": [1040],
|
486
|
-
"type": [513],
|
487
|
-
"width": [513],
|
488
|
-
"reposition": [64]
|
489
|
-
}, [[9, "pointerdown", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "pointerenter", "mouseEnterHandler"], [1, "pointerleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]]]);
|
490
|
-
function defineCustomElement() {
|
491
|
-
if (typeof customElements === "undefined") {
|
492
|
-
return;
|
493
|
-
}
|
494
|
-
const components = ["calcite-dropdown"];
|
495
|
-
components.forEach(tagName => { switch (tagName) {
|
496
|
-
case "calcite-dropdown":
|
497
|
-
if (!customElements.get(tagName)) {
|
498
|
-
customElements.define(tagName, Dropdown);
|
499
|
-
}
|
500
|
-
break;
|
501
|
-
} });
|
502
|
-
}
|
503
|
-
defineCustomElement();
|
504
|
-
|
505
|
-
export { Dropdown as D, defineCustomElement as d };
|
506
|
-
|
507
|
-
//# sourceMappingURL=dropdown.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"dropdown.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,KAAK,GAAG;AACrB,EAAE,eAAe,EAAE,kBAAkB;AACrC,CAAC;;ACPD,MAAM,WAAW,GAAG,opGAAopG;;MCkB3pG,QAAQ;EACnB;;;;;;;;;;;;;;;;;;;IAWE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;;;;;IAKlB,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;;IAElC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;IAKtB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;;;;;;;;;IASlB,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC;;;;;;IAMrC,IAAI,CAAC,SAAS,GAAG,oBAAoB,CAAC;;IAEtC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;;;;;IAMjB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;;IAExB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACpB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAChB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACjB,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7E,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,QAAQ,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,sBA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KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;GACpC;EACD,aAAa,CAAC,EAAE;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;GACpC;EACD,aAAa,CAAC,EAAE;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5E,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;GACpC;EACD,SAAS,CAAC,EAAE;IACV,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;GAC/B;EACD,mBAAmB,CAAC,IAAI;IACtB,IAAI,CAAC,IAAI,EAAE;MACT,OAAO;KACR;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM;QACjC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC;QAClC,IAAI,CAAC;IACT,YAAY,CAAC,MAAM,CAAC,CAAC;GACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/dropdown/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css?tag=calcite-dropdown&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.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 dropdownTrigger: \"dropdown-trigger\"\n};\nexport const CSS = {\n calciteDropdownContent: \"calcite-dropdown-content\"\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([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-dropdown-width: the width of the dropdown wrapper\n*/\n:host {\n display: inline-flex;\n flex: 0 1 auto;\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n:host .calcite-dropdown-wrapper {\n display: block;\n position: absolute;\n z-index: 900;\n visibility: hidden;\n pointer-events: none;\n inline-size: 0;\n block-size: 0;\n overflow: hidden;\n}\n\n.calcite-dropdown-wrapper .calcite-floating-ui-anim {\n position: relative;\n transition: var(--calcite-floating-ui-transition);\n visibility: hidden;\n transition-property: transform, visibility, opacity;\n opacity: 0;\n box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);\n z-index: 1;\n border-radius: 0.25rem;\n}\n.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim {\n transform: translateY(-5px);\n}\n.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim {\n transform: translateY(5px);\n}\n.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim {\n transform: translateX(5px);\n}\n.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim {\n transform: translateX(-5px);\n}\n.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active {\n opacity: 1;\n visibility: visible;\n transform: translate(0);\n}\n\n:host([open]) .calcite-dropdown-wrapper {\n pointer-events: initial;\n visibility: visible;\n inline-size: unset;\n block-size: unset;\n overflow: unset;\n}\n\n:host .calcite-dropdown-content {\n max-block-size: 45vh;\n inline-size: auto;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: var(--calcite-ui-foreground-1);\n inline-size: var(--calcite-dropdown-width);\n}\n\n.calcite-dropdown-trigger-container {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n}\n\n@media (forced-colors: active) {\n /* use real border since box-shadow is removed in high contrast mode */\n :host([open]) .calcite-dropdown-wrapper {\n border: 1px solid canvasText;\n }\n}\n:host([width=s]) {\n --calcite-dropdown-width: 12rem;\n}\n\n:host([width=m]) {\n --calcite-dropdown-width: 14rem;\n}\n\n:host([width=l]) {\n --calcite-dropdown-width: 16rem;\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 { focusElement, isPrimaryPointerButton, toAriaBoolean } from \"../../utils/dom\";\nimport { FloatingCSS, connectFloatingUI, disconnectFloatingUI, defaultMenuPlacement, filterComputedPlacements, reposition, updateAfterClose } from \"../../utils/floating-ui\";\nimport { SLOTS } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nimport { connectOpenCloseComponent, disconnectOpenCloseComponent } from \"../../utils/openCloseComponent\";\nimport { guid } from \"../../utils/guid\";\nimport { isActivationKey } from \"../../utils/key\";\n/**\n * @slot - A slot for adding `calcite-dropdown-group` components. Every `calcite-dropdown-item` must have a parent `calcite-dropdown-group`, even if the `groupTitle` property is not set.\n * @slot dropdown-trigger - A slot for the element that triggers the `calcite-dropdown`.\n */\nexport class Dropdown {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /**\n * Opens or closes the dropdown\n *\n * @deprecated use open instead.\n */\n this.active = false;\n /** When true, opens the dropdown */\n this.open = false;\n /**\n allow the dropdown to remain open after a selection is made\n if the selection-mode of the selected item's containing group is \"none\", the dropdown will always close\n */\n this.disableCloseOnSelect = false;\n /** is the dropdown disabled */\n this.disabled = false;\n /**\n specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -\n this value does not include groupTitles passed to calcite-dropdown-group\n */\n this.maxItems = 0;\n /**\n * Determines the type of positioning to use for the overlaid content.\n *\n * Using `\"absolute\"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.\n *\n * `\"fixed\"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `\"fixed\"`.\n *\n */\n this.overlayPositioning = \"absolute\";\n /**\n * Determines where the dropdown will be positioned relative to the button.\n *\n * @default \"bottom-start\"\n */\n this.placement = defaultMenuPlacement;\n /** specify the scale of dropdown, defaults to m */\n this.scale = \"m\";\n /**\n * **read-only** The currently selected items\n *\n * @readonly\n */\n this.selectedItems = [];\n /** specify whether the dropdown is opened by hover or click of a trigger element */\n this.type = \"click\";\n this.items = [];\n this.groups = [];\n this.mutationObserver = createObserver(\"mutation\", () => this.updateItems());\n this.resizeObserver = createObserver(\"resize\", (entries) => this.resizeObserverCallback(entries));\n this.openTransitionProp = \"visibility\";\n this.guid = `calcite-dropdown-${guid()}`;\n this.defaultAssignedElements = [];\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.slotChangeHandler = (event) => {\n this.defaultAssignedElements = event.target.assignedElements({\n flatten: true\n });\n this.updateItems();\n };\n this.setFilteredPlacements = () => {\n const { el, flipPlacements } = this;\n this.filteredFlipPlacements = flipPlacements\n ? filterComputedPlacements(flipPlacements, el)\n : null;\n };\n this.updateTriggers = (event) => {\n this.triggers = event.target.assignedElements({\n flatten: true\n });\n this.reposition(true);\n };\n this.updateItems = () => {\n this.items = this.groups\n .map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll(\"calcite-dropdown-item\")))\n .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);\n this.updateSelectedItems();\n this.reposition(true);\n };\n this.updateGroups = (event) => {\n const groups = event.target\n .assignedElements({ flatten: true })\n .filter((el) => el === null || el === void 0 ? void 0 : el.matches(\"calcite-dropdown-group\"));\n this.groups = groups;\n this.updateItems();\n };\n this.resizeObserverCallback = (entries) => {\n entries.forEach((entry) => {\n const { target } = entry;\n if (target === this.referenceEl) {\n this.setDropdownWidth();\n }\n else if (target === this.scrollerEl) {\n this.setMaxScrollerHeight();\n }\n });\n };\n this.setDropdownWidth = () => {\n const { referenceEl, scrollerEl } = this;\n const referenceElWidth = referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.clientWidth;\n if (!referenceElWidth || !scrollerEl) {\n return;\n }\n scrollerEl.style.minWidth = `${referenceElWidth}px`;\n };\n this.setMaxScrollerHeight = () => {\n const { scrollerEl } = this;\n if (!scrollerEl) {\n return;\n }\n this.reposition(true);\n const maxScrollerHeight = this.getMaxScrollerHeight();\n scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : \"\";\n this.reposition(true);\n };\n this.setScrollerAndTransitionEl = (el) => {\n this.resizeObserver.observe(el);\n this.scrollerEl = el;\n this.transitionEl = el;\n connectOpenCloseComponent(this);\n };\n this.setReferenceEl = (el) => {\n this.referenceEl = el;\n connectFloatingUI(this, this.referenceEl, this.floatingEl);\n this.resizeObserver.observe(el);\n };\n this.setFloatingEl = (el) => {\n this.floatingEl = el;\n connectFloatingUI(this, this.referenceEl, this.floatingEl);\n };\n this.keyDownHandler = (event) => {\n const target = event.target;\n if (target !== this.referenceEl) {\n return;\n }\n const { defaultPrevented, key } = event;\n if (defaultPrevented) {\n return;\n }\n if (this.open) {\n if (key === \"Escape\") {\n this.closeCalciteDropdown();\n event.preventDefault();\n return;\n }\n else if (event.shiftKey && key === \"Tab\") {\n this.closeCalciteDropdown();\n event.preventDefault();\n return;\n }\n }\n if (isActivationKey(key)) {\n this.openCalciteDropdown();\n event.preventDefault();\n }\n else if (key === \"Escape\") {\n this.closeCalciteDropdown();\n event.preventDefault();\n }\n };\n this.focusOnFirstActiveOrFirstItem = () => {\n this.getFocusableElement(this.items.find((item) => item.selected) || this.items[0]);\n };\n this.toggleOpenEnd = () => {\n this.focusOnFirstActiveOrFirstItem();\n this.el.removeEventListener(\"calciteDropdownOpen\", this.toggleOpenEnd);\n };\n this.openCalciteDropdown = () => {\n this.open = !this.open;\n if (this.open) {\n this.el.addEventListener(\"calciteDropdownOpen\", this.toggleOpenEnd);\n }\n };\n }\n activeHandler(value) {\n this.open = value;\n }\n openHandler(value) {\n if (!this.disabled) {\n if (value) {\n this.reposition(true);\n }\n else {\n updateAfterClose(this.floatingEl);\n }\n this.active = value;\n return;\n }\n if (!value) {\n updateAfterClose(this.floatingEl);\n }\n this.open = false;\n }\n handleDisabledChange(value) {\n if (!value) {\n this.open = false;\n }\n }\n flipPlacementsHandler() {\n this.setFilteredPlacements();\n this.reposition(true);\n }\n maxItemsHandler() {\n this.setMaxScrollerHeight();\n }\n overlayPositioningHandler() {\n this.reposition(true);\n }\n placementHandler() {\n this.reposition(true);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.setFilteredPlacements();\n this.reposition(true);\n if (this.open) {\n this.openHandler(this.open);\n }\n if (this.active) {\n this.activeHandler(this.active);\n }\n connectOpenCloseComponent(this);\n }\n componentDidLoad() {\n this.reposition(true);\n }\n componentDidRender() {\n updateHostInteraction(this);\n }\n disconnectedCallback() {\n var _a, _b;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n disconnectFloatingUI(this, this.referenceEl, this.floatingEl);\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();\n disconnectOpenCloseComponent(this);\n }\n render() {\n const { open, guid } = this;\n return (h(Host, null, h(\"div\", { class: \"calcite-dropdown-trigger-container\", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h(\"slot\", { \"aria-controls\": `${guid}-menu`, \"aria-expanded\": toAriaBoolean(open), \"aria-haspopup\": \"menu\", name: SLOTS.dropdownTrigger, onSlotchange: this.updateTriggers })), h(\"div\", { \"aria-hidden\": toAriaBoolean(!open), class: \"calcite-dropdown-wrapper\", ref: this.setFloatingEl }, h(\"div\", { \"aria-labelledby\": `${guid}-menubutton`, class: {\n [\"calcite-dropdown-content\"]: true,\n [FloatingCSS.animation]: true,\n [FloatingCSS.animationActive]: open\n }, id: `${guid}-menu`, ref: this.setScrollerAndTransitionEl, role: \"menu\" }, h(\"slot\", { onSlotchange: this.updateGroups })))));\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Updates the position of the component.\n *\n * @param delayed\n */\n async reposition(delayed = false) {\n const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;\n return reposition(this, {\n floatingEl,\n referenceEl,\n overlayPositioning,\n placement,\n flipPlacements: filteredFlipPlacements,\n type: \"menu\"\n }, delayed);\n }\n closeCalciteDropdownOnClick(event) {\n if (!isPrimaryPointerButton(event) || !this.open || event.composedPath().includes(this.el)) {\n return;\n }\n this.closeCalciteDropdown(false);\n }\n closeCalciteDropdownOnEvent(event) {\n this.closeCalciteDropdown();\n event.stopPropagation();\n }\n closeCalciteDropdownOnOpenEvent(event) {\n if (event.composedPath().includes(this.el)) {\n return;\n }\n this.open = false;\n }\n mouseEnterHandler() {\n if (this.type === \"hover\") {\n this.openCalciteDropdown();\n }\n }\n mouseLeaveHandler() {\n if (this.type === \"hover\") {\n this.closeCalciteDropdown();\n }\n }\n calciteInternalDropdownItemKeyEvent(event) {\n const { keyboardEvent } = event.detail;\n // handle edge\n const target = keyboardEvent.target;\n const itemToFocus = target.nodeName !== \"A\" ? target : target.parentNode;\n const isFirstItem = this.itemIndex(itemToFocus) === 0;\n const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;\n switch (keyboardEvent.key) {\n case \"Tab\":\n if (isLastItem && !keyboardEvent.shiftKey) {\n this.closeCalciteDropdown();\n }\n else if (isFirstItem && keyboardEvent.shiftKey) {\n this.closeCalciteDropdown();\n }\n else if (keyboardEvent.shiftKey) {\n this.focusPrevItem(itemToFocus);\n }\n else {\n this.focusNextItem(itemToFocus);\n }\n break;\n case \"ArrowDown\":\n this.focusNextItem(itemToFocus);\n break;\n case \"ArrowUp\":\n this.focusPrevItem(itemToFocus);\n break;\n case \"Home\":\n this.focusFirstItem();\n break;\n case \"End\":\n this.focusLastItem();\n break;\n }\n event.stopPropagation();\n }\n handleItemSelect(event) {\n this.updateSelectedItems();\n event.stopPropagation();\n this.calciteDropdownSelect.emit({\n item: event.detail.requestedDropdownItem\n });\n if (!this.disableCloseOnSelect ||\n event.detail.requestedDropdownGroup.selectionMode === \"none\") {\n this.closeCalciteDropdown();\n }\n event.stopPropagation();\n }\n onBeforeOpen() {\n this.calciteDropdownBeforeOpen.emit();\n }\n onOpen() {\n this.calciteDropdownOpen.emit();\n }\n onBeforeClose() {\n this.calciteDropdownBeforeClose.emit();\n }\n onClose() {\n this.calciteDropdownClose.emit();\n }\n updateSelectedItems() {\n this.selectedItems = this.items.filter((item) => item.selected);\n }\n getMaxScrollerHeight() {\n const { maxItems, items } = this;\n let itemsToProcess = 0;\n let maxScrollerHeight = 0;\n let groupHeaderHeight;\n this.groups.forEach((group) => {\n if (maxItems > 0 && itemsToProcess < maxItems) {\n Array.from(group.children).forEach((item, index) => {\n if (index === 0) {\n if (isNaN(groupHeaderHeight)) {\n groupHeaderHeight = item.offsetTop;\n }\n maxScrollerHeight += groupHeaderHeight;\n }\n if (itemsToProcess < maxItems) {\n maxScrollerHeight += item.offsetHeight;\n itemsToProcess += 1;\n }\n });\n }\n });\n return items.length > maxItems ? maxScrollerHeight : 0;\n }\n closeCalciteDropdown(focusTrigger = true) {\n this.open = false;\n if (focusTrigger) {\n focusElement(this.triggers[0]);\n }\n }\n focusFirstItem() {\n const firstItem = this.items[0];\n this.getFocusableElement(firstItem);\n }\n focusLastItem() {\n const lastItem = this.items[this.items.length - 1];\n this.getFocusableElement(lastItem);\n }\n focusNextItem(el) {\n const index = this.itemIndex(el);\n const nextItem = this.items[index + 1] || this.items[0];\n this.getFocusableElement(nextItem);\n }\n focusPrevItem(el) {\n const index = this.itemIndex(el);\n const prevItem = this.items[index - 1] || this.items[this.items.length - 1];\n this.getFocusableElement(prevItem);\n }\n itemIndex(el) {\n return this.items.indexOf(el);\n }\n getFocusableElement(item) {\n if (!item) {\n return;\n }\n const target = item.attributes.isLink\n ? item.shadowRoot.querySelector(\"a\")\n : item;\n focusElement(target);\n }\n static get is() { return \"calcite-dropdown\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"dropdown.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"dropdown.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use open instead.\"\n }],\n \"text\": \"Opens or closes the dropdown\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"open\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, opens the dropdown\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableCloseOnSelect\": {\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\": \"allow the dropdown to remain open after a selection is made\\nif the selection-mode of the selected item's containing group is \\\"none\\\", the dropdown will always close\"\n },\n \"attribute\": \"disable-close-on-select\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the dropdown disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"flipPlacements\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"EffectivePlacement[]\",\n \"resolved\": \"Placement[]\",\n \"references\": {\n \"EffectivePlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/floating-ui\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Defines the available placements that can be used when a flip occurs.\"\n }\n },\n \"maxItems\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -\\nthis value does not include groupTitles passed to calcite-dropdown-group\"\n },\n \"attribute\": \"max-items\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/floating-ui\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Determines the type of positioning to use for the overlaid content.\\n\\nUsing `\\\"absolute\\\"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.\\n\\n`\\\"fixed\\\"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `\\\"fixed\\\"`.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"placement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"MenuPlacement\",\n \"resolved\": \"\\\"bottom\\\" | \\\"bottom-end\\\" | \\\"bottom-leading\\\" | \\\"bottom-start\\\" | \\\"bottom-trailing\\\" | \\\"top\\\" | \\\"top-end\\\" | \\\"top-leading\\\" | \\\"top-start\\\" | \\\"top-trailing\\\"\",\n \"references\": {\n \"MenuPlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/floating-ui\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"bottom-start\\\"\"\n }],\n \"text\": \"Determines where the dropdown will be positioned relative to the button.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"defaultMenuPlacement\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of dropdown, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"selectedItems\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLCalciteDropdownItemElement[]\",\n \"resolved\": \"HTMLCalciteDropdownItemElement[]\",\n \"references\": {\n \"HTMLCalciteDropdownItemElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"readonly\",\n \"text\": undefined\n }],\n \"text\": \"**read-only** The currently selected items\"\n },\n \"defaultValue\": \"[]\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"hover\\\" | \\\"click\\\"\",\n \"resolved\": \"\\\"click\\\" | \\\"hover\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether the dropdown is opened by hover or click of a trigger element\"\n },\n \"attribute\": \"type\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"click\\\"\"\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the width of dropdown\"\n },\n \"attribute\": \"width\",\n \"reflect\": true\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteDropdownSelect\",\n \"name\": \"calciteDropdownSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fires when a dropdown item has been selected or deselected\"\n },\n \"complexType\": {\n \"original\": \"Selection\",\n \"resolved\": \"Selection\",\n \"references\": {\n \"Selection\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteDropdownBeforeClose\",\n \"name\": \"calciteDropdownBeforeClose\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is requested to be closed and before the closing transition begins.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDropdownClose\",\n \"name\": \"calciteDropdownClose\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is closed and animation is complete.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDropdownBeforeOpen\",\n \"name\": \"calciteDropdownBeforeOpen\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is added to the DOM but not rendered, and before the opening transition begins.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDropdownOpen\",\n \"name\": \"calciteDropdownOpen\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the component is open and animation is complete.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"reposition\": {\n \"complexType\": {\n \"signature\": \"(delayed?: boolean) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"delayed\"\n }],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Updates the position of the component.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"delayed\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"openHandler\"\n }, {\n \"propName\": \"disabled\",\n \"methodName\": \"handleDisabledChange\"\n }, {\n \"propName\": \"flipPlacements\",\n \"methodName\": \"flipPlacementsHandler\"\n }, {\n \"propName\": \"maxItems\",\n \"methodName\": \"maxItemsHandler\"\n }, {\n \"propName\": \"overlayPositioning\",\n \"methodName\": \"overlayPositioningHandler\"\n }, {\n \"propName\": \"placement\",\n \"methodName\": \"placementHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"pointerdown\",\n \"method\": \"closeCalciteDropdownOnClick\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"calciteInternalDropdownCloseRequest\",\n \"method\": \"closeCalciteDropdownOnEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteDropdownOpen\",\n \"method\": \"closeCalciteDropdownOnOpenEvent\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"pointerenter\",\n \"method\": \"mouseEnterHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"pointerleave\",\n \"method\": \"mouseLeaveHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"calciteInternalDropdownItemKeyEvent\",\n \"method\": \"calciteInternalDropdownItemKeyEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalDropdownItemSelect\",\n \"method\": \"handleItemSelect\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|