@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,273 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { g as getElementProp, t as toAriaBoolean } from './dom.js';
|
8
|
-
import { u as updateHostInteraction } from './interactive.js';
|
9
|
-
import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale2.js';
|
10
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
11
|
-
|
12
|
-
const stepperItemCss = "@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([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);-webkit-margin-before:1px;margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;-webkit-margin-before:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content ::slotted(:last-child){-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-l);margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-danger-hover)}:host([layout=horizontal]){display:contents}:host([layout=horizontal]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{-webkit-margin-end:0.25rem;margin-inline-end:0.25rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][complete]) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal][error]) .stepper-item-header{border-color:var(--calcite-ui-danger)}:host([layout=horizontal][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}";
|
13
|
-
|
14
|
-
const StepperItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
15
|
-
constructor() {
|
16
|
-
super();
|
17
|
-
this.__registerHost();
|
18
|
-
this.__attachShadow();
|
19
|
-
this.calciteInternalStepperItemKeyEvent = createEvent(this, "calciteInternalStepperItemKeyEvent", 6);
|
20
|
-
this.calciteInternalStepperItemSelect = createEvent(this, "calciteInternalStepperItemSelect", 6);
|
21
|
-
this.calciteInternalUserRequestedStepperItemSelect = createEvent(this, "calciteInternalUserRequestedStepperItemSelect", 6);
|
22
|
-
this.calciteInternalStepperItemRegister = createEvent(this, "calciteInternalStepperItemRegister", 6);
|
23
|
-
//--------------------------------------------------------------------------
|
24
|
-
//
|
25
|
-
// Public Properties
|
26
|
-
//
|
27
|
-
//--------------------------------------------------------------------------
|
28
|
-
/**
|
29
|
-
* When `true`, the component is selected.
|
30
|
-
*
|
31
|
-
* @deprecated Use `selected` instead.
|
32
|
-
*/
|
33
|
-
this.active = false;
|
34
|
-
/**
|
35
|
-
* When `true`, the component is selected.
|
36
|
-
*/
|
37
|
-
this.selected = false;
|
38
|
-
/** When `true`, the step has been completed. */
|
39
|
-
this.complete = false;
|
40
|
-
/** When `true`, the component contains an error that requires resolution from the user. */
|
41
|
-
this.error = false;
|
42
|
-
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
43
|
-
this.disabled = false;
|
44
|
-
// internal props inherited from wrapping calcite-stepper
|
45
|
-
/** Defines the layout of the component. */
|
46
|
-
/** @internal */
|
47
|
-
this.layout = "horizontal";
|
48
|
-
/** When `true`, displays a status icon in the component's heading. */
|
49
|
-
/** @internal */
|
50
|
-
this.icon = false;
|
51
|
-
/** When `true`, displays the step number in the component's heading. */
|
52
|
-
/** @internal */
|
53
|
-
this.numbered = false;
|
54
|
-
/** Specifies the size of the component. */
|
55
|
-
/** @internal */
|
56
|
-
this.scale = "m";
|
57
|
-
//--------------------------------------------------------------------------
|
58
|
-
//
|
59
|
-
// Internal State/Props
|
60
|
-
//
|
61
|
-
//--------------------------------------------------------------------------
|
62
|
-
this.effectiveLocale = "";
|
63
|
-
//--------------------------------------------------------------------------
|
64
|
-
//
|
65
|
-
// Private Methods
|
66
|
-
//
|
67
|
-
//--------------------------------------------------------------------------
|
68
|
-
this.keyDownHandler = (event) => {
|
69
|
-
if (!this.disabled && event.target === this.el) {
|
70
|
-
switch (event.key) {
|
71
|
-
case " ":
|
72
|
-
case "Enter":
|
73
|
-
this.emitUserRequestedItem();
|
74
|
-
event.preventDefault();
|
75
|
-
break;
|
76
|
-
case "ArrowUp":
|
77
|
-
case "ArrowDown":
|
78
|
-
case "ArrowLeft":
|
79
|
-
case "ArrowRight":
|
80
|
-
case "Home":
|
81
|
-
case "End":
|
82
|
-
this.calciteInternalStepperItemKeyEvent.emit({ item: event });
|
83
|
-
event.preventDefault();
|
84
|
-
break;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
};
|
88
|
-
this.handleItemClick = (event) => {
|
89
|
-
if (this.layout === "horizontal" &&
|
90
|
-
event
|
91
|
-
.composedPath()
|
92
|
-
.some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains("stepper-item-content"); })) {
|
93
|
-
return;
|
94
|
-
}
|
95
|
-
this.emitUserRequestedItem();
|
96
|
-
};
|
97
|
-
this.emitUserRequestedItem = () => {
|
98
|
-
this.emitRequestedItem();
|
99
|
-
if (!this.disabled) {
|
100
|
-
const position = this.itemPosition;
|
101
|
-
this.calciteInternalUserRequestedStepperItemSelect.emit({
|
102
|
-
position
|
103
|
-
});
|
104
|
-
}
|
105
|
-
};
|
106
|
-
this.emitRequestedItem = () => {
|
107
|
-
if (!this.disabled) {
|
108
|
-
const position = this.itemPosition;
|
109
|
-
this.calciteInternalStepperItemSelect.emit({
|
110
|
-
position
|
111
|
-
});
|
112
|
-
}
|
113
|
-
};
|
114
|
-
}
|
115
|
-
activeHandler(value) {
|
116
|
-
this.selected = value;
|
117
|
-
}
|
118
|
-
selectedHandler(value) {
|
119
|
-
this.active = value;
|
120
|
-
if (this.selected) {
|
121
|
-
this.emitRequestedItem();
|
122
|
-
}
|
123
|
-
}
|
124
|
-
// watch for removal of disabled to register step
|
125
|
-
disabledWatcher() {
|
126
|
-
this.registerStepperItem();
|
127
|
-
}
|
128
|
-
effectiveLocaleWatcher(locale) {
|
129
|
-
var _a;
|
130
|
-
numberStringFormatter.numberFormatOptions = {
|
131
|
-
locale,
|
132
|
-
numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,
|
133
|
-
useGrouping: false
|
134
|
-
};
|
135
|
-
}
|
136
|
-
//--------------------------------------------------------------------------
|
137
|
-
//
|
138
|
-
// Lifecycle
|
139
|
-
//
|
140
|
-
//--------------------------------------------------------------------------
|
141
|
-
connectedCallback() {
|
142
|
-
connectLocalized(this);
|
143
|
-
const { selected, active } = this;
|
144
|
-
if (selected) {
|
145
|
-
this.active = selected;
|
146
|
-
}
|
147
|
-
else if (active) {
|
148
|
-
this.selected = active;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
componentWillLoad() {
|
152
|
-
var _a;
|
153
|
-
this.icon = getElementProp(this.el, "icon", false);
|
154
|
-
this.numbered = getElementProp(this.el, "numbered", false);
|
155
|
-
this.layout = getElementProp(this.el, "layout", false);
|
156
|
-
this.scale = getElementProp(this.el, "scale", "m");
|
157
|
-
this.parentStepperEl = this.el.parentElement;
|
158
|
-
this.itemPosition = this.getItemPosition();
|
159
|
-
this.registerStepperItem();
|
160
|
-
if (this.selected) {
|
161
|
-
this.emitRequestedItem();
|
162
|
-
}
|
163
|
-
numberStringFormatter.numberFormatOptions = {
|
164
|
-
locale: this.effectiveLocale,
|
165
|
-
numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,
|
166
|
-
useGrouping: false
|
167
|
-
};
|
168
|
-
}
|
169
|
-
componentDidRender() {
|
170
|
-
updateHostInteraction(this, true);
|
171
|
-
}
|
172
|
-
disconnectedCallback() {
|
173
|
-
disconnectLocalized(this);
|
174
|
-
}
|
175
|
-
render() {
|
176
|
-
return (h(Host, { "aria-expanded": toAriaBoolean(this.active), onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, h("div", { class: "container" }, h("div", { class: "stepper-item-header", ref: (el) => (this.headerEl = el), tabIndex:
|
177
|
-
/* additional tab index logic needed because of display: contents */
|
178
|
-
this.layout === "horizontal" && !this.disabled ? 0 : null }, this.icon ? this.renderIcon() : null, this.numbered ? (h("div", { class: "stepper-item-number" }, numberStringFormatter.numberFormatter.format(this.itemPosition + 1), ".")) : null, h("div", { class: "stepper-item-header-text" }, h("span", { class: "stepper-item-heading" }, this.heading || this.itemTitle), h("span", { class: "stepper-item-description" }, this.description || this.itemSubtitle))), h("div", { class: "stepper-item-content" }, h("slot", null)))));
|
179
|
-
}
|
180
|
-
//--------------------------------------------------------------------------
|
181
|
-
//
|
182
|
-
// Event Listeners
|
183
|
-
//
|
184
|
-
//--------------------------------------------------------------------------
|
185
|
-
updateActiveItemOnChange(event) {
|
186
|
-
if (event.target === this.parentStepperEl ||
|
187
|
-
event.composedPath().includes(this.parentStepperEl)) {
|
188
|
-
this.selectedPosition = event.detail.position;
|
189
|
-
this.determineSelectedItem();
|
190
|
-
}
|
191
|
-
}
|
192
|
-
//--------------------------------------------------------------------------
|
193
|
-
//
|
194
|
-
// Public Methods
|
195
|
-
//
|
196
|
-
//--------------------------------------------------------------------------
|
197
|
-
async setFocus() {
|
198
|
-
var _a;
|
199
|
-
(_a = (this.layout === "vertical" ? this.el : this.headerEl)) === null || _a === void 0 ? void 0 : _a.focus();
|
200
|
-
}
|
201
|
-
renderIcon() {
|
202
|
-
const path = this.selected
|
203
|
-
? "circleF"
|
204
|
-
: this.error
|
205
|
-
? "exclamationMarkCircleF"
|
206
|
-
: this.complete
|
207
|
-
? "checkCircleF"
|
208
|
-
: "circle";
|
209
|
-
return h("calcite-icon", { class: "stepper-item-icon", icon: path, scale: "s" });
|
210
|
-
}
|
211
|
-
determineSelectedItem() {
|
212
|
-
this.selected = !this.disabled && this.itemPosition === this.selectedPosition;
|
213
|
-
}
|
214
|
-
registerStepperItem() {
|
215
|
-
this.calciteInternalStepperItemRegister.emit({
|
216
|
-
position: this.itemPosition
|
217
|
-
});
|
218
|
-
}
|
219
|
-
getItemPosition() {
|
220
|
-
var _a;
|
221
|
-
return Array.from((_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
|
222
|
-
}
|
223
|
-
get el() { return this; }
|
224
|
-
static get watchers() { return {
|
225
|
-
"active": ["activeHandler"],
|
226
|
-
"selected": ["selectedHandler"],
|
227
|
-
"disabled": ["disabledWatcher"],
|
228
|
-
"effectiveLocale": ["effectiveLocaleWatcher"]
|
229
|
-
}; }
|
230
|
-
static get style() { return stepperItemCss; }
|
231
|
-
}, [1, "calcite-stepper-item", {
|
232
|
-
"active": [1540],
|
233
|
-
"selected": [1540],
|
234
|
-
"complete": [516],
|
235
|
-
"error": [516],
|
236
|
-
"disabled": [516],
|
237
|
-
"itemTitle": [1, "item-title"],
|
238
|
-
"heading": [1],
|
239
|
-
"itemSubtitle": [1, "item-subtitle"],
|
240
|
-
"description": [1],
|
241
|
-
"layout": [1537],
|
242
|
-
"icon": [1028],
|
243
|
-
"numbered": [1028],
|
244
|
-
"scale": [1537],
|
245
|
-
"effectiveLocale": [32],
|
246
|
-
"setFocus": [64]
|
247
|
-
}, [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]]]);
|
248
|
-
function defineCustomElement$1() {
|
249
|
-
if (typeof customElements === "undefined") {
|
250
|
-
return;
|
251
|
-
}
|
252
|
-
const components = ["calcite-stepper-item", "calcite-icon"];
|
253
|
-
components.forEach(tagName => { switch (tagName) {
|
254
|
-
case "calcite-stepper-item":
|
255
|
-
if (!customElements.get(tagName)) {
|
256
|
-
customElements.define(tagName, StepperItem);
|
257
|
-
}
|
258
|
-
break;
|
259
|
-
case "calcite-icon":
|
260
|
-
if (!customElements.get(tagName)) {
|
261
|
-
defineCustomElement$2();
|
262
|
-
}
|
263
|
-
break;
|
264
|
-
} });
|
265
|
-
}
|
266
|
-
defineCustomElement$1();
|
267
|
-
|
268
|
-
const CalciteStepperItem = StepperItem;
|
269
|
-
const defineCustomElement = defineCustomElement$1;
|
270
|
-
|
271
|
-
export { C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YAAY,KAAK,IAAI,CAAC,gBAAgB,CAAC;GAC/E;EACD,mBAAmB;IACjB,IAAI,CAAC,kCAAkC,CAAC,IAAI,CAAC;MAC3C,QAAQ,EAAE,IAAI,CAAC,YAAY;KAC5B,CAAC,CAAC;GACJ;EACD,eAAe;IACb,IAAI,EAAE,CAAC;IACP,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,eAAe,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;GAClJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css?tag=calcite-stepper-item&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.js"],"sourcesContent":["/* 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([layout=horizontal][disabled]) .stepper-item-header, :host([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([scale=s]) {\n --calcite-stepper-item-spacing-unit-s: 0.25rem;\n --calcite-stepper-item-spacing-unit-m: 0.75rem;\n --calcite-stepper-item-spacing-unit-l: 1rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n margin-inline-end: 0.25rem;\n}\n:host([scale=s]) .stepper-item-description {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n}\n\n:host([scale=m]) {\n --calcite-stepper-item-spacing-unit-s: 0.5rem;\n --calcite-stepper-item-spacing-unit-m: 1rem;\n --calcite-stepper-item-spacing-unit-l: 1.25rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n margin-inline-end: 0.5rem;\n}\n:host([scale=m]) .stepper-item-description {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host([scale=l]) {\n --calcite-stepper-item-spacing-unit-s: 0.75rem;\n --calcite-stepper-item-spacing-unit-m: 1.25rem;\n --calcite-stepper-item-spacing-unit-l: 1.5rem;\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n margin-inline-end: 0.75rem;\n}\n:host([scale=l]) .stepper-item-description {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host {\n position: relative;\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n align-self: flex-start;\n margin-block-end: var(--calcite-stepper-item-spacing-unit-s);\n}\n\n:host .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n cursor: pointer;\n flex-direction: column;\n border-width: 0px;\n border-block-start-width: 2px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n color: var(--calcite-ui-text-3);\n text-decoration-line: none;\n outline: 2px solid transparent;\n outline-offset: 2px;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n:host {\n outline-color: transparent;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n:host .stepper-item-header {\n display: flex;\n cursor: pointer;\n align-items: flex-start;\n}\n\n:host .stepper-item-content, \n:host .stepper-item-header {\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n padding-block: var(--calcite-stepper-item-spacing-unit-l);\n padding-inline-end: var(--calcite-stepper-item-spacing-unit-m);\n text-align: start;\n}\n\n:host .stepper-item-header * {\n display: inline-flex;\n align-items: center;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n:host .stepper-item-content {\n display: none;\n inline-size: 100%;\n flex-direction: column;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n\n:host .stepper-item-icon {\n margin-inline-end: var(--calcite-stepper-item-spacing-unit-m);\n margin-block-start: 1px;\n display: inline-flex;\n block-size: 0.75rem;\n flex-shrink: 0;\n align-self: flex-start;\n color: var(--calcite-ui-text-3);\n opacity: var(--calcite-ui-opacity-disabled);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n:host .stepper-item-header-text {\n flex-direction: column;\n text-align: initial;\n margin-inline-end: auto;\n}\n\n:host .stepper-item-heading, \n:host .stepper-item-description {\n display: flex;\n inline-size: 100%;\n}\n\n:host .stepper-item-heading {\n margin-block-end: 0.25rem;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-2);\n}\n\n:host .stepper-item-description {\n color: var(--calcite-ui-text-3);\n}\n\n:host .stepper-item-number {\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-3);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n margin-inline-end: var(--calcite-stepper-item-spacing-unit-m);\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n:host([complete]) .container {\n border-color: rgba(0, 122, 194, 0.5);\n}\n:host([complete]) .container .stepper-item-icon {\n color: var(--calcite-ui-brand);\n}\n\n:host([error]) .container {\n border-block-start-color: var(--calcite-ui-danger);\n}\n:host([error]) .container .stepper-item-number {\n color: var(--calcite-ui-danger);\n}\n:host([error]) .container .stepper-item-icon {\n opacity: 1;\n color: var(--calcite-ui-danger);\n}\n\n:host(:hover:not([disabled]):not([selected])) .container, \n:host(:focus:not([disabled]):not([selected])) .container {\n border-block-start-color: var(--calcite-ui-brand);\n}\n:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading, \n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading {\n color: var(--calcite-ui-text-1);\n}\n:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description, \n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description {\n color: var(--calcite-ui-text-2);\n}\n\n:host([error]:hover:not([disabled]):not([selected])) .container, \n:host([error]:focus:not([disabled]):not([selected])) .container {\n border-block-start-color: var(--calcite-ui-danger-hover);\n}\n\n:host([selected]) .container {\n border-block-start-color: var(--calcite-ui-brand);\n}\n:host([selected]) .container .stepper-item-heading {\n color: var(--calcite-ui-text-1);\n}\n:host([selected]) .container .stepper-item-description {\n color: var(--calcite-ui-text-2);\n}\n:host([selected]) .container .stepper-item-number {\n color: var(--calcite-ui-brand);\n}\n:host([selected]) .container .stepper-item-icon {\n color: var(--calcite-ui-brand);\n opacity: 1;\n}\n\n:host([selected]) .container .stepper-item-content {\n display: flex;\n}\n\n:host([layout=vertical]) .container {\n margin-inline: 0px;\n margin-block-start: 0px;\n flex: 1 1 auto;\n border-block-start-width: 0px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n padding-block: 0px;\n border-inline-start-width: 2px;\n padding-inline-start: var(--calcite-stepper-item-spacing-unit-l);\n}\n:host([layout=vertical]) .container .stepper-item-icon {\n order: 3;\n margin-block: 1px 0px;\n padding-inline-start: var(--calcite-stepper-item-spacing-unit-s);\n margin-inline-start: auto;\n}\n:host([layout=vertical]) .container .stepper-item-header {\n padding-inline-end: 0px;\n}\n:host([layout=vertical]) .container .stepper-item-content {\n padding: 0px;\n}\n\n:host([layout=vertical][complete]) .container {\n border-color: rgba(0, 122, 194, 0.5);\n}\n\n:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container, \n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container {\n border-color: var(--calcite-ui-brand);\n}\n\n:host([layout=vertical][error]) .container {\n border-color: var(--calcite-ui-danger);\n}\n\n:host([layout=vertical][selected]) .container {\n border-color: var(--calcite-ui-brand);\n}\n:host([layout=vertical][selected]) .container .stepper-item-content ::slotted(:last-child) {\n margin-block-end: var(--calcite-stepper-item-spacing-unit-l);\n}\n\n:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container {\n border-color: rgba(0, 122, 194, 0.5);\n}\n\n:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container, \n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container {\n border-color: var(--calcite-ui-danger-hover);\n}\n\n:host([layout=horizontal]) {\n display: contents;\n}\n:host([layout=horizontal]) .container {\n display: contents;\n}\n:host([layout=horizontal]) .stepper-item-header {\n border-width: 0px;\n border-block-start-width: 2px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n outline-color: transparent;\n grid-row: items;\n margin-inline-end: 0.5rem;\n margin-block-end: var(--calcite-stepper-item-spacing-unit-s);\n}\n:host([layout=horizontal]) .stepper-item-header:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n:host([layout=horizontal]) .stepper-item-content {\n cursor: auto;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n padding-block: 0;\n padding-inline-end: var(--calcite-stepper-item-spacing-unit-m);\n text-align: start;\n}\n\n:host([layout=horizontal][selected]) .stepper-item-content {\n grid-area: 2/1/2/-1;\n}\n\n:host([layout=horizontal][scale=s]) .stepper-item-header {\n margin-inline-end: 0.25rem;\n margin-block-end: var(--calcite-stepper-item-spacing-unit-s);\n}\n\n:host([layout=horizontal][scale=l]) .stepper-item-header {\n margin-inline-end: 0.75rem;\n margin-block-end: var(--calcite-stepper-item-spacing-unit-s);\n}\n\n:host([layout=horizontal][complete]) .stepper-item-header {\n border-color: rgba(0, 122, 194, 0.5);\n}\n\n:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header, \n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header {\n border-color: var(--calcite-ui-brand);\n}\n\n:host([layout=horizontal][error]) .stepper-item-header {\n border-color: var(--calcite-ui-danger);\n}\n\n:host([layout=horizontal][selected]) .stepper-item-header {\n border-color: var(--calcite-ui-brand);\n}\n\n:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header {\n border-color: rgba(0, 122, 194, 0.5);\n}\n\n:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header, \n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header {\n border-color: var(--calcite-ui-danger-hover);\n}\n\n@media (forced-colors: active) {\n :host .container {\n outline-width: 0;\n outline-offset: 0;\n }\n\n :host(:focus),\n:host(:focus-visible) {\n outline-color: canvasText;\n }\n\n :host([selected]) .container {\n border-block-start-color: highlight;\n }\n :host([selected]) .container .stepper-item-number {\n color: highlight;\n }\n :host([selected]) .container .stepper-item-icon {\n color: highlight;\n }\n\n :host([layout=vertical][selected]) .container {\n border-color: highlight;\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, Host } from \"@stencil/core\";\nimport { getElementProp, toAriaBoolean } from \"../../utils/dom\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nimport { numberStringFormatter, disconnectLocalized, connectLocalized } from \"../../utils/locale\";\n/**\n * @slot - A slot for adding custom content.\n */\nexport class StepperItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /**\n * When `true`, the component is selected.\n *\n * @deprecated Use `selected` instead.\n */\n this.active = false;\n /**\n * When `true`, the component is selected.\n */\n this.selected = false;\n /** When `true`, the step has been completed. */\n this.complete = false;\n /** When `true`, the component contains an error that requires resolution from the user. */\n this.error = false;\n /** When `true`, interaction is prevented and the component is displayed with lower opacity. */\n this.disabled = false;\n // internal props inherited from wrapping calcite-stepper\n /** Defines the layout of the component. */\n /** @internal */\n this.layout = \"horizontal\";\n /** When `true`, displays a status icon in the component's heading. */\n /** @internal */\n this.icon = false;\n /** When `true`, displays the step number in the component's heading. */\n /** @internal */\n this.numbered = false;\n /** Specifies the size of the component. */\n /** @internal */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Internal State/Props\n //\n //--------------------------------------------------------------------------\n this.effectiveLocale = \"\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.keyDownHandler = (event) => {\n if (!this.disabled && event.target === this.el) {\n switch (event.key) {\n case \" \":\n case \"Enter\":\n this.emitUserRequestedItem();\n event.preventDefault();\n break;\n case \"ArrowUp\":\n case \"ArrowDown\":\n case \"ArrowLeft\":\n case \"ArrowRight\":\n case \"Home\":\n case \"End\":\n this.calciteInternalStepperItemKeyEvent.emit({ item: event });\n event.preventDefault();\n break;\n }\n }\n };\n this.handleItemClick = (event) => {\n if (this.layout === \"horizontal\" &&\n event\n .composedPath()\n .some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains(\"stepper-item-content\"); })) {\n return;\n }\n this.emitUserRequestedItem();\n };\n this.emitUserRequestedItem = () => {\n this.emitRequestedItem();\n if (!this.disabled) {\n const position = this.itemPosition;\n this.calciteInternalUserRequestedStepperItemSelect.emit({\n position\n });\n }\n };\n this.emitRequestedItem = () => {\n if (!this.disabled) {\n const position = this.itemPosition;\n this.calciteInternalStepperItemSelect.emit({\n position\n });\n }\n };\n }\n activeHandler(value) {\n this.selected = value;\n }\n selectedHandler(value) {\n this.active = value;\n if (this.selected) {\n this.emitRequestedItem();\n }\n }\n // watch for removal of disabled to register step\n disabledWatcher() {\n this.registerStepperItem();\n }\n effectiveLocaleWatcher(locale) {\n var _a;\n numberStringFormatter.numberFormatOptions = {\n locale,\n numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,\n useGrouping: false\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n connectLocalized(this);\n const { selected, active } = this;\n if (selected) {\n this.active = selected;\n }\n else if (active) {\n this.selected = active;\n }\n }\n componentWillLoad() {\n var _a;\n this.icon = getElementProp(this.el, \"icon\", false);\n this.numbered = getElementProp(this.el, \"numbered\", false);\n this.layout = getElementProp(this.el, \"layout\", false);\n this.scale = getElementProp(this.el, \"scale\", \"m\");\n this.parentStepperEl = this.el.parentElement;\n this.itemPosition = this.getItemPosition();\n this.registerStepperItem();\n if (this.selected) {\n this.emitRequestedItem();\n }\n numberStringFormatter.numberFormatOptions = {\n locale: this.effectiveLocale,\n numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,\n useGrouping: false\n };\n }\n componentDidRender() {\n updateHostInteraction(this, true);\n }\n disconnectedCallback() {\n disconnectLocalized(this);\n }\n render() {\n return (h(Host, { \"aria-expanded\": toAriaBoolean(this.active), onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, h(\"div\", { class: \"container\" }, h(\"div\", { class: \"stepper-item-header\", ref: (el) => (this.headerEl = el), tabIndex: \n /* additional tab index logic needed because of display: contents */\n this.layout === \"horizontal\" && !this.disabled ? 0 : null }, this.icon ? this.renderIcon() : null, this.numbered ? (h(\"div\", { class: \"stepper-item-number\" }, numberStringFormatter.numberFormatter.format(this.itemPosition + 1), \".\")) : null, h(\"div\", { class: \"stepper-item-header-text\" }, h(\"span\", { class: \"stepper-item-heading\" }, this.heading || this.itemTitle), h(\"span\", { class: \"stepper-item-description\" }, this.description || this.itemSubtitle))), h(\"div\", { class: \"stepper-item-content\" }, h(\"slot\", null)))));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n updateActiveItemOnChange(event) {\n if (event.target === this.parentStepperEl ||\n event.composedPath().includes(this.parentStepperEl)) {\n this.selectedPosition = event.detail.position;\n this.determineSelectedItem();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n async setFocus() {\n var _a;\n (_a = (this.layout === \"vertical\" ? this.el : this.headerEl)) === null || _a === void 0 ? void 0 : _a.focus();\n }\n renderIcon() {\n const path = this.selected\n ? \"circleF\"\n : this.error\n ? \"exclamationMarkCircleF\"\n : this.complete\n ? \"checkCircleF\"\n : \"circle\";\n return h(\"calcite-icon\", { class: \"stepper-item-icon\", icon: path, scale: \"s\" });\n }\n determineSelectedItem() {\n this.selected = !this.disabled && this.itemPosition === this.selectedPosition;\n }\n registerStepperItem() {\n this.calciteInternalStepperItemRegister.emit({\n position: this.itemPosition\n });\n }\n getItemPosition() {\n var _a;\n return Array.from((_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll(\"calcite-stepper-item\")).indexOf(this.el);\n }\n static get is() { return \"calcite-stepper-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"stepper-item.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"stepper-item.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use `selected` instead.\"\n }],\n \"text\": \"When `true`, the component is selected.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\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 selected.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"complete\": {\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 step has been completed.\"\n },\n \"attribute\": \"complete\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"error\": {\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 contains an error that requires resolution from the user.\"\n },\n \"attribute\": \"error\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, interaction is prevented and the component is displayed with lower opacity.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"itemTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `heading` instead.\"\n }],\n \"text\": \"The component header text.\"\n },\n \"attribute\": \"item-title\",\n \"reflect\": false\n },\n \"heading\": {\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\": \"The component header text.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"itemSubtitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `description` instead.\"\n }],\n \"text\": \"A description for the component. Displays below the header text.\"\n },\n \"attribute\": \"item-subtitle\",\n \"reflect\": false\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"A description for the component. Displays below the header text.\"\n },\n \"attribute\": \"description\",\n \"reflect\": false\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": true,\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\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"icon\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"numbered\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"attribute\": \"numbered\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": true,\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 \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"effectiveLocale\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteInternalStepperItemKeyEvent\",\n \"name\": \"calciteInternalStepperItemKeyEvent\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"StepperItemKeyEventDetail\",\n \"resolved\": \"StepperItemKeyEventDetail\",\n \"references\": {\n \"StepperItemKeyEventDetail\": {\n \"location\": \"import\",\n \"path\": \"../stepper/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteInternalStepperItemSelect\",\n \"name\": \"calciteInternalStepperItemSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"StepperItemEventDetail\",\n \"resolved\": \"StepperItemEventDetail\",\n \"references\": {\n \"StepperItemEventDetail\": {\n \"location\": \"import\",\n \"path\": \"../stepper/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteInternalUserRequestedStepperItemSelect\",\n \"name\": \"calciteInternalUserRequestedStepperItemSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"StepperItemChangeEventDetail\",\n \"resolved\": \"StepperItemChangeEventDetail\",\n \"references\": {\n \"StepperItemChangeEventDetail\": {\n \"location\": \"import\",\n \"path\": \"../stepper/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteInternalStepperItemRegister\",\n \"name\": \"calciteInternalStepperItemRegister\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"StepperItemEventDetail\",\n \"resolved\": \"StepperItemEventDetail\",\n \"references\": {\n \"StepperItemEventDetail\": {\n \"location\": \"import\",\n \"path\": \"../stepper/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\": \"\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"selected\",\n \"methodName\": \"selectedHandler\"\n }, {\n \"propName\": \"disabled\",\n \"methodName\": \"disabledWatcher\"\n }, {\n \"propName\": \"effectiveLocale\",\n \"methodName\": \"effectiveLocaleWatcher\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"calciteInternalStepperItemChange\",\n \"method\": \"updateActiveItemOnChange\",\n \"target\": \"body\",\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|
@@ -1,258 +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 } from '@stencil/core/internal/client';
|
7
|
-
import { f as focusElement } from './dom.js';
|
8
|
-
|
9
|
-
const stepperCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:\"items\" \"content\"}";
|
10
|
-
|
11
|
-
const Stepper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
12
|
-
constructor() {
|
13
|
-
super();
|
14
|
-
this.__registerHost();
|
15
|
-
this.__attachShadow();
|
16
|
-
this.calciteStepperItemChange = createEvent(this, "calciteStepperItemChange", 6);
|
17
|
-
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 6);
|
18
|
-
//--------------------------------------------------------------------------
|
19
|
-
//
|
20
|
-
// Public Properties
|
21
|
-
//
|
22
|
-
//--------------------------------------------------------------------------
|
23
|
-
/** When `true`, displays a status icon in the `calcite-stepper-item` heading. */
|
24
|
-
this.icon = false;
|
25
|
-
/** Defines the layout of the component. */
|
26
|
-
this.layout = "horizontal";
|
27
|
-
/** When `true`, displays the step number in the `calcite-stepper-item` heading. */
|
28
|
-
this.numbered = false;
|
29
|
-
/** Specifies the size of the component. */
|
30
|
-
this.scale = "m";
|
31
|
-
//--------------------------------------------------------------------------
|
32
|
-
//
|
33
|
-
// Private State/Props
|
34
|
-
//
|
35
|
-
//--------------------------------------------------------------------------
|
36
|
-
this.itemMap = new Map();
|
37
|
-
/** list of sorted Stepper items */
|
38
|
-
this.items = [];
|
39
|
-
/** list of enabled Stepper items */
|
40
|
-
this.enabledItems = [];
|
41
|
-
}
|
42
|
-
//--------------------------------------------------------------------------
|
43
|
-
//
|
44
|
-
// Lifecycle
|
45
|
-
//
|
46
|
-
//--------------------------------------------------------------------------
|
47
|
-
componentDidLoad() {
|
48
|
-
// if no stepper items are set as active, default to the first one
|
49
|
-
if (typeof this.currentPosition !== "number") {
|
50
|
-
this.calciteInternalStepperItemChange.emit({
|
51
|
-
position: 0
|
52
|
-
});
|
53
|
-
}
|
54
|
-
}
|
55
|
-
render() {
|
56
|
-
return (h("slot", { onSlotchange: (event) => {
|
57
|
-
const items = event.currentTarget
|
58
|
-
.assignedElements()
|
59
|
-
.filter((el) => (el === null || el === void 0 ? void 0 : el.tagName) === "CALCITE-STEPPER-ITEM");
|
60
|
-
const spacing = Array(items.length).fill("1fr").join(" ");
|
61
|
-
this.el.style.gridTemplateAreas = spacing;
|
62
|
-
this.el.style.gridTemplateColumns = spacing;
|
63
|
-
} }));
|
64
|
-
}
|
65
|
-
//--------------------------------------------------------------------------
|
66
|
-
//
|
67
|
-
// Event Listeners
|
68
|
-
//
|
69
|
-
//--------------------------------------------------------------------------
|
70
|
-
calciteInternalStepperItemKeyEvent(event) {
|
71
|
-
const item = event.detail.item;
|
72
|
-
const itemToFocus = event.target;
|
73
|
-
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
74
|
-
const isLastItem = this.itemIndex(itemToFocus) === this.enabledItems.length - 1;
|
75
|
-
switch (item.key) {
|
76
|
-
case "ArrowDown":
|
77
|
-
case "ArrowRight":
|
78
|
-
if (isLastItem) {
|
79
|
-
this.focusFirstItem();
|
80
|
-
}
|
81
|
-
else {
|
82
|
-
this.focusNextItem(itemToFocus);
|
83
|
-
}
|
84
|
-
break;
|
85
|
-
case "ArrowUp":
|
86
|
-
case "ArrowLeft":
|
87
|
-
if (isFirstItem) {
|
88
|
-
this.focusLastItem();
|
89
|
-
}
|
90
|
-
else {
|
91
|
-
this.focusPrevItem(itemToFocus);
|
92
|
-
}
|
93
|
-
break;
|
94
|
-
case "Home":
|
95
|
-
this.focusFirstItem();
|
96
|
-
break;
|
97
|
-
case "End":
|
98
|
-
this.focusLastItem();
|
99
|
-
break;
|
100
|
-
}
|
101
|
-
event.stopPropagation();
|
102
|
-
}
|
103
|
-
registerItem(event) {
|
104
|
-
const item = event.target;
|
105
|
-
const { content, position } = event.detail;
|
106
|
-
this.itemMap.set(item, { position, content });
|
107
|
-
this.items = this.sortItems();
|
108
|
-
this.enabledItems = this.filterItems();
|
109
|
-
event.stopPropagation();
|
110
|
-
}
|
111
|
-
updateItem(event) {
|
112
|
-
const { position } = event.detail;
|
113
|
-
if (typeof position === "number") {
|
114
|
-
this.currentPosition = position;
|
115
|
-
}
|
116
|
-
this.calciteInternalStepperItemChange.emit({
|
117
|
-
position
|
118
|
-
});
|
119
|
-
}
|
120
|
-
handleUserRequestedStepperItemSelect(event) {
|
121
|
-
const { position } = event.detail;
|
122
|
-
this.calciteStepperItemChange.emit({
|
123
|
-
position
|
124
|
-
});
|
125
|
-
}
|
126
|
-
//--------------------------------------------------------------------------
|
127
|
-
//
|
128
|
-
// Public Methods
|
129
|
-
//
|
130
|
-
//--------------------------------------------------------------------------
|
131
|
-
/** Set the next `calcite-stepper-item` as active. */
|
132
|
-
async nextStep() {
|
133
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.currentPosition + 1, "next");
|
134
|
-
if (typeof enabledStepIndex !== "number") {
|
135
|
-
return;
|
136
|
-
}
|
137
|
-
this.updateStep(enabledStepIndex);
|
138
|
-
}
|
139
|
-
/** Set the previous `calcite-stepper-item` as active. */
|
140
|
-
async prevStep() {
|
141
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.currentPosition - 1, "previous");
|
142
|
-
if (typeof enabledStepIndex !== "number") {
|
143
|
-
return;
|
144
|
-
}
|
145
|
-
this.updateStep(enabledStepIndex);
|
146
|
-
}
|
147
|
-
/**
|
148
|
-
* Set a specified `calcite-stepper-item` as active.
|
149
|
-
*
|
150
|
-
* @param step
|
151
|
-
*/
|
152
|
-
async goToStep(step) {
|
153
|
-
const position = step - 1;
|
154
|
-
if (this.currentPosition !== position) {
|
155
|
-
this.updateStep(position);
|
156
|
-
}
|
157
|
-
}
|
158
|
-
/** Set the first `calcite-stepper-item` as active. */
|
159
|
-
async startStep() {
|
160
|
-
const enabledStepIndex = this.getEnabledStepIndex(0, "next");
|
161
|
-
if (typeof enabledStepIndex !== "number") {
|
162
|
-
return;
|
163
|
-
}
|
164
|
-
this.updateStep(enabledStepIndex);
|
165
|
-
}
|
166
|
-
/** Set the last `calcite-stepper-item` as active. */
|
167
|
-
async endStep() {
|
168
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.items.length - 1, "previous");
|
169
|
-
if (typeof enabledStepIndex !== "number") {
|
170
|
-
return;
|
171
|
-
}
|
172
|
-
this.updateStep(enabledStepIndex);
|
173
|
-
}
|
174
|
-
//--------------------------------------------------------------------------
|
175
|
-
//
|
176
|
-
// Private Methods
|
177
|
-
//
|
178
|
-
//--------------------------------------------------------------------------
|
179
|
-
getEnabledStepIndex(startIndex, direction = "next") {
|
180
|
-
var _a;
|
181
|
-
const { items, currentPosition } = this;
|
182
|
-
let newIndex = startIndex;
|
183
|
-
while ((_a = items[newIndex]) === null || _a === void 0 ? void 0 : _a.disabled) {
|
184
|
-
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
185
|
-
}
|
186
|
-
return newIndex !== currentPosition && newIndex < items.length && newIndex >= 0
|
187
|
-
? newIndex
|
188
|
-
: null;
|
189
|
-
}
|
190
|
-
updateStep(position) {
|
191
|
-
this.currentPosition = position;
|
192
|
-
this.calciteInternalStepperItemChange.emit({
|
193
|
-
position
|
194
|
-
});
|
195
|
-
}
|
196
|
-
focusFirstItem() {
|
197
|
-
const firstItem = this.enabledItems[0];
|
198
|
-
focusElement(firstItem);
|
199
|
-
}
|
200
|
-
focusLastItem() {
|
201
|
-
const lastItem = this.enabledItems[this.enabledItems.length - 1];
|
202
|
-
focusElement(lastItem);
|
203
|
-
}
|
204
|
-
focusNextItem(el) {
|
205
|
-
const index = this.itemIndex(el);
|
206
|
-
const nextItem = this.enabledItems[index + 1] || this.enabledItems[0];
|
207
|
-
focusElement(nextItem);
|
208
|
-
}
|
209
|
-
focusPrevItem(el) {
|
210
|
-
const index = this.itemIndex(el);
|
211
|
-
const prevItem = this.enabledItems[index - 1] || this.enabledItems[this.enabledItems.length - 1];
|
212
|
-
focusElement(prevItem);
|
213
|
-
}
|
214
|
-
itemIndex(el) {
|
215
|
-
return this.enabledItems.indexOf(el);
|
216
|
-
}
|
217
|
-
sortItems() {
|
218
|
-
const { itemMap } = this;
|
219
|
-
return Array.from(itemMap.keys()).sort((a, b) => itemMap.get(a).position - itemMap.get(b).position);
|
220
|
-
}
|
221
|
-
filterItems() {
|
222
|
-
return this.items.filter((item) => !item.disabled);
|
223
|
-
}
|
224
|
-
get el() { return this; }
|
225
|
-
static get style() { return stepperCss; }
|
226
|
-
}, [1, "calcite-stepper", {
|
227
|
-
"icon": [516],
|
228
|
-
"layout": [513],
|
229
|
-
"numbered": [516],
|
230
|
-
"numberingSystem": [513, "numbering-system"],
|
231
|
-
"scale": [513],
|
232
|
-
"nextStep": [64],
|
233
|
-
"prevStep": [64],
|
234
|
-
"goToStep": [64],
|
235
|
-
"startStep": [64],
|
236
|
-
"endStep": [64]
|
237
|
-
}, [[0, "calciteInternalStepperItemKeyEvent", "calciteInternalStepperItemKeyEvent"], [0, "calciteInternalStepperItemRegister", "registerItem"], [0, "calciteInternalStepperItemSelect", "updateItem"], [0, "calciteInternalUserRequestedStepperItemSelect", "handleUserRequestedStepperItemSelect"]]]);
|
238
|
-
function defineCustomElement$1() {
|
239
|
-
if (typeof customElements === "undefined") {
|
240
|
-
return;
|
241
|
-
}
|
242
|
-
const components = ["calcite-stepper"];
|
243
|
-
components.forEach(tagName => { switch (tagName) {
|
244
|
-
case "calcite-stepper":
|
245
|
-
if (!customElements.get(tagName)) {
|
246
|
-
customElements.define(tagName, Stepper);
|
247
|
-
}
|
248
|
-
break;
|
249
|
-
} });
|
250
|
-
}
|
251
|
-
defineCustomElement$1();
|
252
|
-
|
253
|
-
const CalciteStepper = Stepper;
|
254
|
-
const defineCustomElement = defineCustomElement$1;
|
255
|
-
|
256
|
-
export { CalciteStepper, defineCustomElement };
|
257
|
-
|
258
|
-
//# sourceMappingURL=calcite-stepper.js.map
|