@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,112 +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 { forceUpdate, h } from '@stencil/core/internal/client';
|
7
|
-
import { c as getElementDir } from './dom.js';
|
8
|
-
import { S as SLOTS } from './action-menu.js';
|
9
|
-
import { S as SLOTS$1 } from './action-group.js';
|
10
|
-
|
11
|
-
/*!
|
12
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
13
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
14
|
-
* v1.0.0-beta.97
|
15
|
-
*/
|
16
|
-
const overflowActionsDebounceInMs = 150;
|
17
|
-
const groupBufferPx = 2;
|
18
|
-
const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
|
19
|
-
const geActionDimensions = (actions) => {
|
20
|
-
const actionLen = actions === null || actions === void 0 ? void 0 : actions.length;
|
21
|
-
return {
|
22
|
-
actionWidth: actionLen ? getAverage(actions.map((action) => action.clientWidth || 0)) : 0,
|
23
|
-
actionHeight: actionLen ? getAverage(actions.map((action) => action.clientHeight || 0)) : 0
|
24
|
-
};
|
25
|
-
};
|
26
|
-
const getMaxActionCount = ({ width, actionWidth, layout, height, actionHeight, groupCount }) => {
|
27
|
-
const maxContainerPx = layout === "horizontal" ? width : height;
|
28
|
-
const avgItemPx = layout === "horizontal" ? actionWidth : actionHeight;
|
29
|
-
return Math.floor((maxContainerPx - groupCount * groupBufferPx) / avgItemPx);
|
30
|
-
};
|
31
|
-
const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeight, height, groupCount }) => {
|
32
|
-
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
33
|
-
};
|
34
|
-
const queryActions = (el) => {
|
35
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS.trigger : true);
|
36
|
-
};
|
37
|
-
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
38
|
-
let needToSlotCount = overflowCount;
|
39
|
-
actionGroups.reverse().forEach((group) => {
|
40
|
-
let slottedWithinGroupCount = 0;
|
41
|
-
const groupActions = queryActions(group).reverse();
|
42
|
-
groupActions.forEach((groupAction) => {
|
43
|
-
if (groupAction.slot === SLOTS$1.menuActions) {
|
44
|
-
groupAction.removeAttribute("slot");
|
45
|
-
groupAction.textEnabled = expanded;
|
46
|
-
}
|
47
|
-
});
|
48
|
-
if (needToSlotCount > 0) {
|
49
|
-
groupActions.some((groupAction) => {
|
50
|
-
const unslottedActions = groupActions.filter((action) => !action.slot);
|
51
|
-
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
52
|
-
groupAction.textEnabled = true;
|
53
|
-
groupAction.setAttribute("slot", SLOTS$1.menuActions);
|
54
|
-
slottedWithinGroupCount++;
|
55
|
-
if (slottedWithinGroupCount > 1) {
|
56
|
-
needToSlotCount--;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
return needToSlotCount < 1;
|
60
|
-
});
|
61
|
-
}
|
62
|
-
forceUpdate(group);
|
63
|
-
});
|
64
|
-
};
|
65
|
-
|
66
|
-
/*!
|
67
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
68
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
69
|
-
* v1.0.0-beta.97
|
70
|
-
*/
|
71
|
-
const ICONS = {
|
72
|
-
chevronsLeft: "chevrons-left",
|
73
|
-
chevronsRight: "chevrons-right"
|
74
|
-
};
|
75
|
-
function getCalcitePosition(position, el) {
|
76
|
-
var _a;
|
77
|
-
return position || ((_a = el.closest("calcite-shell-panel")) === null || _a === void 0 ? void 0 : _a.position) || "start";
|
78
|
-
}
|
79
|
-
function toggleChildActionText({ parent, expanded }) {
|
80
|
-
queryActions(parent)
|
81
|
-
.filter((el) => el.slot !== SLOTS$1.menuActions)
|
82
|
-
.forEach((action) => (action.textEnabled = expanded));
|
83
|
-
parent
|
84
|
-
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
85
|
-
.forEach((el) => (el.expanded = expanded));
|
86
|
-
}
|
87
|
-
const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
88
|
-
if (tooltip) {
|
89
|
-
tooltip.referenceElement = !expanded && referenceElement ? referenceElement : null;
|
90
|
-
}
|
91
|
-
if (ref) {
|
92
|
-
ref(referenceElement);
|
93
|
-
}
|
94
|
-
return referenceElement;
|
95
|
-
};
|
96
|
-
const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
97
|
-
const rtl = getElementDir(el) === "rtl";
|
98
|
-
const expandText = expanded ? intlCollapse : intlExpand;
|
99
|
-
const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
|
100
|
-
if (rtl) {
|
101
|
-
icons.reverse();
|
102
|
-
}
|
103
|
-
const end = getCalcitePosition(position, el) === "end";
|
104
|
-
const expandIcon = end ? icons[1] : icons[0];
|
105
|
-
const collapseIcon = end ? icons[0] : icons[1];
|
106
|
-
const actionNode = (h("calcite-action", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
107
|
-
return actionNode;
|
108
|
-
};
|
109
|
-
|
110
|
-
export { ExpandToggle as E, overflowActions as a, getOverflowCount as b, geActionDimensions as g, overflowActionsDebounceInMs as o, queryActions as q, toggleChildActionText as t };
|
111
|
-
|
112
|
-
//# sourceMappingURL=ExpandToggle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"ExpandToggle.js","mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAIY,MAAC,2BAA2B,GAAG,IAAI;AAC/C,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,UAAU,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;AAC5D,MAAC,kBAAkB,GAAG,CAAC,OAAO,KAAK;AAC/C,EAAE,MAAM,SAAS,GAAG,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;AACrF,EAAE,OAAO;AACT,IAAI,WAAW,EAAE,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;AAC7F,IAAI,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;AAC/F,GAAG,CAAC;AACJ,EAAE;AACF,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK;AAChG,EAAE,MAAM,cAAc,GAAG,MAAM,KAAK,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;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C1D,EAAE,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;AAC1D,EAAE,IAAI,GAAG,EAAE;AACX,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;AACpB,GAAG;AACH,EAAE,MAAM,GAAG,GAAG,kBAAkB,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC;AACzD,EAAE,MAAM,UAAU,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC/C,EAAE,MAAM,YAAY,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AACjD,EAAE,MAAM,UAAU,IAAI,CAAC,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,KAAK,mBAAmB,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;AACjQ,EAAE,OAAO,UAAU,CAAC;AACpB;;;;","names":["ACTION_MENU_SLOTS","ACTION_GROUP_SLOTS"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/action-bar/utils.js","./node_modules/@esri/calcite-components/dist/collection/components/functional/ExpandToggle.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 */\nimport { forceUpdate } from \"@stencil/core\";\nimport { SLOTS as ACTION_MENU_SLOTS } from \"../action-menu/resources\";\nimport { SLOTS as ACTION_GROUP_SLOTS } from \"../action-group/resources\";\nexport const overflowActionsDebounceInMs = 150;\nconst groupBufferPx = 2;\nconst getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;\nexport const geActionDimensions = (actions) => {\n const actionLen = actions === null || actions === void 0 ? void 0 : actions.length;\n return {\n actionWidth: actionLen ? getAverage(actions.map((action) => action.clientWidth || 0)) : 0,\n actionHeight: actionLen ? getAverage(actions.map((action) => action.clientHeight || 0)) : 0\n };\n};\nconst getMaxActionCount = ({ width, actionWidth, layout, height, actionHeight, groupCount }) => {\n const maxContainerPx = layout === \"horizontal\" ? width : height;\n const avgItemPx = layout === \"horizontal\" ? actionWidth : actionHeight;\n return Math.floor((maxContainerPx - groupCount * groupBufferPx) / avgItemPx);\n};\nexport const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeight, height, groupCount }) => {\n return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);\n};\nexport const queryActions = (el) => {\n return Array.from(el.querySelectorAll(\"calcite-action\")).filter((action) => action.closest(\"calcite-action-menu\") ? action.slot === ACTION_MENU_SLOTS.trigger : true);\n};\nexport const overflowActions = ({ actionGroups, expanded, overflowCount }) => {\n let needToSlotCount = overflowCount;\n actionGroups.reverse().forEach((group) => {\n let slottedWithinGroupCount = 0;\n const groupActions = queryActions(group).reverse();\n groupActions.forEach((groupAction) => {\n if (groupAction.slot === ACTION_GROUP_SLOTS.menuActions) {\n groupAction.removeAttribute(\"slot\");\n groupAction.textEnabled = expanded;\n }\n });\n if (needToSlotCount > 0) {\n groupActions.some((groupAction) => {\n const unslottedActions = groupActions.filter((action) => !action.slot);\n if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest(\"calcite-action-menu\")) {\n groupAction.textEnabled = true;\n groupAction.setAttribute(\"slot\", ACTION_GROUP_SLOTS.menuActions);\n slottedWithinGroupCount++;\n if (slottedWithinGroupCount > 1) {\n needToSlotCount--;\n }\n }\n return needToSlotCount < 1;\n });\n }\n forceUpdate(group);\n });\n};\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 { getElementDir } from \"../../utils/dom\";\nimport { queryActions } from \"../action-bar/utils\";\nimport { SLOTS as ACTION_GROUP_SLOTS } from \"../action-group/resources\";\nconst ICONS = {\n chevronsLeft: \"chevrons-left\",\n chevronsRight: \"chevrons-right\"\n};\nfunction getCalcitePosition(position, el) {\n var _a;\n return position || ((_a = el.closest(\"calcite-shell-panel\")) === null || _a === void 0 ? void 0 : _a.position) || \"start\";\n}\nexport function toggleChildActionText({ parent, expanded }) {\n queryActions(parent)\n .filter((el) => el.slot !== ACTION_GROUP_SLOTS.menuActions)\n .forEach((action) => (action.textEnabled = expanded));\n parent\n .querySelectorAll(\"calcite-action-group, calcite-action-menu\")\n .forEach((el) => (el.expanded = expanded));\n}\nconst setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {\n if (tooltip) {\n tooltip.referenceElement = !expanded && referenceElement ? referenceElement : null;\n }\n if (ref) {\n ref(referenceElement);\n }\n return referenceElement;\n};\nexport const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {\n const rtl = getElementDir(el) === \"rtl\";\n const expandText = expanded ? intlCollapse : intlExpand;\n const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];\n if (rtl) {\n icons.reverse();\n }\n const end = getCalcitePosition(position, el) === \"end\";\n const expandIcon = end ? icons[1] : icons[0];\n const collapseIcon = end ? icons[0] : icons[1];\n const actionNode = (h(\"calcite-action\", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));\n return actionNode;\n};\n"],"version":3}
|
@@ -1,24 +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 { h } from '@stencil/core/internal/client';
|
7
|
-
|
8
|
-
/*!
|
9
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
10
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
11
|
-
* v1.0.0-beta.97
|
12
|
-
*/
|
13
|
-
function constrainHeadingLevel(level) {
|
14
|
-
return Math.min(Math.max(Math.ceil(level), 1), 6);
|
15
|
-
}
|
16
|
-
const Heading = (props, children) => {
|
17
|
-
const HeadingTag = `h${props.level}`;
|
18
|
-
delete props.level;
|
19
|
-
return h(HeadingTag, { ...props }, children);
|
20
|
-
};
|
21
|
-
|
22
|
-
export { Heading as H, constrainHeadingLevel as c };
|
23
|
-
|
24
|
-
//# sourceMappingURL=Heading.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"Heading.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEO,SAAS,qBAAqB,CAAC,KAAK,EAAE;AAC7C,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AACW,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AAC5C,EAAE,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACvC,EAAE,OAAO,KAAK,CAAC,KAAK,CAAC;AACrB,EAAE,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC/C;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/functional/Heading.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 */\nimport { h } from \"@stencil/core\";\nexport function constrainHeadingLevel(level) {\n return Math.min(Math.max(Math.ceil(level), 1), 6);\n}\nexport const Heading = (props, children) => {\n const HeadingTag = `h${props.level}`;\n delete props.level;\n return h(HeadingTag, { ...props }, children);\n};\n"],"version":3}
|
@@ -1,24 +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
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
7
|
-
|
8
|
-
function createCommonjsModule(fn, basedir, module) {
|
9
|
-
return module = {
|
10
|
-
path: basedir,
|
11
|
-
exports: {},
|
12
|
-
require: function (path, base) {
|
13
|
-
return commonjsRequire();
|
14
|
-
}
|
15
|
-
}, fn(module, module.exports), module.exports;
|
16
|
-
}
|
17
|
-
|
18
|
-
function commonjsRequire () {
|
19
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
20
|
-
}
|
21
|
-
|
22
|
-
export { commonjsGlobal as a, commonjsRequire as b, createCommonjsModule as c };
|
23
|
-
|
24
|
-
//# sourceMappingURL=_commonjsHelpers.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"_commonjsHelpers.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,278 +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 toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, g as geActionDimensions, a as overflowActions, E as ExpandToggle, b as getOverflowCount } from './ExpandToggle.js';
|
8
|
-
import { b as getSlotted, f as focusElement } from './dom.js';
|
9
|
-
import { c as createObserver } from './observers.js';
|
10
|
-
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
11
|
-
import { d as defineCustomElement$6 } from './action.js';
|
12
|
-
import { d as defineCustomElement$5 } from './action-group.js';
|
13
|
-
import { d as defineCustomElement$4 } from './action-menu.js';
|
14
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
15
|
-
import { d as defineCustomElement$2 } from './loader.js';
|
16
|
-
import { d as defineCustomElement$1 } from './popover.js';
|
17
|
-
import { d as debounce } from './debounce.js';
|
18
|
-
|
19
|
-
/*!
|
20
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
21
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
22
|
-
* v1.0.0-beta.97
|
23
|
-
*/
|
24
|
-
const CSS = {
|
25
|
-
actionGroupBottom: "action-group--bottom"
|
26
|
-
};
|
27
|
-
const SLOTS = {
|
28
|
-
bottomActions: "bottom-actions",
|
29
|
-
expandTooltip: "expand-tooltip"
|
30
|
-
};
|
31
|
-
const TEXT = {
|
32
|
-
expand: "Expand",
|
33
|
-
collapse: "Collapse"
|
34
|
-
};
|
35
|
-
|
36
|
-
const actionBarCss = "@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{pointer-events:auto;display:inline-flex;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=horizontal]){flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-width:0px;border-inline-end-width:1px;border-style:solid}::slotted(calcite-action-group:last-child){border-block-end-width:0px;border-inline-end-width:0px}.action-group--bottom{flex-grow:1;justify-content:flex-end;-webkit-padding-after:0px;padding-block-end:0px;-webkit-padding-end:0px;padding-inline-end:0px}";
|
37
|
-
|
38
|
-
const ActionBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
39
|
-
constructor() {
|
40
|
-
super();
|
41
|
-
this.__registerHost();
|
42
|
-
this.__attachShadow();
|
43
|
-
this.calciteActionBarToggle = createEvent(this, "calciteActionBarToggle", 6);
|
44
|
-
// --------------------------------------------------------------------------
|
45
|
-
//
|
46
|
-
// Properties
|
47
|
-
//
|
48
|
-
// --------------------------------------------------------------------------
|
49
|
-
/**
|
50
|
-
* When `true`, the expand-toggling behavior is disabled.
|
51
|
-
*/
|
52
|
-
this.expandDisabled = false;
|
53
|
-
/**
|
54
|
-
* When `true`, the component is expanded.
|
55
|
-
*/
|
56
|
-
this.expanded = false;
|
57
|
-
/**
|
58
|
-
* The layout direction of the actions.
|
59
|
-
*/
|
60
|
-
this.layout = "vertical";
|
61
|
-
/**
|
62
|
-
* Disables automatically overflowing `calcite-action`s that won't fit into menus.
|
63
|
-
*/
|
64
|
-
this.overflowActionsDisabled = false;
|
65
|
-
this.mutationObserver = createObserver("mutation", () => {
|
66
|
-
const { el, expanded } = this;
|
67
|
-
toggleChildActionText({ parent: el, expanded });
|
68
|
-
this.conditionallyOverflowActions();
|
69
|
-
});
|
70
|
-
this.resizeObserver = createObserver("resize", (entries) => this.resizeHandlerEntries(entries));
|
71
|
-
// --------------------------------------------------------------------------
|
72
|
-
//
|
73
|
-
// Private Methods
|
74
|
-
//
|
75
|
-
// --------------------------------------------------------------------------
|
76
|
-
this.actionMenuOpenChangeHandler = (event) => {
|
77
|
-
if (event.detail) {
|
78
|
-
const composedPath = event.composedPath();
|
79
|
-
Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((group) => {
|
80
|
-
if (!composedPath.includes(group)) {
|
81
|
-
group.menuOpen = false;
|
82
|
-
}
|
83
|
-
});
|
84
|
-
}
|
85
|
-
};
|
86
|
-
this.resizeHandlerEntries = (entries) => {
|
87
|
-
entries.forEach(this.resizeHandler);
|
88
|
-
};
|
89
|
-
this.resizeHandler = (entry) => {
|
90
|
-
const { width, height } = entry.contentRect;
|
91
|
-
this.resize({ width, height });
|
92
|
-
};
|
93
|
-
this.resize = debounce(({ width, height }) => {
|
94
|
-
const { el, expanded, expandDisabled, layout } = this;
|
95
|
-
if ((layout === "vertical" && !height) || (layout === "horizontal" && !width)) {
|
96
|
-
return;
|
97
|
-
}
|
98
|
-
const actions = queryActions(el);
|
99
|
-
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
100
|
-
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
101
|
-
const groupCount = getSlotted(el, SLOTS.bottomActions) || !expandDisabled
|
102
|
-
? actionGroups.length + 1
|
103
|
-
: actionGroups.length;
|
104
|
-
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
105
|
-
const overflowCount = getOverflowCount({
|
106
|
-
layout,
|
107
|
-
actionCount,
|
108
|
-
actionHeight,
|
109
|
-
actionWidth,
|
110
|
-
height,
|
111
|
-
width,
|
112
|
-
groupCount
|
113
|
-
});
|
114
|
-
overflowActions({
|
115
|
-
actionGroups,
|
116
|
-
expanded,
|
117
|
-
overflowCount
|
118
|
-
});
|
119
|
-
}, overflowActionsDebounceInMs);
|
120
|
-
this.conditionallyOverflowActions = () => {
|
121
|
-
if (!this.overflowActionsDisabled) {
|
122
|
-
this.overflowActions();
|
123
|
-
}
|
124
|
-
};
|
125
|
-
this.toggleExpand = () => {
|
126
|
-
this.expanded = !this.expanded;
|
127
|
-
this.calciteActionBarToggle.emit();
|
128
|
-
};
|
129
|
-
this.setExpandToggleRef = (el) => {
|
130
|
-
this.expandToggleEl = el;
|
131
|
-
};
|
132
|
-
}
|
133
|
-
expandHandler() {
|
134
|
-
this.conditionallyOverflowActions();
|
135
|
-
}
|
136
|
-
expandedHandler(expanded) {
|
137
|
-
toggleChildActionText({ parent: this.el, expanded });
|
138
|
-
this.conditionallyOverflowActions();
|
139
|
-
}
|
140
|
-
overflowDisabledHandler(overflowActionsDisabled) {
|
141
|
-
overflowActionsDisabled
|
142
|
-
? this.resizeObserver.disconnect()
|
143
|
-
: this.resizeObserver.observe(this.el);
|
144
|
-
}
|
145
|
-
// --------------------------------------------------------------------------
|
146
|
-
//
|
147
|
-
// Lifecycle
|
148
|
-
//
|
149
|
-
// --------------------------------------------------------------------------
|
150
|
-
componentDidLoad() {
|
151
|
-
this.conditionallyOverflowActions();
|
152
|
-
}
|
153
|
-
connectedCallback() {
|
154
|
-
var _a, _b;
|
155
|
-
const { el, expanded } = this;
|
156
|
-
toggleChildActionText({ parent: el, expanded });
|
157
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
|
158
|
-
if (!this.overflowActionsDisabled) {
|
159
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|
160
|
-
}
|
161
|
-
this.conditionallyOverflowActions();
|
162
|
-
connectConditionalSlotComponent(this);
|
163
|
-
}
|
164
|
-
disconnectedCallback() {
|
165
|
-
var _a, _b;
|
166
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
167
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
168
|
-
disconnectConditionalSlotComponent(this);
|
169
|
-
}
|
170
|
-
// --------------------------------------------------------------------------
|
171
|
-
//
|
172
|
-
// Methods
|
173
|
-
//
|
174
|
-
// --------------------------------------------------------------------------
|
175
|
-
/**
|
176
|
-
* Overflows actions that won't fit into menus.
|
177
|
-
*
|
178
|
-
* @internal
|
179
|
-
*/
|
180
|
-
async overflowActions() {
|
181
|
-
this.resize({ width: this.el.clientWidth, height: this.el.clientHeight });
|
182
|
-
}
|
183
|
-
/**
|
184
|
-
* Sets focus on the component.
|
185
|
-
*
|
186
|
-
* @param focusId
|
187
|
-
*/
|
188
|
-
async setFocus(focusId) {
|
189
|
-
var _a;
|
190
|
-
if (focusId === "expand-toggle") {
|
191
|
-
await focusElement(this.expandToggleEl);
|
192
|
-
return;
|
193
|
-
}
|
194
|
-
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
195
|
-
}
|
196
|
-
// --------------------------------------------------------------------------
|
197
|
-
//
|
198
|
-
// Render Methods
|
199
|
-
//
|
200
|
-
// --------------------------------------------------------------------------
|
201
|
-
renderBottomActionGroup() {
|
202
|
-
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
203
|
-
const tooltip = getSlotted(el, SLOTS.expandTooltip);
|
204
|
-
const expandLabel = intlExpand || TEXT.expand;
|
205
|
-
const collapseLabel = intlCollapse || TEXT.collapse;
|
206
|
-
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
207
|
-
return getSlotted(el, SLOTS.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS.bottomActions }), h("slot", { name: SLOTS.expandTooltip }), expandToggleNode)) : null;
|
208
|
-
}
|
209
|
-
render() {
|
210
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
211
|
-
}
|
212
|
-
get el() { return this; }
|
213
|
-
static get watchers() { return {
|
214
|
-
"expandDisabled": ["expandHandler"],
|
215
|
-
"expanded": ["expandedHandler"],
|
216
|
-
"overflowActionsDisabled": ["overflowDisabledHandler"]
|
217
|
-
}; }
|
218
|
-
static get style() { return actionBarCss; }
|
219
|
-
}, [1, "calcite-action-bar", {
|
220
|
-
"expandDisabled": [516, "expand-disabled"],
|
221
|
-
"expanded": [1540],
|
222
|
-
"intlExpand": [1, "intl-expand"],
|
223
|
-
"intlCollapse": [1, "intl-collapse"],
|
224
|
-
"layout": [513],
|
225
|
-
"overflowActionsDisabled": [516, "overflow-actions-disabled"],
|
226
|
-
"position": [513],
|
227
|
-
"scale": [513],
|
228
|
-
"overflowActions": [64],
|
229
|
-
"setFocus": [64]
|
230
|
-
}]);
|
231
|
-
function defineCustomElement() {
|
232
|
-
if (typeof customElements === "undefined") {
|
233
|
-
return;
|
234
|
-
}
|
235
|
-
const components = ["calcite-action-bar", "calcite-action", "calcite-action-group", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-popover"];
|
236
|
-
components.forEach(tagName => { switch (tagName) {
|
237
|
-
case "calcite-action-bar":
|
238
|
-
if (!customElements.get(tagName)) {
|
239
|
-
customElements.define(tagName, ActionBar);
|
240
|
-
}
|
241
|
-
break;
|
242
|
-
case "calcite-action":
|
243
|
-
if (!customElements.get(tagName)) {
|
244
|
-
defineCustomElement$6();
|
245
|
-
}
|
246
|
-
break;
|
247
|
-
case "calcite-action-group":
|
248
|
-
if (!customElements.get(tagName)) {
|
249
|
-
defineCustomElement$5();
|
250
|
-
}
|
251
|
-
break;
|
252
|
-
case "calcite-action-menu":
|
253
|
-
if (!customElements.get(tagName)) {
|
254
|
-
defineCustomElement$4();
|
255
|
-
}
|
256
|
-
break;
|
257
|
-
case "calcite-icon":
|
258
|
-
if (!customElements.get(tagName)) {
|
259
|
-
defineCustomElement$3();
|
260
|
-
}
|
261
|
-
break;
|
262
|
-
case "calcite-loader":
|
263
|
-
if (!customElements.get(tagName)) {
|
264
|
-
defineCustomElement$2();
|
265
|
-
}
|
266
|
-
break;
|
267
|
-
case "calcite-popover":
|
268
|
-
if (!customElements.get(tagName)) {
|
269
|
-
defineCustomElement$1();
|
270
|
-
}
|
271
|
-
break;
|
272
|
-
} });
|
273
|
-
}
|
274
|
-
defineCustomElement();
|
275
|
-
|
276
|
-
export { ActionBar as A, defineCustomElement as d };
|
277
|
-
|
278
|
-
//# sourceMappingURL=action-bar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"action-bar.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,iBAAiB,EAAE,sBAAsB;AAC3C,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,aAAa,EAAE,gBAAgB;AACjC,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,MAAM,EAAE,QAAQ;AAClB,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"sources":["./node_modules/@esri/calcite-components/dist/collection/components/action-bar/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css?tag=calcite-action-bar&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.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 actionGroupBottom: \"action-group--bottom\"\n};\nexport const SLOTS = {\n bottomActions: \"bottom-actions\",\n expandTooltip: \"expand-tooltip\"\n};\nexport const TEXT = {\n expand: \"Expand\",\n collapse: \"Collapse\"\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-bar-expanded-max-width: optionally specify the expanded max width of the action bar when in \"vertical\" layout.\n*/\n:host {\n pointer-events: auto;\n display: inline-flex;\n align-self: stretch;\n background: transparent;\n --calcite-action-bar-expanded-max-width: auto;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\n}\n\n:host([layout=horizontal]) {\n flex-direction: row;\n}\n\n:host([layout=vertical][overflow-actions-disabled]) {\n overflow-y: auto;\n}\n\n:host([layout=horizontal][overflow-actions-disabled]) {\n overflow-x: auto;\n}\n\n:host([layout=vertical][expanded]) {\n max-inline-size: var(--calcite-action-bar-expanded-max-width);\n}\n\n::slotted(calcite-action-group) {\n border-width: 0px;\n border-block-end-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n}\n\n:host([layout=horizontal]) ::slotted(calcite-action-group) {\n border-width: 0px;\n border-inline-end-width: 1px;\n border-style: solid;\n}\n\n::slotted(calcite-action-group:last-child) {\n border-block-end-width: 0px;\n border-inline-end-width: 0px;\n}\n\n.action-group--bottom {\n flex-grow: 1;\n justify-content: flex-end;\n padding-block-end: 0px;\n padding-inline-end: 0px;\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 { Host, h } from \"@stencil/core\";\nimport { ExpandToggle, toggleChildActionText } from \"../functional/ExpandToggle\";\nimport { CSS, SLOTS, TEXT } from \"./resources\";\nimport { getSlotted, focusElement } from \"../../utils/dom\";\nimport { geActionDimensions, getOverflowCount, overflowActions, queryActions, overflowActionsDebounceInMs } from \"./utils\";\nimport { createObserver } from \"../../utils/observers\";\nimport { debounce } from \"lodash-es\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\n/**\n * @slot - A slot for adding `calcite-action`s that will appear at the top of the action bar.\n * @slot bottom-actions - A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button.\n * @slot expand-tooltip - Used to set the tooltip for the expand toggle.\n */\nexport class ActionBar {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When `true`, the expand-toggling behavior is disabled.\n */\n this.expandDisabled = false;\n /**\n * When `true`, the component is expanded.\n */\n this.expanded = false;\n /**\n * The layout direction of the actions.\n */\n this.layout = \"vertical\";\n /**\n * Disables automatically overflowing `calcite-action`s that won't fit into menus.\n */\n this.overflowActionsDisabled = false;\n this.mutationObserver = createObserver(\"mutation\", () => {\n const { el, expanded } = this;\n toggleChildActionText({ parent: el, expanded });\n this.conditionallyOverflowActions();\n });\n this.resizeObserver = createObserver(\"resize\", (entries) => this.resizeHandlerEntries(entries));\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.actionMenuOpenChangeHandler = (event) => {\n if (event.detail) {\n const composedPath = event.composedPath();\n Array.from(this.el.querySelectorAll(\"calcite-action-group\")).forEach((group) => {\n if (!composedPath.includes(group)) {\n group.menuOpen = false;\n }\n });\n }\n };\n this.resizeHandlerEntries = (entries) => {\n entries.forEach(this.resizeHandler);\n };\n this.resizeHandler = (entry) => {\n const { width, height } = entry.contentRect;\n this.resize({ width, height });\n };\n this.resize = debounce(({ width, height }) => {\n const { el, expanded, expandDisabled, layout } = this;\n if ((layout === \"vertical\" && !height) || (layout === \"horizontal\" && !width)) {\n return;\n }\n const actions = queryActions(el);\n const actionCount = expandDisabled ? actions.length : actions.length + 1;\n const actionGroups = Array.from(el.querySelectorAll(\"calcite-action-group\"));\n const groupCount = getSlotted(el, SLOTS.bottomActions) || !expandDisabled\n ? actionGroups.length + 1\n : actionGroups.length;\n const { actionHeight, actionWidth } = geActionDimensions(actions);\n const overflowCount = getOverflowCount({\n layout,\n actionCount,\n actionHeight,\n actionWidth,\n height,\n width,\n groupCount\n });\n overflowActions({\n actionGroups,\n expanded,\n overflowCount\n });\n }, overflowActionsDebounceInMs);\n this.conditionallyOverflowActions = () => {\n if (!this.overflowActionsDisabled) {\n this.overflowActions();\n }\n };\n this.toggleExpand = () => {\n this.expanded = !this.expanded;\n this.calciteActionBarToggle.emit();\n };\n this.setExpandToggleRef = (el) => {\n this.expandToggleEl = el;\n };\n }\n expandHandler() {\n this.conditionallyOverflowActions();\n }\n expandedHandler(expanded) {\n toggleChildActionText({ parent: this.el, expanded });\n this.conditionallyOverflowActions();\n }\n overflowDisabledHandler(overflowActionsDisabled) {\n overflowActionsDisabled\n ? this.resizeObserver.disconnect()\n : this.resizeObserver.observe(this.el);\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n componentDidLoad() {\n this.conditionallyOverflowActions();\n }\n connectedCallback() {\n var _a, _b;\n const { el, expanded } = this;\n toggleChildActionText({ parent: el, expanded });\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });\n if (!this.overflowActionsDisabled) {\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);\n }\n this.conditionallyOverflowActions();\n connectConditionalSlotComponent(this);\n }\n disconnectedCallback() {\n var _a, _b;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();\n disconnectConditionalSlotComponent(this);\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Overflows actions that won't fit into menus.\n *\n * @internal\n */\n async overflowActions() {\n this.resize({ width: this.el.clientWidth, height: this.el.clientHeight });\n }\n /**\n * Sets focus on the component.\n *\n * @param focusId\n */\n async setFocus(focusId) {\n var _a;\n if (focusId === \"expand-toggle\") {\n await focusElement(this.expandToggleEl);\n return;\n }\n (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderBottomActionGroup() {\n const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;\n const tooltip = getSlotted(el, SLOTS.expandTooltip);\n const expandLabel = intlExpand || TEXT.expand;\n const collapseLabel = intlCollapse || TEXT.collapse;\n const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;\n return getSlotted(el, SLOTS.bottomActions) || expandToggleNode ? (h(\"calcite-action-group\", { class: CSS.actionGroupBottom, layout: layout, scale: scale }, h(\"slot\", { name: SLOTS.bottomActions }), h(\"slot\", { name: SLOTS.expandTooltip }), expandToggleNode)) : null;\n }\n render() {\n return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h(\"slot\", null), this.renderBottomActionGroup()));\n }\n static get is() { return \"calcite-action-bar\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"action-bar.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"action-bar.css\"]\n };\n }\n static get properties() {\n return {\n \"expandDisabled\": {\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 expand-toggling behavior is disabled.\"\n },\n \"attribute\": \"expand-disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\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 expanded.\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlExpand\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the label of the expand icon when the component is collapsed.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false\n },\n \"intlCollapse\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the label of the collapse icon when the component is expanded.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"horizontal\\\" | \\\"vertical\\\", Layout>\",\n \"resolved\": \"\\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The layout direction of the actions.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"vertical\\\"\"\n },\n \"overflowActionsDisabled\": {\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\": \"Disables automatically overflowing `calcite-action`s that won't fit into menus.\"\n },\n \"attribute\": \"overflow-actions-disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"position\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Arranges the component depending on the element's `dir` property.\"\n },\n \"attribute\": \"position\",\n \"reflect\": true\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 expand `calcite-action`.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteActionBarToggle\",\n \"name\": \"calciteActionBarToggle\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emits when the `expanded` property is toggled.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"overflowActions\": {\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\": \"Overflows actions that won't fit into menus.\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"expand-toggle\\\") => Promise<void>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"focusId\"\n }],\n \"text\": \"\"\n }],\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 \"name\": \"param\",\n \"text\": \"focusId\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"expandDisabled\",\n \"methodName\": \"expandHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }, {\n \"propName\": \"overflowActionsDisabled\",\n \"methodName\": \"overflowDisabledHandler\"\n }];\n }\n}\n"],"version":3}
|