@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":"label.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,SAAS,EAAE,WAAW;AACxB,CAAC;;ACPD,MAAM,QAAQ,GAAG,00GAA00G;;MCW90G,KAAK;EAChB;;;;;;;;;;;IAOE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;;;;;;IAMzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IAErB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;;IAEjB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;IAMxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;;;;;;IAM5B,IAAI,CAAC,iBAAiB,GAAG,CAAC,KAAK;MAC7B,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC;QAClC,WAAW,EAAE,KAAK;OACnB,CAAC,CAAC;KACJ,CAAC;GACH;;;;;;EAMD,iBAAiB;IACf,QAAQ,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;GAC9D;EACD,oBAAoB;IAClB,QAAQ,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC;GACjE;EACD,MAAM;IACJ,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE;GAC5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/label/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/label/label.css?tag=calcite-label&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/label/label.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};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-label-margin-bottom: The spacing below the component.\n*/\n:host {\n display: inline;\n}\n\n:host([alignment=start]) {\n text-align: start;\n}\n\n:host([alignment=end]) {\n text-align: end;\n}\n\n:host([alignment=center]) {\n text-align: center;\n}\n\n:host([scale=s]) .container {\n gap: 0.25rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n}\n\n:host(:not([disable-spacing])[scale=s]) .container {\n margin-block-end: var(--calcite-label-margin-bottom, 0.5rem);\n}\n\n:host([scale=m]) .container {\n gap: 0.5rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host(:not([disable-spacing])[scale=m]) .container {\n margin-block-end: var(--calcite-label-margin-bottom, 0.75rem);\n}\n\n:host([scale=l]) .container {\n gap: 0.5rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host(:not([disable-spacing])[scale=l]) .container {\n margin-block-end: var(--calcite-label-margin-bottom, 1rem);\n}\n\n:host .container {\n margin-inline: 0px;\n margin-block-start: 0px;\n inline-size: 100%;\n line-height: 1.375;\n color: var(--calcite-ui-text-1);\n}\n\n:host([layout=default]) .container {\n display: flex;\n flex-direction: column;\n}\n\n:host([layout=inline]) .container, \n:host([layout=inline-space-between]) .container {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.5rem;\n}\n\n:host([layout=inline][scale=l]) .container {\n gap: 0.75rem;\n}\n\n:host([layout=inline-space-between]) .container {\n justify-content: space-between;\n}\n\n:host([disabled]) > .container {\n pointer-events: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n:host([disabled]) ::slotted(*) {\n pointer-events: none;\n}\n:host([disabled]) ::slotted(*[disabled]), \n:host([disabled]) ::slotted(*[disabled] *) {\n --tw-bg-opacity: 1;\n}\n:host([disabled]) ::slotted(calcite-input-message:not([active])) {\n --tw-bg-opacity: 0;\n}\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n:host([disable-spacing]) .container {\n margin: 0px;\n gap: 0px;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { labelDisconnectedEvent, labelConnectedEvent } from \"../../utils/label\";\nimport { CSS } from \"./resources\";\n/**\n * @slot - A slot for adding text and a component that can be labeled.\n */\nexport class Label {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Specifies the text alignment of the component. */\n this.alignment = \"start\";\n /**\n * Specifies the status of the component and any child input, or input messages.\n *\n * @deprecated Set directly on the component the label is bound to instead.\n */\n this.status = \"idle\";\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /** Defines the layout of the label in relation to the component. Use `\"inline\"` positions to wrap the label and component on the same line. */\n this.layout = \"default\";\n /**\n * When `true`, interaction is prevented and the component is displayed with lower opacity.\n *\n * @deprecated Use the `disabled` property on the component the label is bound to instead.\n */\n this.disabled = false;\n /**\n * When `true`, disables the component's spacing.\n *\n * @deprecated Set the `--calcite-label-margin-bottom` css variable to `0` instead.\n */\n this.disableSpacing = false;\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.labelClickHandler = (event) => {\n this.calciteInternalLabelClick.emit({\n sourceEvent: event\n });\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n document.dispatchEvent(new CustomEvent(labelConnectedEvent));\n }\n disconnectedCallback() {\n document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));\n }\n render() {\n return (h(Host, { onClick: this.labelClickHandler }, h(\"div\", { class: CSS.container }, h(\"slot\", null))));\n }\n static get is() { return \"calcite-label\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"label.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"label.css\"]\n };\n }\n static get properties() {\n return {\n \"alignment\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Alignment\",\n \"resolved\": \"\\\"center\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Alignment\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the text alignment of the component.\"\n },\n \"attribute\": \"alignment\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"start\\\"\"\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\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Set directly on the component the label is bound to instead.\"\n }],\n \"text\": \"Specifies the status of the component and any child input, or input messages.\"\n },\n \"attribute\": \"status\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"idle\\\"\"\n },\n \"for\": {\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\": \"Specifies the `id` of the component the label is bound to. Use when the component the label is bound to does not reside within the component.\"\n },\n \"attribute\": \"for\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"inline\\\" | \\\"inline-space-between\\\" | \\\"default\\\"\",\n \"resolved\": \"\\\"default\\\" | \\\"inline\\\" | \\\"inline-space-between\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Defines the layout of the label in relation to the component. Use `\\\"inline\\\"` positions to wrap the label and component on the same line.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"default\\\"\"\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 \"name\": \"deprecated\",\n \"text\": \"Use the `disabled` property on the component the label is bound to instead.\"\n }],\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 \"disableSpacing\": {\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\": \"Set the `--calcite-label-margin-bottom` css variable to `0` instead.\"\n }],\n \"text\": \"When `true`, disables the component's spacing.\"\n },\n \"attribute\": \"disable-spacing\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteInternalLabelClick\",\n \"name\": \"calciteInternalLabelClick\",\n \"bubbles\": false,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"{\\n sourceEvent: MouseEvent;\\n }\",\n \"resolved\": \"{ sourceEvent: MouseEvent; }\",\n \"references\": {\n \"MouseEvent\": {\n \"location\": \"global\"\n }\n }\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|
@@ -1,133 +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 { q as queryElementRoots, k as closestElementCrossShadowBoundary } from './dom.js';
|
7
|
-
|
8
|
-
/*!
|
9
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
10
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
11
|
-
* v1.0.0-beta.97
|
12
|
-
*/
|
13
|
-
/**
|
14
|
-
* Exported for testing purposes only
|
15
|
-
*
|
16
|
-
* @internal
|
17
|
-
*/
|
18
|
-
const labelClickEvent = "calciteInternalLabelClick";
|
19
|
-
const labelConnectedEvent = "calciteInternalLabelConnected";
|
20
|
-
const labelDisconnectedEvent = "calciteInternaLabelDisconnected";
|
21
|
-
const labelTagName = "calcite-label";
|
22
|
-
const onLabelClickMap = new WeakMap();
|
23
|
-
const onLabelConnectedMap = new WeakMap();
|
24
|
-
const onLabelDisconnectedMap = new WeakMap();
|
25
|
-
const unlabeledComponents = new Set();
|
26
|
-
const findLabelForComponent = (componentEl) => {
|
27
|
-
const { id } = componentEl;
|
28
|
-
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
29
|
-
if (forLabel) {
|
30
|
-
return forLabel;
|
31
|
-
}
|
32
|
-
const parentLabel = closestElementCrossShadowBoundary(componentEl, labelTagName);
|
33
|
-
if (!parentLabel ||
|
34
|
-
// labelable components within other custom elements are not considered labelable
|
35
|
-
hasAncestorCustomElements(parentLabel, componentEl)) {
|
36
|
-
return null;
|
37
|
-
}
|
38
|
-
return parentLabel;
|
39
|
-
};
|
40
|
-
function hasAncestorCustomElements(label, componentEl) {
|
41
|
-
let traversedElements;
|
42
|
-
const customElementAncestorCheckEventType = "custom-element-ancestor-check";
|
43
|
-
const listener = (event) => {
|
44
|
-
event.stopImmediatePropagation();
|
45
|
-
const composedPath = event.composedPath();
|
46
|
-
traversedElements = composedPath.slice(composedPath.indexOf(componentEl), composedPath.indexOf(label));
|
47
|
-
};
|
48
|
-
label.addEventListener(customElementAncestorCheckEventType, listener, { once: true });
|
49
|
-
componentEl.dispatchEvent(new CustomEvent(customElementAncestorCheckEventType, { composed: true, bubbles: true }));
|
50
|
-
label.removeEventListener(customElementAncestorCheckEventType, listener);
|
51
|
-
const ancestorCustomElements = traversedElements
|
52
|
-
.filter((el) => el !== componentEl && el !== label)
|
53
|
-
.filter((el) => { var _a; return (_a = el.tagName) === null || _a === void 0 ? void 0 : _a.includes("-"); });
|
54
|
-
return ancestorCustomElements.length > 0;
|
55
|
-
}
|
56
|
-
/**
|
57
|
-
* Helper to set up label interactions on connectedCallback.
|
58
|
-
*
|
59
|
-
* @param component
|
60
|
-
*/
|
61
|
-
function connectLabel(component) {
|
62
|
-
const labelEl = findLabelForComponent(component.el);
|
63
|
-
if (onLabelClickMap.has(labelEl) || (!labelEl && unlabeledComponents.has(component))) {
|
64
|
-
return;
|
65
|
-
}
|
66
|
-
const boundOnLabelDisconnected = onLabelDisconnected.bind(component);
|
67
|
-
if (labelEl) {
|
68
|
-
component.labelEl = labelEl;
|
69
|
-
const boundOnLabelClick = onLabelClick.bind(component);
|
70
|
-
onLabelClickMap.set(component.labelEl, boundOnLabelClick);
|
71
|
-
component.labelEl.addEventListener(labelClickEvent, boundOnLabelClick);
|
72
|
-
unlabeledComponents.delete(component);
|
73
|
-
document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));
|
74
|
-
onLabelDisconnectedMap.set(component, boundOnLabelDisconnected);
|
75
|
-
document.addEventListener(labelDisconnectedEvent, boundOnLabelDisconnected);
|
76
|
-
}
|
77
|
-
else if (!unlabeledComponents.has(component)) {
|
78
|
-
boundOnLabelDisconnected();
|
79
|
-
document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));
|
80
|
-
}
|
81
|
-
}
|
82
|
-
/**
|
83
|
-
* Helper to tear down label interactions on disconnectedCallback on labelable components.
|
84
|
-
*
|
85
|
-
* @param component
|
86
|
-
*/
|
87
|
-
function disconnectLabel(component) {
|
88
|
-
unlabeledComponents.delete(component);
|
89
|
-
document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));
|
90
|
-
document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));
|
91
|
-
onLabelConnectedMap.delete(component);
|
92
|
-
onLabelDisconnectedMap.delete(component);
|
93
|
-
if (!component.labelEl) {
|
94
|
-
return;
|
95
|
-
}
|
96
|
-
const boundOnLabelClick = onLabelClickMap.get(component.labelEl);
|
97
|
-
component.labelEl.removeEventListener(labelClickEvent, boundOnLabelClick);
|
98
|
-
onLabelClickMap.delete(component.labelEl);
|
99
|
-
}
|
100
|
-
/**
|
101
|
-
* Helper to get the label text from a component.
|
102
|
-
*
|
103
|
-
* @param component
|
104
|
-
*/
|
105
|
-
function getLabelText(component) {
|
106
|
-
var _a, _b;
|
107
|
-
return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
108
|
-
}
|
109
|
-
function onLabelClick(event) {
|
110
|
-
if (this.disabled) {
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);
|
114
|
-
if (containedLabelableChildClicked) {
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
this.onLabelClick(event);
|
118
|
-
}
|
119
|
-
function onLabelConnected() {
|
120
|
-
if (unlabeledComponents.has(this)) {
|
121
|
-
connectLabel(this);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
function onLabelDisconnected() {
|
125
|
-
unlabeledComponents.add(this);
|
126
|
-
const boundOnLabelConnected = onLabelConnectedMap.get(this) || onLabelConnected.bind(this);
|
127
|
-
onLabelConnectedMap.set(this, boundOnLabelConnected);
|
128
|
-
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
129
|
-
}
|
130
|
-
|
131
|
-
export { labelDisconnectedEvent as a, connectLabel as c, disconnectLabel as d, getLabelText as g, labelConnectedEvent as l };
|
132
|
-
|
133
|
-
//# sourceMappingURL=label2.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"label2.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAM,eAAe,GAAG,2BAA2B,CAAC;AAC/C,MAAC,mBAAmB,GAAG,gCAAgC;AACvD,MAAC,sBAAsB,GAAG,kCAAkC;AACxE,MAAM,YAAY,GAAG,eAAe,CAAC;AACrC,MAAM,eAAe,GAAG,IAAI,OAAO,EAAE,CAAC;AACtC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAAE,CAAC;AAC1C,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAAE,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CAAC,IAAI,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7F,EAAE,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACvD,EAAE,QAAQ,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;AACxE;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/label.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 { closestElementCrossShadowBoundary, queryElementRoots } from \"./dom\";\n/**\n * Exported for testing purposes only\n *\n * @internal\n */\nexport const labelClickEvent = \"calciteInternalLabelClick\";\nexport const labelConnectedEvent = \"calciteInternalLabelConnected\";\nexport const labelDisconnectedEvent = \"calciteInternaLabelDisconnected\";\nconst labelTagName = \"calcite-label\";\nconst onLabelClickMap = new WeakMap();\nconst onLabelConnectedMap = new WeakMap();\nconst onLabelDisconnectedMap = new WeakMap();\nconst unlabeledComponents = new Set();\nconst findLabelForComponent = (componentEl) => {\n const { id } = componentEl;\n const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for=\"${id}\"]` });\n if (forLabel) {\n return forLabel;\n }\n const parentLabel = closestElementCrossShadowBoundary(componentEl, labelTagName);\n if (!parentLabel ||\n // labelable components within other custom elements are not considered labelable\n hasAncestorCustomElements(parentLabel, componentEl)) {\n return null;\n }\n return parentLabel;\n};\nfunction hasAncestorCustomElements(label, componentEl) {\n let traversedElements;\n const customElementAncestorCheckEventType = \"custom-element-ancestor-check\";\n const listener = (event) => {\n event.stopImmediatePropagation();\n const composedPath = event.composedPath();\n traversedElements = composedPath.slice(composedPath.indexOf(componentEl), composedPath.indexOf(label));\n };\n label.addEventListener(customElementAncestorCheckEventType, listener, { once: true });\n componentEl.dispatchEvent(new CustomEvent(customElementAncestorCheckEventType, { composed: true, bubbles: true }));\n label.removeEventListener(customElementAncestorCheckEventType, listener);\n const ancestorCustomElements = traversedElements\n .filter((el) => el !== componentEl && el !== label)\n .filter((el) => { var _a; return (_a = el.tagName) === null || _a === void 0 ? void 0 : _a.includes(\"-\"); });\n return ancestorCustomElements.length > 0;\n}\n/**\n * Helper to set up label interactions on connectedCallback.\n *\n * @param component\n */\nexport function connectLabel(component) {\n const labelEl = findLabelForComponent(component.el);\n if (onLabelClickMap.has(labelEl) || (!labelEl && unlabeledComponents.has(component))) {\n return;\n }\n const boundOnLabelDisconnected = onLabelDisconnected.bind(component);\n if (labelEl) {\n component.labelEl = labelEl;\n const boundOnLabelClick = onLabelClick.bind(component);\n onLabelClickMap.set(component.labelEl, boundOnLabelClick);\n component.labelEl.addEventListener(labelClickEvent, boundOnLabelClick);\n unlabeledComponents.delete(component);\n document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));\n onLabelDisconnectedMap.set(component, boundOnLabelDisconnected);\n document.addEventListener(labelDisconnectedEvent, boundOnLabelDisconnected);\n }\n else if (!unlabeledComponents.has(component)) {\n boundOnLabelDisconnected();\n document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));\n }\n}\n/**\n * Helper to tear down label interactions on disconnectedCallback on labelable components.\n *\n * @param component\n */\nexport function disconnectLabel(component) {\n unlabeledComponents.delete(component);\n document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));\n document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));\n onLabelConnectedMap.delete(component);\n onLabelDisconnectedMap.delete(component);\n if (!component.labelEl) {\n return;\n }\n const boundOnLabelClick = onLabelClickMap.get(component.labelEl);\n component.labelEl.removeEventListener(labelClickEvent, boundOnLabelClick);\n onLabelClickMap.delete(component.labelEl);\n}\n/**\n * Helper to get the label text from a component.\n *\n * @param component\n */\nexport function getLabelText(component) {\n var _a, _b;\n return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || \"\";\n}\nfunction onLabelClick(event) {\n if (this.disabled) {\n return;\n }\n const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);\n if (containedLabelableChildClicked) {\n return;\n }\n this.onLabelClick(event);\n}\nfunction onLabelConnected() {\n if (unlabeledComponents.has(this)) {\n connectLabel(this);\n }\n}\nfunction onLabelDisconnected() {\n unlabeledComponents.add(this);\n const boundOnLabelConnected = onLabelConnectedMap.get(this) || onLabelConnected.bind(this);\n onLabelConnectedMap.set(this, boundOnLabelConnected);\n document.addEventListener(labelConnectedEvent, boundOnLabelConnected);\n}\n"],"version":3}
|
@@ -1,212 +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
|
-
const labelFormats = [
|
7
|
-
{
|
8
|
-
descriptionPDF: {
|
9
|
-
labelWidthDisplay: "2-5/8",
|
10
|
-
labelHeightDisplay: "1",
|
11
|
-
labelsPerPageDisplay: "30",
|
12
|
-
averyPartNumber: "*60"
|
13
|
-
},
|
14
|
-
labelSpec: {
|
15
|
-
type: "AVERY",
|
16
|
-
pageDimensions: {
|
17
|
-
width: 8.5,
|
18
|
-
height: 11,
|
19
|
-
leftMargin: 0.1875,
|
20
|
-
rightMargin: 0.1875,
|
21
|
-
topMargin: 0.5,
|
22
|
-
bottomMargin: 0.5
|
23
|
-
},
|
24
|
-
numLabelsAcross: 3,
|
25
|
-
numLabelsDown: 10,
|
26
|
-
labelWidth: 2.625,
|
27
|
-
labelHeight: 1,
|
28
|
-
horizGapIn: 0.125,
|
29
|
-
vertGapIn: 0,
|
30
|
-
labelPadding: 0.1,
|
31
|
-
fontSizePx: 11,
|
32
|
-
maxNumLabelLines: 4
|
33
|
-
}
|
34
|
-
},
|
35
|
-
{
|
36
|
-
descriptionPDF: {
|
37
|
-
labelWidthDisplay: "4",
|
38
|
-
labelHeightDisplay: "1",
|
39
|
-
labelsPerPageDisplay: "20",
|
40
|
-
averyPartNumber: "*61"
|
41
|
-
},
|
42
|
-
labelSpec: {
|
43
|
-
type: "AVERY",
|
44
|
-
pageDimensions: {
|
45
|
-
width: 8.5,
|
46
|
-
height: 11,
|
47
|
-
leftMargin: 0.15625,
|
48
|
-
rightMargin: 0.15625,
|
49
|
-
topMargin: 0.47637821,
|
50
|
-
bottomMargin: 0.5
|
51
|
-
},
|
52
|
-
numLabelsAcross: 2,
|
53
|
-
numLabelsDown: 10,
|
54
|
-
labelWidth: 4,
|
55
|
-
labelHeight: 1.0025,
|
56
|
-
horizGapIn: 0.1875,
|
57
|
-
vertGapIn: 0,
|
58
|
-
labelPadding: 0.1,
|
59
|
-
fontSizePx: 11,
|
60
|
-
maxNumLabelLines: 4
|
61
|
-
}
|
62
|
-
},
|
63
|
-
{
|
64
|
-
descriptionPDF: {
|
65
|
-
labelWidthDisplay: "4",
|
66
|
-
labelHeightDisplay: "1-1/3",
|
67
|
-
labelsPerPageDisplay: "14",
|
68
|
-
averyPartNumber: "*62"
|
69
|
-
},
|
70
|
-
labelSpec: {
|
71
|
-
type: "AVERY",
|
72
|
-
pageDimensions: {
|
73
|
-
width: 8.5,
|
74
|
-
height: 11,
|
75
|
-
leftMargin: 0.15625,
|
76
|
-
rightMargin: 0.15625,
|
77
|
-
topMargin: 0.81889808,
|
78
|
-
bottomMargin: 0.83464612
|
79
|
-
},
|
80
|
-
numLabelsAcross: 2,
|
81
|
-
numLabelsDown: 7,
|
82
|
-
labelWidth: 4,
|
83
|
-
labelHeight: 1.3352,
|
84
|
-
horizGapIn: 0.1875,
|
85
|
-
vertGapIn: 0,
|
86
|
-
labelPadding: 0.1,
|
87
|
-
fontSizePx: 11,
|
88
|
-
maxNumLabelLines: 6
|
89
|
-
}
|
90
|
-
},
|
91
|
-
{
|
92
|
-
descriptionPDF: {
|
93
|
-
labelWidthDisplay: "4",
|
94
|
-
labelHeightDisplay: "2",
|
95
|
-
labelsPerPageDisplay: "10",
|
96
|
-
averyPartNumber: "*63"
|
97
|
-
},
|
98
|
-
labelSpec: {
|
99
|
-
type: "AVERY",
|
100
|
-
pageDimensions: {
|
101
|
-
width: 8.5,
|
102
|
-
height: 11,
|
103
|
-
leftMargin: 0.15625,
|
104
|
-
rightMargin: 0.15625,
|
105
|
-
topMargin: 0.5,
|
106
|
-
bottomMargin: 0.5
|
107
|
-
},
|
108
|
-
numLabelsAcross: 2,
|
109
|
-
numLabelsDown: 5,
|
110
|
-
labelWidth: 4,
|
111
|
-
labelHeight: 2,
|
112
|
-
horizGapIn: 0.1875,
|
113
|
-
vertGapIn: 0,
|
114
|
-
labelPadding: 0.1,
|
115
|
-
fontSizePx: 12,
|
116
|
-
maxNumLabelLines: 10
|
117
|
-
}
|
118
|
-
},
|
119
|
-
{
|
120
|
-
descriptionPDF: {
|
121
|
-
labelWidthDisplay: "4",
|
122
|
-
labelHeightDisplay: "3-1/3",
|
123
|
-
labelsPerPageDisplay: "6",
|
124
|
-
averyPartNumber: "*64"
|
125
|
-
},
|
126
|
-
labelSpec: {
|
127
|
-
type: "AVERY",
|
128
|
-
pageDimensions: {
|
129
|
-
width: 8.5,
|
130
|
-
height: 11,
|
131
|
-
leftMargin: 0.15625,
|
132
|
-
rightMargin: 0.15625,
|
133
|
-
topMargin: 0.4724412,
|
134
|
-
bottomMargin: 0.50000027
|
135
|
-
},
|
136
|
-
numLabelsAcross: 2,
|
137
|
-
numLabelsDown: 3,
|
138
|
-
labelWidth: 4,
|
139
|
-
labelHeight: 3.342,
|
140
|
-
horizGapIn: 0.1875,
|
141
|
-
vertGapIn: 0,
|
142
|
-
labelPadding: 0.1,
|
143
|
-
fontSizePx: 14,
|
144
|
-
maxNumLabelLines: 12
|
145
|
-
}
|
146
|
-
},
|
147
|
-
{
|
148
|
-
descriptionPDF: {
|
149
|
-
labelWidthDisplay: "1-3/4",
|
150
|
-
labelHeightDisplay: "1/2",
|
151
|
-
labelsPerPageDisplay: "80",
|
152
|
-
averyPartNumber: "*67"
|
153
|
-
},
|
154
|
-
labelSpec: {
|
155
|
-
type: "AVERY",
|
156
|
-
pageDimensions: {
|
157
|
-
width: 8.5,
|
158
|
-
height: 11,
|
159
|
-
leftMargin: 0.307086375,
|
160
|
-
rightMargin: 0.307086375,
|
161
|
-
topMargin: 0.4724412,
|
162
|
-
bottomMargin: 0.49606326
|
163
|
-
},
|
164
|
-
numLabelsAcross: 4,
|
165
|
-
numLabelsDown: 20,
|
166
|
-
labelWidth: 1.75,
|
167
|
-
labelHeight: 0.50155,
|
168
|
-
horizGapIn: 0.29527575,
|
169
|
-
vertGapIn: 0,
|
170
|
-
labelPadding: 0.1,
|
171
|
-
fontSizePx: 8,
|
172
|
-
maxNumLabelLines: 3
|
173
|
-
}
|
174
|
-
},
|
175
|
-
{
|
176
|
-
descriptionPDF: {
|
177
|
-
labelWidthDisplay: "1-3/4",
|
178
|
-
labelHeightDisplay: "2/3",
|
179
|
-
labelsPerPageDisplay: "60",
|
180
|
-
averyPartNumber: "*95"
|
181
|
-
},
|
182
|
-
labelSpec: {
|
183
|
-
type: "AVERY",
|
184
|
-
pageDimensions: {
|
185
|
-
width: 8.5,
|
186
|
-
height: 11,
|
187
|
-
leftMargin: 0.28936983,
|
188
|
-
rightMargin: 0.28936983,
|
189
|
-
topMargin: 0.53937037,
|
190
|
-
bottomMargin: 0.5511814
|
191
|
-
},
|
192
|
-
numLabelsAcross: 4,
|
193
|
-
numLabelsDown: 15,
|
194
|
-
labelWidth: 1.75,
|
195
|
-
labelHeight: 0.6605,
|
196
|
-
horizGapIn: 0.30708678,
|
197
|
-
vertGapIn: 0,
|
198
|
-
labelPadding: 0.1,
|
199
|
-
fontSizePx: 8,
|
200
|
-
maxNumLabelLines: 4
|
201
|
-
}
|
202
|
-
}
|
203
|
-
];
|
204
|
-
|
205
|
-
const pdfUtils = /*#__PURE__*/Object.freeze({
|
206
|
-
__proto__: null,
|
207
|
-
'default': labelFormats
|
208
|
-
});
|
209
|
-
|
210
|
-
export { pdfUtils as p };
|
211
|
-
|
212
|
-
//# sourceMappingURL=labelFormats.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"labelFormats.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
package/dist/components/link.js
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { c as getElementDir, C as CSS_UTILITY, f as focusElement } from './dom.js';
|
8
|
-
import { u as updateHostInteraction } from './interactive.js';
|
9
|
-
import { d as defineCustomElement$1 } from './icon.js';
|
10
|
-
|
11
|
-
const linkCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline}:host a,:host span{position:relative;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0px;border-style:none;font-family:inherit;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-color:transparent}:host a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{inline-size:1em;block-size:1em;min-inline-size:unset;min-block-size:unset}.calcite-link--icon{vertical-align:text-top;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-webkit-margin-before:0.125rem;margin-block-start:0.125rem}:host .calcite-link--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host .calcite-link--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0px;color:var(--calcite-ui-text-link);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%, 100% 100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";
|
12
|
-
|
13
|
-
const Link = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
14
|
-
constructor() {
|
15
|
-
super();
|
16
|
-
this.__registerHost();
|
17
|
-
this.__attachShadow();
|
18
|
-
//--------------------------------------------------------------------------
|
19
|
-
//
|
20
|
-
// Properties
|
21
|
-
//
|
22
|
-
//--------------------------------------------------------------------------
|
23
|
-
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
24
|
-
this.disabled = false;
|
25
|
-
/**
|
26
|
-
* Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
27
|
-
* Without a value, the browser will suggest a filename/extension
|
28
|
-
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download.
|
29
|
-
*/
|
30
|
-
this.download = false;
|
31
|
-
this.childElClickHandler = (event) => {
|
32
|
-
if (!event.isTrusted) {
|
33
|
-
// click was invoked internally, we stop it here
|
34
|
-
event.stopPropagation();
|
35
|
-
}
|
36
|
-
};
|
37
|
-
//--------------------------------------------------------------------------
|
38
|
-
//
|
39
|
-
// Private Methods
|
40
|
-
//
|
41
|
-
//--------------------------------------------------------------------------
|
42
|
-
this.storeTagRef = (el) => {
|
43
|
-
this.childEl = el;
|
44
|
-
};
|
45
|
-
}
|
46
|
-
//--------------------------------------------------------------------------
|
47
|
-
//
|
48
|
-
// Lifecycle
|
49
|
-
//
|
50
|
-
//--------------------------------------------------------------------------
|
51
|
-
componentDidRender() {
|
52
|
-
updateHostInteraction(this);
|
53
|
-
}
|
54
|
-
render() {
|
55
|
-
const { download, el } = this;
|
56
|
-
const dir = getElementDir(el);
|
57
|
-
const childElType = this.href ? "a" : "span";
|
58
|
-
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
59
|
-
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
60
|
-
const Tag = childElType;
|
61
|
-
const role = childElType === "span" ? "link" : null;
|
62
|
-
const tabIndex = childElType === "span" ? 0 : null;
|
63
|
-
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
64
|
-
/*
|
65
|
-
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
66
|
-
This works around that issue for now.
|
67
|
-
*/
|
68
|
-
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, onClick: this.childElClickHandler, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
69
|
-
}
|
70
|
-
//--------------------------------------------------------------------------
|
71
|
-
//
|
72
|
-
// Events
|
73
|
-
//
|
74
|
-
//--------------------------------------------------------------------------
|
75
|
-
clickHandler(event) {
|
76
|
-
// forwards the click() to the internal link for non user-initiated events
|
77
|
-
if (!event.isTrusted) {
|
78
|
-
this.childEl.click();
|
79
|
-
}
|
80
|
-
}
|
81
|
-
//--------------------------------------------------------------------------
|
82
|
-
//
|
83
|
-
// Public Methods
|
84
|
-
//
|
85
|
-
//--------------------------------------------------------------------------
|
86
|
-
/** Sets focus on the component. */
|
87
|
-
async setFocus() {
|
88
|
-
focusElement(this.childEl);
|
89
|
-
}
|
90
|
-
get el() { return this; }
|
91
|
-
static get style() { return linkCss; }
|
92
|
-
}, [1, "calcite-link", {
|
93
|
-
"disabled": [516],
|
94
|
-
"download": [520],
|
95
|
-
"href": [513],
|
96
|
-
"iconEnd": [513, "icon-end"],
|
97
|
-
"iconFlipRtl": [513, "icon-flip-rtl"],
|
98
|
-
"iconStart": [513, "icon-start"],
|
99
|
-
"rel": [1],
|
100
|
-
"target": [1],
|
101
|
-
"setFocus": [64]
|
102
|
-
}, [[0, "click", "clickHandler"]]]);
|
103
|
-
function defineCustomElement() {
|
104
|
-
if (typeof customElements === "undefined") {
|
105
|
-
return;
|
106
|
-
}
|
107
|
-
const components = ["calcite-link", "calcite-icon"];
|
108
|
-
components.forEach(tagName => { switch (tagName) {
|
109
|
-
case "calcite-link":
|
110
|
-
if (!customElements.get(tagName)) {
|
111
|
-
customElements.define(tagName, Link);
|
112
|
-
}
|
113
|
-
break;
|
114
|
-
case "calcite-icon":
|
115
|
-
if (!customElements.get(tagName)) {
|
116
|
-
defineCustomElement$1();
|
117
|
-
}
|
118
|
-
break;
|
119
|
-
} });
|
120
|
-
}
|
121
|
-
defineCustomElement();
|
122
|
-
|
123
|
-
export { Link as L, defineCustomElement as d };
|
124
|
-
|
125
|
-
//# sourceMappingURL=link.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"link.js","mappings":";;;;;;;;;;AAAA,MAAM,OAAO,GAAG,0yGAA0yG;;MCa7yG,IAAI;EACf;;;;;;;;;;IAOE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;;;IAMtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACtB,IAAI,CAAC,mBAAmB,GAAG,CAAC,KAAK;MAC/B,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;;QAEpB,KAAK,CAAC,eAAe,EAAE,CAAC;OACzB;KACF,CAAC;;;;;;IAMF,IAAI,CAAC,WAAW,GAAG,CAAC,EAAE;MACpB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;KACnB,CAAC;GACH;;;;;;EAMD,kBAAkB;IAChB,qBAAqB,CAAC,IAAI,CAAC,CAAC;GAC7B;EACD,MAAM;IACJ,MAAM,EAAE,QAAQ,EAAE,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E,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,SAAS,GAAG,WAAW,GAAG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC,EAAE;GACpW;;;;;;EAMD,YAAY,CAAC,KAAK;;IAEhB,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;MACpB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;KACtB;GACF;;;;;;;EAOD,MAAM,QAAQ;IACZ,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;GAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/link/link.css?tag=calcite-link&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/link/link.js"],"sourcesContent":["/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([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: inline;\n}\n\n:host a, \n:host span {\n position: relative;\n display: flex;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n border-radius: 0px;\n border-style: none;\n font-family: inherit;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n text-decoration: none;\n line-height: inherit;\n font-size: inherit;\n -webkit-appearance: none;\n}\n:host a:hover,\n:host span:hover {\n text-decoration: none;\n}\n\n:host a, \n:host span {\n outline-color: transparent;\n}\n:host a:focus, \n:host span:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\ncalcite-icon {\n inline-size: 1em;\n block-size: 1em;\n min-inline-size: unset;\n min-block-size: unset;\n}\n\n.calcite-link--icon {\n vertical-align: text-top;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n margin-block-start: 0.125rem;\n}\n\n:host .calcite-link--icon.icon-start {\n margin-inline-end: 0.5rem;\n}\n\n:host .calcite-link--icon.icon-end {\n margin-inline-start: 0.5rem;\n}\n\n:host span, \n:host a {\n position: relative;\n display: inline;\n border-style: none;\n background-color: transparent;\n padding: 0px;\n color: var(--calcite-ui-text-link);\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n line-height: inherit;\n white-space: initial;\n background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));\n background-position: 0% 100%, 100% 100%;\n background-repeat: no-repeat, no-repeat;\n background-size: 0% 1px, 100% 1px;\n}\n:host span:hover, :host span:focus,\n:host a:hover,\n:host a:focus {\n background-size: 100% 1px, 100% 1px;\n}\n:host span:active,\n:host a:active {\n background-size: 100% 2px, 100% 2px;\n}\n:host span.calcite--rtl,\n:host a.calcite--rtl {\n background-position: 100% 100%, 100% 100%;\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 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 { focusElement, getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\n/** Any attributes placed on <calcite-link> component will propagate to the rendered child */\n/** Passing a 'href' will render an anchor link, instead of a span. Role will be set to link, or link, depending on this. */\n/** It is the consumers responsibility to add aria information, rel, target, for links, and any link attributes for form submission */\n/** @slot - A slot for adding text. */\nexport class Link {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** When `true`, interaction is prevented and the component is displayed with lower opacity. */\n this.disabled = false;\n /**\n * Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:\n * Without a value, the browser will suggest a filename/extension\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download.\n */\n this.download = false;\n this.childElClickHandler = (event) => {\n if (!event.isTrusted) {\n // click was invoked internally, we stop it here\n event.stopPropagation();\n }\n };\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.storeTagRef = (el) => {\n this.childEl = el;\n };\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidRender() {\n updateHostInteraction(this);\n }\n render() {\n const { download, el } = this;\n const dir = getElementDir(el);\n const childElType = this.href ? \"a\" : \"span\";\n const iconStartEl = (h(\"calcite-icon\", { class: \"calcite-link--icon icon-start\", flipRtl: this.iconFlipRtl === \"start\" || this.iconFlipRtl === \"both\", icon: this.iconStart, scale: \"s\" }));\n const iconEndEl = (h(\"calcite-icon\", { class: \"calcite-link--icon icon-end\", flipRtl: this.iconFlipRtl === \"end\" || this.iconFlipRtl === \"both\", icon: this.iconEnd, scale: \"s\" }));\n const Tag = childElType;\n const role = childElType === \"span\" ? \"link\" : null;\n const tabIndex = childElType === \"span\" ? 0 : null;\n return (h(Host, { role: \"presentation\" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === \"rtl\" },\n /*\n When the 'download' property of type 'boolean | string' is set to true, the value is \"\".\n This works around that issue for now.\n */\n download: Tag === \"a\" && (download === \"\" || download) ? download : null, href: Tag === \"a\" && this.href, onClick: this.childElClickHandler, ref: this.storeTagRef, rel: Tag === \"a\" && this.rel, role: role, tabIndex: tabIndex, target: Tag === \"a\" && this.target }, this.iconStart ? iconStartEl : null, h(\"slot\", null), this.iconEnd ? iconEndEl : null)));\n }\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n clickHandler(event) {\n // forwards the click() to the internal link for non user-initiated events\n if (!event.isTrusted) {\n this.childEl.click();\n }\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.childEl);\n }\n static get is() { return \"calcite-link\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"link.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"link.css\"]\n };\n }\n static get properties() {\n return {\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 \"download\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string | boolean\",\n \"resolved\": \"boolean | string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:\\nWithout a value, the browser will suggest a filename/extension\\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download.\"\n },\n \"attribute\": \"download\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"href\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the URL of the linked resource, which can be set as an absolute or relative path.\"\n },\n \"attribute\": \"href\",\n \"reflect\": true\n },\n \"iconEnd\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display at the end of the component.\"\n },\n \"attribute\": \"icon-end\",\n \"reflect\": true\n },\n \"iconFlipRtl\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FlipContext\",\n \"resolved\": \"\\\"both\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"FlipContext\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the icon will be flipped when the element direction is right-to-left (`\\\"rtl\\\"`).\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true\n },\n \"iconStart\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display at the start of the component.\"\n },\n \"attribute\": \"icon-start\",\n \"reflect\": true\n },\n \"rel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the relationship to the linked document defined in `href`.\"\n },\n \"attribute\": \"rel\",\n \"reflect\": false\n },\n \"target\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the frame or window to open the linked document.\"\n },\n \"attribute\": \"target\",\n \"reflect\": false\n }\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"click\",\n \"method\": \"clickHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n"],"version":3}
|