@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 +0,0 @@
|
|
1
|
-
{"file":"chip.js","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,cAAc,EAAE,iBAAiB;AACnC,EAAE,QAAQ,EAAE,WAAW;AACvB,EAAE,SAAS,EAAE,YAAY;AACzB,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;ACpBD,MAAM,OAAO,GAAG,4gNAA4gN;;MCc/gN,IAAI;EACf;;;;;;;;;;;IAOE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;;IAE1B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;;;;;;IAMpB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;;IAEzB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC;;IAE/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;;IAEzB,IAAI,CAAC,KAAK,GAAG,GA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dist/collection/components/chip/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css?tag=calcite-chip&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/chip/chip.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 title: \"title\",\n close: \"close\",\n imageContainer: \"image-container\",\n chipIcon: \"chip-icon\",\n closeIcon: \"close-icon\"\n};\nexport const TEXT = {\n close: \"Close\"\n};\nexport const SLOTS = {\n image: \"image\"\n};\nexport const ICONS = {\n close: \"x\"\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([scale=s]) {\n block-size: 1.5rem;\n font-size: var(--calcite-font-size--2);\n --calcite-chip-spacing-unit-l: 0.5rem;\n --calcite-chip-spacing-unit-s: 0.25rem;\n}\n:host([scale=s]) .image-container {\n block-size: 1.25rem;\n inline-size: 1.25rem;\n}\n\n:host([scale=m]) {\n block-size: 2rem;\n font-size: var(--calcite-font-size--1);\n --calcite-chip-spacing-unit-l: 0.75rem;\n --calcite-chip-spacing-unit-s: 6px;\n}\n:host([scale=m]) .image-container {\n block-size: 1.5rem;\n inline-size: 1.5rem;\n padding-inline-start: 0.25rem;\n}\n\n:host([scale=l]) {\n block-size: 2.75rem;\n font-size: var(--calcite-font-size-0);\n --calcite-chip-spacing-unit-l: 1rem;\n --calcite-chip-spacing-unit-s: 0.5rem;\n}\n:host([scale=l]) .image-container {\n block-size: 2rem;\n inline-size: 2rem;\n padding-inline-start: 0.25rem;\n}\n\n:host {\n box-sizing: border-box;\n display: inline-flex;\n cursor: default;\n align-items: center;\n border-radius: 9999px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-1);\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n.container {\n display: inline-flex;\n block-size: 100%;\n max-inline-size: 100%;\n align-items: center;\n}\n\n.title {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host span {\n padding-block: 0;\n padding-inline: var(--calcite-chip-spacing-unit-l);\n}\n\n:host([closable]) span {\n padding-inline: var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s);\n}\n\n:host([icon]:not([closable])) span {\n padding-block: 0;\n padding-inline: var(--calcite-chip-spacing-unit-l);\n}\n\n:host button {\n margin: 0px;\n display: inline-flex;\n max-block-size: 100%;\n min-block-size: 100%;\n cursor: pointer;\n align-items: center;\n align-self: stretch;\n border-style: none;\n background-color: transparent;\n color: var(--calcite-ui-text-1);\n outline-color: transparent;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n -webkit-appearance: none;\n border-start-start-radius: 0;\n border-start-end-radius: 50px;\n border-end-end-radius: 50px;\n border-end-start-radius: 0;\n padding-block: 0;\n padding-inline: var(--calcite-chip-spacing-unit-s);\n color: inherit;\n --calcite-chip-transparent-hover: var(--calcite-button-transparent-hover);\n --calcite-chip-transparent-press: var(--calcite-button-transparent-press);\n}\n:host button:hover {\n background-color: var(--calcite-chip-transparent-hover);\n}\n:host button:focus {\n background-color: var(--calcite-chip-transparent-hover);\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n:host button:active {\n background-color: var(--calcite-chip-transparent-press);\n}\n\n.image-container {\n display: inline-flex;\n overflow: hidden;\n border-radius: 50%;\n}\n\n:host slot[name=image]::slotted(*) {\n display: flex;\n block-size: 100%;\n inline-size: 100%;\n overflow: hidden;\n border-radius: 50%;\n}\n\n.chip-icon {\n position: relative;\n margin-block: 0px;\n display: inline-flex;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n margin-inline-end: 0;\n margin-inline-start: var(--calcite-chip-spacing-unit-l);\n border-start-start-radius: 0;\n border-start-end-radius: 50px;\n border-end-end-radius: 50px;\n border-end-start-radius: 0;\n}\n\n:host([color=blue]) {\n border-color: transparent;\n background-color: var(--calcite-ui-info);\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([color=red]) {\n border-color: transparent;\n background-color: var(--calcite-ui-danger);\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([color=yellow]) {\n border-color: transparent;\n background-color: var(--calcite-ui-warning);\n color: #151515;\n}\n\n:host([color=green]) {\n border-color: transparent;\n background-color: var(--calcite-ui-success);\n color: #151515;\n}\n\n:host([color=grey]) {\n border-color: transparent;\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n:host([color=grey]) button,\n:host([color=grey]) .close-icon {\n color: var(--calcite-ui-text-3);\n}\n:host([color=grey]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-text-3));\n}\n\n:host([appearance=clear]), \n:host([appearance=transparent]) {\n background-color: transparent;\n color: var(--calcite-ui-text-1);\n}\n\n:host([color=blue][appearance=clear]),\n:host([color=blue][appearance=transparent]) {\n border-color: var(--calcite-ui-info);\n}\n:host([color=blue][appearance=clear]) .chip-icon,\n:host([color=blue][appearance=transparent]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-info));\n}\n\n:host([color=red][appearance=clear]),\n:host([color=red][appearance=transparent]) {\n border-color: var(--calcite-ui-danger);\n}\n:host([color=red][appearance=clear]) .chip-icon,\n:host([color=red][appearance=transparent]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-danger));\n}\n\n:host([color=yellow][appearance=clear]),\n:host([color=yellow][appearance=transparent]) {\n border-color: var(--calcite-ui-warning);\n}\n:host([color=yellow][appearance=clear]) .chip-icon,\n:host([color=yellow][appearance=transparent]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-warning));\n}\n\n:host([color=green][appearance=clear]),\n:host([color=green][appearance=transparent]) {\n border-color: var(--calcite-ui-success);\n}\n:host([color=green][appearance=clear]) .chip-icon,\n:host([color=green][appearance=transparent]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-success));\n}\n\n:host([color=grey][appearance=clear]),\n:host([color=grey][appearance=transparent]) {\n border-color: var(--calcite-ui-border-1);\n}\n:host([color=grey][appearance=clear]) .chip-icon,\n:host([color=grey][appearance=transparent]) .chip-icon {\n color: var(--calcite-ui-icon-color, var(--calcite-ui-text-3));\n}\n\n:host([closed]) {\n display: none;\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 } from \"../../utils/dom\";\nimport { guid } from \"../../utils/guid\";\nimport { CSS, TEXT, SLOTS, ICONS } from \"./resources\";\nimport { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from \"../../utils/conditionalSlot\";\n/**\n * @slot - A slot for adding text.\n * @slot image - A slot for adding an image.\n */\nexport class Chip {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** Specifies the appearance style of the component. */\n this.appearance = \"solid\";\n /** Specifies the color for the component. */\n this.color = \"grey\";\n /**\n * When `true`, a close button is added to the component.\n *\n * @deprecated use `closable` instead.\n */\n this.dismissible = false;\n /** When `true`, a close button is added to the component. */\n this.closable = false;\n /**\n * Accessible name for the component's close button.\n *\n * @default \"Close\"\n */\n this.dismissLabel = TEXT.close;\n /** When `true`, the icon will be flipped when the element direction is right-to-left (`\"rtl\"`). */\n this.iconFlipRtl = false;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /** When `true`, hides the component. */\n this.closed = false;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.closeClickHandler = (event) => {\n event.preventDefault();\n this.calciteChipDismiss.emit(this.el);\n this.closed = true;\n };\n this.guid = guid();\n }\n handleDismissible(value) {\n this.closable = value;\n }\n handleClosable(value) {\n this.dismissible = value;\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n connectConditionalSlotComponent(this);\n if (this.dismissible) {\n this.handleDismissible(this.dismissible);\n }\n if (this.closable) {\n this.handleClosable(this.closable);\n }\n }\n disconnectedCallback() {\n disconnectConditionalSlotComponent(this);\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.closeButton) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n renderChipImage() {\n const { el } = this;\n const hasChipImage = getSlotted(el, SLOTS.image);\n return hasChipImage ? (h(\"div\", { class: CSS.imageContainer, key: \"image\" }, h(\"slot\", { name: SLOTS.image }))) : null;\n }\n render() {\n const iconEl = (h(\"calcite-icon\", { class: CSS.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: \"s\" }));\n const closeButton = (h(\"button\", { \"aria-describedby\": this.guid, \"aria-label\": this.dismissLabel, class: CSS.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h(\"calcite-icon\", { class: CSS.closeIcon, icon: ICONS.close, scale: \"s\" })));\n return (h(\"div\", { class: \"container\" }, this.renderChipImage(), this.icon ? iconEl : null, h(\"span\", { class: CSS.title, id: this.guid }, h(\"slot\", null)), this.closable ? closeButton : null));\n }\n static get is() { return \"calcite-chip\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"chip.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"chip.css\"]\n };\n }\n static get properties() {\n return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"solid\\\" | \\\"clear\\\", Appearance>\",\n \"resolved\": \"\\\"clear\\\" | \\\"solid\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Appearance\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the appearance style of the component.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ChipColor\",\n \"resolved\": \"\\\"blue\\\" | \\\"green\\\" | \\\"grey\\\" | \\\"red\\\" | \\\"yellow\\\"\",\n \"references\": {\n \"ChipColor\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the color for the component.\"\n },\n \"attribute\": \"color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"grey\\\"\"\n },\n \"dismissible\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `closable` instead.\"\n }],\n \"text\": \"When `true`, a close button is added to the component.\"\n },\n \"attribute\": \"dismissible\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"closable\": {\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`, a close button is added to the component.\"\n },\n \"attribute\": \"closable\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"dismissLabel\": {\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\": \"\\\"Close\\\"\"\n }],\n \"text\": \"Accessible name for the component's close button.\"\n },\n \"attribute\": \"dismiss-label\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.close\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": true\n },\n \"iconFlipRtl\": {\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 icon will be flipped when the element direction is right-to-left (`\\\"rtl\\\"`).\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component's value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n },\n \"closed\": {\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`, hides the component.\"\n },\n \"attribute\": \"closed\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteChipDismiss\",\n \"name\": \"calciteChipDismiss\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the dismiss button is clicked.\\n\\n**Note:**: The `el` event payload props is deprecated, please use the event's `target`/`currentTarget` instead.\"\n },\n \"complexType\": {\n \"original\": \"DeprecatedEventPayload\",\n \"resolved\": \"any\",\n \"references\": {\n \"DeprecatedEventPayload\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"dismissible\",\n \"methodName\": \"handleDismissible\"\n }, {\n \"propName\": \"closable\",\n \"methodName\": \"handleClosable\"\n }];\n }\n}\n"],"version":3}
|
@@ -1,365 +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 { n as normalizeHex, i as isValidHex, a as isLonghandHex, r as rgbToHex, b as hexChar } from './utils.js';
|
8
|
-
import { c as color, d as defineCustomElement$4 } from './color-picker-swatch.js';
|
9
|
-
import { f as focusElement } from './dom.js';
|
10
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
11
|
-
import { d as defineCustomElement$2 } from './input.js';
|
12
|
-
import { d as defineCustomElement$1 } from './progress.js';
|
13
|
-
|
14
|
-
/*!
|
15
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
16
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
17
|
-
* v1.0.0-beta.97
|
18
|
-
*/
|
19
|
-
const CSS$1 = {
|
20
|
-
container: "container",
|
21
|
-
controlSection: "control-section",
|
22
|
-
hexOptions: "color-hex-options",
|
23
|
-
section: "section",
|
24
|
-
header: "header",
|
25
|
-
control: "control",
|
26
|
-
splitSection: "section--split",
|
27
|
-
colorModeContainer: "color-mode-container",
|
28
|
-
colorMode: "color-mode",
|
29
|
-
channels: "channels",
|
30
|
-
channel: "channel",
|
31
|
-
savedColors: "saved-colors",
|
32
|
-
savedColorsSection: "saved-colors-section",
|
33
|
-
saveColor: "save-color",
|
34
|
-
deleteColor: "delete-color",
|
35
|
-
savedColorsButtons: "saved-colors-buttons",
|
36
|
-
headerHex: "header--hex",
|
37
|
-
colorFieldAndSlider: "color-field-and-slider",
|
38
|
-
colorFieldAndSliderInteractive: "color-field-and-slider--interactive",
|
39
|
-
colorFieldAndSliderWrap: "color-field-and-slider-wrap",
|
40
|
-
scope: "scope",
|
41
|
-
hueScope: "scope--hue",
|
42
|
-
colorFieldScope: "scope--color-field",
|
43
|
-
savedColor: "saved-color"
|
44
|
-
};
|
45
|
-
const DEFAULT_COLOR$1 = color("#007AC2");
|
46
|
-
const DEFAULT_STORAGE_KEY_PREFIX = "calcite-color-";
|
47
|
-
const RGB_LIMITS = {
|
48
|
-
r: 255,
|
49
|
-
g: 255,
|
50
|
-
b: 255
|
51
|
-
};
|
52
|
-
const HSV_LIMITS = {
|
53
|
-
h: 360,
|
54
|
-
s: 100,
|
55
|
-
v: 100
|
56
|
-
};
|
57
|
-
const TEXT = {
|
58
|
-
b: "B",
|
59
|
-
blue: "Blue",
|
60
|
-
deleteColor: "Delete color",
|
61
|
-
g: "G",
|
62
|
-
green: "Green",
|
63
|
-
h: "H",
|
64
|
-
hsv: "HSV",
|
65
|
-
hex: "Hex",
|
66
|
-
hue: "Hue",
|
67
|
-
noColor: "No color",
|
68
|
-
r: "R",
|
69
|
-
red: "Red",
|
70
|
-
rgb: "RGB",
|
71
|
-
s: "S",
|
72
|
-
saturation: "Saturation",
|
73
|
-
saveColor: "Save color",
|
74
|
-
saved: "Saved",
|
75
|
-
v: "V",
|
76
|
-
value: "Value"
|
77
|
-
};
|
78
|
-
const DIMENSIONS = {
|
79
|
-
s: {
|
80
|
-
slider: {
|
81
|
-
height: 10,
|
82
|
-
width: 160
|
83
|
-
},
|
84
|
-
colorField: {
|
85
|
-
height: 80,
|
86
|
-
width: 160
|
87
|
-
},
|
88
|
-
thumb: {
|
89
|
-
radius: 8
|
90
|
-
}
|
91
|
-
},
|
92
|
-
m: {
|
93
|
-
slider: {
|
94
|
-
height: 14,
|
95
|
-
width: 272
|
96
|
-
},
|
97
|
-
colorField: {
|
98
|
-
height: 150,
|
99
|
-
width: 272
|
100
|
-
},
|
101
|
-
thumb: {
|
102
|
-
radius: 10
|
103
|
-
}
|
104
|
-
},
|
105
|
-
l: {
|
106
|
-
slider: {
|
107
|
-
height: 16,
|
108
|
-
width: 464
|
109
|
-
},
|
110
|
-
colorField: {
|
111
|
-
height: 200,
|
112
|
-
width: 464
|
113
|
-
},
|
114
|
-
thumb: {
|
115
|
-
radius: 12
|
116
|
-
}
|
117
|
-
}
|
118
|
-
};
|
119
|
-
|
120
|
-
/*!
|
121
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
122
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
123
|
-
* v1.0.0-beta.97
|
124
|
-
*/
|
125
|
-
const CSS = {
|
126
|
-
container: "container",
|
127
|
-
preview: "preview",
|
128
|
-
input: "input"
|
129
|
-
};
|
130
|
-
|
131
|
-
const colorPickerHexInputCss = "@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}.container{display:inline-grid;inline-size:100%;align-items:center;grid-template-columns:1fr auto}.preview{grid-column:2/3;pointer-events:none;margin-block:0px;margin-inline:0.25rem;display:flex;align-items:center}.preview,.input{grid-row:1}.input{grid-column:1/3;inline-size:100%;text-transform:uppercase}";
|
132
|
-
|
133
|
-
const DEFAULT_COLOR = color();
|
134
|
-
const ColorPickerHexInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
135
|
-
constructor() {
|
136
|
-
super();
|
137
|
-
this.__registerHost();
|
138
|
-
this.__attachShadow();
|
139
|
-
this.calciteColorPickerHexInputChange = createEvent(this, "calciteColorPickerHexInputChange", 6);
|
140
|
-
//--------------------------------------------------------------------------
|
141
|
-
//
|
142
|
-
// Public Properties
|
143
|
-
//
|
144
|
-
//--------------------------------------------------------------------------
|
145
|
-
/**
|
146
|
-
* When `false`, an empty color (`null`) will be allowed as a `value`. Otherwise, a color value is enforced on the component.
|
147
|
-
*
|
148
|
-
* When `true`, a color value is enforced, and clearing the input or blurring will restore the last valid `value`. When `false`, an empty color (`null`) will be allowed as a `value`.
|
149
|
-
*/
|
150
|
-
this.allowEmpty = false;
|
151
|
-
/**
|
152
|
-
* Accessible name for the Hex input.
|
153
|
-
*
|
154
|
-
* @default "Hex"
|
155
|
-
*/
|
156
|
-
this.intlHex = TEXT.hex;
|
157
|
-
/**
|
158
|
-
* Accessible name for the Hex input when there is no color selected.
|
159
|
-
*
|
160
|
-
* @default "No color"
|
161
|
-
*/
|
162
|
-
this.intlNoColor = TEXT.noColor;
|
163
|
-
/** Specifies the size of the component. */
|
164
|
-
this.scale = "m";
|
165
|
-
/**
|
166
|
-
* The Hex value.
|
167
|
-
*/
|
168
|
-
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
169
|
-
this.onCalciteInternalInputBlur = () => {
|
170
|
-
const node = this.inputNode;
|
171
|
-
const inputValue = node.value;
|
172
|
-
const hex = `#${inputValue}`;
|
173
|
-
const willClearValue = this.allowEmpty && !inputValue;
|
174
|
-
if (willClearValue || (isValidHex(hex) && isLonghandHex(hex))) {
|
175
|
-
return;
|
176
|
-
}
|
177
|
-
// manipulating DOM directly since rerender doesn't update input value
|
178
|
-
node.value =
|
179
|
-
this.allowEmpty && !this.internalColor
|
180
|
-
? ""
|
181
|
-
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
182
|
-
};
|
183
|
-
this.onInputChange = () => {
|
184
|
-
this.internalSetValue(this.inputNode.value, this.value);
|
185
|
-
};
|
186
|
-
/**
|
187
|
-
* The last valid/selected color. Used as a fallback if an invalid hex code is entered.
|
188
|
-
*/
|
189
|
-
this.internalColor = DEFAULT_COLOR;
|
190
|
-
this.previousNonNullValue = this.value;
|
191
|
-
this.storeInputRef = (node) => {
|
192
|
-
this.inputNode = node;
|
193
|
-
};
|
194
|
-
}
|
195
|
-
//--------------------------------------------------------------------------
|
196
|
-
//
|
197
|
-
// Lifecycle
|
198
|
-
//
|
199
|
-
//--------------------------------------------------------------------------
|
200
|
-
connectedCallback() {
|
201
|
-
const { allowEmpty, value } = this;
|
202
|
-
if (value) {
|
203
|
-
const normalized = normalizeHex(value);
|
204
|
-
if (isValidHex(normalized)) {
|
205
|
-
this.internalSetValue(normalized, normalized, false);
|
206
|
-
}
|
207
|
-
return;
|
208
|
-
}
|
209
|
-
if (allowEmpty) {
|
210
|
-
this.internalSetValue(null, null, false);
|
211
|
-
}
|
212
|
-
}
|
213
|
-
handleValueChange(value, oldValue) {
|
214
|
-
this.internalSetValue(value, oldValue, false);
|
215
|
-
}
|
216
|
-
// using @Listen as a workaround for VDOM listener not firing
|
217
|
-
onInputKeyDown(event) {
|
218
|
-
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
219
|
-
const { internalColor, value } = this;
|
220
|
-
const { key } = event;
|
221
|
-
if (key === "Tab" || key === "Enter") {
|
222
|
-
this.onInputChange();
|
223
|
-
return;
|
224
|
-
}
|
225
|
-
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
226
|
-
const oldValue = this.value;
|
227
|
-
if (isNudgeKey) {
|
228
|
-
if (!value) {
|
229
|
-
this.internalSetValue(this.previousNonNullValue, oldValue);
|
230
|
-
event.preventDefault();
|
231
|
-
return;
|
232
|
-
}
|
233
|
-
const direction = key === "ArrowUp" ? 1 : -1;
|
234
|
-
const bump = shiftKey ? 10 : 1;
|
235
|
-
this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);
|
236
|
-
event.preventDefault();
|
237
|
-
return;
|
238
|
-
}
|
239
|
-
const withModifiers = altKey || ctrlKey || metaKey;
|
240
|
-
const singleChar = key.length === 1;
|
241
|
-
const validHexChar = hexChar.test(key);
|
242
|
-
if (singleChar && !withModifiers && !validHexChar) {
|
243
|
-
event.preventDefault();
|
244
|
-
}
|
245
|
-
}
|
246
|
-
onPaste(event) {
|
247
|
-
const hex = event.clipboardData.getData("text");
|
248
|
-
if (isValidHex(hex)) {
|
249
|
-
event.preventDefault();
|
250
|
-
this.inputNode.value = hex.slice(1);
|
251
|
-
}
|
252
|
-
}
|
253
|
-
//--------------------------------------------------------------------------
|
254
|
-
//
|
255
|
-
// Lifecycle
|
256
|
-
//
|
257
|
-
//--------------------------------------------------------------------------
|
258
|
-
render() {
|
259
|
-
const { intlHex, value } = this;
|
260
|
-
const hexInputValue = this.formatForInternalInput(value);
|
261
|
-
return (h("div", { class: CSS.container }, h("calcite-input", { class: CSS.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
262
|
-
}
|
263
|
-
//--------------------------------------------------------------------------
|
264
|
-
//
|
265
|
-
// Public Methods
|
266
|
-
//
|
267
|
-
//--------------------------------------------------------------------------
|
268
|
-
/** Sets focus on the component. */
|
269
|
-
async setFocus() {
|
270
|
-
focusElement(this.inputNode);
|
271
|
-
}
|
272
|
-
//--------------------------------------------------------------------------
|
273
|
-
//
|
274
|
-
// Private Methods
|
275
|
-
//
|
276
|
-
//--------------------------------------------------------------------------
|
277
|
-
internalSetValue(value, oldValue, emit = true) {
|
278
|
-
if (value) {
|
279
|
-
const normalized = normalizeHex(value);
|
280
|
-
if (isValidHex(normalized)) {
|
281
|
-
const { internalColor } = this;
|
282
|
-
const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
|
283
|
-
this.internalColor = color(normalized);
|
284
|
-
this.previousNonNullValue = normalized;
|
285
|
-
this.value = normalized;
|
286
|
-
if (changed && emit) {
|
287
|
-
this.calciteColorPickerHexInputChange.emit();
|
288
|
-
}
|
289
|
-
return;
|
290
|
-
}
|
291
|
-
}
|
292
|
-
else if (this.allowEmpty) {
|
293
|
-
this.internalColor = null;
|
294
|
-
this.value = null;
|
295
|
-
if (emit) {
|
296
|
-
this.calciteColorPickerHexInputChange.emit();
|
297
|
-
}
|
298
|
-
return;
|
299
|
-
}
|
300
|
-
this.value = oldValue;
|
301
|
-
}
|
302
|
-
formatForInternalInput(hex) {
|
303
|
-
return hex ? hex.replace("#", "") : "";
|
304
|
-
}
|
305
|
-
nudgeRGBChannels(color$1, amount) {
|
306
|
-
return color.rgb(color$1.array().map((channel) => channel + amount));
|
307
|
-
}
|
308
|
-
handleKeyDown(event) {
|
309
|
-
if (event.key === "Enter") {
|
310
|
-
event.preventDefault();
|
311
|
-
}
|
312
|
-
}
|
313
|
-
get el() { return this; }
|
314
|
-
static get watchers() { return {
|
315
|
-
"value": ["handleValueChange"]
|
316
|
-
}; }
|
317
|
-
static get style() { return colorPickerHexInputCss; }
|
318
|
-
}, [1, "calcite-color-picker-hex-input", {
|
319
|
-
"allowEmpty": [4, "allow-empty"],
|
320
|
-
"intlHex": [1, "intl-hex"],
|
321
|
-
"intlNoColor": [1, "intl-no-color"],
|
322
|
-
"scale": [513],
|
323
|
-
"value": [1537],
|
324
|
-
"numberingSystem": [1, "numbering-system"],
|
325
|
-
"internalColor": [32],
|
326
|
-
"setFocus": [64]
|
327
|
-
}, [[2, "keydown", "onInputKeyDown"]]]);
|
328
|
-
function defineCustomElement() {
|
329
|
-
if (typeof customElements === "undefined") {
|
330
|
-
return;
|
331
|
-
}
|
332
|
-
const components = ["calcite-color-picker-hex-input", "calcite-color-picker-swatch", "calcite-icon", "calcite-input", "calcite-progress"];
|
333
|
-
components.forEach(tagName => { switch (tagName) {
|
334
|
-
case "calcite-color-picker-hex-input":
|
335
|
-
if (!customElements.get(tagName)) {
|
336
|
-
customElements.define(tagName, ColorPickerHexInput);
|
337
|
-
}
|
338
|
-
break;
|
339
|
-
case "calcite-color-picker-swatch":
|
340
|
-
if (!customElements.get(tagName)) {
|
341
|
-
defineCustomElement$4();
|
342
|
-
}
|
343
|
-
break;
|
344
|
-
case "calcite-icon":
|
345
|
-
if (!customElements.get(tagName)) {
|
346
|
-
defineCustomElement$3();
|
347
|
-
}
|
348
|
-
break;
|
349
|
-
case "calcite-input":
|
350
|
-
if (!customElements.get(tagName)) {
|
351
|
-
defineCustomElement$2();
|
352
|
-
}
|
353
|
-
break;
|
354
|
-
case "calcite-progress":
|
355
|
-
if (!customElements.get(tagName)) {
|
356
|
-
defineCustomElement$1();
|
357
|
-
}
|
358
|
-
break;
|
359
|
-
} });
|
360
|
-
}
|
361
|
-
defineCustomElement();
|
362
|
-
|
363
|
-
export { CSS$1 as C, DEFAULT_COLOR$1 as D, HSV_LIMITS as H, RGB_LIMITS as R, TEXT as T, DIMENSIONS as a, DEFAULT_STORAGE_KEY_PREFIX as b, ColorPickerHexInput as c, defineCustomElement as d };
|
364
|
-
|
365
|
-
//# sourceMappingURL=color-picker-hex-input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"color-picker-hex-input.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEY,MAACA,KAAG,GAAG;AACnB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,cAAc,EAAE,iBAAiB;AACnC,EAAE,UAAU,EAAE,mBAAmB;AACjC,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,YAAY,EAAE,gBAAgB;AAChC,EAAE,kBAAkB,EAAE,sBAAsB;AAC5C,EAAE,SAAS,EAAE,YAAY;AACzB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,OAAO,EAAE,SAAS;AACpB,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE,kBAAkB,EAAE,sBAAsB;AAC5C,EAAE,SAAS,EAAE,YAAY;AACzB,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE,kBAAkB,EAAE,sBAAsB;AAC5C,EAAE,SAAS,EAAE,aAAa;AAC1B,EAAE,mBAAmB,EAAE,wBAAwB;AAC/C,EAAE,8BAA8B,EAAE,qCAAqC;AACvE,EAAE,uBAAuB,EAAE,6BAA6B;AACxD,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,YAAY;AACxB,EAAE,eAAe,EAAE,o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ACC,OAAK,EAAE,MAAM;IAC5B,OAAOD,KAAK,CAAC,GAAG,CAACC,OAAK,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;GACpE;EACD,aAAa,CAAC,KAAK;IACjB,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE;MACzB,KAAK,CAAC,cAAc,EAAE,CAAC;KACxB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CSS","DEFAULT_COLOR","Color","color"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/color-picker/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css?tag=calcite-color-picker-hex-input&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport Color from \"color\";\nexport const CSS = {\n container: \"container\",\n controlSection: \"control-section\",\n hexOptions: \"color-hex-options\",\n section: \"section\",\n header: \"header\",\n control: \"control\",\n splitSection: \"section--split\",\n colorModeContainer: \"color-mode-container\",\n colorMode: \"color-mode\",\n channels: \"channels\",\n channel: \"channel\",\n savedColors: \"saved-colors\",\n savedColorsSection: \"saved-colors-section\",\n saveColor: \"save-color\",\n deleteColor: \"delete-color\",\n savedColorsButtons: \"saved-colors-buttons\",\n headerHex: \"header--hex\",\n colorFieldAndSlider: \"color-field-and-slider\",\n colorFieldAndSliderInteractive: \"color-field-and-slider--interactive\",\n colorFieldAndSliderWrap: \"color-field-and-slider-wrap\",\n scope: \"scope\",\n hueScope: \"scope--hue\",\n colorFieldScope: \"scope--color-field\",\n savedColor: \"saved-color\"\n};\nexport const DEFAULT_COLOR = Color(\"#007AC2\");\nexport const DEFAULT_STORAGE_KEY_PREFIX = \"calcite-color-\";\nexport const RGB_LIMITS = {\n r: 255,\n g: 255,\n b: 255\n};\nexport const HSV_LIMITS = {\n h: 360,\n s: 100,\n v: 100\n};\nexport const TEXT = {\n b: \"B\",\n blue: \"Blue\",\n deleteColor: \"Delete color\",\n g: \"G\",\n green: \"Green\",\n h: \"H\",\n hsv: \"HSV\",\n hex: \"Hex\",\n hue: \"Hue\",\n noColor: \"No color\",\n r: \"R\",\n red: \"Red\",\n rgb: \"RGB\",\n s: \"S\",\n saturation: \"Saturation\",\n saveColor: \"Save color\",\n saved: \"Saved\",\n v: \"V\",\n value: \"Value\"\n};\nexport const DIMENSIONS = {\n s: {\n slider: {\n height: 10,\n width: 160\n },\n colorField: {\n height: 80,\n width: 160\n },\n thumb: {\n radius: 8\n }\n },\n m: {\n slider: {\n height: 14,\n width: 272\n },\n colorField: {\n height: 150,\n width: 272\n },\n thumb: {\n radius: 10\n }\n },\n l: {\n slider: {\n height: 16,\n width: 464\n },\n colorField: {\n height: 200,\n width: 464\n },\n thumb: {\n radius: 12\n }\n }\n};\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n container: \"container\",\n preview: \"preview\",\n input: \"input\"\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}\n\n.container {\n display: inline-grid;\n inline-size: 100%;\n align-items: center;\n grid-template-columns: 1fr auto;\n}\n\n.preview {\n grid-column: 2/3;\n pointer-events: none;\n margin-block: 0px;\n margin-inline: 0.25rem;\n display: flex;\n align-items: center;\n}\n\n.preview,\n.input {\n grid-row: 1;\n}\n\n.input {\n grid-column: 1/3;\n inline-size: 100%;\n text-transform: uppercase;\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 { hexChar, isLonghandHex, isValidHex, normalizeHex, rgbToHex } from \"../color-picker/utils\";\nimport Color from \"color\";\nimport { CSS } from \"./resources\";\nimport { focusElement } from \"../../utils/dom\";\nimport { TEXT } from \"../color-picker/resources\";\nconst DEFAULT_COLOR = Color();\nexport class ColorPickerHexInput {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /**\n * When `false`, an empty color (`null`) will be allowed as a `value`. Otherwise, a color value is enforced on the component.\n *\n * When `true`, a color value is enforced, and clearing the input or blurring will restore the last valid `value`. When `false`, an empty color (`null`) will be allowed as a `value`.\n */\n this.allowEmpty = false;\n /**\n * Accessible name for the Hex input.\n *\n * @default \"Hex\"\n */\n this.intlHex = TEXT.hex;\n /**\n * Accessible name for the Hex input when there is no color selected.\n *\n * @default \"No color\"\n */\n this.intlNoColor = TEXT.noColor;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /**\n * The Hex value.\n */\n this.value = normalizeHex(DEFAULT_COLOR.hex());\n this.onCalciteInternalInputBlur = () => {\n const node = this.inputNode;\n const inputValue = node.value;\n const hex = `#${inputValue}`;\n const willClearValue = this.allowEmpty && !inputValue;\n if (willClearValue || (isValidHex(hex) && isLonghandHex(hex))) {\n return;\n }\n // manipulating DOM directly since rerender doesn't update input value\n node.value =\n this.allowEmpty && !this.internalColor\n ? \"\"\n : this.formatForInternalInput(rgbToHex(this.internalColor.object()));\n };\n this.onInputChange = () => {\n this.internalSetValue(this.inputNode.value, this.value);\n };\n /**\n * The last valid/selected color. Used as a fallback if an invalid hex code is entered.\n */\n this.internalColor = DEFAULT_COLOR;\n this.previousNonNullValue = this.value;\n this.storeInputRef = (node) => {\n this.inputNode = node;\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n const { allowEmpty, value } = this;\n if (value) {\n const normalized = normalizeHex(value);\n if (isValidHex(normalized)) {\n this.internalSetValue(normalized, normalized, false);\n }\n return;\n }\n if (allowEmpty) {\n this.internalSetValue(null, null, false);\n }\n }\n handleValueChange(value, oldValue) {\n this.internalSetValue(value, oldValue, false);\n }\n // using @Listen as a workaround for VDOM listener not firing\n onInputKeyDown(event) {\n const { altKey, ctrlKey, metaKey, shiftKey } = event;\n const { internalColor, value } = this;\n const { key } = event;\n if (key === \"Tab\" || key === \"Enter\") {\n this.onInputChange();\n return;\n }\n const isNudgeKey = key === \"ArrowDown\" || key === \"ArrowUp\";\n const oldValue = this.value;\n if (isNudgeKey) {\n if (!value) {\n this.internalSetValue(this.previousNonNullValue, oldValue);\n event.preventDefault();\n return;\n }\n const direction = key === \"ArrowUp\" ? 1 : -1;\n const bump = shiftKey ? 10 : 1;\n this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);\n event.preventDefault();\n return;\n }\n const withModifiers = altKey || ctrlKey || metaKey;\n const singleChar = key.length === 1;\n const validHexChar = hexChar.test(key);\n if (singleChar && !withModifiers && !validHexChar) {\n event.preventDefault();\n }\n }\n onPaste(event) {\n const hex = event.clipboardData.getData(\"text\");\n if (isValidHex(hex)) {\n event.preventDefault();\n this.inputNode.value = hex.slice(1);\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const { intlHex, value } = this;\n const hexInputValue = this.formatForInternalInput(value);\n return (h(\"div\", { class: CSS.container }, h(\"calcite-input\", { class: CSS.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: \"#\", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h(\"calcite-color-picker-swatch\", { active: true, class: CSS.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.inputNode);\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n internalSetValue(value, oldValue, emit = true) {\n if (value) {\n const normalized = normalizeHex(value);\n if (isValidHex(normalized)) {\n const { internalColor } = this;\n const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());\n this.internalColor = Color(normalized);\n this.previousNonNullValue = normalized;\n this.value = normalized;\n if (changed && emit) {\n this.calciteColorPickerHexInputChange.emit();\n }\n return;\n }\n }\n else if (this.allowEmpty) {\n this.internalColor = null;\n this.value = null;\n if (emit) {\n this.calciteColorPickerHexInputChange.emit();\n }\n return;\n }\n this.value = oldValue;\n }\n formatForInternalInput(hex) {\n return hex ? hex.replace(\"#\", \"\") : \"\";\n }\n nudgeRGBChannels(color, amount) {\n return Color.rgb(color.array().map((channel) => channel + amount));\n }\n handleKeyDown(event) {\n if (event.key === \"Enter\") {\n event.preventDefault();\n }\n }\n static get is() { return \"calcite-color-picker-hex-input\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"color-picker-hex-input.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"color-picker-hex-input.css\"]\n };\n }\n static get properties() {\n return {\n \"allowEmpty\": {\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 `false`, an empty color (`null`) will be allowed as a `value`. Otherwise, a color value is enforced on the component.\\n\\nWhen `true`, a color value is enforced, and clearing the input or blurring will restore the last valid `value`. When `false`, an empty color (`null`) will be allowed as a `value`.\"\n },\n \"attribute\": \"allow-empty\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"intlHex\": {\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\": \"\\\"Hex\\\"\"\n }],\n \"text\": \"Accessible name for the Hex input.\"\n },\n \"attribute\": \"intl-hex\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.hex\"\n },\n \"intlNoColor\": {\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\": \"\\\"No color\\\"\"\n }],\n \"text\": \"Accessible name for the Hex input when there is no color selected.\"\n },\n \"attribute\": \"intl-no-color\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.noColor\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The Hex value.\"\n },\n \"attribute\": \"value\",\n \"reflect\": true,\n \"defaultValue\": \"normalizeHex(DEFAULT_COLOR.hex())\"\n },\n \"numberingSystem\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"NumberingSystem\",\n \"resolved\": \"\\\"arab\\\" | \\\"arabext\\\" | \\\"bali\\\" | \\\"beng\\\" | \\\"deva\\\" | \\\"fullwide\\\" | \\\"gujr\\\" | \\\"guru\\\" | \\\"hanidec\\\" | \\\"khmr\\\" | \\\"knda\\\" | \\\"laoo\\\" | \\\"latn\\\" | \\\"limb\\\" | \\\"mlym\\\" | \\\"mong\\\" | \\\"mymr\\\" | \\\"orya\\\" | \\\"tamldec\\\" | \\\"telu\\\" | \\\"thai\\\" | \\\"tibt\\\"\",\n \"references\": {\n \"NumberingSystem\": {\n \"location\": \"import\",\n \"path\": \"../../utils/locale\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the Unicode numeral system used by the component for localization.\"\n },\n \"attribute\": \"numbering-system\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"internalColor\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteColorPickerHexInputChange\",\n \"name\": \"calciteColorPickerHexInputChange\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the hex value changes.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"value\",\n \"methodName\": \"handleValueChange\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"keydown\",\n \"method\": \"onInputKeyDown\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|