@esri/solutions-components 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -3
- package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-893499a5.js} +3 -1
- package/dist/cjs/solution-store-893499a5.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +9 -2
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
- package/dist/collection/components/solution-item/solution-item.js +2 -0
- package/dist/collection/components/solution-item/solution-item.js.map +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
- package/dist/collection/utils/solution-store.js +2 -0
- package/dist/collection/utils/solution-store.js.map +1 -1
- package/dist/collection/utils/solution-store.ts +2 -0
- package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
- package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
- package/dist/esm/solution-configuration.entry.js +10 -3
- package/dist/esm/solution-configuration.entry.js.map +1 -1
- package/dist/esm/solution-contents_3.entry.js +3 -1
- package/dist/esm/solution-contents_3.entry.js.map +1 -1
- package/dist/esm/{solution-store-b3c65467.js → solution-store-0c58c852.js} +3 -1
- package/dist/esm/solution-store-0c58c852.js.map +1 -0
- package/dist/solutions-components/{p-b25f6ebe.js → p-659edb14.js} +3 -1
- package/dist/solutions-components/p-659edb14.js.map +1 -0
- package/dist/solutions-components/{p-638738f2.entry.js → p-77c75f3a.entry.js} +4 -2
- package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
- package/dist/solutions-components/{p-7e8985f2.entry.js → p-90629c1d.entry.js} +11 -4
- package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
- package/dist/solutions-components/{p-542189bc.entry.js → p-984cb687.entry.js} +17 -7
- package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/solution-store.ts +2 -0
- package/dist/solutions-components_commit.txt +9 -6
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/solution-store-e2fc11ac.js.map +0 -1
- package/dist/components/ExpandToggle.js +0 -112
- package/dist/components/ExpandToggle.js.map +0 -1
- package/dist/components/Heading.js +0 -24
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -24
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/action-bar.js +0 -278
- package/dist/components/action-bar.js.map +0 -1
- package/dist/components/action-group.js +0 -151
- package/dist/components/action-group.js.map +0 -1
- package/dist/components/action-menu.js +0 -358
- package/dist/components/action-menu.js.map +0 -1
- package/dist/components/action.js +0 -216
- package/dist/components/action.js.map +0 -1
- package/dist/components/array.js +0 -17
- package/dist/components/array.js.map +0 -1
- package/dist/components/buffer-tools.d.ts +0 -11
- package/dist/components/buffer-tools.js +0 -13
- package/dist/components/buffer-tools.js.map +0 -1
- package/dist/components/buffer-tools2.js +0 -256
- package/dist/components/buffer-tools2.js.map +0 -1
- package/dist/components/button.js +0 -265
- package/dist/components/button.js.map +0 -1
- package/dist/components/calcite-accordion-item.js +0 -246
- package/dist/components/calcite-accordion-item.js.map +0 -1
- package/dist/components/calcite-accordion.js +0 -182
- package/dist/components/calcite-accordion.js.map +0 -1
- package/dist/components/calcite-action-bar.js +0 -13
- package/dist/components/calcite-action-bar.js.map +0 -1
- package/dist/components/calcite-action-group.js +0 -13
- package/dist/components/calcite-action-group.js.map +0 -1
- package/dist/components/calcite-action-menu.js +0 -13
- package/dist/components/calcite-action-menu.js.map +0 -1
- package/dist/components/calcite-action-pad.js +0 -199
- package/dist/components/calcite-action-pad.js.map +0 -1
- package/dist/components/calcite-action.js +0 -13
- package/dist/components/calcite-action.js.map +0 -1
- package/dist/components/calcite-alert.js +0 -299
- package/dist/components/calcite-alert.js.map +0 -1
- package/dist/components/calcite-avatar.js +0 -184
- package/dist/components/calcite-avatar.js.map +0 -1
- package/dist/components/calcite-block-section.js +0 -157
- package/dist/components/calcite-block-section.js.map +0 -1
- package/dist/components/calcite-block.js +0 -277
- package/dist/components/calcite-block.js.map +0 -1
- package/dist/components/calcite-button.js +0 -13
- package/dist/components/calcite-button.js.map +0 -1
- package/dist/components/calcite-card.js +0 -189
- package/dist/components/calcite-card.js.map +0 -1
- package/dist/components/calcite-checkbox.js +0 -13
- package/dist/components/calcite-checkbox.js.map +0 -1
- package/dist/components/calcite-chip.js +0 -13
- package/dist/components/calcite-chip.js.map +0 -1
- package/dist/components/calcite-color-picker-hex-input.js +0 -13
- package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
- package/dist/components/calcite-color-picker-swatch.js +0 -13
- package/dist/components/calcite-color-picker-swatch.js.map +0 -1
- package/dist/components/calcite-color-picker.js +0 -1038
- package/dist/components/calcite-color-picker.js.map +0 -1
- package/dist/components/calcite-combobox-item-group.js +0 -77
- package/dist/components/calcite-combobox-item-group.js.map +0 -1
- package/dist/components/calcite-combobox-item.js +0 -13
- package/dist/components/calcite-combobox-item.js.map +0 -1
- package/dist/components/calcite-combobox.js +0 -13
- package/dist/components/calcite-combobox.js.map +0 -1
- package/dist/components/calcite-date-picker-day.js +0 -13
- package/dist/components/calcite-date-picker-day.js.map +0 -1
- package/dist/components/calcite-date-picker-month-header.js +0 -13
- package/dist/components/calcite-date-picker-month-header.js.map +0 -1
- package/dist/components/calcite-date-picker-month.js +0 -13
- package/dist/components/calcite-date-picker-month.js.map +0 -1
- package/dist/components/calcite-date-picker.js +0 -13
- package/dist/components/calcite-date-picker.js.map +0 -1
- package/dist/components/calcite-dropdown-group.js +0 -101
- package/dist/components/calcite-dropdown-group.js.map +0 -1
- package/dist/components/calcite-dropdown-item.js +0 -237
- package/dist/components/calcite-dropdown-item.js.map +0 -1
- package/dist/components/calcite-dropdown.js +0 -13
- package/dist/components/calcite-dropdown.js.map +0 -1
- package/dist/components/calcite-fab.js +0 -146
- package/dist/components/calcite-fab.js.map +0 -1
- package/dist/components/calcite-filter.js +0 -197
- package/dist/components/calcite-filter.js.map +0 -1
- package/dist/components/calcite-flow-item.js +0 -245
- package/dist/components/calcite-flow-item.js.map +0 -1
- package/dist/components/calcite-flow.js +0 -149
- package/dist/components/calcite-flow.js.map +0 -1
- package/dist/components/calcite-graph.js +0 -13
- package/dist/components/calcite-graph.js.map +0 -1
- package/dist/components/calcite-handle.js +0 -13
- package/dist/components/calcite-handle.js.map +0 -1
- package/dist/components/calcite-icon.js +0 -13
- package/dist/components/calcite-icon.js.map +0 -1
- package/dist/components/calcite-inline-editable.js +0 -296
- package/dist/components/calcite-inline-editable.js.map +0 -1
- package/dist/components/calcite-input-date-picker.js +0 -715
- package/dist/components/calcite-input-date-picker.js.map +0 -1
- package/dist/components/calcite-input-message.js +0 -13
- package/dist/components/calcite-input-message.js.map +0 -1
- package/dist/components/calcite-input-number.js +0 -639
- package/dist/components/calcite-input-number.js.map +0 -1
- package/dist/components/calcite-input-text.js +0 -402
- package/dist/components/calcite-input-text.js.map +0 -1
- package/dist/components/calcite-input-time-picker.js +0 -436
- package/dist/components/calcite-input-time-picker.js.map +0 -1
- package/dist/components/calcite-input.js +0 -13
- package/dist/components/calcite-input.js.map +0 -1
- package/dist/components/calcite-label.js +0 -13
- package/dist/components/calcite-label.js.map +0 -1
- package/dist/components/calcite-link.js +0 -13
- package/dist/components/calcite-link.js.map +0 -1
- package/dist/components/calcite-list-item-group.js +0 -67
- package/dist/components/calcite-list-item-group.js.map +0 -1
- package/dist/components/calcite-list-item.js +0 -13
- package/dist/components/calcite-list-item.js.map +0 -1
- package/dist/components/calcite-list.js +0 -13
- package/dist/components/calcite-list.js.map +0 -1
- package/dist/components/calcite-loader.js +0 -13
- package/dist/components/calcite-loader.js.map +0 -1
- package/dist/components/calcite-modal.js +0 -500
- package/dist/components/calcite-modal.js.map +0 -1
- package/dist/components/calcite-notice.js +0 -13
- package/dist/components/calcite-notice.js.map +0 -1
- package/dist/components/calcite-option-group.js +0 -66
- package/dist/components/calcite-option-group.js.map +0 -1
- package/dist/components/calcite-option.js +0 -13
- package/dist/components/calcite-option.js.map +0 -1
- package/dist/components/calcite-pagination.js +0 -260
- package/dist/components/calcite-pagination.js.map +0 -1
- package/dist/components/calcite-panel.js +0 -13
- package/dist/components/calcite-panel.js.map +0 -1
- package/dist/components/calcite-pick-list-group.js +0 -76
- package/dist/components/calcite-pick-list-group.js.map +0 -1
- package/dist/components/calcite-pick-list-item.js +0 -13
- package/dist/components/calcite-pick-list-item.js.map +0 -1
- package/dist/components/calcite-pick-list.js +0 -175
- package/dist/components/calcite-pick-list.js.map +0 -1
- package/dist/components/calcite-popover-manager.js +0 -96
- package/dist/components/calcite-popover-manager.js.map +0 -1
- package/dist/components/calcite-popover.js +0 -13
- package/dist/components/calcite-popover.js.map +0 -1
- package/dist/components/calcite-progress.js +0 -13
- package/dist/components/calcite-progress.js.map +0 -1
- package/dist/components/calcite-radio-button-group.js +0 -134
- package/dist/components/calcite-radio-button-group.js.map +0 -1
- package/dist/components/calcite-radio-button.js +0 -312
- package/dist/components/calcite-radio-button.js.map +0 -1
- package/dist/components/calcite-radio-group-item.js +0 -13
- package/dist/components/calcite-radio-group-item.js.map +0 -1
- package/dist/components/calcite-radio-group.js +0 -13
- package/dist/components/calcite-radio-group.js.map +0 -1
- package/dist/components/calcite-rating.js +0 -203
- package/dist/components/calcite-rating.js.map +0 -1
- package/dist/components/calcite-scrim.js +0 -13
- package/dist/components/calcite-scrim.js.map +0 -1
- package/dist/components/calcite-select.js +0 -13
- package/dist/components/calcite-select.js.map +0 -1
- package/dist/components/calcite-shell-center-row.js +0 -102
- package/dist/components/calcite-shell-center-row.js.map +0 -1
- package/dist/components/calcite-shell-panel.js +0 -13
- package/dist/components/calcite-shell-panel.js.map +0 -1
- package/dist/components/calcite-shell.js +0 -13
- package/dist/components/calcite-shell.js.map +0 -1
- package/dist/components/calcite-slider.js +0 -13
- package/dist/components/calcite-slider.js.map +0 -1
- package/dist/components/calcite-sortable-list.js +0 -204
- package/dist/components/calcite-sortable-list.js.map +0 -1
- package/dist/components/calcite-split-button.js +0 -170
- package/dist/components/calcite-split-button.js.map +0 -1
- package/dist/components/calcite-stepper-item.js +0 -273
- package/dist/components/calcite-stepper-item.js.map +0 -1
- package/dist/components/calcite-stepper.js +0 -258
- package/dist/components/calcite-stepper.js.map +0 -1
- package/dist/components/calcite-switch.js +0 -13
- package/dist/components/calcite-switch.js.map +0 -1
- package/dist/components/calcite-tab-nav.js +0 -13
- package/dist/components/calcite-tab-nav.js.map +0 -1
- package/dist/components/calcite-tab-title.js +0 -13
- package/dist/components/calcite-tab-title.js.map +0 -1
- package/dist/components/calcite-tab.js +0 -13
- package/dist/components/calcite-tab.js.map +0 -1
- package/dist/components/calcite-tabs.js +0 -13
- package/dist/components/calcite-tabs.js.map +0 -1
- package/dist/components/calcite-tile-select-group.js +0 -67
- package/dist/components/calcite-tile-select-group.js.map +0 -1
- package/dist/components/calcite-tile-select.js +0 -268
- package/dist/components/calcite-tile-select.js.map +0 -1
- package/dist/components/calcite-tile.js +0 -13
- package/dist/components/calcite-tile.js.map +0 -1
- package/dist/components/calcite-time-picker.js +0 -13
- package/dist/components/calcite-time-picker.js.map +0 -1
- package/dist/components/calcite-tip-group.js +0 -43
- package/dist/components/calcite-tip-group.js.map +0 -1
- package/dist/components/calcite-tip-manager.js +0 -225
- package/dist/components/calcite-tip-manager.js.map +0 -1
- package/dist/components/calcite-tip.js +0 -164
- package/dist/components/calcite-tip.js.map +0 -1
- package/dist/components/calcite-tooltip-manager.js +0 -59
- package/dist/components/calcite-tooltip-manager.js.map +0 -1
- package/dist/components/calcite-tooltip.js +0 -13
- package/dist/components/calcite-tooltip.js.map +0 -1
- package/dist/components/calcite-tree-item.js +0 -13
- package/dist/components/calcite-tree-item.js.map +0 -1
- package/dist/components/calcite-tree.js +0 -13
- package/dist/components/calcite-tree.js.map +0 -1
- package/dist/components/calcite-value-list-item.js +0 -13
- package/dist/components/calcite-value-list-item.js.map +0 -1
- package/dist/components/calcite-value-list.js +0 -13
- package/dist/components/calcite-value-list.js.map +0 -1
- package/dist/components/check-list.d.ts +0 -11
- package/dist/components/check-list.js +0 -13
- package/dist/components/check-list.js.map +0 -1
- package/dist/components/check-list2.js +0 -128
- package/dist/components/check-list2.js.map +0 -1
- package/dist/components/checkbox.js +0 -167
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/chip.js +0 -172
- package/dist/components/chip.js.map +0 -1
- package/dist/components/color-picker-hex-input.js +0 -365
- package/dist/components/color-picker-hex-input.js.map +0 -1
- package/dist/components/color-picker-swatch.js +0 -2036
- package/dist/components/color-picker-swatch.js.map +0 -1
- package/dist/components/combobox-item.js +0 -184
- package/dist/components/combobox-item.js.map +0 -1
- package/dist/components/combobox.js +0 -914
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/conditionalSlot.js +0 -52
- package/dist/components/conditionalSlot.js.map +0 -1
- package/dist/components/config-buffer-tools.d.ts +0 -11
- package/dist/components/config-buffer-tools.js +0 -185
- package/dist/components/config-buffer-tools.js.map +0 -1
- package/dist/components/config-draw-tools.d.ts +0 -11
- package/dist/components/config-draw-tools.js +0 -124
- package/dist/components/config-draw-tools.js.map +0 -1
- package/dist/components/config-layer-picker.d.ts +0 -11
- package/dist/components/config-layer-picker.js +0 -148
- package/dist/components/config-layer-picker.js.map +0 -1
- package/dist/components/config-pdf-download.d.ts +0 -11
- package/dist/components/config-pdf-download.js +0 -157
- package/dist/components/config-pdf-download.js.map +0 -1
- package/dist/components/date-picker-day.js +0 -113
- package/dist/components/date-picker-day.js.map +0 -1
- package/dist/components/date-picker-month-header.js +0 -226
- package/dist/components/date-picker-month-header.js.map +0 -1
- package/dist/components/date-picker-month.js +0 -346
- package/dist/components/date-picker-month.js.map +0 -1
- package/dist/components/date-picker.js +0 -577
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date.js +0 -182
- package/dist/components/date.js.map +0 -1
- package/dist/components/debounce.js +0 -489
- package/dist/components/debounce.js.map +0 -1
- package/dist/components/dom.js +0 -233
- package/dist/components/dom.js.map +0 -1
- package/dist/components/dropdown.js +0 -507
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/filter.js +0 -765
- package/dist/components/filter.js.map +0 -1
- package/dist/components/floating-ui.js +0 -1787
- package/dist/components/floating-ui.js.map +0 -1
- package/dist/components/form.js +0 -230
- package/dist/components/form.js.map +0 -1
- package/dist/components/graph.js +0 -256
- package/dist/components/graph.js.map +0 -1
- package/dist/components/guid.js +0 -26
- package/dist/components/guid.js.map +0 -1
- package/dist/components/handle.js +0 -121
- package/dist/components/handle.js.map +0 -1
- package/dist/components/icon.js +0 -204
- package/dist/components/icon.js.map +0 -1
- package/dist/components/index.d.ts +0 -48
- package/dist/components/index.js +0 -190
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js +0 -201
- package/dist/components/index2.js.map +0 -1
- package/dist/components/input-message.js +0 -103
- package/dist/components/input-message.js.map +0 -1
- package/dist/components/input.js +0 -742
- package/dist/components/input.js.map +0 -1
- package/dist/components/interactive.js +0 -53
- package/dist/components/interactive.js.map +0 -1
- package/dist/components/interfaces.js +0 -21
- package/dist/components/interfaces.js.map +0 -1
- package/dist/components/interfaces2.js +0 -23
- package/dist/components/interfaces2.js.map +0 -1
- package/dist/components/interfaces3.js +0 -72
- package/dist/components/interfaces3.js.map +0 -1
- package/dist/components/json-editor.d.ts +0 -11
- package/dist/components/json-editor.js +0 -13
- package/dist/components/json-editor.js.map +0 -1
- package/dist/components/json-editor2.js +0 -443
- package/dist/components/json-editor2.js.map +0 -1
- package/dist/components/key.js +0 -18
- package/dist/components/key.js.map +0 -1
- package/dist/components/label.js +0 -108
- package/dist/components/label.js.map +0 -1
- package/dist/components/label2.js +0 -133
- package/dist/components/label2.js.map +0 -1
- package/dist/components/labelFormats.js +0 -212
- package/dist/components/labelFormats.js.map +0 -1
- package/dist/components/link.js +0 -125
- package/dist/components/link.js.map +0 -1
- package/dist/components/list-item.js +0 -151
- package/dist/components/list-item.js.map +0 -1
- package/dist/components/list.js +0 -85
- package/dist/components/list.js.map +0 -1
- package/dist/components/loadModules.js +0 -30
- package/dist/components/loadModules.js.map +0 -1
- package/dist/components/loader.js +0 -118
- package/dist/components/loader.js.map +0 -1
- package/dist/components/locale.js +0 -414
- package/dist/components/locale.js.map +0 -1
- package/dist/components/locale2.js +0 -415
- package/dist/components/locale2.js.map +0 -1
- package/dist/components/map-draw-tools.d.ts +0 -11
- package/dist/components/map-draw-tools.js +0 -13
- package/dist/components/map-draw-tools.js.map +0 -1
- package/dist/components/map-draw-tools2.js +0 -230
- package/dist/components/map-draw-tools2.js.map +0 -1
- package/dist/components/map-layer-picker.d.ts +0 -11
- package/dist/components/map-layer-picker.js +0 -13
- package/dist/components/map-layer-picker.js.map +0 -1
- package/dist/components/map-layer-picker2.js +0 -190
- package/dist/components/map-layer-picker2.js.map +0 -1
- package/dist/components/map-search.d.ts +0 -11
- package/dist/components/map-search.js +0 -157
- package/dist/components/map-search.js.map +0 -1
- package/dist/components/map-select-tools.d.ts +0 -11
- package/dist/components/map-select-tools.js +0 -13
- package/dist/components/map-select-tools.js.map +0 -1
- package/dist/components/map-select-tools2.js +0 -555
- package/dist/components/map-select-tools2.js.map +0 -1
- package/dist/components/mapViewUtils.js +0 -131
- package/dist/components/mapViewUtils.js.map +0 -1
- package/dist/components/math.js +0 -26
- package/dist/components/math.js.map +0 -1
- package/dist/components/nonChromiumPlatformUtils.js +0 -505
- package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
- package/dist/components/notice.js +0 -194
- package/dist/components/notice.js.map +0 -1
- package/dist/components/observers.js +0 -58
- package/dist/components/observers.js.map +0 -1
- package/dist/components/openCloseComponent.js +0 -58
- package/dist/components/openCloseComponent.js.map +0 -1
- package/dist/components/option.js +0 -111
- package/dist/components/option.js.map +0 -1
- package/dist/components/panel.js +0 -461
- package/dist/components/panel.js.map +0 -1
- package/dist/components/pdf-download.d.ts +0 -11
- package/dist/components/pdf-download.js +0 -13
- package/dist/components/pdf-download.js.map +0 -1
- package/dist/components/pdf-download2.js +0 -243
- package/dist/components/pdf-download2.js.map +0 -1
- package/dist/components/pick-list-item.js +0 -257
- package/dist/components/pick-list-item.js.map +0 -1
- package/dist/components/popover.js +0 -502
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.js +0 -62
- package/dist/components/progress.js.map +0 -1
- package/dist/components/public-notification.d.ts +0 -11
- package/dist/components/public-notification.js +0 -784
- package/dist/components/public-notification.js.map +0 -1
- package/dist/components/publicNotificationStore.js +0 -40
- package/dist/components/publicNotificationStore.js.map +0 -1
- package/dist/components/queryUtils.js +0 -163
- package/dist/components/queryUtils.js.map +0 -1
- package/dist/components/radio-group-item.js +0 -103
- package/dist/components/radio-group-item.js.map +0 -1
- package/dist/components/radio-group.js +0 -237
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/refine-selection-tools.d.ts +0 -11
- package/dist/components/refine-selection-tools.js +0 -13
- package/dist/components/refine-selection-tools.js.map +0 -1
- package/dist/components/refine-selection-tools2.js +0 -500
- package/dist/components/refine-selection-tools2.js.map +0 -1
- package/dist/components/refine-selection.d.ts +0 -11
- package/dist/components/refine-selection.js +0 -13
- package/dist/components/refine-selection.js.map +0 -1
- package/dist/components/refine-selection2.js +0 -369
- package/dist/components/refine-selection2.js.map +0 -1
- package/dist/components/resources.js +0 -26
- package/dist/components/resources.js.map +0 -1
- package/dist/components/resources2.js +0 -23
- package/dist/components/resources2.js.map +0 -1
- package/dist/components/resources3.js +0 -40
- package/dist/components/resources3.js.map +0 -1
- package/dist/components/scrim.js +0 -85
- package/dist/components/scrim.js.map +0 -1
- package/dist/components/select.js +0 -261
- package/dist/components/select.js.map +0 -1
- package/dist/components/shared-list-render.js +0 -321
- package/dist/components/shared-list-render.js.map +0 -1
- package/dist/components/shell-panel.js +0 -283
- package/dist/components/shell-panel.js.map +0 -1
- package/dist/components/shell.js +0 -123
- package/dist/components/shell.js.map +0 -1
- package/dist/components/slider.js +0 -898
- package/dist/components/slider.js.map +0 -1
- package/dist/components/solution-configuration.d.ts +0 -11
- package/dist/components/solution-configuration.js +0 -2225
- package/dist/components/solution-configuration.js.map +0 -1
- package/dist/components/solution-contents.d.ts +0 -11
- package/dist/components/solution-contents.js +0 -13
- package/dist/components/solution-contents.js.map +0 -1
- package/dist/components/solution-contents2.js +0 -130
- package/dist/components/solution-contents2.js.map +0 -1
- package/dist/components/solution-item-details.d.ts +0 -11
- package/dist/components/solution-item-details.js +0 -13
- package/dist/components/solution-item-details.js.map +0 -1
- package/dist/components/solution-item-details2.js +0 -236
- package/dist/components/solution-item-details2.js.map +0 -1
- package/dist/components/solution-item-icon.d.ts +0 -11
- package/dist/components/solution-item-icon.js +0 -13
- package/dist/components/solution-item-icon.js.map +0 -1
- package/dist/components/solution-item-icon2.js +0 -344
- package/dist/components/solution-item-icon2.js.map +0 -1
- package/dist/components/solution-item-sharing.d.ts +0 -11
- package/dist/components/solution-item-sharing.js +0 -13
- package/dist/components/solution-item-sharing.js.map +0 -1
- package/dist/components/solution-item-sharing2.js +0 -169
- package/dist/components/solution-item-sharing2.js.map +0 -1
- package/dist/components/solution-item.d.ts +0 -11
- package/dist/components/solution-item.js +0 -13
- package/dist/components/solution-item.js.map +0 -1
- package/dist/components/solution-item2.js +0 -317
- package/dist/components/solution-item2.js.map +0 -1
- package/dist/components/solution-organization-variables.d.ts +0 -11
- package/dist/components/solution-organization-variables.js +0 -13
- package/dist/components/solution-organization-variables.js.map +0 -1
- package/dist/components/solution-organization-variables2.js +0 -134
- package/dist/components/solution-organization-variables2.js.map +0 -1
- package/dist/components/solution-resource-item.d.ts +0 -11
- package/dist/components/solution-resource-item.js +0 -13
- package/dist/components/solution-resource-item.js.map +0 -1
- package/dist/components/solution-resource-item2.js +0 -358
- package/dist/components/solution-resource-item2.js.map +0 -1
- package/dist/components/solution-spatial-ref.d.ts +0 -11
- package/dist/components/solution-spatial-ref.js +0 -13
- package/dist/components/solution-spatial-ref.js.map +0 -1
- package/dist/components/solution-spatial-ref2.js +0 -21448
- package/dist/components/solution-spatial-ref2.js.map +0 -1
- package/dist/components/solution-store.js +0 -4094
- package/dist/components/solution-store.js.map +0 -1
- package/dist/components/solution-template-data.d.ts +0 -11
- package/dist/components/solution-template-data.js +0 -13
- package/dist/components/solution-template-data.js.map +0 -1
- package/dist/components/solution-template-data2.js +0 -235
- package/dist/components/solution-template-data2.js.map +0 -1
- package/dist/components/solution-variables.d.ts +0 -11
- package/dist/components/solution-variables.js +0 -13
- package/dist/components/solution-variables.js.map +0 -1
- package/dist/components/solution-variables2.js +0 -152
- package/dist/components/solution-variables2.js.map +0 -1
- package/dist/components/sortable.esm.js +0 -3028
- package/dist/components/sortable.esm.js.map +0 -1
- package/dist/components/store-manager.d.ts +0 -11
- package/dist/components/store-manager.js +0 -85
- package/dist/components/store-manager.js.map +0 -1
- package/dist/components/switch.js +0 -141
- package/dist/components/switch.js.map +0 -1
- package/dist/components/tab-nav.js +0 -243
- package/dist/components/tab-nav.js.map +0 -1
- package/dist/components/tab-title.js +0 -278
- package/dist/components/tab-title.js.map +0 -1
- package/dist/components/tab.js +0 -156
- package/dist/components/tab.js.map +0 -1
- package/dist/components/tabs.js +0 -190
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tile.js +0 -131
- package/dist/components/tile.js.map +0 -1
- package/dist/components/time-picker.js +0 -945
- package/dist/components/time-picker.js.map +0 -1
- package/dist/components/tooltip.js +0 -401
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/tree-item.js +0 -296
- package/dist/components/tree-item.js.map +0 -1
- package/dist/components/tree.js +0 -329
- package/dist/components/tree.js.map +0 -1
- package/dist/components/utils.js +0 -121
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js +0 -53
- package/dist/components/utils2.js.map +0 -1
- package/dist/components/value-list-item.js +0 -206
- package/dist/components/value-list-item.js.map +0 -1
- package/dist/components/value-list.js +0 -335
- package/dist/components/value-list.js.map +0 -1
- package/dist/esm/solution-store-b3c65467.js.map +0 -1
- package/dist/solutions-components/p-542189bc.entry.js.map +0 -1
- package/dist/solutions-components/p-638738f2.entry.js.map +0 -1
- package/dist/solutions-components/p-7e8985f2.entry.js.map +0 -1
- package/dist/solutions-components/p-b25f6ebe.js.map +0 -1
@@ -1,237 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { g as getElementProp, t as toAriaBoolean } from './dom.js';
|
8
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
9
|
-
|
10
|
-
/*!
|
11
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
12
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
13
|
-
* v1.0.0-beta.97
|
14
|
-
*/
|
15
|
-
const CSS = {
|
16
|
-
containerLink: "container--link",
|
17
|
-
containerSmall: "container--s",
|
18
|
-
containerMedium: "container--m",
|
19
|
-
containerLarge: "container--l",
|
20
|
-
containerMulti: "container--multi-selection",
|
21
|
-
containerSingle: "container--single-selection",
|
22
|
-
containerNone: "container--none-selection"
|
23
|
-
};
|
24
|
-
|
25
|
-
const dropdownItemCss = "@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}.container--s{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}.container--s.container--none-selection{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--m.container--none-selection{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--l.container--none-selection{-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}:host{position:relative;display:flex;flex-grow:1;align-items:center}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}.dropdown-item-content{flex:1 1 auto;-webkit-padding-end:auto;padding-inline-end:auto;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host,.container--link a{outline-color:transparent}:host(:focus){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0px}.container--link a{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.container--s .dropdown-link{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([selected]) .container:not(.container--none-selection),:host([selected]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected]) .container:not(.container--none-selection):before,:host([selected]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([selected]) .container:not(.container--none-selection) calcite-icon,:host([selected]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{-webkit-margin-start:1rem;margin-inline-start:1rem}";
|
26
|
-
|
27
|
-
const DropdownItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
28
|
-
constructor() {
|
29
|
-
super();
|
30
|
-
this.__registerHost();
|
31
|
-
this.__attachShadow();
|
32
|
-
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 6);
|
33
|
-
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 6);
|
34
|
-
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 6);
|
35
|
-
//--------------------------------------------------------------------------
|
36
|
-
//
|
37
|
-
// Public Properties
|
38
|
-
//
|
39
|
-
//--------------------------------------------------------------------------
|
40
|
-
/**
|
41
|
-
* Indicates whether the item is active.
|
42
|
-
*
|
43
|
-
* @deprecated Use selected instead.
|
44
|
-
*/
|
45
|
-
this.active = false;
|
46
|
-
/** When true, item is selected */
|
47
|
-
this.selected = false;
|
48
|
-
}
|
49
|
-
activeHandler(value) {
|
50
|
-
this.selected = value;
|
51
|
-
}
|
52
|
-
selectedHandler(value) {
|
53
|
-
this.active = value;
|
54
|
-
}
|
55
|
-
//--------------------------------------------------------------------------
|
56
|
-
//
|
57
|
-
// Public Methods
|
58
|
-
//
|
59
|
-
//--------------------------------------------------------------------------
|
60
|
-
/** Sets focus on the component. */
|
61
|
-
async setFocus() {
|
62
|
-
var _a;
|
63
|
-
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
64
|
-
}
|
65
|
-
//--------------------------------------------------------------------------
|
66
|
-
//
|
67
|
-
// Lifecycle
|
68
|
-
//
|
69
|
-
//--------------------------------------------------------------------------
|
70
|
-
componentWillLoad() {
|
71
|
-
this.initialize();
|
72
|
-
}
|
73
|
-
connectedCallback() {
|
74
|
-
const isSelected = this.selected || this.active;
|
75
|
-
if (isSelected) {
|
76
|
-
this.activeHandler(isSelected);
|
77
|
-
this.selectedHandler(isSelected);
|
78
|
-
}
|
79
|
-
this.initialize();
|
80
|
-
}
|
81
|
-
render() {
|
82
|
-
const scale = getElementProp(this.el, "scale", "m");
|
83
|
-
const iconStartEl = (h("calcite-icon", { class: "dropdown-item-icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
84
|
-
const contentNode = (h("span", { class: "dropdown-item-content" }, h("slot", null)));
|
85
|
-
const iconEndEl = (h("calcite-icon", { class: "dropdown-item-icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
86
|
-
const slottedContent = this.iconStart && this.iconEnd
|
87
|
-
? [iconStartEl, contentNode, iconEndEl]
|
88
|
-
: this.iconStart
|
89
|
-
? [iconStartEl, h("slot", null)]
|
90
|
-
: this.iconEnd
|
91
|
-
? [contentNode, iconEndEl]
|
92
|
-
: contentNode;
|
93
|
-
const contentEl = !this.href ? (slottedContent) : (h("a", { "aria-label": this.label, class: "dropdown-link", href: this.href, ref: (el) => (this.childLink = el), rel: this.rel, target: this.target }, slottedContent));
|
94
|
-
const itemRole = this.href
|
95
|
-
? null
|
96
|
-
: this.selectionMode === "single"
|
97
|
-
? "menuitemradio"
|
98
|
-
: this.selectionMode === "multi"
|
99
|
-
? "menuitemcheckbox"
|
100
|
-
: "menuitem";
|
101
|
-
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
102
|
-
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
103
|
-
container: true,
|
104
|
-
[CSS.containerLink]: !!this.href,
|
105
|
-
[CSS.containerSmall]: scale === "s",
|
106
|
-
[CSS.containerMedium]: scale === "m",
|
107
|
-
[CSS.containerLarge]: scale === "l",
|
108
|
-
[CSS.containerMulti]: this.selectionMode === "multi",
|
109
|
-
[CSS.containerSingle]: this.selectionMode === "single",
|
110
|
-
[CSS.containerNone]: this.selectionMode === "none"
|
111
|
-
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
112
|
-
}
|
113
|
-
//--------------------------------------------------------------------------
|
114
|
-
//
|
115
|
-
// Event Listeners
|
116
|
-
//
|
117
|
-
//--------------------------------------------------------------------------
|
118
|
-
onClick() {
|
119
|
-
this.emitRequestedItem();
|
120
|
-
}
|
121
|
-
keyDownHandler(event) {
|
122
|
-
switch (event.key) {
|
123
|
-
case " ":
|
124
|
-
case "Enter":
|
125
|
-
this.emitRequestedItem();
|
126
|
-
if (this.href) {
|
127
|
-
this.childLink.click();
|
128
|
-
}
|
129
|
-
event.preventDefault();
|
130
|
-
break;
|
131
|
-
case "Escape":
|
132
|
-
this.calciteInternalDropdownCloseRequest.emit();
|
133
|
-
event.preventDefault();
|
134
|
-
break;
|
135
|
-
case "Tab":
|
136
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
137
|
-
break;
|
138
|
-
case "ArrowUp":
|
139
|
-
case "ArrowDown":
|
140
|
-
case "Home":
|
141
|
-
case "End":
|
142
|
-
event.preventDefault();
|
143
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
144
|
-
break;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
updateActiveItemOnChange(event) {
|
148
|
-
const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);
|
149
|
-
if (parentEmittedChange) {
|
150
|
-
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
151
|
-
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
152
|
-
this.determineActiveItem();
|
153
|
-
}
|
154
|
-
event.stopPropagation();
|
155
|
-
}
|
156
|
-
//--------------------------------------------------------------------------
|
157
|
-
//
|
158
|
-
// Private Methods
|
159
|
-
//
|
160
|
-
//--------------------------------------------------------------------------
|
161
|
-
initialize() {
|
162
|
-
this.selectionMode = getElementProp(this.el, "selection-mode", "single");
|
163
|
-
this.parentDropdownGroupEl = this.el.closest("calcite-dropdown-group");
|
164
|
-
if (this.selectionMode === "none") {
|
165
|
-
this.selected = false;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
determineActiveItem() {
|
169
|
-
switch (this.selectionMode) {
|
170
|
-
case "multi":
|
171
|
-
if (this.el === this.requestedDropdownItem) {
|
172
|
-
this.selected = !this.selected;
|
173
|
-
}
|
174
|
-
break;
|
175
|
-
case "single":
|
176
|
-
if (this.el === this.requestedDropdownItem) {
|
177
|
-
this.selected = true;
|
178
|
-
}
|
179
|
-
else if (this.requestedDropdownGroup === this.parentDropdownGroupEl) {
|
180
|
-
this.selected = false;
|
181
|
-
}
|
182
|
-
break;
|
183
|
-
case "none":
|
184
|
-
this.selected = false;
|
185
|
-
break;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
emitRequestedItem() {
|
189
|
-
this.calciteInternalDropdownItemSelect.emit({
|
190
|
-
requestedDropdownItem: this.el,
|
191
|
-
requestedDropdownGroup: this.parentDropdownGroupEl
|
192
|
-
});
|
193
|
-
}
|
194
|
-
get el() { return this; }
|
195
|
-
static get watchers() { return {
|
196
|
-
"active": ["activeHandler"],
|
197
|
-
"selected": ["selectedHandler"]
|
198
|
-
}; }
|
199
|
-
static get style() { return dropdownItemCss; }
|
200
|
-
}, [1, "calcite-dropdown-item", {
|
201
|
-
"active": [1540],
|
202
|
-
"selected": [1540],
|
203
|
-
"iconFlipRtl": [513, "icon-flip-rtl"],
|
204
|
-
"iconStart": [513, "icon-start"],
|
205
|
-
"iconEnd": [513, "icon-end"],
|
206
|
-
"href": [513],
|
207
|
-
"label": [1],
|
208
|
-
"rel": [513],
|
209
|
-
"target": [513],
|
210
|
-
"setFocus": [64]
|
211
|
-
}, [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteInternalDropdownItemChange", "updateActiveItemOnChange"]]]);
|
212
|
-
function defineCustomElement$1() {
|
213
|
-
if (typeof customElements === "undefined") {
|
214
|
-
return;
|
215
|
-
}
|
216
|
-
const components = ["calcite-dropdown-item", "calcite-icon"];
|
217
|
-
components.forEach(tagName => { switch (tagName) {
|
218
|
-
case "calcite-dropdown-item":
|
219
|
-
if (!customElements.get(tagName)) {
|
220
|
-
customElements.define(tagName, DropdownItem);
|
221
|
-
}
|
222
|
-
break;
|
223
|
-
case "calcite-icon":
|
224
|
-
if (!customElements.get(tagName)) {
|
225
|
-
defineCustomElement$2();
|
226
|
-
}
|
227
|
-
break;
|
228
|
-
} });
|
229
|
-
}
|
230
|
-
defineCustomElement$1();
|
231
|
-
|
232
|
-
const CalciteDropdownItem = DropdownItem;
|
233
|
-
const defineCustomElement = defineCustomElement$1;
|
234
|
-
|
235
|
-
export { CalciteDropdownItem, defineCustomElement };
|
236
|
-
|
237
|
-
//# sourceMappingURL=calcite-dropdown-item.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-dropdown-item.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,aAAa,EAAE,iBAAiB;AAClC,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,eAAe,EAAE,cAAc;AACjC,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,cAAc,EAAE,4BAA4B;AAC9C,EAAE,eAAe,EAAE,6BAA6B;AAChD,EAAE,aAAa,EAAE,2BAA2B;AAC5C,CAAC;;ACbD,MAAM,eAAe,GAAG,4/MAA4/M;;MCWvgN,YAAY;EACvB;;;;;;;;;;;;;;;;;IAWE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;GACvB;EACD,aAAa,CAAC,KAAK;IACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;GACvB;EACD,eAAe,CAAC,KAAK;IACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;GACrB;;;;;;;EAOD,MAAM,QAAQ;IACZ,IAAI,EAAE,CAAC;IACP,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;GAChE;;;;;;EAMD,iBAAiB;IACf,IAAI,CAAC,UAAU,EAAE,CAAC;GACnB;EACD,iBAAiB;IACf,MA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I,CAAC,qBAAqB;KACnD,CAAC,CAAC;GACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css?tag=calcite-dropdown-item&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n containerLink: \"container--link\",\n containerSmall: \"container--s\",\n containerMedium: \"container--m\",\n containerLarge: \"container--l\",\n containerMulti: \"container--multi-selection\",\n containerSingle: \"container--single-selection\",\n containerNone: \"container--none-selection\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.container--s {\n padding-block: 0.25rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-inline-end: 0.5rem;\n padding-inline-start: 1.5rem;\n}\n\n.container--m {\n padding-block: 0.5rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-inline-end: 0.75rem;\n padding-inline-start: 2rem;\n}\n\n.container--l {\n padding-block: 0.75rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n padding-inline-end: 1rem;\n padding-inline-start: 2.5rem;\n}\n\n.container--s.container--none-selection {\n padding-inline-start: 0.25rem;\n}\n.container--s.container--none-selection .dropdown-link {\n padding-inline-start: 0px;\n}\n\n.container--m.container--none-selection {\n padding-inline-start: 0.5rem;\n}\n.container--m.container--none-selection .dropdown-link {\n padding-inline-start: 0px;\n}\n\n.container--l.container--none-selection {\n padding-inline-start: 0.75rem;\n}\n.container--l.container--none-selection .dropdown-link {\n padding-inline-start: 0px;\n}\n\n:host {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n}\n\n.container {\n position: relative;\n display: flex;\n flex-grow: 1;\n cursor: pointer;\n align-items: center;\n color: var(--calcite-ui-text-3);\n text-decoration-line: none;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n text-align: start;\n}\n\n.dropdown-item-content {\n flex: 1 1 auto;\n padding-inline-end: auto;\n padding-inline-start: 0.25rem;\n}\n\n:host, \n.container--link a {\n outline-color: transparent;\n}\n\n:host(:focus) {\n outline: 2px solid transparent;\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.container--link {\n padding: 0px;\n}\n.container--link a {\n position: relative;\n display: flex;\n flex-grow: 1;\n cursor: pointer;\n align-items: center;\n color: var(--calcite-ui-text-3);\n text-decoration-line: none;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.container--s .dropdown-link {\n padding-block: 0.25rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n padding-inline-end: 0.5rem;\n padding-inline-start: 1.5rem;\n}\n\n.container--m .dropdown-link {\n padding-block: 0.5rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n padding-inline-end: 0.75rem;\n padding-inline-start: 2rem;\n}\n\n.container--l .dropdown-link {\n padding-block: 0.75rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n padding-inline-end: 1rem;\n padding-inline-start: 2.5rem;\n}\n\n:host(:hover) .container, \n:host(:active) .container {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n text-decoration-line: none;\n}\n\n:host(:hover) .container--link .dropdown-link, \n:host(:active) .container--link .dropdown-link {\n color: var(--calcite-ui-text-1);\n}\n\n:host(:focus) .container {\n color: var(--calcite-ui-text-1);\n text-decoration-line: none;\n}\n\n:host(:active) .container {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n:host(:hover) .container:before, \n:host(:active) .container:before, \n:host(:focus) .container:before {\n opacity: 1;\n}\n\n:host([selected]) .container:not(.container--none-selection), \n:host([selected]) .container--link .dropdown-link {\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n:host([selected]) .container:not(.container--none-selection):before, \n:host([selected]) .container--link .dropdown-link:before {\n opacity: 1;\n color: var(--calcite-ui-brand);\n}\n:host([selected]) .container:not(.container--none-selection) calcite-icon,\n:host([selected]) .container--link .dropdown-link calcite-icon {\n color: var(--calcite-ui-brand);\n}\n\n.container--multi-selection:before, \n.container--none-selection:before {\n display: none;\n}\n\n.container--s:before {\n inset-inline-start: 0.5rem;\n}\n\n.container--m:before {\n inset-inline-start: 0.75rem;\n}\n\n.container--l:before {\n inset-inline-start: 1rem;\n}\n\n.dropdown-item-icon {\n position: absolute;\n opacity: 0;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transform: scale(0.9);\n}\n\n.container--s .dropdown-item-icon {\n inset-inline-start: 0.25rem;\n}\n\n.container--m .dropdown-item-icon {\n inset-inline-start: 0.5rem;\n}\n\n.container--l .dropdown-item-icon {\n inset-inline-start: 0.75rem;\n}\n\n:host(:hover) .dropdown-item-icon {\n color: var(--calcite-ui-border-1);\n opacity: 1;\n}\n\n:host([active]) .dropdown-item-icon {\n color: var(--calcite-ui-brand);\n opacity: 1;\n}\n\n.container--s .dropdown-item-icon-start {\n margin-inline-end: 0.5rem;\n margin-inline-start: 0.25rem;\n}\n.container--s .dropdown-item-icon-end {\n margin-inline-start: 0.5rem;\n}\n\n.container--m .dropdown-item-icon-start {\n margin-inline-end: 0.75rem;\n margin-inline-start: 0.25rem;\n}\n.container--m .dropdown-item-icon-end {\n margin-inline-start: 0.75rem;\n}\n\n.container--l .dropdown-item-icon-start {\n margin-inline-end: 1rem;\n margin-inline-start: 0.25rem;\n}\n.container--l .dropdown-item-icon-end {\n margin-inline-start: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { getElementProp, toAriaBoolean } from \"../../utils/dom\";\nimport { CSS } from \"./resources\";\n/**\n * @slot - A slot for adding text.\n */\nexport class DropdownItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /**\n * Indicates whether the item is active.\n *\n * @deprecated Use selected instead.\n */\n this.active = false;\n /** When true, item is selected */\n this.selected = false;\n }\n activeHandler(value) {\n this.selected = value;\n }\n selectedHandler(value) {\n this.active = value;\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n this.initialize();\n }\n connectedCallback() {\n const isSelected = this.selected || this.active;\n if (isSelected) {\n this.activeHandler(isSelected);\n this.selectedHandler(isSelected);\n }\n this.initialize();\n }\n render() {\n const scale = getElementProp(this.el, \"scale\", \"m\");\n const iconStartEl = (h(\"calcite-icon\", { class: \"dropdown-item-icon-start\", flipRtl: this.iconFlipRtl === \"start\" || this.iconFlipRtl === \"both\", icon: this.iconStart, scale: \"s\" }));\n const contentNode = (h(\"span\", { class: \"dropdown-item-content\" }, h(\"slot\", null)));\n const iconEndEl = (h(\"calcite-icon\", { class: \"dropdown-item-icon-end\", flipRtl: this.iconFlipRtl === \"end\" || this.iconFlipRtl === \"both\", icon: this.iconEnd, scale: \"s\" }));\n const slottedContent = this.iconStart && this.iconEnd\n ? [iconStartEl, contentNode, iconEndEl]\n : this.iconStart\n ? [iconStartEl, h(\"slot\", null)]\n : this.iconEnd\n ? [contentNode, iconEndEl]\n : contentNode;\n const contentEl = !this.href ? (slottedContent) : (h(\"a\", { \"aria-label\": this.label, class: \"dropdown-link\", href: this.href, ref: (el) => (this.childLink = el), rel: this.rel, target: this.target }, slottedContent));\n const itemRole = this.href\n ? null\n : this.selectionMode === \"single\"\n ? \"menuitemradio\"\n : this.selectionMode === \"multi\"\n ? \"menuitemcheckbox\"\n : \"menuitem\";\n const itemAria = this.selectionMode !== \"none\" ? toAriaBoolean(this.selected) : null;\n return (h(Host, { \"aria-checked\": itemAria, role: itemRole, tabindex: \"0\" }, h(\"div\", { class: {\n container: true,\n [CSS.containerLink]: !!this.href,\n [CSS.containerSmall]: scale === \"s\",\n [CSS.containerMedium]: scale === \"m\",\n [CSS.containerLarge]: scale === \"l\",\n [CSS.containerMulti]: this.selectionMode === \"multi\",\n [CSS.containerSingle]: this.selectionMode === \"single\",\n [CSS.containerNone]: this.selectionMode === \"none\"\n } }, this.selectionMode !== \"none\" ? (h(\"calcite-icon\", { class: \"dropdown-item-icon\", icon: this.selectionMode === \"multi\" ? \"check\" : \"bullet-point\", scale: \"s\" })) : null, contentEl)));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n onClick() {\n this.emitRequestedItem();\n }\n keyDownHandler(event) {\n switch (event.key) {\n case \" \":\n case \"Enter\":\n this.emitRequestedItem();\n if (this.href) {\n this.childLink.click();\n }\n event.preventDefault();\n break;\n case \"Escape\":\n this.calciteInternalDropdownCloseRequest.emit();\n event.preventDefault();\n break;\n case \"Tab\":\n this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });\n break;\n case \"ArrowUp\":\n case \"ArrowDown\":\n case \"Home\":\n case \"End\":\n event.preventDefault();\n this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });\n break;\n }\n }\n updateActiveItemOnChange(event) {\n const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);\n if (parentEmittedChange) {\n this.requestedDropdownGroup = event.detail.requestedDropdownGroup;\n this.requestedDropdownItem = event.detail.requestedDropdownItem;\n this.determineActiveItem();\n }\n event.stopPropagation();\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n initialize() {\n this.selectionMode = getElementProp(this.el, \"selection-mode\", \"single\");\n this.parentDropdownGroupEl = this.el.closest(\"calcite-dropdown-group\");\n if (this.selectionMode === \"none\") {\n this.selected = false;\n }\n }\n determineActiveItem() {\n switch (this.selectionMode) {\n case \"multi\":\n if (this.el === this.requestedDropdownItem) {\n this.selected = !this.selected;\n }\n break;\n case \"single\":\n if (this.el === this.requestedDropdownItem) {\n this.selected = true;\n }\n else if (this.requestedDropdownGroup === this.parentDropdownGroupEl) {\n this.selected = false;\n }\n break;\n case \"none\":\n this.selected = false;\n break;\n }\n }\n emitRequestedItem() {\n this.calciteInternalDropdownItemSelect.emit({\n requestedDropdownItem: this.el,\n requestedDropdownGroup: this.parentDropdownGroupEl\n });\n }\n static get is() { return \"calcite-dropdown-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"dropdown-item.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"dropdown-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\": \"Indicates whether the item is active.\"\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, item is selected\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"iconFlipRtl\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FlipContext\",\n \"resolved\": \"\\\"both\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"FlipContext\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, the icon will be flipped when the element direction is right-to-left (`\\\"rtl\\\"`).\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true\n },\n \"iconStart\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display at the start of the component.\"\n },\n \"attribute\": \"icon-start\",\n \"reflect\": true\n },\n \"iconEnd\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display at the end of the component.\"\n },\n \"attribute\": \"icon-end\",\n \"reflect\": true\n },\n \"href\": {\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\": \"optionally pass a href - used to determine if the component should render as anchor\"\n },\n \"attribute\": \"href\",\n \"reflect\": true\n },\n \"label\": {\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\": \"Applies to the aria-label attribute on the button or hyperlink\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"rel\": {\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 rel attribute to apply to the hyperlink\"\n },\n \"attribute\": \"rel\",\n \"reflect\": true\n },\n \"target\": {\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 target attribute to apply to the hyperlink\"\n },\n \"attribute\": \"target\",\n \"reflect\": true\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteInternalDropdownItemSelect\",\n \"name\": \"calciteInternalDropdownItemSelect\",\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\": \"RequestedItem\",\n \"resolved\": \"RequestedItem\",\n \"references\": {\n \"RequestedItem\": {\n \"location\": \"import\",\n \"path\": \"../dropdown-group/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteInternalDropdownItemKeyEvent\",\n \"name\": \"calciteInternalDropdownItemKeyEvent\",\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\": \"ItemKeyboardEvent\",\n \"resolved\": \"ItemKeyboardEvent\",\n \"references\": {\n \"ItemKeyboardEvent\": {\n \"location\": \"import\",\n \"path\": \"../dropdown/interfaces\"\n }\n }\n }\n }, {\n \"method\": \"calciteInternalDropdownCloseRequest\",\n \"name\": \"calciteInternalDropdownCloseRequest\",\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\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"selected\",\n \"methodName\": \"selectedHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"click\",\n \"method\": \"onClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"keyDownHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteInternalDropdownItemChange\",\n \"method\": \"updateActiveItemOnChange\",\n \"target\": \"body\",\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|
@@ -1,13 +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 { D as Dropdown, d as defineCustomElement$1 } from './dropdown.js';
|
7
|
-
|
8
|
-
const CalciteDropdown = Dropdown;
|
9
|
-
const defineCustomElement = defineCustomElement$1;
|
10
|
-
|
11
|
-
export { CalciteDropdown, defineCustomElement };
|
12
|
-
|
13
|
-
//# sourceMappingURL=calcite-dropdown.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-dropdown.js","mappings":";;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,146 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
7
|
-
import { f as focusElement } from './dom.js';
|
8
|
-
import { u as updateHostInteraction } from './interactive.js';
|
9
|
-
import { d as defineCustomElement$4 } from './button.js';
|
10
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
11
|
-
import { d as defineCustomElement$2 } from './loader.js';
|
12
|
-
|
13
|
-
/*!
|
14
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
15
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
16
|
-
* v1.0.0-beta.97
|
17
|
-
*/
|
18
|
-
const CSS = {
|
19
|
-
button: "button"
|
20
|
-
};
|
21
|
-
const ICONS = {
|
22
|
-
plus: "plus"
|
23
|
-
};
|
24
|
-
|
25
|
-
const fabCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-button{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:hover{--tw-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:active{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
|
26
|
-
|
27
|
-
const Fab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
28
|
-
constructor() {
|
29
|
-
super();
|
30
|
-
this.__registerHost();
|
31
|
-
this.__attachShadow();
|
32
|
-
// --------------------------------------------------------------------------
|
33
|
-
//
|
34
|
-
// Properties
|
35
|
-
//
|
36
|
-
// --------------------------------------------------------------------------
|
37
|
-
/**
|
38
|
-
* Used to set the button's appearance. Default is outline.
|
39
|
-
*/
|
40
|
-
this.appearance = "outline";
|
41
|
-
/**
|
42
|
-
* Used to set the button's color. Default is light.
|
43
|
-
*/
|
44
|
-
this.color = "neutral";
|
45
|
-
/**
|
46
|
-
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
47
|
-
*/
|
48
|
-
this.disabled = false;
|
49
|
-
/**
|
50
|
-
* Specifies an icon to display.
|
51
|
-
*
|
52
|
-
* @default "plus"
|
53
|
-
*/
|
54
|
-
this.icon = ICONS.plus;
|
55
|
-
/**
|
56
|
-
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
57
|
-
*/
|
58
|
-
this.loading = false;
|
59
|
-
/**
|
60
|
-
* Specifies the size of the fab.
|
61
|
-
*/
|
62
|
-
this.scale = "m";
|
63
|
-
/**
|
64
|
-
* Indicates whether the text is displayed.
|
65
|
-
*/
|
66
|
-
this.textEnabled = false;
|
67
|
-
}
|
68
|
-
//--------------------------------------------------------------------------
|
69
|
-
//
|
70
|
-
// Lifecycle
|
71
|
-
//
|
72
|
-
//--------------------------------------------------------------------------
|
73
|
-
componentDidRender() {
|
74
|
-
updateHostInteraction(this);
|
75
|
-
}
|
76
|
-
// --------------------------------------------------------------------------
|
77
|
-
//
|
78
|
-
// Methods
|
79
|
-
//
|
80
|
-
// --------------------------------------------------------------------------
|
81
|
-
/** Sets focus on the component. */
|
82
|
-
async setFocus() {
|
83
|
-
focusElement(this.buttonEl);
|
84
|
-
}
|
85
|
-
// --------------------------------------------------------------------------
|
86
|
-
//
|
87
|
-
// Render Methods
|
88
|
-
//
|
89
|
-
// --------------------------------------------------------------------------
|
90
|
-
render() {
|
91
|
-
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
92
|
-
const title = !textEnabled ? label || text || null : null;
|
93
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
94
|
-
this.buttonEl = buttonEl;
|
95
|
-
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
96
|
-
}
|
97
|
-
get el() { return this; }
|
98
|
-
static get style() { return fabCss; }
|
99
|
-
}, [1, "calcite-fab", {
|
100
|
-
"appearance": [513],
|
101
|
-
"color": [513],
|
102
|
-
"disabled": [516],
|
103
|
-
"icon": [513],
|
104
|
-
"label": [1],
|
105
|
-
"loading": [516],
|
106
|
-
"scale": [513],
|
107
|
-
"text": [1],
|
108
|
-
"textEnabled": [516, "text-enabled"],
|
109
|
-
"setFocus": [64]
|
110
|
-
}]);
|
111
|
-
function defineCustomElement$1() {
|
112
|
-
if (typeof customElements === "undefined") {
|
113
|
-
return;
|
114
|
-
}
|
115
|
-
const components = ["calcite-fab", "calcite-button", "calcite-icon", "calcite-loader"];
|
116
|
-
components.forEach(tagName => { switch (tagName) {
|
117
|
-
case "calcite-fab":
|
118
|
-
if (!customElements.get(tagName)) {
|
119
|
-
customElements.define(tagName, Fab);
|
120
|
-
}
|
121
|
-
break;
|
122
|
-
case "calcite-button":
|
123
|
-
if (!customElements.get(tagName)) {
|
124
|
-
defineCustomElement$4();
|
125
|
-
}
|
126
|
-
break;
|
127
|
-
case "calcite-icon":
|
128
|
-
if (!customElements.get(tagName)) {
|
129
|
-
defineCustomElement$3();
|
130
|
-
}
|
131
|
-
break;
|
132
|
-
case "calcite-loader":
|
133
|
-
if (!customElements.get(tagName)) {
|
134
|
-
defineCustomElement$2();
|
135
|
-
}
|
136
|
-
break;
|
137
|
-
} });
|
138
|
-
}
|
139
|
-
defineCustomElement$1();
|
140
|
-
|
141
|
-
const CalciteFab = Fab;
|
142
|
-
const defineCustomElement = defineCustomElement$1;
|
143
|
-
|
144
|
-
export { CalciteFab, defineCustomElement };
|
145
|
-
|
146
|
-
//# sourceMappingURL=calcite-fab.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-fab.js","mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,MAAM,EAAE,QAAQ;AAClB,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,IAAI,EAAE,MAAM;AACd,CAAC;;ACVD,MAAM,MAAM,GAAG,+9EAA+9E;;MCSj+E,GAAG;EACd;;;;;;;;;;;;IASE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;;;;IAI5B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;;;;IAIvB,IAAI,CA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;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/fab/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css?tag=calcite-fab&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/fab/fab.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n button: \"button\"\n};\nexport const ICONS = {\n plus: \"plus\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host {\n display: flex;\n background-color: transparent;\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\ncalcite-button {\n --tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);\n --tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\ncalcite-button:hover {\n --tw-shadow: 0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);\n --tw-shadow-colored: 0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\ncalcite-button:active {\n --tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);\n --tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h } from \"@stencil/core\";\nimport { CSS, ICONS } from \"./resources\";\nimport { focusElement } from \"../../utils/dom\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nexport class Fab {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * Used to set the button's appearance. Default is outline.\n */\n this.appearance = \"outline\";\n /**\n * Used to set the button's color. Default is light.\n */\n this.color = \"neutral\";\n /**\n * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.\n */\n this.disabled = false;\n /**\n * Specifies an icon to display.\n *\n * @default \"plus\"\n */\n this.icon = ICONS.plus;\n /**\n * When true, content is waiting to be loaded. This state shows a busy indicator.\n */\n this.loading = false;\n /**\n * Specifies the size of the fab.\n */\n this.scale = \"m\";\n /**\n * Indicates whether the text is displayed.\n */\n this.textEnabled = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidRender() {\n updateHostInteraction(this);\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.buttonEl);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;\n const title = !textEnabled ? label || text || null : null;\n return (h(\"calcite-button\", { appearance: appearance === \"solid\" ? \"solid\" : \"outline\", class: CSS.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {\n this.buttonEl = buttonEl;\n }, round: true, scale: scale, title: title, type: \"button\", width: \"auto\" }, this.textEnabled ? this.text : null));\n }\n static get is() { return \"calcite-fab\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"fab.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"fab.css\"]\n };\n }\n static get properties() {\n return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"solid\\\" | \\\"outline\\\", Appearance>\",\n \"resolved\": \"\\\"outline\\\" | \\\"solid\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Appearance\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to set the button's appearance. Default is outline.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"outline\\\"\"\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonColor\",\n \"resolved\": \"\\\"blue\\\" | \\\"inverse\\\" | \\\"neutral\\\" | \\\"red\\\"\",\n \"references\": {\n \"ButtonColor\": {\n \"location\": \"import\",\n \"path\": \"../button/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to set the button's color. Default is light.\"\n },\n \"attribute\": \"color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"neutral\\\"\"\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, disabled prevents interaction. This state shows items with lower opacity/grayed.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"plus\\\"\"\n }],\n \"text\": \"Specifies an icon to display.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true,\n \"defaultValue\": \"ICONS.plus\"\n },\n \"label\": {\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\": \"Label of the FAB, exposed on hover when textEnabled is false. If no label is provided, the label inherits what's provided for the `text` prop.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"loading\": {\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, content is waiting to be loaded. This state shows a busy indicator.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the fab.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"text\": {\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\": \"Text that accompanies the FAB icon.\"\n },\n \"attribute\": \"text\",\n \"reflect\": false\n },\n \"textEnabled\": {\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\": \"Indicates whether the text is displayed.\"\n },\n \"attribute\": \"text-enabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|