@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,277 +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 { b as getSlotted, t as toAriaBoolean } from './dom.js';
|
8
|
-
import { H as Heading } from './Heading.js';
|
9
|
-
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
10
|
-
import { u as updateHostInteraction } from './interactive.js';
|
11
|
-
import { g as guid } from './guid.js';
|
12
|
-
import { d as defineCustomElement$8 } from './action.js';
|
13
|
-
import { d as defineCustomElement$7 } from './action-menu.js';
|
14
|
-
import { d as defineCustomElement$6 } from './handle.js';
|
15
|
-
import { d as defineCustomElement$5 } from './icon.js';
|
16
|
-
import { d as defineCustomElement$4 } from './loader.js';
|
17
|
-
import { d as defineCustomElement$3 } from './popover.js';
|
18
|
-
import { d as defineCustomElement$2 } from './scrim.js';
|
19
|
-
|
20
|
-
/*!
|
21
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
22
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
23
|
-
* v1.0.0-beta.97
|
24
|
-
*/
|
25
|
-
const CSS = {
|
26
|
-
container: "container",
|
27
|
-
content: "content",
|
28
|
-
contentSpaced: "content--spaced",
|
29
|
-
headerContainer: "header-container",
|
30
|
-
icon: "icon",
|
31
|
-
statusIcon: "status-icon",
|
32
|
-
toggle: "toggle",
|
33
|
-
toggleIcon: "toggle-icon",
|
34
|
-
title: "title",
|
35
|
-
heading: "heading",
|
36
|
-
header: "header",
|
37
|
-
button: "button",
|
38
|
-
summary: "summary",
|
39
|
-
description: "description",
|
40
|
-
controlContainer: "control-container",
|
41
|
-
valid: "valid",
|
42
|
-
invalid: "invalid",
|
43
|
-
loading: "loading"
|
44
|
-
};
|
45
|
-
const TEXT = {
|
46
|
-
collapse: "Collapse",
|
47
|
-
expand: "Expand",
|
48
|
-
loading: "Loading",
|
49
|
-
options: "Options"
|
50
|
-
};
|
51
|
-
const SLOTS = {
|
52
|
-
icon: "icon",
|
53
|
-
control: "control",
|
54
|
-
headerMenuActions: "header-menu-actions"
|
55
|
-
};
|
56
|
-
const ICONS = {
|
57
|
-
opened: "chevron-up",
|
58
|
-
closed: "chevron-down",
|
59
|
-
valid: "check-circle",
|
60
|
-
invalid: "exclamation-mark-triangle",
|
61
|
-
refresh: "refresh"
|
62
|
-
};
|
63
|
-
const HEADING_LEVEL = 4;
|
64
|
-
|
65
|
-
const blockCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;transition-property:margin;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);flex-basis:auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.header{justify-content:flex-start;padding:0px}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}.toggle{margin:0px;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0px;padding:0.75rem}.header .title .heading{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}.description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}.icon{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem;-webkit-margin-end:0px;margin-inline-end:0px;margin-block:0.75rem}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.status-icon.loading{animation:spin var(--calcite-internal-animation-timing-medium) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}.toggle-icon{margin-block:0.75rem;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:auto;margin-inline-start:auto}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.container{display:flex;block-size:100%;flex-direction:column}.content{position:relative;flex:1 1 0%}@keyframes in{0%{opacity:0}100%{opacity:1}}.content{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out}.content--spaced{padding-block:var(--calcite-block-padding, 0.5rem);padding-inline:var(--calcite-block-padding, 0.625rem)}.control-container{margin:0px;display:flex;grid-area:control}calcite-action-menu{grid-area:menu}:host([open]){margin-block:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}";
|
66
|
-
|
67
|
-
const Block = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
68
|
-
constructor() {
|
69
|
-
super();
|
70
|
-
this.__registerHost();
|
71
|
-
this.__attachShadow();
|
72
|
-
this.calciteBlockToggle = createEvent(this, "calciteBlockToggle", 6);
|
73
|
-
// --------------------------------------------------------------------------
|
74
|
-
//
|
75
|
-
// Properties
|
76
|
-
//
|
77
|
-
// --------------------------------------------------------------------------
|
78
|
-
/**
|
79
|
-
* When `true`, the component is collapsible.
|
80
|
-
*/
|
81
|
-
this.collapsible = false;
|
82
|
-
/**
|
83
|
-
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
84
|
-
*/
|
85
|
-
this.disabled = false;
|
86
|
-
/**
|
87
|
-
* When `true`, displays a drag handle in the header.
|
88
|
-
*/
|
89
|
-
this.dragHandle = false;
|
90
|
-
/**
|
91
|
-
* Accessible name for the component's collapse button.
|
92
|
-
*
|
93
|
-
* @default "Collapse"
|
94
|
-
*/
|
95
|
-
this.intlCollapse = TEXT.collapse;
|
96
|
-
/**
|
97
|
-
* Accessible name for the component's expand button.
|
98
|
-
*
|
99
|
-
* @default "Expand"
|
100
|
-
*/
|
101
|
-
this.intlExpand = TEXT.expand;
|
102
|
-
/**
|
103
|
-
* Accessible name when the component is loading.
|
104
|
-
*
|
105
|
-
* @default "Loading"
|
106
|
-
*/
|
107
|
-
this.intlLoading = TEXT.loading;
|
108
|
-
/**
|
109
|
-
* Accessible name for the component's options button.
|
110
|
-
*
|
111
|
-
* @default "Options"
|
112
|
-
*/
|
113
|
-
this.intlOptions = TEXT.options;
|
114
|
-
/**
|
115
|
-
* When `true`, a busy indicator is displayed.
|
116
|
-
*/
|
117
|
-
this.loading = false;
|
118
|
-
/**
|
119
|
-
* When `true`, expands the component and its contents.
|
120
|
-
*/
|
121
|
-
this.open = false;
|
122
|
-
/**
|
123
|
-
* When `true`, removes padding for the slotted content.
|
124
|
-
*
|
125
|
-
* @deprecated Use `--calcite-block-padding` CSS variable instead.
|
126
|
-
*/
|
127
|
-
this.disablePadding = false;
|
128
|
-
this.guid = guid();
|
129
|
-
// --------------------------------------------------------------------------
|
130
|
-
//
|
131
|
-
// Private Methods
|
132
|
-
//
|
133
|
-
// --------------------------------------------------------------------------
|
134
|
-
this.onHeaderClick = () => {
|
135
|
-
this.open = !this.open;
|
136
|
-
this.calciteBlockToggle.emit();
|
137
|
-
};
|
138
|
-
}
|
139
|
-
//--------------------------------------------------------------------------
|
140
|
-
//
|
141
|
-
// Lifecycle
|
142
|
-
//
|
143
|
-
//--------------------------------------------------------------------------
|
144
|
-
componentDidRender() {
|
145
|
-
updateHostInteraction(this);
|
146
|
-
}
|
147
|
-
// --------------------------------------------------------------------------
|
148
|
-
//
|
149
|
-
// Lifecycle
|
150
|
-
//
|
151
|
-
// --------------------------------------------------------------------------
|
152
|
-
connectedCallback() {
|
153
|
-
connectConditionalSlotComponent(this);
|
154
|
-
}
|
155
|
-
disconnectedCallback() {
|
156
|
-
disconnectConditionalSlotComponent(this);
|
157
|
-
}
|
158
|
-
// --------------------------------------------------------------------------
|
159
|
-
//
|
160
|
-
// Render Methods
|
161
|
-
//
|
162
|
-
// --------------------------------------------------------------------------
|
163
|
-
renderScrim() {
|
164
|
-
const { loading } = this;
|
165
|
-
const defaultSlot = h("slot", null);
|
166
|
-
return [loading ? h("calcite-scrim", { loading: loading }) : null, defaultSlot];
|
167
|
-
}
|
168
|
-
renderIcon() {
|
169
|
-
const { el, status } = this;
|
170
|
-
const showingLoadingStatus = this.loading && !this.open;
|
171
|
-
const statusIcon = showingLoadingStatus ? ICONS.refresh : ICONS[status];
|
172
|
-
const hasIcon = getSlotted(el, SLOTS.icon) || statusIcon;
|
173
|
-
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS.icon })) : (h("calcite-icon", { class: {
|
174
|
-
[CSS.statusIcon]: true,
|
175
|
-
[CSS.valid]: status == "valid",
|
176
|
-
[CSS.invalid]: status == "invalid",
|
177
|
-
[CSS.loading]: showingLoadingStatus
|
178
|
-
}, icon: statusIcon, scale: "m" }));
|
179
|
-
return hasIcon ? h("div", { class: CSS.icon }, iconEl) : null;
|
180
|
-
}
|
181
|
-
renderTitle() {
|
182
|
-
const { heading, headingLevel, summary, description } = this;
|
183
|
-
return heading || summary || description ? (h("div", { class: CSS.title }, h(Heading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading), summary || description ? (h("div", { class: CSS.description }, summary || description)) : null)) : null;
|
184
|
-
}
|
185
|
-
render() {
|
186
|
-
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
187
|
-
const toggleLabel = open ? intlCollapse || TEXT.collapse : intlExpand || TEXT.expand;
|
188
|
-
const headerContent = (h("header", { class: CSS.header }, this.renderIcon(), this.renderTitle()));
|
189
|
-
const hasControl = !!getSlotted(el, SLOTS.control);
|
190
|
-
const hasMenuActions = !!getSlotted(el, SLOTS.headerMenuActions);
|
191
|
-
const collapseIcon = open ? ICONS.opened : ICONS.closed;
|
192
|
-
const { guid } = this;
|
193
|
-
const regionId = `${guid}-region`;
|
194
|
-
const buttonId = `${guid}-button`;
|
195
|
-
const headerNode = (h("div", { class: CSS.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS.controlContainer }, h("slot", { name: SLOTS.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT.options }, h("slot", { name: SLOTS.headerMenuActions }))) : null));
|
196
|
-
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
197
|
-
[CSS.container]: true
|
198
|
-
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
199
|
-
[CSS.content]: true,
|
200
|
-
[CSS.contentSpaced]: !this.disablePadding
|
201
|
-
}, hidden: !open, id: regionId }, this.renderScrim()))));
|
202
|
-
}
|
203
|
-
get el() { return this; }
|
204
|
-
static get style() { return blockCss; }
|
205
|
-
}, [1, "calcite-block", {
|
206
|
-
"collapsible": [516],
|
207
|
-
"disabled": [516],
|
208
|
-
"dragHandle": [516, "drag-handle"],
|
209
|
-
"heading": [1],
|
210
|
-
"headingLevel": [514, "heading-level"],
|
211
|
-
"intlCollapse": [1, "intl-collapse"],
|
212
|
-
"intlExpand": [1, "intl-expand"],
|
213
|
-
"intlLoading": [1, "intl-loading"],
|
214
|
-
"intlOptions": [1, "intl-options"],
|
215
|
-
"loading": [516],
|
216
|
-
"open": [1540],
|
217
|
-
"status": [513],
|
218
|
-
"summary": [1],
|
219
|
-
"description": [1],
|
220
|
-
"disablePadding": [516, "disable-padding"]
|
221
|
-
}]);
|
222
|
-
function defineCustomElement$1() {
|
223
|
-
if (typeof customElements === "undefined") {
|
224
|
-
return;
|
225
|
-
}
|
226
|
-
const components = ["calcite-block", "calcite-action", "calcite-action-menu", "calcite-handle", "calcite-icon", "calcite-loader", "calcite-popover", "calcite-scrim"];
|
227
|
-
components.forEach(tagName => { switch (tagName) {
|
228
|
-
case "calcite-block":
|
229
|
-
if (!customElements.get(tagName)) {
|
230
|
-
customElements.define(tagName, Block);
|
231
|
-
}
|
232
|
-
break;
|
233
|
-
case "calcite-action":
|
234
|
-
if (!customElements.get(tagName)) {
|
235
|
-
defineCustomElement$8();
|
236
|
-
}
|
237
|
-
break;
|
238
|
-
case "calcite-action-menu":
|
239
|
-
if (!customElements.get(tagName)) {
|
240
|
-
defineCustomElement$7();
|
241
|
-
}
|
242
|
-
break;
|
243
|
-
case "calcite-handle":
|
244
|
-
if (!customElements.get(tagName)) {
|
245
|
-
defineCustomElement$6();
|
246
|
-
}
|
247
|
-
break;
|
248
|
-
case "calcite-icon":
|
249
|
-
if (!customElements.get(tagName)) {
|
250
|
-
defineCustomElement$5();
|
251
|
-
}
|
252
|
-
break;
|
253
|
-
case "calcite-loader":
|
254
|
-
if (!customElements.get(tagName)) {
|
255
|
-
defineCustomElement$4();
|
256
|
-
}
|
257
|
-
break;
|
258
|
-
case "calcite-popover":
|
259
|
-
if (!customElements.get(tagName)) {
|
260
|
-
defineCustomElement$3();
|
261
|
-
}
|
262
|
-
break;
|
263
|
-
case "calcite-scrim":
|
264
|
-
if (!customElements.get(tagName)) {
|
265
|
-
defineCustomElement$2();
|
266
|
-
}
|
267
|
-
break;
|
268
|
-
} });
|
269
|
-
}
|
270
|
-
defineCustomElement$1();
|
271
|
-
|
272
|
-
const CalciteBlock = Block;
|
273
|
-
const defineCustomElement = defineCustomElement$1;
|
274
|
-
|
275
|
-
export { CalciteBlock, defineCustomElement };
|
276
|
-
|
277
|
-
//# sourceMappingURL=calcite-block.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-block.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,aAAa,EAAE,iBAAiB;AAClC,EAAE,eAAe,EAAE,kBAAkB;AACrC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,UAAU,EAAE,aAAa;AAC3B,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,UAAU,EAAE,aAAa;AAC3B,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,MAAM,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;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/block/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/block/block.css?tag=calcite-block&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/block/block.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 container: \"container\",\n content: \"content\",\n contentSpaced: \"content--spaced\",\n headerContainer: \"header-container\",\n icon: \"icon\",\n statusIcon: \"status-icon\",\n toggle: \"toggle\",\n toggleIcon: \"toggle-icon\",\n title: \"title\",\n heading: \"heading\",\n header: \"header\",\n button: \"button\",\n summary: \"summary\",\n description: \"description\",\n controlContainer: \"control-container\",\n valid: \"valid\",\n invalid: \"invalid\",\n loading: \"loading\"\n};\nexport const TEXT = {\n collapse: \"Collapse\",\n expand: \"Expand\",\n loading: \"Loading\",\n options: \"Options\"\n};\nexport const SLOTS = {\n icon: \"icon\",\n control: \"control\",\n headerMenuActions: \"header-menu-actions\"\n};\nexport const ICONS = {\n opened: \"chevron-up\",\n closed: \"chevron-down\",\n valid: \"check-circle\",\n invalid: \"exclamation-mark-triangle\",\n refresh: \"refresh\"\n};\nexport const HEADING_LEVEL = 4;\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n:host * {\n box-sizing: border-box;\n}\n\n:host {\n /* Component spacing variables */\n --calcite-icon-size: 1rem;\n --calcite-spacing-eighth: 0.125rem;\n --calcite-spacing-quarter: 0.25rem;\n --calcite-spacing-half: 0.5rem;\n --calcite-spacing-three-quarters: 0.75rem;\n --calcite-spacing: 1rem;\n --calcite-spacing-plus-quarter: 1.25rem;\n --calcite-spacing-plus-half: 1.5rem;\n --calcite-spacing-double: 2rem;\n --calcite-menu-min-width: 10rem;\n --calcite-header-min-height: 3rem;\n --calcite-footer-min-height: 3rem;\n}\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 flex-shrink: 0;\n flex-grow: 0;\n flex-direction: column;\n border-width: 0px;\n border-block-end-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n padding: 0px;\n transition-property: margin;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.215, 0.440, 0.420, 0.880);\n flex-basis: auto;\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n/* Shared styles for header elements */\n.header {\n margin: 0px;\n display: flex;\n align-content: space-between;\n align-items: center;\n fill: var(--calcite-ui-text-2);\n color: var(--calcite-ui-text-2);\n}\n\n.heading {\n margin: 0px;\n padding: 0px;\n font-weight: var(--calcite-font-weight-medium);\n}\n\n.header .heading {\n flex: 1 1 auto;\n padding: 0.5rem;\n}\n\n.header {\n justify-content: flex-start;\n padding: 0px;\n}\n\n.header,\n.toggle {\n grid-area: header;\n}\n\n.header-container {\n display: grid;\n align-items: stretch;\n grid-template: auto/auto 1fr auto auto;\n grid-template-areas: \"handle header control menu\";\n grid-column: header-start/menu-end;\n grid-row: 1/2;\n}\n\n.toggle {\n margin: 0px;\n display: flex;\n cursor: pointer;\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n border-style: none;\n padding: 0px;\n font-family: inherit;\n outline-color: transparent;\n text-align: initial;\n background-color: transparent;\n}\n.toggle:hover {\n background-color: var(--calcite-ui-foreground-2);\n}\n.toggle:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\ncalcite-loader[inline] {\n grid-area: control;\n align-self: center;\n}\n\ncalcite-handle {\n grid-area: handle;\n}\n\n.title {\n margin: 0px;\n padding: 0.75rem;\n}\n\n.header .title .heading {\n padding: 0px;\n font-size: var(--calcite-font-size--1);\n font-weight: var(--calcite-font-weight-medium);\n line-height: 1.25;\n color: var(--calcite-ui-text-2);\n transition-property: color;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.description {\n margin-block-start: 0.125rem;\n padding: 0px;\n font-size: var(--calcite-font-size--2);\n color: var(--calcite-ui-text-3);\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.icon {\n margin-inline-start: 0.75rem;\n margin-inline-end: 0px;\n margin-block: 0.75rem;\n}\n\n.status-icon.valid {\n color: var(--calcite-ui-success);\n}\n\n.status-icon.invalid {\n color: var(--calcite-ui-danger);\n}\n\n.status-icon.loading {\n animation: spin var(--calcite-internal-animation-timing-medium) linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 50% {\n transform: rotate(180deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.toggle-icon {\n margin-block: 0.75rem;\n align-self: center;\n justify-self: end;\n color: var(--calcite-ui-text-3);\n transition-property: color;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n margin-inline-end: 1rem;\n margin-inline-start: auto;\n}\n\n.toggle:hover .toggle-icon {\n color: var(--calcite-ui-text-1);\n}\n\n.container {\n display: flex;\n block-size: 100%;\n flex-direction: column;\n}\n\n.content {\n position: relative;\n flex: 1 1 0%;\n}\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.content {\n animation: in var(--calcite-internal-animation-timing-slow) ease-in-out;\n}\n\n.content--spaced {\n padding-block: var(--calcite-block-padding, 0.5rem);\n padding-inline: var(--calcite-block-padding, 0.625rem);\n}\n\n.control-container {\n margin: 0px;\n display: flex;\n grid-area: control;\n}\n\ncalcite-action-menu {\n grid-area: menu;\n}\n\n:host([open]) {\n margin-block: 0.5rem;\n}\n:host([open]) .header .title .heading {\n color: var(--calcite-ui-text-1);\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 { CSS, HEADING_LEVEL, ICONS, SLOTS, TEXT } from \"./resources\";\nimport { getSlotted, toAriaBoolean } from \"../../utils/dom\";\nimport { Heading } from \"../functional/Heading\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nimport { guid } from \"../../utils/guid\";\n/**\n * @slot - A slot for adding content to the component.\n * @slot icon - A slot for adding a leading header icon with `calcite-icon`.\n * @slot control - A slot for adding a single HTML input element in a header.\n * @slot header-menu-actions - A slot for adding an overflow menu with `calcite-action`s inside a dropdown.\n */\nexport class Block {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When `true`, the component is collapsible.\n */\n this.collapsible = false;\n /**\n * When `true`, interaction is prevented and the component is displayed with lower opacity.\n */\n this.disabled = false;\n /**\n * When `true`, displays a drag handle in the header.\n */\n this.dragHandle = false;\n /**\n * Accessible name for the component's collapse button.\n *\n * @default \"Collapse\"\n */\n this.intlCollapse = TEXT.collapse;\n /**\n * Accessible name for the component's expand button.\n *\n * @default \"Expand\"\n */\n this.intlExpand = TEXT.expand;\n /**\n * Accessible name when the component is loading.\n *\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * Accessible name for the component's options button.\n *\n * @default \"Options\"\n */\n this.intlOptions = TEXT.options;\n /**\n * When `true`, a busy indicator is displayed.\n */\n this.loading = false;\n /**\n * When `true`, expands the component and its contents.\n */\n this.open = false;\n /**\n * When `true`, removes padding for the slotted content.\n *\n * @deprecated Use `--calcite-block-padding` CSS variable instead.\n */\n this.disablePadding = false;\n this.guid = guid();\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.onHeaderClick = () => {\n this.open = !this.open;\n this.calciteBlockToggle.emit();\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidRender() {\n updateHostInteraction(this);\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n connectConditionalSlotComponent(this);\n }\n disconnectedCallback() {\n disconnectConditionalSlotComponent(this);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderScrim() {\n const { loading } = this;\n const defaultSlot = h(\"slot\", null);\n return [loading ? h(\"calcite-scrim\", { loading: loading }) : null, defaultSlot];\n }\n renderIcon() {\n const { el, status } = this;\n const showingLoadingStatus = this.loading && !this.open;\n const statusIcon = showingLoadingStatus ? ICONS.refresh : ICONS[status];\n const hasIcon = getSlotted(el, SLOTS.icon) || statusIcon;\n const iconEl = !statusIcon ? (h(\"slot\", { key: \"icon-slot\", name: SLOTS.icon })) : (h(\"calcite-icon\", { class: {\n [CSS.statusIcon]: true,\n [CSS.valid]: status == \"valid\",\n [CSS.invalid]: status == \"invalid\",\n [CSS.loading]: showingLoadingStatus\n }, icon: statusIcon, scale: \"m\" }));\n return hasIcon ? h(\"div\", { class: CSS.icon }, iconEl) : null;\n }\n renderTitle() {\n const { heading, headingLevel, summary, description } = this;\n return heading || summary || description ? (h(\"div\", { class: CSS.title }, h(Heading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading), summary || description ? (h(\"div\", { class: CSS.description }, summary || description)) : null)) : null;\n }\n render() {\n const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;\n const toggleLabel = open ? intlCollapse || TEXT.collapse : intlExpand || TEXT.expand;\n const headerContent = (h(\"header\", { class: CSS.header }, this.renderIcon(), this.renderTitle()));\n const hasControl = !!getSlotted(el, SLOTS.control);\n const hasMenuActions = !!getSlotted(el, SLOTS.headerMenuActions);\n const collapseIcon = open ? ICONS.opened : ICONS.closed;\n const { guid } = this;\n const regionId = `${guid}-region`;\n const buttonId = `${guid}-button`;\n const headerNode = (h(\"div\", { class: CSS.headerContainer }, this.dragHandle ? h(\"calcite-handle\", null) : null, collapsible ? (h(\"button\", { \"aria-controls\": regionId, \"aria-expanded\": collapsible ? toAriaBoolean(open) : null, \"aria-label\": toggleLabel, class: CSS.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h(\"calcite-icon\", { \"aria-hidden\": \"true\", class: CSS.toggleIcon, icon: collapseIcon, scale: \"s\" })) : null)) : (headerContent), loading ? (h(\"calcite-loader\", { inline: true, \"is-active\": true, label: intlLoading })) : hasControl ? (h(\"div\", { class: CSS.controlContainer }, h(\"slot\", { name: SLOTS.control }))) : null, hasMenuActions ? (h(\"calcite-action-menu\", { label: this.intlOptions || TEXT.options }, h(\"slot\", { name: SLOTS.headerMenuActions }))) : null));\n return (h(Host, null, h(\"article\", { \"aria-busy\": toAriaBoolean(loading), class: {\n [CSS.container]: true\n } }, headerNode, h(\"section\", { \"aria-expanded\": toAriaBoolean(open), \"aria-labelledby\": buttonId, class: {\n [CSS.content]: true,\n [CSS.contentSpaced]: !this.disablePadding\n }, hidden: !open, id: regionId }, this.renderScrim()))));\n }\n static get is() { return \"calcite-block\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"block.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"block.css\"]\n };\n }\n static get properties() {\n return {\n \"collapsible\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is collapsible.\"\n },\n \"attribute\": \"collapsible\",\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 \"dragHandle\": {\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`, displays a drag handle in the header.\"\n },\n \"attribute\": \"drag-handle\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component header text.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/Heading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the number at which section headings should start.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": true\n },\n \"intlCollapse\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Collapse\\\"\"\n }],\n \"text\": \"Accessible name for the component's collapse button.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.collapse\"\n },\n \"intlExpand\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Expand\\\"\"\n }],\n \"text\": \"Accessible name for the component's expand button.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.expand\"\n },\n \"intlLoading\": {\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\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"Accessible name when the component is loading.\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"intlOptions\": {\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\": \"\\\"Options\\\"\"\n }],\n \"text\": \"Accessible name for the component's options button.\"\n },\n \"attribute\": \"intl-options\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.options\"\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`, a busy indicator is displayed.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"open\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, expands the component and its contents.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"status\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Status\",\n \"resolved\": \"\\\"idle\\\" | \\\"invalid\\\" | \\\"valid\\\"\",\n \"references\": {\n \"Status\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Displays a status-related indicator icon.\"\n },\n \"attribute\": \"status\",\n \"reflect\": true\n },\n \"summary\": {\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 \"name\": \"deprecated\",\n \"text\": \"use `description` instead\"\n }],\n \"text\": \"A description for the component, which displays below the heading.\"\n },\n \"attribute\": \"summary\",\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, which displays below the heading.\"\n },\n \"attribute\": \"description\",\n \"reflect\": false\n },\n \"disablePadding\": {\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 \"name\": \"deprecated\",\n \"text\": \"Use `--calcite-block-padding` CSS variable instead.\"\n }],\n \"text\": \"When `true`, removes padding for the slotted content.\"\n },\n \"attribute\": \"disable-padding\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteBlockToggle\",\n \"name\": \"calciteBlockToggle\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emits when the component's header is clicked.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\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 { B as Button, d as defineCustomElement$1 } from './button.js';
|
7
|
-
|
8
|
-
const CalciteButton = Button;
|
9
|
-
const defineCustomElement = defineCustomElement$1;
|
10
|
-
|
11
|
-
export { CalciteButton, defineCustomElement };
|
12
|
-
|
13
|
-
//# sourceMappingURL=calcite-button.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-button.js","mappings":";;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,189 +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 { t as toAriaBoolean, b as getSlotted } from './dom.js';
|
8
|
-
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
9
|
-
import { d as defineCustomElement$4 } from './checkbox.js';
|
10
|
-
import { d as defineCustomElement$3 } from './label.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
|
-
container: "container",
|
20
|
-
header: "header",
|
21
|
-
footer: "footer",
|
22
|
-
title: "title",
|
23
|
-
subtitle: "subtitle",
|
24
|
-
checkboxWrapper: "checkbox-wrapper",
|
25
|
-
thumbnailWrapper: "thumbnail-wrapper"
|
26
|
-
};
|
27
|
-
const SLOTS = {
|
28
|
-
thumbnail: "thumbnail",
|
29
|
-
title: "title",
|
30
|
-
subtitle: "subtitle",
|
31
|
-
footerLeading: "footer-leading",
|
32
|
-
footerTrailing: "footer-trailing"
|
33
|
-
};
|
34
|
-
const TEXT = {
|
35
|
-
select: "Select",
|
36
|
-
deselect: "Deselect",
|
37
|
-
loading: "Loading"
|
38
|
-
};
|
39
|
-
|
40
|
-
const cardCss = "@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{display:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:var(--calcite-border-radius-base)}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0px;display:flex;align-items:center}.header,.footer{display:flex;padding-inline:0.75rem;padding-block:0.75rem 0.25rem}.header{flex-direction:column}.footer{-webkit-margin-before:auto;margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:0.75rem;padding-block:0.25rem 0.75rem}.card-content{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selectable]) .header{-webkit-padding-end:2rem;padding-inline-end:2rem}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;-webkit-margin-before:0.5rem;margin-block-start:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;inset-block-start:0.5rem;inset-inline-end:0.5rem}.thumbnail-wrapper{display:flex}.calcite-card-container.inline{flex-direction:row}.calcite-card-container.inline>.container{inline-size:60%}.calcite-card-container.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.calcite-card-container.inline slot[name=thumbnail]::slotted(img),.calcite-card-container.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-leading]::slotted(*),slot[name=footer-trailing]::slotted(*){display:flex;gap:0.25rem}";
|
41
|
-
|
42
|
-
const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
43
|
-
constructor() {
|
44
|
-
super();
|
45
|
-
this.__registerHost();
|
46
|
-
this.__attachShadow();
|
47
|
-
this.calciteCardSelect = createEvent(this, "calciteCardSelect", 6);
|
48
|
-
//--------------------------------------------------------------------------
|
49
|
-
//
|
50
|
-
// Public Properties
|
51
|
-
//
|
52
|
-
//--------------------------------------------------------------------------
|
53
|
-
/** When `true`, a busy indicator is displayed. */
|
54
|
-
this.loading = false;
|
55
|
-
/** When `true`, the component is selected. */
|
56
|
-
this.selected = false;
|
57
|
-
/** When `true`, the component is selectable. */
|
58
|
-
this.selectable = false;
|
59
|
-
/**
|
60
|
-
* Accessible name when the component is loading.
|
61
|
-
*
|
62
|
-
* @default "Loading"
|
63
|
-
*/
|
64
|
-
this.intlLoading = TEXT.loading;
|
65
|
-
/**
|
66
|
-
* When `selectable` is `true`, the accessible name for the component's checkbox for selection.
|
67
|
-
*
|
68
|
-
* @default "Select"
|
69
|
-
*/
|
70
|
-
this.intlSelect = TEXT.select;
|
71
|
-
/**
|
72
|
-
* When `selectable` is `true`, the accessible name for the component's checkbox for deselection.
|
73
|
-
*
|
74
|
-
* @default "Deselect"
|
75
|
-
*/
|
76
|
-
this.intlDeselect = TEXT.deselect;
|
77
|
-
/** Sets the placement of the thumbnail defined in the `thumbnail` slot. */
|
78
|
-
this.thumbnailPosition = "block-start";
|
79
|
-
//--------------------------------------------------------------------------
|
80
|
-
//
|
81
|
-
// Private State/Props
|
82
|
-
//
|
83
|
-
//--------------------------------------------------------------------------
|
84
|
-
//--------------------------------------------------------------------------
|
85
|
-
//
|
86
|
-
// Private Methods
|
87
|
-
//
|
88
|
-
//--------------------------------------------------------------------------
|
89
|
-
this.cardSelectClick = () => {
|
90
|
-
this.selectCard();
|
91
|
-
};
|
92
|
-
this.cardSelectKeyDown = (event) => {
|
93
|
-
switch (event.key) {
|
94
|
-
case " ":
|
95
|
-
case "Enter":
|
96
|
-
this.selectCard();
|
97
|
-
event.preventDefault();
|
98
|
-
break;
|
99
|
-
}
|
100
|
-
};
|
101
|
-
}
|
102
|
-
// --------------------------------------------------------------------------
|
103
|
-
//
|
104
|
-
// Lifecycle
|
105
|
-
//
|
106
|
-
// --------------------------------------------------------------------------
|
107
|
-
connectedCallback() {
|
108
|
-
connectConditionalSlotComponent(this);
|
109
|
-
}
|
110
|
-
disonnectedCallback() {
|
111
|
-
disconnectConditionalSlotComponent(this);
|
112
|
-
}
|
113
|
-
render() {
|
114
|
-
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
115
|
-
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
116
|
-
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
117
|
-
}
|
118
|
-
selectCard() {
|
119
|
-
this.selected = !this.selected;
|
120
|
-
this.calciteCardSelect.emit();
|
121
|
-
}
|
122
|
-
renderThumbnail() {
|
123
|
-
return getSlotted(this.el, SLOTS.thumbnail) ? (h("section", { class: CSS.thumbnailWrapper }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
124
|
-
}
|
125
|
-
renderCheckbox() {
|
126
|
-
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
127
|
-
return (h("calcite-label", { class: CSS.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
128
|
-
}
|
129
|
-
renderHeader() {
|
130
|
-
const { el } = this;
|
131
|
-
const title = getSlotted(el, SLOTS.title);
|
132
|
-
const subtitle = getSlotted(el, SLOTS.subtitle);
|
133
|
-
const hasHeader = title || subtitle;
|
134
|
-
return hasHeader ? (h("header", { class: CSS.header }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.subtitle }))) : null;
|
135
|
-
}
|
136
|
-
renderFooter() {
|
137
|
-
const { el } = this;
|
138
|
-
const leadingFooter = getSlotted(el, SLOTS.footerLeading);
|
139
|
-
const trailingFooter = getSlotted(el, SLOTS.footerTrailing);
|
140
|
-
const hasFooter = leadingFooter || trailingFooter;
|
141
|
-
return hasFooter ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footerLeading }), h("slot", { name: SLOTS.footerTrailing }))) : null;
|
142
|
-
}
|
143
|
-
get el() { return this; }
|
144
|
-
static get style() { return cardCss; }
|
145
|
-
}, [1, "calcite-card", {
|
146
|
-
"loading": [516],
|
147
|
-
"selected": [1540],
|
148
|
-
"selectable": [516],
|
149
|
-
"intlLoading": [1, "intl-loading"],
|
150
|
-
"intlSelect": [1, "intl-select"],
|
151
|
-
"intlDeselect": [1, "intl-deselect"],
|
152
|
-
"thumbnailPosition": [513, "thumbnail-position"]
|
153
|
-
}]);
|
154
|
-
function defineCustomElement$1() {
|
155
|
-
if (typeof customElements === "undefined") {
|
156
|
-
return;
|
157
|
-
}
|
158
|
-
const components = ["calcite-card", "calcite-checkbox", "calcite-label", "calcite-loader"];
|
159
|
-
components.forEach(tagName => { switch (tagName) {
|
160
|
-
case "calcite-card":
|
161
|
-
if (!customElements.get(tagName)) {
|
162
|
-
customElements.define(tagName, Card);
|
163
|
-
}
|
164
|
-
break;
|
165
|
-
case "calcite-checkbox":
|
166
|
-
if (!customElements.get(tagName)) {
|
167
|
-
defineCustomElement$4();
|
168
|
-
}
|
169
|
-
break;
|
170
|
-
case "calcite-label":
|
171
|
-
if (!customElements.get(tagName)) {
|
172
|
-
defineCustomElement$3();
|
173
|
-
}
|
174
|
-
break;
|
175
|
-
case "calcite-loader":
|
176
|
-
if (!customElements.get(tagName)) {
|
177
|
-
defineCustomElement$2();
|
178
|
-
}
|
179
|
-
break;
|
180
|
-
} });
|
181
|
-
}
|
182
|
-
defineCustomElement$1();
|
183
|
-
|
184
|
-
const CalciteCard = Card;
|
185
|
-
const defineCustomElement = defineCustomElement$1;
|
186
|
-
|
187
|
-
export { CalciteCard, defineCustomElement };
|
188
|
-
|
189
|
-
//# sourceMappingURL=calcite-card.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-card.js","mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,eAAe,EAAE,kBAAkB;AACrC,EAAE,gBAAgB,EAAE,mBAAmB;AACvC,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,cAAc,EAAE,iBAAiB;AACnC,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,OAAO,EAAE,SAAS;AACpB,CAA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,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC;GACrJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/card/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/card/card.css?tag=calcite-card&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/card/card.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 container: \"container\",\n header: \"header\",\n footer: \"footer\",\n title: \"title\",\n subtitle: \"subtitle\",\n checkboxWrapper: \"checkbox-wrapper\",\n thumbnailWrapper: \"thumbnail-wrapper\"\n};\nexport const SLOTS = {\n thumbnail: \"thumbnail\",\n title: \"title\",\n subtitle: \"subtitle\",\n footerLeading: \"footer-leading\",\n footerTrailing: \"footer-trailing\"\n};\nexport const TEXT = {\n select: \"Select\",\n deselect: \"Deselect\",\n loading: \"Loading\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n max-inline-size: 100%;\n}\n:host .calcite-card-container {\n position: relative;\n display: flex;\n block-size: 100%;\n flex-direction: column;\n justify-content: space-between;\n overflow: hidden;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-3);\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n border-radius: var(--calcite-border-radius-base);\n}\n\n.container {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n}\n\n:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container) {\n pointer-events: none;\n opacity: 0;\n}\n\n:host([loading]) .calcite-card-loader-container {\n position: absolute;\n inset: 0px;\n display: flex;\n align-items: center;\n}\n\n.header, \n.footer {\n display: flex;\n padding-inline: 0.75rem;\n padding-block: 0.75rem 0.25rem;\n}\n\n.header {\n flex-direction: column;\n}\n\n.footer {\n margin-block-start: auto;\n flex-direction: row;\n align-content: space-between;\n justify-content: space-between;\n padding-inline: 0.75rem;\n padding-block: 0.25rem 0.75rem;\n}\n\n.card-content {\n padding: 0.75rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n color: var(--calcite-ui-text-3);\n}\n\n:host([selected]) .calcite-card-container {\n border-color: var(--calcite-ui-brand);\n}\n\nslot[name=title]::slotted(*), \n*::slotted([slot=title]) {\n margin: 0px;\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n:host([selectable]) .header {\n padding-inline-end: 2rem;\n}\n\nslot[name=subtitle]::slotted(*), \n*::slotted([slot=subtitle]) {\n margin: 0px;\n margin-block-start: 0.5rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-2);\n}\n\nslot[name=thumbnail]::slotted(img), \nimg::slotted([slot=thumbnail]) {\n min-inline-size: 100%;\n max-inline-size: 100%;\n}\n\nslot[name=footer-leading]::slotted(*), \n*::slotted([slot=footer-leading]) {\n align-self: center;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n margin-inline-end: auto;\n}\n\nslot[name=footer-trailing]::slotted(*), \n*::slotted([slot=footer-trailing]) {\n align-self: center;\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n\n.checkbox-wrapper {\n position: absolute;\n margin: 0px;\n padding: 0px;\n inset-block-start: 0.5rem;\n inset-inline-end: 0.5rem;\n}\n\n.thumbnail-wrapper {\n display: flex;\n}\n\n.calcite-card-container.inline {\n flex-direction: row;\n}\n.calcite-card-container.inline > .container {\n inline-size: 60%;\n}\n.calcite-card-container.inline > .thumbnail-wrapper {\n inline-size: 40%;\n align-items: flex-start;\n}\n.calcite-card-container.inline slot[name=thumbnail]::slotted(img), \n.calcite-card-container.inline img::slotted([slot=thumbnail]) {\n inline-size: 100%;\n}\n\nslot[name=footer-leading]::slotted(*), \nslot[name=footer-trailing]::slotted(*) {\n display: flex;\n gap: 0.25rem;\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 { getSlotted, toAriaBoolean } from \"../../utils/dom\";\nimport { CSS, SLOTS, TEXT } from \"./resources\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\n/**\n * Cards do not include a grid or bounding container\n * - cards will expand to fit the width of their container\n */\n/**\n * @slot - A slot for adding subheader/description content.\n * @slot thumbnail - A slot for adding a thumbnail to the component.\n * @slot title - A slot for adding a title.\n * @slot subtitle - A slot for adding a subtitle or short summary.\n * @slot footer-leading - A slot for adding a leading footer.\n * @slot footer-trailing - A slot for adding a trailing footer.\n */\nexport class Card {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** When `true`, a busy indicator is displayed. */\n this.loading = false;\n /** When `true`, the component is selected. */\n this.selected = false;\n /** When `true`, the component is selectable. */\n this.selectable = false;\n /**\n * Accessible name when the component is loading.\n *\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * When `selectable` is `true`, the accessible name for the component's checkbox for selection.\n *\n * @default \"Select\"\n */\n this.intlSelect = TEXT.select;\n /**\n * When `selectable` is `true`, the accessible name for the component's checkbox for deselection.\n *\n * @default \"Deselect\"\n */\n this.intlDeselect = TEXT.deselect;\n /** Sets the placement of the thumbnail defined in the `thumbnail` slot. */\n this.thumbnailPosition = \"block-start\";\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.cardSelectClick = () => {\n this.selectCard();\n };\n this.cardSelectKeyDown = (event) => {\n switch (event.key) {\n case \" \":\n case \"Enter\":\n this.selectCard();\n event.preventDefault();\n break;\n }\n };\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n connectConditionalSlotComponent(this);\n }\n disonnectedCallback() {\n disconnectConditionalSlotComponent(this);\n }\n render() {\n const thumbnailInline = this.thumbnailPosition.startsWith(\"inline\");\n const thumbnailStart = this.thumbnailPosition.endsWith(\"start\");\n return (h(\"div\", { class: { \"calcite-card-container\": true, inline: thumbnailInline } }, this.loading ? (h(\"div\", { class: \"calcite-card-loader-container\" }, h(\"calcite-loader\", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h(\"section\", { \"aria-busy\": toAriaBoolean(this.loading), class: { [CSS.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h(\"div\", { class: \"card-content\" }, h(\"slot\", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));\n }\n selectCard() {\n this.selected = !this.selected;\n this.calciteCardSelect.emit();\n }\n renderThumbnail() {\n return getSlotted(this.el, SLOTS.thumbnail) ? (h(\"section\", { class: CSS.thumbnailWrapper }, h(\"slot\", { name: SLOTS.thumbnail }))) : null;\n }\n renderCheckbox() {\n const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;\n return (h(\"calcite-label\", { class: CSS.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h(\"calcite-checkbox\", { checked: this.selected, label: checkboxLabel })));\n }\n renderHeader() {\n const { el } = this;\n const title = getSlotted(el, SLOTS.title);\n const subtitle = getSlotted(el, SLOTS.subtitle);\n const hasHeader = title || subtitle;\n return hasHeader ? (h(\"header\", { class: CSS.header }, h(\"slot\", { name: SLOTS.title }), h(\"slot\", { name: SLOTS.subtitle }))) : null;\n }\n renderFooter() {\n const { el } = this;\n const leadingFooter = getSlotted(el, SLOTS.footerLeading);\n const trailingFooter = getSlotted(el, SLOTS.footerTrailing);\n const hasFooter = leadingFooter || trailingFooter;\n return hasFooter ? (h(\"footer\", { class: CSS.footer }, h(\"slot\", { name: SLOTS.footerLeading }), h(\"slot\", { name: SLOTS.footerTrailing }))) : null;\n }\n static get is() { return \"calcite-card\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"card.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"card.css\"]\n };\n }\n static get properties() {\n return {\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`, a busy indicator is displayed.\"\n },\n \"attribute\": \"loading\",\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 \"selectable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is selectable.\"\n },\n \"attribute\": \"selectable\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlLoading\": {\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\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"Accessible name when the component is loading.\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"intlSelect\": {\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 \"name\": \"default\",\n \"text\": \"\\\"Select\\\"\"\n }],\n \"text\": \"When `selectable` is `true`, the accessible name for the component's checkbox for selection.\"\n },\n \"attribute\": \"intl-select\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.select\"\n },\n \"intlDeselect\": {\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 \"name\": \"default\",\n \"text\": \"\\\"Deselect\\\"\"\n }],\n \"text\": \"When `selectable` is `true`, the accessible name for the component's checkbox for deselection.\"\n },\n \"attribute\": \"intl-deselect\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.deselect\"\n },\n \"thumbnailPosition\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"LogicalFlowPosition\",\n \"resolved\": \"\\\"block-end\\\" | \\\"block-start\\\" | \\\"inline-end\\\" | \\\"inline-start\\\"\",\n \"references\": {\n \"LogicalFlowPosition\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the placement of the thumbnail defined in the `thumbnail` slot.\"\n },\n \"attribute\": \"thumbnail-position\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"block-start\\\"\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteCardSelect\",\n \"name\": \"calciteCardSelect\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when `selectable` is `true` and the component is selected.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\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 { C as Checkbox, d as defineCustomElement$1 } from './checkbox.js';
|
7
|
-
|
8
|
-
const CalciteCheckbox = Checkbox;
|
9
|
-
const defineCustomElement = defineCustomElement$1;
|
10
|
-
|
11
|
-
export { CalciteCheckbox, defineCustomElement };
|
12
|
-
|
13
|
-
//# sourceMappingURL=calcite-checkbox.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-checkbox.js","mappings":";;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|