@esri/solutions-components 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -3
- package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-893499a5.js} +3 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +9 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
- package/dist/collection/components/solution-item/solution-item.js +2 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
- package/dist/collection/utils/solution-store.js +2 -0
- package/dist/collection/utils/solution-store.js.map +1 -1
- package/dist/collection/utils/solution-store.ts +2 -0
- package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
- package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
- package/dist/esm/solution-configuration.entry.js +10 -3
- package/dist/esm/solution-configuration.entry.js.map +1 -1
- package/dist/esm/solution-contents_3.entry.js +3 -1
- package/dist/esm/solution-contents_3.entry.js.map +1 -1
- package/dist/esm/{solution-store-b3c65467.js → solution-store-0c58c852.js} +3 -1
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-b25f6ebe.js → p-659edb14.js} +3 -1
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-638738f2.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/{p-7e8985f2.entry.js → p-90629c1d.entry.js} +11 -4
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-542189bc.entry.js → p-984cb687.entry.js} +17 -7
- package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/solution-store.ts +2 -0
- package/dist/solutions-components_commit.txt +9 -6
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-e2fc11ac.js.map +0 -1
- package/dist/components/ExpandToggle.js +0 -112
- package/dist/components/ExpandToggle.js.map +0 -1
- package/dist/components/Heading.js +0 -24
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -24
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/action-bar.js +0 -278
- package/dist/components/action-bar.js.map +0 -1
- package/dist/components/action-group.js +0 -151
- package/dist/components/action-group.js.map +0 -1
- package/dist/components/action-menu.js +0 -358
- package/dist/components/action-menu.js.map +0 -1
- package/dist/components/action.js +0 -216
- package/dist/components/action.js.map +0 -1
- package/dist/components/array.js +0 -17
- package/dist/components/array.js.map +0 -1
- package/dist/components/buffer-tools.d.ts +0 -11
- package/dist/components/buffer-tools.js +0 -13
- package/dist/components/buffer-tools.js.map +0 -1
- package/dist/components/buffer-tools2.js +0 -256
- package/dist/components/buffer-tools2.js.map +0 -1
- package/dist/components/button.js +0 -265
- package/dist/components/button.js.map +0 -1
- package/dist/components/calcite-accordion-item.js +0 -246
- package/dist/components/calcite-accordion-item.js.map +0 -1
- package/dist/components/calcite-accordion.js +0 -182
- package/dist/components/calcite-accordion.js.map +0 -1
- package/dist/components/calcite-action-bar.js +0 -13
- package/dist/components/calcite-action-bar.js.map +0 -1
- package/dist/components/calcite-action-group.js +0 -13
- package/dist/components/calcite-action-group.js.map +0 -1
- package/dist/components/calcite-action-menu.js +0 -13
- package/dist/components/calcite-action-menu.js.map +0 -1
- package/dist/components/calcite-action-pad.js +0 -199
- package/dist/components/calcite-action-pad.js.map +0 -1
- package/dist/components/calcite-action.js +0 -13
- package/dist/components/calcite-action.js.map +0 -1
- package/dist/components/calcite-alert.js +0 -299
- package/dist/components/calcite-alert.js.map +0 -1
- package/dist/components/calcite-avatar.js +0 -184
- package/dist/components/calcite-avatar.js.map +0 -1
- package/dist/components/calcite-block-section.js +0 -157
- package/dist/components/calcite-block-section.js.map +0 -1
- package/dist/components/calcite-block.js +0 -277
- package/dist/components/calcite-block.js.map +0 -1
- package/dist/components/calcite-button.js +0 -13
- package/dist/components/calcite-button.js.map +0 -1
- package/dist/components/calcite-card.js +0 -189
- package/dist/components/calcite-card.js.map +0 -1
- package/dist/components/calcite-checkbox.js +0 -13
- package/dist/components/calcite-checkbox.js.map +0 -1
- package/dist/components/calcite-chip.js +0 -13
- package/dist/components/calcite-chip.js.map +0 -1
- package/dist/components/calcite-color-picker-hex-input.js +0 -13
- package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
- package/dist/components/calcite-color-picker-swatch.js +0 -13
- package/dist/components/calcite-color-picker-swatch.js.map +0 -1
- package/dist/components/calcite-color-picker.js +0 -1038
- package/dist/components/calcite-color-picker.js.map +0 -1
- package/dist/components/calcite-combobox-item-group.js +0 -77
- package/dist/components/calcite-combobox-item-group.js.map +0 -1
- package/dist/components/calcite-combobox-item.js +0 -13
- package/dist/components/calcite-combobox-item.js.map +0 -1
- package/dist/components/calcite-combobox.js +0 -13
- package/dist/components/calcite-combobox.js.map +0 -1
- package/dist/components/calcite-date-picker-day.js +0 -13
- package/dist/components/calcite-date-picker-day.js.map +0 -1
- package/dist/components/calcite-date-picker-month-header.js +0 -13
- package/dist/components/calcite-date-picker-month-header.js.map +0 -1
- package/dist/components/calcite-date-picker-month.js +0 -13
- package/dist/components/calcite-date-picker-month.js.map +0 -1
- package/dist/components/calcite-date-picker.js +0 -13
- package/dist/components/calcite-date-picker.js.map +0 -1
- package/dist/components/calcite-dropdown-group.js +0 -101
- package/dist/components/calcite-dropdown-group.js.map +0 -1
- package/dist/components/calcite-dropdown-item.js +0 -237
- package/dist/components/calcite-dropdown-item.js.map +0 -1
- package/dist/components/calcite-dropdown.js +0 -13
- package/dist/components/calcite-dropdown.js.map +0 -1
- package/dist/components/calcite-fab.js +0 -146
- package/dist/components/calcite-fab.js.map +0 -1
- package/dist/components/calcite-filter.js +0 -197
- package/dist/components/calcite-filter.js.map +0 -1
- package/dist/components/calcite-flow-item.js +0 -245
- package/dist/components/calcite-flow-item.js.map +0 -1
- package/dist/components/calcite-flow.js +0 -149
- package/dist/components/calcite-flow.js.map +0 -1
- package/dist/components/calcite-graph.js +0 -13
- package/dist/components/calcite-graph.js.map +0 -1
- package/dist/components/calcite-handle.js +0 -13
- package/dist/components/calcite-handle.js.map +0 -1
- package/dist/components/calcite-icon.js +0 -13
- package/dist/components/calcite-icon.js.map +0 -1
- package/dist/components/calcite-inline-editable.js +0 -296
- package/dist/components/calcite-inline-editable.js.map +0 -1
- package/dist/components/calcite-input-date-picker.js +0 -715
- package/dist/components/calcite-input-date-picker.js.map +0 -1
- package/dist/components/calcite-input-message.js +0 -13
- package/dist/components/calcite-input-message.js.map +0 -1
- package/dist/components/calcite-input-number.js +0 -639
- package/dist/components/calcite-input-number.js.map +0 -1
- package/dist/components/calcite-input-text.js +0 -402
- package/dist/components/calcite-input-text.js.map +0 -1
- package/dist/components/calcite-input-time-picker.js +0 -436
- package/dist/components/calcite-input-time-picker.js.map +0 -1
- package/dist/components/calcite-input.js +0 -13
- package/dist/components/calcite-input.js.map +0 -1
- package/dist/components/calcite-label.js +0 -13
- package/dist/components/calcite-label.js.map +0 -1
- package/dist/components/calcite-link.js +0 -13
- package/dist/components/calcite-link.js.map +0 -1
- package/dist/components/calcite-list-item-group.js +0 -67
- package/dist/components/calcite-list-item-group.js.map +0 -1
- package/dist/components/calcite-list-item.js +0 -13
- package/dist/components/calcite-list-item.js.map +0 -1
- package/dist/components/calcite-list.js +0 -13
- package/dist/components/calcite-list.js.map +0 -1
- package/dist/components/calcite-loader.js +0 -13
- package/dist/components/calcite-loader.js.map +0 -1
- package/dist/components/calcite-modal.js +0 -500
- package/dist/components/calcite-modal.js.map +0 -1
- package/dist/components/calcite-notice.js +0 -13
- package/dist/components/calcite-notice.js.map +0 -1
- package/dist/components/calcite-option-group.js +0 -66
- package/dist/components/calcite-option-group.js.map +0 -1
- package/dist/components/calcite-option.js +0 -13
- package/dist/components/calcite-option.js.map +0 -1
- package/dist/components/calcite-pagination.js +0 -260
- package/dist/components/calcite-pagination.js.map +0 -1
- package/dist/components/calcite-panel.js +0 -13
- package/dist/components/calcite-panel.js.map +0 -1
- package/dist/components/calcite-pick-list-group.js +0 -76
- package/dist/components/calcite-pick-list-group.js.map +0 -1
- package/dist/components/calcite-pick-list-item.js +0 -13
- package/dist/components/calcite-pick-list-item.js.map +0 -1
- package/dist/components/calcite-pick-list.js +0 -175
- package/dist/components/calcite-pick-list.js.map +0 -1
- package/dist/components/calcite-popover-manager.js +0 -96
- package/dist/components/calcite-popover-manager.js.map +0 -1
- package/dist/components/calcite-popover.js +0 -13
- package/dist/components/calcite-popover.js.map +0 -1
- package/dist/components/calcite-progress.js +0 -13
- package/dist/components/calcite-progress.js.map +0 -1
- package/dist/components/calcite-radio-button-group.js +0 -134
- package/dist/components/calcite-radio-button-group.js.map +0 -1
- package/dist/components/calcite-radio-button.js +0 -312
- package/dist/components/calcite-radio-button.js.map +0 -1
- package/dist/components/calcite-radio-group-item.js +0 -13
- package/dist/components/calcite-radio-group-item.js.map +0 -1
- package/dist/components/calcite-radio-group.js +0 -13
- package/dist/components/calcite-radio-group.js.map +0 -1
- package/dist/components/calcite-rating.js +0 -203
- package/dist/components/calcite-rating.js.map +0 -1
- package/dist/components/calcite-scrim.js +0 -13
- package/dist/components/calcite-scrim.js.map +0 -1
- package/dist/components/calcite-select.js +0 -13
- package/dist/components/calcite-select.js.map +0 -1
- package/dist/components/calcite-shell-center-row.js +0 -102
- package/dist/components/calcite-shell-center-row.js.map +0 -1
- package/dist/components/calcite-shell-panel.js +0 -13
- package/dist/components/calcite-shell-panel.js.map +0 -1
- package/dist/components/calcite-shell.js +0 -13
- package/dist/components/calcite-shell.js.map +0 -1
- package/dist/components/calcite-slider.js +0 -13
- package/dist/components/calcite-slider.js.map +0 -1
- package/dist/components/calcite-sortable-list.js +0 -204
- package/dist/components/calcite-sortable-list.js.map +0 -1
- package/dist/components/calcite-split-button.js +0 -170
- package/dist/components/calcite-split-button.js.map +0 -1
- package/dist/components/calcite-stepper-item.js +0 -273
- package/dist/components/calcite-stepper-item.js.map +0 -1
- package/dist/components/calcite-stepper.js +0 -258
- package/dist/components/calcite-stepper.js.map +0 -1
- package/dist/components/calcite-switch.js +0 -13
- package/dist/components/calcite-switch.js.map +0 -1
- package/dist/components/calcite-tab-nav.js +0 -13
- package/dist/components/calcite-tab-nav.js.map +0 -1
- package/dist/components/calcite-tab-title.js +0 -13
- package/dist/components/calcite-tab-title.js.map +0 -1
- package/dist/components/calcite-tab.js +0 -13
- package/dist/components/calcite-tab.js.map +0 -1
- package/dist/components/calcite-tabs.js +0 -13
- package/dist/components/calcite-tabs.js.map +0 -1
- package/dist/components/calcite-tile-select-group.js +0 -67
- package/dist/components/calcite-tile-select-group.js.map +0 -1
- package/dist/components/calcite-tile-select.js +0 -268
- package/dist/components/calcite-tile-select.js.map +0 -1
- package/dist/components/calcite-tile.js +0 -13
- package/dist/components/calcite-tile.js.map +0 -1
- package/dist/components/calcite-time-picker.js +0 -13
- package/dist/components/calcite-time-picker.js.map +0 -1
- package/dist/components/calcite-tip-group.js +0 -43
- package/dist/components/calcite-tip-group.js.map +0 -1
- package/dist/components/calcite-tip-manager.js +0 -225
- package/dist/components/calcite-tip-manager.js.map +0 -1
- package/dist/components/calcite-tip.js +0 -164
- package/dist/components/calcite-tip.js.map +0 -1
- package/dist/components/calcite-tooltip-manager.js +0 -59
- package/dist/components/calcite-tooltip-manager.js.map +0 -1
- package/dist/components/calcite-tooltip.js +0 -13
- package/dist/components/calcite-tooltip.js.map +0 -1
- package/dist/components/calcite-tree-item.js +0 -13
- package/dist/components/calcite-tree-item.js.map +0 -1
- package/dist/components/calcite-tree.js +0 -13
- package/dist/components/calcite-tree.js.map +0 -1
- package/dist/components/calcite-value-list-item.js +0 -13
- package/dist/components/calcite-value-list-item.js.map +0 -1
- package/dist/components/calcite-value-list.js +0 -13
- package/dist/components/calcite-value-list.js.map +0 -1
- package/dist/components/check-list.d.ts +0 -11
- package/dist/components/check-list.js +0 -13
- package/dist/components/check-list.js.map +0 -1
- package/dist/components/check-list2.js +0 -128
- package/dist/components/check-list2.js.map +0 -1
- package/dist/components/checkbox.js +0 -167
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/chip.js +0 -172
- package/dist/components/chip.js.map +0 -1
- package/dist/components/color-picker-hex-input.js +0 -365
- package/dist/components/color-picker-hex-input.js.map +0 -1
- package/dist/components/color-picker-swatch.js +0 -2036
- package/dist/components/color-picker-swatch.js.map +0 -1
- package/dist/components/combobox-item.js +0 -184
- package/dist/components/combobox-item.js.map +0 -1
- package/dist/components/combobox.js +0 -914
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/conditionalSlot.js +0 -52
- package/dist/components/conditionalSlot.js.map +0 -1
- package/dist/components/config-buffer-tools.d.ts +0 -11
- package/dist/components/config-buffer-tools.js +0 -185
- package/dist/components/config-buffer-tools.js.map +0 -1
- package/dist/components/config-draw-tools.d.ts +0 -11
- package/dist/components/config-draw-tools.js +0 -124
- package/dist/components/config-draw-tools.js.map +0 -1
- package/dist/components/config-layer-picker.d.ts +0 -11
- package/dist/components/config-layer-picker.js +0 -148
- package/dist/components/config-layer-picker.js.map +0 -1
- package/dist/components/config-pdf-download.d.ts +0 -11
- package/dist/components/config-pdf-download.js +0 -157
- package/dist/components/config-pdf-download.js.map +0 -1
- package/dist/components/date-picker-day.js +0 -113
- package/dist/components/date-picker-day.js.map +0 -1
- package/dist/components/date-picker-month-header.js +0 -226
- package/dist/components/date-picker-month-header.js.map +0 -1
- package/dist/components/date-picker-month.js +0 -346
- package/dist/components/date-picker-month.js.map +0 -1
- package/dist/components/date-picker.js +0 -577
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date.js +0 -182
- package/dist/components/date.js.map +0 -1
- package/dist/components/debounce.js +0 -489
- package/dist/components/debounce.js.map +0 -1
- package/dist/components/dom.js +0 -233
- package/dist/components/dom.js.map +0 -1
- package/dist/components/dropdown.js +0 -507
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/filter.js +0 -765
- package/dist/components/filter.js.map +0 -1
- package/dist/components/floating-ui.js +0 -1787
- package/dist/components/floating-ui.js.map +0 -1
- package/dist/components/form.js +0 -230
- package/dist/components/form.js.map +0 -1
- package/dist/components/graph.js +0 -256
- package/dist/components/graph.js.map +0 -1
- package/dist/components/guid.js +0 -26
- package/dist/components/guid.js.map +0 -1
- package/dist/components/handle.js +0 -121
- package/dist/components/handle.js.map +0 -1
- package/dist/components/icon.js +0 -204
- package/dist/components/icon.js.map +0 -1
- package/dist/components/index.d.ts +0 -48
- package/dist/components/index.js +0 -190
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js +0 -201
- package/dist/components/index2.js.map +0 -1
- package/dist/components/input-message.js +0 -103
- package/dist/components/input-message.js.map +0 -1
- package/dist/components/input.js +0 -742
- package/dist/components/input.js.map +0 -1
- package/dist/components/interactive.js +0 -53
- package/dist/components/interactive.js.map +0 -1
- package/dist/components/interfaces.js +0 -21
- package/dist/components/interfaces.js.map +0 -1
- package/dist/components/interfaces2.js +0 -23
- package/dist/components/interfaces2.js.map +0 -1
- package/dist/components/interfaces3.js +0 -72
- package/dist/components/interfaces3.js.map +0 -1
- package/dist/components/json-editor.d.ts +0 -11
- package/dist/components/json-editor.js +0 -13
- package/dist/components/json-editor.js.map +0 -1
- package/dist/components/json-editor2.js +0 -443
- package/dist/components/json-editor2.js.map +0 -1
- package/dist/components/key.js +0 -18
- package/dist/components/key.js.map +0 -1
- package/dist/components/label.js +0 -108
- package/dist/components/label.js.map +0 -1
- package/dist/components/label2.js +0 -133
- package/dist/components/label2.js.map +0 -1
- package/dist/components/labelFormats.js +0 -212
- package/dist/components/labelFormats.js.map +0 -1
- package/dist/components/link.js +0 -125
- package/dist/components/link.js.map +0 -1
- package/dist/components/list-item.js +0 -151
- package/dist/components/list-item.js.map +0 -1
- package/dist/components/list.js +0 -85
- package/dist/components/list.js.map +0 -1
- package/dist/components/loadModules.js +0 -30
- package/dist/components/loadModules.js.map +0 -1
- package/dist/components/loader.js +0 -118
- package/dist/components/loader.js.map +0 -1
- package/dist/components/locale.js +0 -414
- package/dist/components/locale.js.map +0 -1
- package/dist/components/locale2.js +0 -415
- package/dist/components/locale2.js.map +0 -1
- package/dist/components/map-draw-tools.d.ts +0 -11
- package/dist/components/map-draw-tools.js +0 -13
- package/dist/components/map-draw-tools.js.map +0 -1
- package/dist/components/map-draw-tools2.js +0 -230
- package/dist/components/map-draw-tools2.js.map +0 -1
- package/dist/components/map-layer-picker.d.ts +0 -11
- package/dist/components/map-layer-picker.js +0 -13
- package/dist/components/map-layer-picker.js.map +0 -1
- package/dist/components/map-layer-picker2.js +0 -190
- package/dist/components/map-layer-picker2.js.map +0 -1
- package/dist/components/map-search.d.ts +0 -11
- package/dist/components/map-search.js +0 -157
- package/dist/components/map-search.js.map +0 -1
- package/dist/components/map-select-tools.d.ts +0 -11
- package/dist/components/map-select-tools.js +0 -13
- package/dist/components/map-select-tools.js.map +0 -1
- package/dist/components/map-select-tools2.js +0 -555
- package/dist/components/map-select-tools2.js.map +0 -1
- package/dist/components/mapViewUtils.js +0 -131
- package/dist/components/mapViewUtils.js.map +0 -1
- package/dist/components/math.js +0 -26
- package/dist/components/math.js.map +0 -1
- package/dist/components/nonChromiumPlatformUtils.js +0 -505
- package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
- package/dist/components/notice.js +0 -194
- package/dist/components/notice.js.map +0 -1
- package/dist/components/observers.js +0 -58
- package/dist/components/observers.js.map +0 -1
- package/dist/components/openCloseComponent.js +0 -58
- package/dist/components/openCloseComponent.js.map +0 -1
- package/dist/components/option.js +0 -111
- package/dist/components/option.js.map +0 -1
- package/dist/components/panel.js +0 -461
- package/dist/components/panel.js.map +0 -1
- package/dist/components/pdf-download.d.ts +0 -11
- package/dist/components/pdf-download.js +0 -13
- package/dist/components/pdf-download.js.map +0 -1
- package/dist/components/pdf-download2.js +0 -243
- package/dist/components/pdf-download2.js.map +0 -1
- package/dist/components/pick-list-item.js +0 -257
- package/dist/components/pick-list-item.js.map +0 -1
- package/dist/components/popover.js +0 -502
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.js +0 -62
- package/dist/components/progress.js.map +0 -1
- package/dist/components/public-notification.d.ts +0 -11
- package/dist/components/public-notification.js +0 -784
- package/dist/components/public-notification.js.map +0 -1
- package/dist/components/publicNotificationStore.js +0 -40
- package/dist/components/publicNotificationStore.js.map +0 -1
- package/dist/components/queryUtils.js +0 -163
- package/dist/components/queryUtils.js.map +0 -1
- package/dist/components/radio-group-item.js +0 -103
- package/dist/components/radio-group-item.js.map +0 -1
- package/dist/components/radio-group.js +0 -237
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/refine-selection-tools.d.ts +0 -11
- package/dist/components/refine-selection-tools.js +0 -13
- package/dist/components/refine-selection-tools.js.map +0 -1
- package/dist/components/refine-selection-tools2.js +0 -500
- package/dist/components/refine-selection-tools2.js.map +0 -1
- package/dist/components/refine-selection.d.ts +0 -11
- package/dist/components/refine-selection.js +0 -13
- package/dist/components/refine-selection.js.map +0 -1
- package/dist/components/refine-selection2.js +0 -369
- package/dist/components/refine-selection2.js.map +0 -1
- package/dist/components/resources.js +0 -26
- package/dist/components/resources.js.map +0 -1
- package/dist/components/resources2.js +0 -23
- package/dist/components/resources2.js.map +0 -1
- package/dist/components/resources3.js +0 -40
- package/dist/components/resources3.js.map +0 -1
- package/dist/components/scrim.js +0 -85
- package/dist/components/scrim.js.map +0 -1
- package/dist/components/select.js +0 -261
- package/dist/components/select.js.map +0 -1
- package/dist/components/shared-list-render.js +0 -321
- package/dist/components/shared-list-render.js.map +0 -1
- package/dist/components/shell-panel.js +0 -283
- package/dist/components/shell-panel.js.map +0 -1
- package/dist/components/shell.js +0 -123
- package/dist/components/shell.js.map +0 -1
- package/dist/components/slider.js +0 -898
- package/dist/components/slider.js.map +0 -1
- package/dist/components/solution-configuration.d.ts +0 -11
- package/dist/components/solution-configuration.js +0 -2225
- package/dist/components/solution-configuration.js.map +0 -1
- package/dist/components/solution-contents.d.ts +0 -11
- package/dist/components/solution-contents.js +0 -13
- package/dist/components/solution-contents.js.map +0 -1
- package/dist/components/solution-contents2.js +0 -130
- package/dist/components/solution-contents2.js.map +0 -1
- package/dist/components/solution-item-details.d.ts +0 -11
- package/dist/components/solution-item-details.js +0 -13
- package/dist/components/solution-item-details.js.map +0 -1
- package/dist/components/solution-item-details2.js +0 -236
- package/dist/components/solution-item-details2.js.map +0 -1
- package/dist/components/solution-item-icon.d.ts +0 -11
- package/dist/components/solution-item-icon.js +0 -13
- package/dist/components/solution-item-icon.js.map +0 -1
- package/dist/components/solution-item-icon2.js +0 -344
- package/dist/components/solution-item-icon2.js.map +0 -1
- package/dist/components/solution-item-sharing.d.ts +0 -11
- package/dist/components/solution-item-sharing.js +0 -13
- package/dist/components/solution-item-sharing.js.map +0 -1
- package/dist/components/solution-item-sharing2.js +0 -169
- package/dist/components/solution-item-sharing2.js.map +0 -1
- package/dist/components/solution-item.d.ts +0 -11
- package/dist/components/solution-item.js +0 -13
- package/dist/components/solution-item.js.map +0 -1
- package/dist/components/solution-item2.js +0 -317
- package/dist/components/solution-item2.js.map +0 -1
- package/dist/components/solution-organization-variables.d.ts +0 -11
- package/dist/components/solution-organization-variables.js +0 -13
- package/dist/components/solution-organization-variables.js.map +0 -1
- package/dist/components/solution-organization-variables2.js +0 -134
- package/dist/components/solution-organization-variables2.js.map +0 -1
- package/dist/components/solution-resource-item.d.ts +0 -11
- package/dist/components/solution-resource-item.js +0 -13
- package/dist/components/solution-resource-item.js.map +0 -1
- package/dist/components/solution-resource-item2.js +0 -358
- package/dist/components/solution-resource-item2.js.map +0 -1
- package/dist/components/solution-spatial-ref.d.ts +0 -11
- package/dist/components/solution-spatial-ref.js +0 -13
- package/dist/components/solution-spatial-ref.js.map +0 -1
- package/dist/components/solution-spatial-ref2.js +0 -21448
- package/dist/components/solution-spatial-ref2.js.map +0 -1
- package/dist/components/solution-store.js +0 -4094
- package/dist/components/solution-store.js.map +0 -1
- package/dist/components/solution-template-data.d.ts +0 -11
- package/dist/components/solution-template-data.js +0 -13
- package/dist/components/solution-template-data.js.map +0 -1
- package/dist/components/solution-template-data2.js +0 -235
- package/dist/components/solution-template-data2.js.map +0 -1
- package/dist/components/solution-variables.d.ts +0 -11
- package/dist/components/solution-variables.js +0 -13
- package/dist/components/solution-variables.js.map +0 -1
- package/dist/components/solution-variables2.js +0 -152
- package/dist/components/solution-variables2.js.map +0 -1
- package/dist/components/sortable.esm.js +0 -3028
- package/dist/components/sortable.esm.js.map +0 -1
- package/dist/components/store-manager.d.ts +0 -11
- package/dist/components/store-manager.js +0 -85
- package/dist/components/store-manager.js.map +0 -1
- package/dist/components/switch.js +0 -141
- package/dist/components/switch.js.map +0 -1
- package/dist/components/tab-nav.js +0 -243
- package/dist/components/tab-nav.js.map +0 -1
- package/dist/components/tab-title.js +0 -278
- package/dist/components/tab-title.js.map +0 -1
- package/dist/components/tab.js +0 -156
- package/dist/components/tab.js.map +0 -1
- package/dist/components/tabs.js +0 -190
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tile.js +0 -131
- package/dist/components/tile.js.map +0 -1
- package/dist/components/time-picker.js +0 -945
- package/dist/components/time-picker.js.map +0 -1
- package/dist/components/tooltip.js +0 -401
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/tree-item.js +0 -296
- package/dist/components/tree-item.js.map +0 -1
- package/dist/components/tree.js +0 -329
- package/dist/components/tree.js.map +0 -1
- package/dist/components/utils.js +0 -121
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js +0 -53
- package/dist/components/utils2.js.map +0 -1
- package/dist/components/value-list-item.js +0 -206
- package/dist/components/value-list-item.js.map +0 -1
- package/dist/components/value-list.js +0 -335
- package/dist/components/value-list.js.map +0 -1
- package/dist/esm/solution-store-b3c65467.js.map +0 -1
- package/dist/solutions-components/p-542189bc.entry.js.map +0 -1
- package/dist/solutions-components/p-638738f2.entry.js.map +0 -1
- package/dist/solutions-components/p-7e8985f2.entry.js.map +0 -1
- package/dist/solutions-components/p-b25f6ebe.js.map +0 -1
@@ -1,151 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client';
|
7
|
-
import { b as getSlotted } from './dom.js';
|
8
|
-
import { S as SLOTS$1, d as defineCustomElement$4 } from './action-menu.js';
|
9
|
-
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
10
|
-
import { d as defineCustomElement$5 } from './action.js';
|
11
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
12
|
-
import { d as defineCustomElement$2 } from './loader.js';
|
13
|
-
import { d as defineCustomElement$1 } from './popover.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
|
-
menuActions: "menu-actions",
|
22
|
-
menuTooltip: "menu-tooltip"
|
23
|
-
};
|
24
|
-
const TEXT = {
|
25
|
-
more: "More"
|
26
|
-
};
|
27
|
-
const ICONS = {
|
28
|
-
menu: "ellipsis"
|
29
|
-
};
|
30
|
-
|
31
|
-
const actionGroupCss = "@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}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns=\"1\"]){--calcite-action-group-columns:1}:host([columns=\"2\"]){--calcite-action-group-columns:2}:host([columns=\"3\"]){--calcite-action-group-columns:3}:host([columns=\"4\"]){--calcite-action-group-columns:4}:host([columns=\"5\"]){--calcite-action-group-columns:5}:host([columns=\"6\"]){--calcite-action-group-columns:6}:host(:first-child){-webkit-padding-before:0px;padding-block-start:0px}:host([layout=horizontal]){flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}";
|
32
|
-
|
33
|
-
const ActionGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
34
|
-
constructor() {
|
35
|
-
super();
|
36
|
-
this.__registerHost();
|
37
|
-
this.__attachShadow();
|
38
|
-
// --------------------------------------------------------------------------
|
39
|
-
//
|
40
|
-
// Properties
|
41
|
-
//
|
42
|
-
// --------------------------------------------------------------------------
|
43
|
-
/**
|
44
|
-
* When `true`, the component is expanded.
|
45
|
-
*/
|
46
|
-
this.expanded = false;
|
47
|
-
/**
|
48
|
-
* Indicates the layout of the component.
|
49
|
-
*/
|
50
|
-
this.layout = "vertical";
|
51
|
-
/**
|
52
|
-
* When `true`, the `calcite-action-menu` is open.
|
53
|
-
*/
|
54
|
-
this.menuOpen = false;
|
55
|
-
// --------------------------------------------------------------------------
|
56
|
-
//
|
57
|
-
// Private Methods
|
58
|
-
//
|
59
|
-
// --------------------------------------------------------------------------
|
60
|
-
this.setMenuOpen = (event) => {
|
61
|
-
this.menuOpen = !!event.detail;
|
62
|
-
};
|
63
|
-
}
|
64
|
-
expandedHandler() {
|
65
|
-
this.menuOpen = false;
|
66
|
-
}
|
67
|
-
// --------------------------------------------------------------------------
|
68
|
-
//
|
69
|
-
// Lifecycle
|
70
|
-
//
|
71
|
-
// --------------------------------------------------------------------------
|
72
|
-
connectedCallback() {
|
73
|
-
connectConditionalSlotComponent(this);
|
74
|
-
}
|
75
|
-
disconnectedCallback() {
|
76
|
-
disconnectConditionalSlotComponent(this);
|
77
|
-
}
|
78
|
-
// --------------------------------------------------------------------------
|
79
|
-
//
|
80
|
-
// Component Methods
|
81
|
-
//
|
82
|
-
// --------------------------------------------------------------------------
|
83
|
-
renderTooltip() {
|
84
|
-
const { el } = this;
|
85
|
-
const hasTooltip = getSlotted(el, SLOTS.menuTooltip);
|
86
|
-
return hasTooltip ? h("slot", { name: SLOTS.menuTooltip, slot: SLOTS$1.tooltip }) : null;
|
87
|
-
}
|
88
|
-
renderMenu() {
|
89
|
-
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
90
|
-
const hasMenuItems = getSlotted(el, SLOTS.menuActions);
|
91
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, h("calcite-action", { icon: ICONS.menu, scale: scale, slot: SLOTS$1.trigger, text: intlMore || TEXT.more, textEnabled: expanded }), h("slot", { name: SLOTS.menuActions }), this.renderTooltip())) : null;
|
92
|
-
}
|
93
|
-
render() {
|
94
|
-
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
95
|
-
}
|
96
|
-
get el() { return this; }
|
97
|
-
static get watchers() { return {
|
98
|
-
"expanded": ["expandedHandler"]
|
99
|
-
}; }
|
100
|
-
static get style() { return actionGroupCss; }
|
101
|
-
}, [1, "calcite-action-group", {
|
102
|
-
"expanded": [516],
|
103
|
-
"layout": [513],
|
104
|
-
"columns": [514],
|
105
|
-
"intlMore": [1, "intl-more"],
|
106
|
-
"menuOpen": [1540, "menu-open"],
|
107
|
-
"scale": [513]
|
108
|
-
}]);
|
109
|
-
function defineCustomElement() {
|
110
|
-
if (typeof customElements === "undefined") {
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
const components = ["calcite-action-group", "calcite-action", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-popover"];
|
114
|
-
components.forEach(tagName => { switch (tagName) {
|
115
|
-
case "calcite-action-group":
|
116
|
-
if (!customElements.get(tagName)) {
|
117
|
-
customElements.define(tagName, ActionGroup);
|
118
|
-
}
|
119
|
-
break;
|
120
|
-
case "calcite-action":
|
121
|
-
if (!customElements.get(tagName)) {
|
122
|
-
defineCustomElement$5();
|
123
|
-
}
|
124
|
-
break;
|
125
|
-
case "calcite-action-menu":
|
126
|
-
if (!customElements.get(tagName)) {
|
127
|
-
defineCustomElement$4();
|
128
|
-
}
|
129
|
-
break;
|
130
|
-
case "calcite-icon":
|
131
|
-
if (!customElements.get(tagName)) {
|
132
|
-
defineCustomElement$3();
|
133
|
-
}
|
134
|
-
break;
|
135
|
-
case "calcite-loader":
|
136
|
-
if (!customElements.get(tagName)) {
|
137
|
-
defineCustomElement$2();
|
138
|
-
}
|
139
|
-
break;
|
140
|
-
case "calcite-popover":
|
141
|
-
if (!customElements.get(tagName)) {
|
142
|
-
defineCustomElement$1();
|
143
|
-
}
|
144
|
-
break;
|
145
|
-
} });
|
146
|
-
}
|
147
|
-
defineCustomElement();
|
148
|
-
|
149
|
-
export { ActionGroup as A, SLOTS as S, defineCustomElement as d };
|
150
|
-
|
151
|
-
//# sourceMappingURL=action-group.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"action-group.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,KAAK,GAAG;AACrB,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE,MAAM;AACd,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,IAAI,EAAE,UAAU;AAClB,CAAC;;ACdD,MAAM,cAAc,GAAG,0pEAA0pE;;MCgBpqE,WAAW;EACtB;;;;;;;;;;;;IASE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;;;;IAIzB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,WAAW,GAAG,CAAC,KAAK;MACvB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;KAChC,CAAC;GACH;EACD,eAAe;IACb,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;GACvB;;;;;;EAMD,iBAAiB;IACf,+BAA+B,CAAC,IAAI,CAAC,CAAC;GACv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IAAI,CAAC;GACtf;EACD,MAAM;IACJ,QAAQ,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE;GAChE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ACTION_MENU_SLOTS"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/action-group/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css?tag=calcite-action-group&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.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 menuActions: \"menu-actions\",\n menuTooltip: \"menu-tooltip\"\n};\nexport const TEXT = {\n more: \"More\"\n};\nexport const ICONS = {\n menu: \"ellipsis\"\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:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\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-action-group-columns: Sets number of grid-template-columns when the `layout` property is `\"grid\"`.\n*/\n:host {\n display: flex;\n flex-direction: column;\n padding: 0px;\n --calcite-action-group-columns: 3;\n}\n\n:host([columns=\"1\"]) {\n --calcite-action-group-columns: 1;\n}\n\n:host([columns=\"2\"]) {\n --calcite-action-group-columns: 2;\n}\n\n:host([columns=\"3\"]) {\n --calcite-action-group-columns: 3;\n}\n\n:host([columns=\"4\"]) {\n --calcite-action-group-columns: 4;\n}\n\n:host([columns=\"5\"]) {\n --calcite-action-group-columns: 5;\n}\n\n:host([columns=\"6\"]) {\n --calcite-action-group-columns: 6;\n}\n\n:host(:first-child) {\n padding-block-start: 0px;\n}\n\n:host([layout=horizontal]) {\n flex-direction: row;\n}\n\n:host([layout=grid]) {\n display: grid;\n place-content: stretch;\n gap: 1px;\n background-color: var(--calcite-ui-background);\n padding: 1px;\n grid-template-columns: repeat(var(--calcite-action-group-columns), auto);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h } from \"@stencil/core\";\nimport { ICONS, SLOTS, TEXT } from \"./resources\";\nimport { Fragment } from \"@stencil/core/internal\";\nimport { getSlotted } from \"../../utils/dom\";\nimport { SLOTS as ACTION_MENU_SLOTS } from \"../action-menu/resources\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\n/**\n * @slot - A slot for adding a group of `calcite-action`s.\n * @slot menu-actions - A slot for adding an overflow menu with `calcite-action`s inside a `calcite-dropdown`.\n * @slot menu-tooltip - A slot for adding a `calcite-tooltip` for the menu.\n */\nexport class ActionGroup {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When `true`, the component is expanded.\n */\n this.expanded = false;\n /**\n * Indicates the layout of the component.\n */\n this.layout = \"vertical\";\n /**\n * When `true`, the `calcite-action-menu` is open.\n */\n this.menuOpen = false;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.setMenuOpen = (event) => {\n this.menuOpen = !!event.detail;\n };\n }\n expandedHandler() {\n this.menuOpen = false;\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n connectConditionalSlotComponent(this);\n }\n disconnectedCallback() {\n disconnectConditionalSlotComponent(this);\n }\n // --------------------------------------------------------------------------\n //\n // Component Methods\n //\n // --------------------------------------------------------------------------\n renderTooltip() {\n const { el } = this;\n const hasTooltip = getSlotted(el, SLOTS.menuTooltip);\n return hasTooltip ? h(\"slot\", { name: SLOTS.menuTooltip, slot: ACTION_MENU_SLOTS.tooltip }) : null;\n }\n renderMenu() {\n const { el, expanded, intlMore, menuOpen, scale, layout } = this;\n const hasMenuItems = getSlotted(el, SLOTS.menuActions);\n return hasMenuItems ? (h(\"calcite-action-menu\", { expanded: expanded, flipPlacements: [\"left\", \"right\"], label: intlMore || TEXT.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === \"horizontal\" ? \"bottom-leading\" : \"leading-start\", scale: scale }, h(\"calcite-action\", { icon: ICONS.menu, scale: scale, slot: ACTION_MENU_SLOTS.trigger, text: intlMore || TEXT.more, textEnabled: expanded }), h(\"slot\", { name: SLOTS.menuActions }), this.renderTooltip())) : null;\n }\n render() {\n return (h(Fragment, null, h(\"slot\", null), this.renderMenu()));\n }\n static get is() { return \"calcite-action-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"action-group.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"action-group.css\"]\n };\n }\n static get properties() {\n return {\n \"expanded\": {\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 component is expanded.\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates the layout of the component.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"vertical\\\"\"\n },\n \"columns\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Columns\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"Columns\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates number of columns.\"\n },\n \"attribute\": \"columns\",\n \"reflect\": true\n },\n \"intlMore\": {\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 a text string for the `calcite-action-menu`.\"\n },\n \"attribute\": \"intl-more\",\n \"reflect\": false\n },\n \"menuOpen\": {\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 `calcite-action-menu` is open.\"\n },\n \"attribute\": \"menu-open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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\": \"Specifies the size of the `calcite-action-menu`.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }];\n }\n}\n"],"version":3}
|
@@ -1,358 +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, Fragment } from '@stencil/core/internal/client';
|
7
|
-
import { t as toAriaBoolean, i as isPrimaryPointerButton, f as focusElement } from './dom.js';
|
8
|
-
import { g as getRoundRobinIndex } from './array.js';
|
9
|
-
import { g as guid } from './guid.js';
|
10
|
-
import { i as isActivationKey } from './key.js';
|
11
|
-
import { d as defineCustomElement$4 } from './action.js';
|
12
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
13
|
-
import { d as defineCustomElement$2 } from './loader.js';
|
14
|
-
import { d as defineCustomElement$1 } from './popover.js';
|
15
|
-
|
16
|
-
/*!
|
17
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
18
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
19
|
-
* v1.0.0-beta.97
|
20
|
-
*/
|
21
|
-
const CSS = {
|
22
|
-
menu: "menu",
|
23
|
-
defaultTrigger: "default-trigger"
|
24
|
-
};
|
25
|
-
const SLOTS = {
|
26
|
-
tooltip: "tooltip",
|
27
|
-
trigger: "trigger"
|
28
|
-
};
|
29
|
-
const ICONS = {
|
30
|
-
menu: "ellipsis"
|
31
|
-
};
|
32
|
-
|
33
|
-
const actionMenuCss = "@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{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";
|
34
|
-
|
35
|
-
const SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
|
36
|
-
const ActionMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
37
|
-
constructor() {
|
38
|
-
super();
|
39
|
-
this.__registerHost();
|
40
|
-
this.__attachShadow();
|
41
|
-
this.calciteActionMenuOpenChange = createEvent(this, "calciteActionMenuOpenChange", 6);
|
42
|
-
// --------------------------------------------------------------------------
|
43
|
-
//
|
44
|
-
// Properties
|
45
|
-
//
|
46
|
-
// --------------------------------------------------------------------------
|
47
|
-
/**
|
48
|
-
* When `true`, the component is expanded.
|
49
|
-
*/
|
50
|
-
this.expanded = false;
|
51
|
-
/**
|
52
|
-
* When `true`, the component is open.
|
53
|
-
*/
|
54
|
-
this.open = false;
|
55
|
-
/**
|
56
|
-
* Determines the type of positioning to use for the overlaid content.
|
57
|
-
*
|
58
|
-
* Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
|
59
|
-
* `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
60
|
-
*
|
61
|
-
*/
|
62
|
-
this.overlayPositioning = "absolute";
|
63
|
-
/**
|
64
|
-
* Determines where the component will be positioned relative to the `referenceElement`.
|
65
|
-
*
|
66
|
-
* @see [LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)
|
67
|
-
*/
|
68
|
-
this.placement = "auto";
|
69
|
-
this.actionElements = [];
|
70
|
-
this.guid = `calcite-action-menu-${guid()}`;
|
71
|
-
this.menuId = `${this.guid}-menu`;
|
72
|
-
this.menuButtonId = `${this.guid}-menu-button`;
|
73
|
-
this.activeMenuItemIndex = -1;
|
74
|
-
// --------------------------------------------------------------------------
|
75
|
-
//
|
76
|
-
// Component Methods
|
77
|
-
//
|
78
|
-
// --------------------------------------------------------------------------
|
79
|
-
this.connectMenuButtonEl = () => {
|
80
|
-
const { menuButtonId, menuId, open, label } = this;
|
81
|
-
const menuButtonEl = this.slottedMenuButtonEl || this.defaultMenuButtonEl;
|
82
|
-
if (this.menuButtonEl === menuButtonEl) {
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
this.disconnectMenuButtonEl();
|
86
|
-
this.menuButtonEl = menuButtonEl;
|
87
|
-
this.setTooltipReferenceElement();
|
88
|
-
if (!menuButtonEl) {
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
menuButtonEl.active = open;
|
92
|
-
menuButtonEl.setAttribute("aria-controls", menuId);
|
93
|
-
menuButtonEl.setAttribute("aria-expanded", toAriaBoolean(open));
|
94
|
-
menuButtonEl.setAttribute("aria-haspopup", "true");
|
95
|
-
if (!menuButtonEl.id) {
|
96
|
-
menuButtonEl.id = menuButtonId;
|
97
|
-
}
|
98
|
-
if (!menuButtonEl.label) {
|
99
|
-
menuButtonEl.label = label;
|
100
|
-
}
|
101
|
-
if (!menuButtonEl.text) {
|
102
|
-
menuButtonEl.text = label;
|
103
|
-
}
|
104
|
-
menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
|
105
|
-
menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
|
106
|
-
};
|
107
|
-
this.disconnectMenuButtonEl = () => {
|
108
|
-
const { menuButtonEl } = this;
|
109
|
-
if (!menuButtonEl) {
|
110
|
-
return;
|
111
|
-
}
|
112
|
-
menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
|
113
|
-
menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
|
114
|
-
};
|
115
|
-
this.setMenuButtonEl = (event) => {
|
116
|
-
const actions = event.target
|
117
|
-
.assignedElements({
|
118
|
-
flatten: true
|
119
|
-
})
|
120
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
|
121
|
-
this.slottedMenuButtonEl = actions[0];
|
122
|
-
this.connectMenuButtonEl();
|
123
|
-
};
|
124
|
-
this.setDefaultMenuButtonEl = (el) => {
|
125
|
-
this.defaultMenuButtonEl = el;
|
126
|
-
this.connectMenuButtonEl();
|
127
|
-
};
|
128
|
-
// --------------------------------------------------------------------------
|
129
|
-
//
|
130
|
-
// Private Methods
|
131
|
-
//
|
132
|
-
// --------------------------------------------------------------------------
|
133
|
-
this.handleCalciteActionClick = () => {
|
134
|
-
this.open = false;
|
135
|
-
this.setFocus();
|
136
|
-
};
|
137
|
-
this.menuButtonClick = (event) => {
|
138
|
-
if (!isPrimaryPointerButton(event)) {
|
139
|
-
return;
|
140
|
-
}
|
141
|
-
this.toggleOpen();
|
142
|
-
};
|
143
|
-
this.updateTooltip = (event) => {
|
144
|
-
const tooltips = event.target
|
145
|
-
.assignedElements({
|
146
|
-
flatten: true
|
147
|
-
})
|
148
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
|
149
|
-
this.tooltipEl = tooltips[0];
|
150
|
-
this.setTooltipReferenceElement();
|
151
|
-
};
|
152
|
-
this.setTooltipReferenceElement = () => {
|
153
|
-
const { tooltipEl, expanded, menuButtonEl, open } = this;
|
154
|
-
if (tooltipEl) {
|
155
|
-
tooltipEl.referenceElement = !expanded && !open ? menuButtonEl : null;
|
156
|
-
}
|
157
|
-
};
|
158
|
-
this.updateAction = (action, index) => {
|
159
|
-
const { guid, activeMenuItemIndex } = this;
|
160
|
-
const id = `${guid}-action-${index}`;
|
161
|
-
action.tabIndex = -1;
|
162
|
-
action.setAttribute("role", "menuitem");
|
163
|
-
if (!action.id) {
|
164
|
-
action.id = id;
|
165
|
-
}
|
166
|
-
action.active = index === activeMenuItemIndex;
|
167
|
-
};
|
168
|
-
this.updateActions = (actions) => {
|
169
|
-
actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);
|
170
|
-
};
|
171
|
-
this.handleDefaultSlotChange = (event) => {
|
172
|
-
const actions = event.target
|
173
|
-
.assignedElements({
|
174
|
-
flatten: true
|
175
|
-
})
|
176
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
|
177
|
-
this.actionElements = actions;
|
178
|
-
};
|
179
|
-
this.menuButtonKeyDown = (event) => {
|
180
|
-
const { key } = event;
|
181
|
-
const { actionElements, activeMenuItemIndex, open } = this;
|
182
|
-
if (!actionElements.length) {
|
183
|
-
return;
|
184
|
-
}
|
185
|
-
if (isActivationKey(key)) {
|
186
|
-
event.preventDefault();
|
187
|
-
if (!open) {
|
188
|
-
this.toggleOpen();
|
189
|
-
return;
|
190
|
-
}
|
191
|
-
const action = actionElements[activeMenuItemIndex];
|
192
|
-
action ? action.click() : this.toggleOpen(false);
|
193
|
-
}
|
194
|
-
if (key === "Tab") {
|
195
|
-
this.open = false;
|
196
|
-
return;
|
197
|
-
}
|
198
|
-
if (key === "Escape") {
|
199
|
-
this.toggleOpen(false);
|
200
|
-
event.preventDefault();
|
201
|
-
return;
|
202
|
-
}
|
203
|
-
this.handleActionNavigation(event, key, actionElements);
|
204
|
-
};
|
205
|
-
this.handleActionNavigation = (event, key, actions) => {
|
206
|
-
if (!this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {
|
207
|
-
return;
|
208
|
-
}
|
209
|
-
event.preventDefault();
|
210
|
-
if (!this.open) {
|
211
|
-
this.toggleOpen();
|
212
|
-
if (key === "Home" || key === "ArrowDown") {
|
213
|
-
this.activeMenuItemIndex = 0;
|
214
|
-
}
|
215
|
-
if (key === "End" || key === "ArrowUp") {
|
216
|
-
this.activeMenuItemIndex = actions.length - 1;
|
217
|
-
}
|
218
|
-
return;
|
219
|
-
}
|
220
|
-
if (key === "Home") {
|
221
|
-
this.activeMenuItemIndex = 0;
|
222
|
-
}
|
223
|
-
if (key === "End") {
|
224
|
-
this.activeMenuItemIndex = actions.length - 1;
|
225
|
-
}
|
226
|
-
const currentIndex = this.activeMenuItemIndex;
|
227
|
-
if (key === "ArrowUp") {
|
228
|
-
this.activeMenuItemIndex = getRoundRobinIndex(Math.max(currentIndex - 1, -1), actions.length);
|
229
|
-
}
|
230
|
-
if (key === "ArrowDown") {
|
231
|
-
this.activeMenuItemIndex = getRoundRobinIndex(currentIndex + 1, actions.length);
|
232
|
-
}
|
233
|
-
};
|
234
|
-
this.toggleOpenEnd = () => {
|
235
|
-
this.setFocus();
|
236
|
-
this.el.removeEventListener("calcitePopoverOpen", this.toggleOpenEnd);
|
237
|
-
};
|
238
|
-
this.toggleOpen = (value = !this.open) => {
|
239
|
-
this.el.addEventListener("calcitePopoverOpen", this.toggleOpenEnd);
|
240
|
-
this.open = value;
|
241
|
-
};
|
242
|
-
}
|
243
|
-
// --------------------------------------------------------------------------
|
244
|
-
//
|
245
|
-
// Lifecycle
|
246
|
-
//
|
247
|
-
// --------------------------------------------------------------------------
|
248
|
-
disconnectedCallback() {
|
249
|
-
this.disconnectMenuButtonEl();
|
250
|
-
}
|
251
|
-
expandedHandler() {
|
252
|
-
this.open = false;
|
253
|
-
this.setTooltipReferenceElement();
|
254
|
-
}
|
255
|
-
openHandler(open) {
|
256
|
-
this.activeMenuItemIndex = this.open ? 0 : -1;
|
257
|
-
if (this.menuButtonEl) {
|
258
|
-
this.menuButtonEl.active = open;
|
259
|
-
}
|
260
|
-
this.calciteActionMenuOpenChange.emit(open);
|
261
|
-
this.setTooltipReferenceElement();
|
262
|
-
}
|
263
|
-
closeCalciteActionMenuOnClick(event) {
|
264
|
-
if (!isPrimaryPointerButton(event)) {
|
265
|
-
return;
|
266
|
-
}
|
267
|
-
const composedPath = event.composedPath();
|
268
|
-
if (composedPath.includes(this.el)) {
|
269
|
-
return;
|
270
|
-
}
|
271
|
-
this.open = false;
|
272
|
-
}
|
273
|
-
activeMenuItemIndexHandler() {
|
274
|
-
this.updateActions(this.actionElements);
|
275
|
-
}
|
276
|
-
// --------------------------------------------------------------------------
|
277
|
-
//
|
278
|
-
// Methods
|
279
|
-
//
|
280
|
-
// --------------------------------------------------------------------------
|
281
|
-
/** Sets focus on the component. */
|
282
|
-
async setFocus() {
|
283
|
-
focusElement(this.menuButtonEl);
|
284
|
-
}
|
285
|
-
renderMenuButton() {
|
286
|
-
const { label, scale, expanded } = this;
|
287
|
-
const menuButtonSlot = (h("slot", { name: SLOTS.trigger, onSlotchange: this.setMenuButtonEl }, h("calcite-action", { class: CSS.defaultTrigger, icon: ICONS.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
288
|
-
return menuButtonSlot;
|
289
|
-
}
|
290
|
-
renderMenuItems() {
|
291
|
-
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
292
|
-
const activeAction = actionElements[activeMenuItemIndex];
|
293
|
-
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
294
|
-
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
295
|
-
}
|
296
|
-
render() {
|
297
|
-
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS.tooltip, onSlotchange: this.updateTooltip })));
|
298
|
-
}
|
299
|
-
isValidKey(key, supportedKeys) {
|
300
|
-
return !!supportedKeys.find((k) => k === key);
|
301
|
-
}
|
302
|
-
get el() { return this; }
|
303
|
-
static get watchers() { return {
|
304
|
-
"expanded": ["expandedHandler"],
|
305
|
-
"open": ["openHandler"],
|
306
|
-
"activeMenuItemIndex": ["activeMenuItemIndexHandler"]
|
307
|
-
}; }
|
308
|
-
static get style() { return actionMenuCss; }
|
309
|
-
}, [1, "calcite-action-menu", {
|
310
|
-
"expanded": [516],
|
311
|
-
"flipPlacements": [16],
|
312
|
-
"label": [1],
|
313
|
-
"open": [1540],
|
314
|
-
"overlayPositioning": [513, "overlay-positioning"],
|
315
|
-
"placement": [513],
|
316
|
-
"scale": [513],
|
317
|
-
"menuButtonEl": [32],
|
318
|
-
"activeMenuItemIndex": [32],
|
319
|
-
"setFocus": [64]
|
320
|
-
}, [[9, "pointerdown", "closeCalciteActionMenuOnClick"]]]);
|
321
|
-
function defineCustomElement() {
|
322
|
-
if (typeof customElements === "undefined") {
|
323
|
-
return;
|
324
|
-
}
|
325
|
-
const components = ["calcite-action-menu", "calcite-action", "calcite-icon", "calcite-loader", "calcite-popover"];
|
326
|
-
components.forEach(tagName => { switch (tagName) {
|
327
|
-
case "calcite-action-menu":
|
328
|
-
if (!customElements.get(tagName)) {
|
329
|
-
customElements.define(tagName, ActionMenu);
|
330
|
-
}
|
331
|
-
break;
|
332
|
-
case "calcite-action":
|
333
|
-
if (!customElements.get(tagName)) {
|
334
|
-
defineCustomElement$4();
|
335
|
-
}
|
336
|
-
break;
|
337
|
-
case "calcite-icon":
|
338
|
-
if (!customElements.get(tagName)) {
|
339
|
-
defineCustomElement$3();
|
340
|
-
}
|
341
|
-
break;
|
342
|
-
case "calcite-loader":
|
343
|
-
if (!customElements.get(tagName)) {
|
344
|
-
defineCustomElement$2();
|
345
|
-
}
|
346
|
-
break;
|
347
|
-
case "calcite-popover":
|
348
|
-
if (!customElements.get(tagName)) {
|
349
|
-
defineCustomElement$1();
|
350
|
-
}
|
351
|
-
break;
|
352
|
-
} });
|
353
|
-
}
|
354
|
-
defineCustomElement();
|
355
|
-
|
356
|
-
export { ActionMenu as A, SLOTS as S, defineCustomElement as d };
|
357
|
-
|
358
|
-
//# sourceMappingURL=action-menu.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"action-menu.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,cAAc,EAAE,iBAAiB;AACnC,CAAC,CAAC;AACU,MAAC,KAAK,GAAG;AACrB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,IAAI,EAAE,UAAU;AAClB,CAAC;;ACfD,MAAM,aAAa,GAAG,s8DAAs8D;;ACY59D,MAAM,uBAAuB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;MAM3D,UAAU;EACrB;;;;;;;;;;;;;IASE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;;;;;;;;IAQlB,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC;;;;;;IAMrC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IACzB,IAAI,CAAC,IAAI,GAAG,uBAAuB,IAAI,EAAE,EAAE,CAAC;IAC5C,IAAI,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,OAAO,CAAC;IAClC,I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AC,wBAAwB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC,EAAE;GAC3hB;EACD,MAAM;IACJ,QAAQ,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE;GACnJ;EACD,UAAU,CAAC,GAAG,EAAE,aAAa;IAC3B,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;GAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/action-menu/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css?tag=calcite-action-menu&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n menu: \"menu\",\n defaultTrigger: \"default-trigger\"\n};\nexport const SLOTS = {\n tooltip: \"tooltip\",\n trigger: \"trigger\"\n};\nexport const ICONS = {\n menu: \"ellipsis\"\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 box-sizing: border-box;\n display: flex;\n flex-direction: column;\n background-color: var(--calcite-ui-foreground-1);\n font-size: var(--calcite-font-size-1);\n color: var(--calcite-ui-text-2);\n}\n\n.menu ::slotted(calcite-action) {\n margin: 0.125rem;\n display: flex;\n outline-color: transparent;\n}\n\n.menu ::slotted(calcite-action[active]) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 0px;\n}\n\n.default-trigger {\n position: relative;\n block-size: 100%;\n flex: 0 1 auto;\n align-self: stretch;\n}\n\nslot[name=trigger]::slotted(calcite-action), \ncalcite-action::slotted([slot=trigger]) {\n position: relative;\n block-size: 100%;\n flex: 0 1 auto;\n align-self: stretch;\n}\n\n.menu {\n flex-direction: column;\n flex-wrap: nowrap;\n outline: 2px solid transparent;\n outline-offset: 2px;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h } from \"@stencil/core\";\nimport { CSS, SLOTS, ICONS } from \"./resources\";\nimport { focusElement, isPrimaryPointerButton, toAriaBoolean } from \"../../utils/dom\";\nimport { Fragment } from \"@stencil/core/internal\";\nimport { getRoundRobinIndex } from \"../../utils/array\";\nimport { guid } from \"../../utils/guid\";\nimport { isActivationKey } from \"../../utils/key\";\nconst SUPPORTED_MENU_NAV_KEYS = [\"ArrowUp\", \"ArrowDown\", \"End\", \"Home\"];\n/**\n * @slot - A slot for adding `calcite-action`s.\n * @slot trigger - A slot for adding a `calcite-action` to trigger opening the menu.\n * @slot tooltip - A slot for adding an tooltip for the menu.\n */\nexport class ActionMenu {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When `true`, the component is expanded.\n */\n this.expanded = false;\n /**\n * When `true`, the component is open.\n */\n this.open = false;\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 * `\"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 component will be positioned relative to the `referenceElement`.\n *\n * @see [LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)\n */\n this.placement = \"auto\";\n this.actionElements = [];\n this.guid = `calcite-action-menu-${guid()}`;\n this.menuId = `${this.guid}-menu`;\n this.menuButtonId = `${this.guid}-menu-button`;\n this.activeMenuItemIndex = -1;\n // --------------------------------------------------------------------------\n //\n // Component Methods\n //\n // --------------------------------------------------------------------------\n this.connectMenuButtonEl = () => {\n const { menuButtonId, menuId, open, label } = this;\n const menuButtonEl = this.slottedMenuButtonEl || this.defaultMenuButtonEl;\n if (this.menuButtonEl === menuButtonEl) {\n return;\n }\n this.disconnectMenuButtonEl();\n this.menuButtonEl = menuButtonEl;\n this.setTooltipReferenceElement();\n if (!menuButtonEl) {\n return;\n }\n menuButtonEl.active = open;\n menuButtonEl.setAttribute(\"aria-controls\", menuId);\n menuButtonEl.setAttribute(\"aria-expanded\", toAriaBoolean(open));\n menuButtonEl.setAttribute(\"aria-haspopup\", \"true\");\n if (!menuButtonEl.id) {\n menuButtonEl.id = menuButtonId;\n }\n if (!menuButtonEl.label) {\n menuButtonEl.label = label;\n }\n if (!menuButtonEl.text) {\n menuButtonEl.text = label;\n }\n menuButtonEl.addEventListener(\"pointerdown\", this.menuButtonClick);\n menuButtonEl.addEventListener(\"keydown\", this.menuButtonKeyDown);\n };\n this.disconnectMenuButtonEl = () => {\n const { menuButtonEl } = this;\n if (!menuButtonEl) {\n return;\n }\n menuButtonEl.removeEventListener(\"pointerdown\", this.menuButtonClick);\n menuButtonEl.removeEventListener(\"keydown\", this.menuButtonKeyDown);\n };\n this.setMenuButtonEl = (event) => {\n const actions = event.target\n .assignedElements({\n flatten: true\n })\n .filter((el) => el === null || el === void 0 ? void 0 : el.matches(\"calcite-action\"));\n this.slottedMenuButtonEl = actions[0];\n this.connectMenuButtonEl();\n };\n this.setDefaultMenuButtonEl = (el) => {\n this.defaultMenuButtonEl = el;\n this.connectMenuButtonEl();\n };\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.handleCalciteActionClick = () => {\n this.open = false;\n this.setFocus();\n };\n this.menuButtonClick = (event) => {\n if (!isPrimaryPointerButton(event)) {\n return;\n }\n this.toggleOpen();\n };\n this.updateTooltip = (event) => {\n const tooltips = event.target\n .assignedElements({\n flatten: true\n })\n .filter((el) => el === null || el === void 0 ? void 0 : el.matches(\"calcite-tooltip\"));\n this.tooltipEl = tooltips[0];\n this.setTooltipReferenceElement();\n };\n this.setTooltipReferenceElement = () => {\n const { tooltipEl, expanded, menuButtonEl, open } = this;\n if (tooltipEl) {\n tooltipEl.referenceElement = !expanded && !open ? menuButtonEl : null;\n }\n };\n this.updateAction = (action, index) => {\n const { guid, activeMenuItemIndex } = this;\n const id = `${guid}-action-${index}`;\n action.tabIndex = -1;\n action.setAttribute(\"role\", \"menuitem\");\n if (!action.id) {\n action.id = id;\n }\n action.active = index === activeMenuItemIndex;\n };\n this.updateActions = (actions) => {\n actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);\n };\n this.handleDefaultSlotChange = (event) => {\n const actions = event.target\n .assignedElements({\n flatten: true\n })\n .filter((el) => el === null || el === void 0 ? void 0 : el.matches(\"calcite-action\"));\n this.actionElements = actions;\n };\n this.menuButtonKeyDown = (event) => {\n const { key } = event;\n const { actionElements, activeMenuItemIndex, open } = this;\n if (!actionElements.length) {\n return;\n }\n if (isActivationKey(key)) {\n event.preventDefault();\n if (!open) {\n this.toggleOpen();\n return;\n }\n const action = actionElements[activeMenuItemIndex];\n action ? action.click() : this.toggleOpen(false);\n }\n if (key === \"Tab\") {\n this.open = false;\n return;\n }\n if (key === \"Escape\") {\n this.toggleOpen(false);\n event.preventDefault();\n return;\n }\n this.handleActionNavigation(event, key, actionElements);\n };\n this.handleActionNavigation = (event, key, actions) => {\n if (!this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {\n return;\n }\n event.preventDefault();\n if (!this.open) {\n this.toggleOpen();\n if (key === \"Home\" || key === \"ArrowDown\") {\n this.activeMenuItemIndex = 0;\n }\n if (key === \"End\" || key === \"ArrowUp\") {\n this.activeMenuItemIndex = actions.length - 1;\n }\n return;\n }\n if (key === \"Home\") {\n this.activeMenuItemIndex = 0;\n }\n if (key === \"End\") {\n this.activeMenuItemIndex = actions.length - 1;\n }\n const currentIndex = this.activeMenuItemIndex;\n if (key === \"ArrowUp\") {\n this.activeMenuItemIndex = getRoundRobinIndex(Math.max(currentIndex - 1, -1), actions.length);\n }\n if (key === \"ArrowDown\") {\n this.activeMenuItemIndex = getRoundRobinIndex(currentIndex + 1, actions.length);\n }\n };\n this.toggleOpenEnd = () => {\n this.setFocus();\n this.el.removeEventListener(\"calcitePopoverOpen\", this.toggleOpenEnd);\n };\n this.toggleOpen = (value = !this.open) => {\n this.el.addEventListener(\"calcitePopoverOpen\", this.toggleOpenEnd);\n this.open = value;\n };\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n disconnectedCallback() {\n this.disconnectMenuButtonEl();\n }\n expandedHandler() {\n this.open = false;\n this.setTooltipReferenceElement();\n }\n openHandler(open) {\n this.activeMenuItemIndex = this.open ? 0 : -1;\n if (this.menuButtonEl) {\n this.menuButtonEl.active = open;\n }\n this.calciteActionMenuOpenChange.emit(open);\n this.setTooltipReferenceElement();\n }\n closeCalciteActionMenuOnClick(event) {\n if (!isPrimaryPointerButton(event)) {\n return;\n }\n const composedPath = event.composedPath();\n if (composedPath.includes(this.el)) {\n return;\n }\n this.open = false;\n }\n activeMenuItemIndexHandler() {\n this.updateActions(this.actionElements);\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.menuButtonEl);\n }\n renderMenuButton() {\n const { label, scale, expanded } = this;\n const menuButtonSlot = (h(\"slot\", { name: SLOTS.trigger, onSlotchange: this.setMenuButtonEl }, h(\"calcite-action\", { class: CSS.defaultTrigger, icon: ICONS.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));\n return menuButtonSlot;\n }\n renderMenuItems() {\n const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;\n const activeAction = actionElements[activeMenuItemIndex];\n const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;\n return (h(\"calcite-popover\", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h(\"div\", { \"aria-activedescendant\": activeDescendantId, \"aria-labelledby\": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, role: \"menu\", tabIndex: -1 }, h(\"slot\", { onSlotchange: this.handleDefaultSlotChange }))));\n }\n render() {\n return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h(\"slot\", { name: SLOTS.tooltip, onSlotchange: this.updateTooltip })));\n }\n isValidKey(key, supportedKeys) {\n return !!supportedKeys.find((k) => k === key);\n }\n static get is() { return \"calcite-action-menu\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"action-menu.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"action-menu.css\"]\n };\n }\n static get properties() {\n return {\n \"expanded\": {\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 component is expanded.\"\n },\n \"attribute\": \"expanded\",\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 \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the text string for the component.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"open\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is open.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\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`\\\"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\": \"LogicalPlacement\",\n \"resolved\": \"Placement | VariationPlacement | AutoPlacement | DeprecatedPlacement\",\n \"references\": {\n \"LogicalPlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/floating-ui\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \"[LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)\"\n }],\n \"text\": \"Determines where the component will be positioned relative to the `referenceElement`.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\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\": \"Specifies the size of the component's trigger `calcite-action`.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n };\n }\n static get states() {\n return {\n \"menuButtonEl\": {},\n \"activeMenuItemIndex\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteActionMenuOpenChange\",\n \"name\": \"calciteActionMenuOpenChange\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emits when the `open` property has changed.\\n\\n**Note:**: The event payload is deprecated, please use the `open` property on the component instead\"\n },\n \"complexType\": {\n \"original\": \"DeprecatedEventPayload\",\n \"resolved\": \"any\",\n \"references\": {\n \"DeprecatedEventPayload\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"openHandler\"\n }, {\n \"propName\": \"activeMenuItemIndex\",\n \"methodName\": \"activeMenuItemIndexHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"pointerdown\",\n \"method\": \"closeCalciteActionMenuOnClick\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": true\n }];\n }\n}\n"],"version":3}
|