@esri/solutions-components 0.7.34 → 0.7.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/ExpandToggle-da591f01.js +118 -0
- package/dist/cjs/FloatingArrow-a27ad9b2.js +50 -0
- package/dist/cjs/Heading-bd401e0a.js +25 -0
- package/dist/cjs/Validation-b02c6710.js +20 -0
- package/dist/cjs/app-globals-056e11bb.js +69 -0
- package/dist/cjs/ar-bec1adeb.js +105 -0
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/array-6ea3edb8.js +17 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/bg-e1afda53.js +83 -0
- package/dist/cjs/browser-d08a5f99.js +23 -0
- package/dist/cjs/bs-d14ff0d3.js +52 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +12 -12
- package/dist/cjs/ca-10ee7960.js +72 -0
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +25 -25
- package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +21 -20
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +112 -114
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +20 -19
- package/dist/cjs/calcite-action_2.cjs.entry.js +28 -28
- package/dist/cjs/calcite-alert_4.cjs.entry.js +64 -50
- package/dist/cjs/calcite-avatar.cjs.entry.js +40 -40
- package/dist/cjs/calcite-block-section.cjs.entry.js +29 -29
- package/dist/cjs/calcite-block_2.cjs.entry.js +51 -50
- package/dist/cjs/calcite-button.cjs.entry.js +42 -38
- package/dist/cjs/calcite-card.cjs.entry.js +22 -22
- package/dist/cjs/calcite-checkbox.cjs.entry.js +14 -14
- package/dist/cjs/calcite-chip-group.cjs.entry.js +11 -10
- package/dist/cjs/calcite-chip_2.cjs.entry.js +388 -0
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +19 -19
- package/dist/cjs/calcite-color-picker.cjs.entry.js +21 -17
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-combobox_5.cjs.entry.js +2120 -0
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +25 -28
- package/dist/cjs/calcite-fab.cjs.entry.js +13 -13
- package/dist/cjs/calcite-filter_5.cjs.entry.js +257 -204
- package/dist/cjs/calcite-flow_5.cjs.entry.js +43 -44
- package/dist/cjs/calcite-graph_2.cjs.entry.js +233 -277
- package/dist/cjs/calcite-icon.cjs.entry.js +49 -49
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +24 -24
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +90 -65
- package/dist/cjs/calcite-input-number.cjs.entry.js +73 -52
- package/dist/cjs/calcite-input-text.cjs.entry.js +36 -39
- package/dist/cjs/calcite-input-time-picker-bb2db82c.js +1850 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +20 -19
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +118 -116
- package/dist/cjs/calcite-input_2.cjs.entry.js +80 -59
- package/dist/cjs/calcite-label.cjs.entry.js +9 -9
- package/dist/cjs/calcite-link.cjs.entry.js +13 -13
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +11 -10
- package/dist/cjs/calcite-menu-item.cjs.entry.js +51 -52
- package/dist/cjs/calcite-menu.cjs.entry.js +24 -17
- package/dist/cjs/calcite-meter.cjs.entry.js +24 -24
- package/dist/cjs/calcite-modal.cjs.entry.js +57 -55
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +10 -10
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +7 -7
- package/dist/cjs/calcite-navigation.cjs.entry.js +24 -24
- package/dist/cjs/calcite-notice.cjs.entry.js +23 -23
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +23 -18
- package/dist/cjs/calcite-pagination.cjs.entry.js +30 -30
- package/dist/cjs/calcite-panel_2.cjs.entry.js +58 -40
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +27 -10
- package/dist/cjs/calcite-radio-button.cjs.entry.js +27 -23
- package/dist/cjs/calcite-rating.cjs.entry.js +20 -20
- package/dist/cjs/calcite-scrim.cjs.entry.js +14 -14
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +29 -16
- package/dist/cjs/calcite-sheet.cjs.entry.js +15 -15
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +126 -114
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +23 -21
- package/dist/cjs/calcite-split-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +24 -24
- package/dist/cjs/calcite-stepper.cjs.entry.js +34 -34
- package/dist/cjs/calcite-switch.cjs.entry.js +14 -14
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +41 -32
- package/dist/cjs/calcite-table-row.cjs.entry.js +23 -12
- package/dist/cjs/calcite-table.cjs.entry.js +29 -25
- package/dist/cjs/calcite-text-area.cjs.entry.js +39 -40
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile-select.cjs.entry.js +39 -28
- package/dist/cjs/calcite-tile.cjs.entry.js +16 -21
- package/dist/cjs/calcite-time-picker.cjs.entry.js +44 -44
- package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +24 -24
- package/dist/cjs/calcite-tip.cjs.entry.js +20 -20
- package/dist/cjs/calcite-tooltip.cjs.entry.js +212 -213
- package/dist/cjs/calcite-tree_2.cjs.entry.js +45 -46
- package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
- package/dist/cjs/component-ac7c3bd8.js +33 -0
- package/dist/cjs/conditionalSlot-9d7b60d1.js +63 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +8 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +11 -13
- package/dist/cjs/cs-5d5113c9.js +148 -0
- package/dist/cjs/da-b9b48fb6.js +67 -0
- package/dist/cjs/date-9de4dd6f.js +261 -0
- package/dist/cjs/de-2e3205ac.js +92 -0
- package/dist/cjs/de-at-28bea0b1.js +91 -0
- package/dist/cjs/de-ch-376dd4c7.js +91 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/dom-c9c2c835.js +1087 -0
- package/dist/cjs/downloadUtils-8ca56dfa.js +3136 -0
- package/dist/cjs/el-98aab056.js +67 -0
- package/dist/cjs/en-au-e3c99f1e.js +67 -0
- package/dist/cjs/en-ca-32f77575.js +66 -0
- package/dist/cjs/en-gb-7f5e80a9.js +70 -0
- package/dist/cjs/es-9899072a.js +67 -0
- package/dist/cjs/es-mx-e33cab75.js +66 -0
- package/dist/cjs/et-b55f74e1.js +93 -0
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/fi-aa10ef36.js +116 -0
- package/dist/cjs/filter-b524f88d.js +765 -0
- package/dist/cjs/floating-ui-984cc970.js +1966 -0
- package/dist/cjs/focusTrapComponent-faae7d7e.js +1028 -0
- package/dist/cjs/form-fed676d6.js +316 -0
- package/dist/cjs/fr-52b860d8.js +69 -0
- package/dist/cjs/fr-ch-665d488a.js +67 -0
- package/dist/cjs/guid-ae73cd27.js +26 -0
- package/dist/cjs/he-e572f72c.js +106 -0
- package/dist/cjs/helpers-981dd775.js +903 -0
- package/dist/cjs/hi-d1bf5a03.js +66 -0
- package/dist/cjs/hr-7dbc9a12.js +81 -0
- package/dist/cjs/hu-dcb326c9.js +89 -0
- package/dist/cjs/id-9ac473e6.js +67 -0
- package/dist/cjs/index-105cf2b9.js +2553 -0
- package/dist/cjs/index-ae65e42f.js +201 -0
- package/dist/cjs/index.es-3c36cde7.js +10811 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/interactive-3ab7044d.js +144 -0
- package/dist/cjs/it-5ee42edc.js +67 -0
- package/dist/cjs/it-ch-54981090.js +67 -0
- package/dist/cjs/ja-f090b8db.js +73 -0
- package/dist/cjs/key-c5504030.js +19 -0
- package/dist/cjs/ko-14650b28.js +73 -0
- package/dist/cjs/label-32573e1d.js +186 -0
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loadable-5a794992.js +94 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/locale-8c42ba7a.js +161 -0
- package/dist/cjs/locale-d237c9d5.js +584 -0
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/lt-7d826627.js +98 -0
- package/dist/cjs/lv-397bf143.js +67 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +6 -6
- package/dist/cjs/math-318a1646.js +60 -0
- package/dist/cjs/mk-112e247a.js +67 -0
- package/dist/cjs/nb-0a4d7d1f.js +68 -0
- package/dist/cjs/nl-cfcabe91.js +68 -0
- package/dist/cjs/observers-db4527e4.js +53 -0
- package/dist/cjs/openCloseComponent-19a769d0.js +92 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pl-c3e61022.js +115 -0
- package/dist/cjs/popupUtils-824d2f7c.js +96 -0
- package/dist/cjs/pt-6733c97d.js +68 -0
- package/dist/cjs/pt-br-6e06cf69.js +66 -0
- package/dist/cjs/public-notification.cjs.entry.js +6 -6
- package/dist/cjs/publicNotificationStore-ef379d11.js +47 -0
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/resources-1d88e9d6.js +39 -0
- package/dist/cjs/resources-3e593312.js +52 -0
- package/dist/cjs/resources-555dae0e.js +29 -0
- package/dist/cjs/resources-7e540eac.js +26 -0
- package/dist/cjs/resources-9447c777.js +32 -0
- package/dist/cjs/resources-adfcb1ec.js +2062 -0
- package/dist/cjs/resources-baef554d.js +27 -0
- package/dist/cjs/resources-c4fe74a9.js +23 -0
- package/dist/cjs/resources-dd8ff1b4.js +20 -0
- package/dist/cjs/ro-60cdf606.js +67 -0
- package/dist/cjs/ru-bf392182.js +127 -0
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/shared-list-render-410f421e.js +365 -0
- package/dist/cjs/sk-cf9539a5.js +149 -0
- package/dist/cjs/sl-1d297b4f.js +169 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +4 -4
- package/dist/cjs/solution-contents_3.cjs.entry.js +4 -4
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solution-store-2f7fbcc5.js +1344 -0
- package/dist/cjs/solutions-components.cjs.js +5 -5
- package/dist/cjs/sortableComponent-c111c036.js +2742 -0
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/sr-f0c4f00a.js +102 -0
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- package/dist/cjs/sv-620bebec.js +72 -0
- package/dist/cjs/t9n-993a84de.js +100 -0
- package/dist/cjs/th-07dd0e43.js +66 -0
- package/dist/cjs/time-ff8d50c7.js +289 -0
- package/dist/cjs/tr-42e14ef4.js +67 -0
- package/dist/cjs/uk-398a1806.js +105 -0
- package/dist/cjs/utils-3940c852.js +105 -0
- package/dist/cjs/utils-65d812ea.js +62 -0
- package/dist/cjs/utils-7bc7f595.js +64 -0
- package/dist/cjs/utils-a137dc1a.js +130 -0
- package/dist/cjs/utils-cca83dd0.js +221 -0
- package/dist/cjs/vi-860b42fc.js +71 -0
- package/dist/cjs/zh-cn-a89ecb38.js +95 -0
- package/dist/cjs/zh-hk-affe0bef.js +72 -0
- package/dist/cjs/zh-tw-ca333ffb.js +93 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +3 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +6 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +9 -11
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +7 -9
- package/dist/collection/components/json-editor/json-editor.js +3 -5
- package/dist/collection/components/layer-list/layer-list.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +2 -2
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +3 -2
- package/dist/collection/components/pdf-download/pdf-download.js +27 -45
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +6 -10
- package/dist/collection/utils/downloadUtils.js +13 -8
- package/dist/collection/utils/downloadUtils.ts +16 -8
- package/dist/collection/utils/interfaces.ts +5 -0
- package/dist/components/ExpandToggle.js +65 -65
- package/dist/components/FloatingArrow.js +17 -17
- package/dist/components/Heading.js +5 -5
- package/dist/components/Validation.js +18 -0
- package/dist/components/action-bar.js +9 -7
- package/dist/components/action-group.js +5 -5
- package/dist/components/action-menu.js +18 -19
- package/dist/components/action-pad.js +8 -6
- package/dist/components/action.js +17 -17
- package/dist/components/alert.js +53 -37
- package/dist/components/array.js +2 -2
- package/dist/components/avatar.js +35 -35
- package/dist/components/block.js +35 -33
- package/dist/components/button.js +31 -27
- package/dist/components/calcite-accordion-item.js +18 -18
- package/dist/components/calcite-block-section.js +20 -20
- package/dist/components/calcite-card.js +13 -13
- package/dist/components/calcite-chip-group.js +4 -3
- package/dist/components/calcite-color-picker.js +8 -4
- package/dist/components/calcite-combobox-item-group.js +4 -4
- package/dist/components/calcite-fab.js +7 -7
- package/dist/components/calcite-inline-editable.js +12 -12
- package/dist/components/calcite-input-time-picker.js +15 -12
- package/dist/components/calcite-input-time-zone.js +107 -103
- package/dist/components/calcite-list-item-group.js +10 -8
- package/dist/components/calcite-menu-item.js +42 -43
- package/dist/components/calcite-meter.js +15 -15
- package/dist/components/calcite-navigation-logo.js +8 -8
- package/dist/components/calcite-navigation-user.js +5 -5
- package/dist/components/calcite-navigation.js +19 -19
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-radio-button-group.js +28 -9
- package/dist/components/calcite-radio-button.js +1 -340
- package/dist/components/calcite-rating.js +7 -7
- package/dist/components/calcite-sheet.js +7 -7
- package/dist/components/calcite-shell-center-row.js +4 -4
- package/dist/components/calcite-sortable-list.js +16 -14
- package/dist/components/calcite-split-button.js +10 -10
- package/dist/components/calcite-stepper-item.js +14 -14
- package/dist/components/calcite-stepper.js +26 -26
- package/dist/components/calcite-table-row.js +17 -5
- package/dist/components/calcite-table.js +20 -15
- package/dist/components/calcite-text-area.js +28 -28
- package/dist/components/calcite-tile-select-group.js +3 -3
- package/dist/components/calcite-tile-select.js +42 -32
- package/dist/components/calcite-tile.js +103 -1
- package/dist/components/calcite-tip-manager.js +15 -15
- package/dist/components/calcite-tip.js +10 -10
- package/dist/components/checkbox.js +4 -4
- package/dist/components/chip.js +28 -27
- package/dist/components/color-picker-hex-input.js +79 -79
- package/dist/components/color-picker-swatch.js +8 -8
- package/dist/components/combobox-item.js +18 -17
- package/dist/components/combobox.js +29 -13
- package/dist/components/component.js +6 -6
- package/dist/components/conditionalSlot.js +17 -17
- package/dist/components/crowdsource-manager.js +6 -2
- package/dist/components/crowdsource-reporter.js +9 -11
- package/dist/components/date-picker-day.js +4 -7
- package/dist/components/date-picker-month-header.js +10 -10
- package/dist/components/date-picker.js +19 -19
- package/dist/components/date.js +110 -110
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/dom.js +165 -165
- package/dist/components/downloadUtils.js +13 -8
- package/dist/components/dropdown-item.js +14 -7
- package/dist/components/dropdown.js +20 -20
- package/dist/components/feature-list2.js +7 -9
- package/dist/components/filter.js +27 -27
- package/dist/components/filter2.js +13 -11
- package/dist/components/floating-ui.js +227 -167
- package/dist/components/flow-item.js +19 -17
- package/dist/components/flow.js +4 -4
- package/dist/components/focusTrapComponent.js +27 -27
- package/dist/components/form.js +192 -137
- package/dist/components/graph.js +60 -60
- package/dist/components/guid.js +10 -10
- package/dist/components/handle.js +45 -24
- package/dist/components/icon.js +44 -44
- package/dist/components/index.js +22 -22
- package/dist/components/input-date-picker.js +75 -48
- package/dist/components/input-message.js +5 -5
- package/dist/components/input-number.js +64 -42
- package/dist/components/input-text.js +26 -28
- package/dist/components/input.js +71 -49
- package/dist/components/interactive.js +83 -88
- package/dist/components/key.js +2 -2
- package/dist/components/label.js +109 -109
- package/dist/components/label2.js +3 -3
- package/dist/components/layer-list2.js +1 -1
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/link.js +7 -7
- package/dist/components/list-item.js +98 -62
- package/dist/components/list.js +88 -90
- package/dist/components/loadable.js +10 -10
- package/dist/components/locale2.js +409 -409
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/math.js +16 -16
- package/dist/components/menu.js +17 -10
- package/dist/components/modal.js +45 -43
- package/dist/components/notice.js +10 -10
- package/dist/components/observers.js +31 -31
- package/dist/components/openCloseComponent.js +50 -50
- package/dist/components/pagination.js +20 -20
- package/dist/components/panel.js +39 -37
- package/dist/components/pick-list-item.js +23 -23
- package/dist/components/popover.js +84 -85
- package/dist/components/public-notification.js +1 -1
- package/dist/components/radio-button.js +350 -0
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/resources.js +12 -12
- package/dist/components/resources2.js +6 -6
- package/dist/components/resources3.js +11 -11
- package/dist/components/resources4.js +6 -6
- package/dist/components/resources5.js +5 -5
- package/dist/components/scrim.js +6 -6
- package/dist/components/segmented-control-item.js +3 -3
- package/dist/components/segmented-control.js +19 -3
- package/dist/components/select.js +16 -9
- package/dist/components/shared-list-render.js +242 -241
- package/dist/components/shell-panel.js +16 -12
- package/dist/components/shell.js +41 -23
- package/dist/components/slider.js +160 -204
- package/dist/components/sortableComponent.js +548 -914
- package/dist/components/stack.js +11 -11
- package/dist/components/switch.js +4 -4
- package/dist/components/t9n.js +32 -32
- package/dist/components/tab-nav.js +7 -2
- package/dist/components/tab-title.js +38 -36
- package/dist/components/tab.js +4 -4
- package/dist/components/table-cell.js +14 -10
- package/dist/components/table-header.js +19 -11
- package/dist/components/tabs.js +2 -2
- package/dist/components/time-picker.js +246 -246
- package/dist/components/tooltip.js +205 -206
- package/dist/components/tree-item.js +23 -24
- package/dist/components/tree.js +14 -14
- package/dist/components/utils.js +142 -142
- package/dist/components/utils2.js +19 -19
- package/dist/components/utils3.js +64 -59
- package/dist/components/value-list-item.js +9 -9
- package/dist/components/value-list.js +32 -30
- package/dist/esm/ExpandToggle-b6eb575e.js +110 -0
- package/dist/esm/FloatingArrow-93d6d18b.js +48 -0
- package/dist/esm/Heading-94780f62.js +22 -0
- package/dist/esm/Validation-ea480265.js +18 -0
- package/dist/esm/app-globals-c4e206db.js +67 -0
- package/dist/esm/ar-7633f382.js +103 -0
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/array-396bdf3c.js +15 -0
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/bg-5ccf3b3b.js +81 -0
- package/dist/esm/browser-d60104bd.js +21 -0
- package/dist/esm/bs-59e59ad4.js +50 -0
- package/dist/esm/buffer-tools_3.entry.js +12 -12
- package/dist/esm/ca-d8d2bc89.js +70 -0
- package/dist/esm/calcite-accordion-item.entry.js +25 -25
- package/dist/esm/calcite-accordion.entry.js +2 -2
- package/dist/esm/calcite-action-bar.entry.js +21 -20
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu_2.entry.js +112 -114
- package/dist/esm/calcite-action-pad_2.entry.js +20 -19
- package/dist/esm/calcite-action_2.entry.js +28 -28
- package/dist/esm/calcite-alert_4.entry.js +64 -50
- package/dist/esm/calcite-avatar.entry.js +40 -40
- package/dist/esm/calcite-block-section.entry.js +29 -29
- package/dist/esm/calcite-block_2.entry.js +51 -50
- package/dist/esm/calcite-button.entry.js +42 -38
- package/dist/esm/calcite-card.entry.js +22 -22
- package/dist/esm/calcite-checkbox.entry.js +14 -14
- package/dist/esm/calcite-chip-group.entry.js +11 -10
- package/dist/esm/calcite-chip_2.entry.js +383 -0
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +19 -19
- package/dist/esm/calcite-color-picker.entry.js +21 -17
- package/dist/esm/calcite-combobox-item-group.entry.js +9 -9
- package/dist/esm/calcite-combobox_5.entry.js +2112 -0
- package/dist/esm/calcite-date-picker-day_3.entry.js +25 -28
- package/dist/esm/calcite-fab.entry.js +13 -13
- package/dist/esm/calcite-filter_5.entry.js +257 -204
- package/dist/esm/calcite-flow_5.entry.js +43 -44
- package/dist/esm/calcite-graph_2.entry.js +233 -277
- package/dist/esm/calcite-icon.entry.js +49 -49
- package/dist/esm/calcite-inline-editable.entry.js +24 -24
- package/dist/esm/calcite-input-date-picker_3.entry.js +90 -65
- package/dist/esm/calcite-input-number.entry.js +73 -52
- package/dist/esm/calcite-input-text.entry.js +36 -39
- package/dist/esm/calcite-input-time-picker-dbf2079e.js +1847 -0
- package/dist/esm/calcite-input-time-picker.entry.js +20 -19
- package/dist/esm/calcite-input-time-zone.entry.js +118 -116
- package/dist/esm/calcite-input_2.entry.js +80 -59
- package/dist/esm/calcite-label.entry.js +9 -9
- package/dist/esm/calcite-link.entry.js +13 -13
- package/dist/esm/calcite-list-item-group.entry.js +11 -10
- package/dist/esm/calcite-menu-item.entry.js +51 -52
- package/dist/esm/calcite-menu.entry.js +24 -17
- package/dist/esm/calcite-meter.entry.js +24 -24
- package/dist/esm/calcite-modal.entry.js +57 -55
- package/dist/esm/calcite-navigation-logo.entry.js +10 -10
- package/dist/esm/calcite-navigation-user.entry.js +7 -7
- package/dist/esm/calcite-navigation.entry.js +24 -24
- package/dist/esm/calcite-notice.entry.js +23 -23
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +23 -18
- package/dist/esm/calcite-pagination.entry.js +30 -30
- package/dist/esm/calcite-panel_2.entry.js +58 -40
- package/dist/esm/calcite-pick-list-group.entry.js +8 -8
- package/dist/esm/calcite-pick-list-item.entry.js +17 -17
- package/dist/esm/calcite-pick-list.entry.js +13 -13
- package/dist/esm/calcite-radio-button-group.entry.js +27 -10
- package/dist/esm/calcite-radio-button.entry.js +27 -23
- package/dist/esm/calcite-rating.entry.js +20 -20
- package/dist/esm/calcite-scrim.entry.js +14 -14
- package/dist/esm/calcite-segmented-control_2.entry.js +29 -16
- package/dist/esm/calcite-sheet.entry.js +15 -15
- package/dist/esm/calcite-shell-center-row.entry.js +10 -10
- package/dist/esm/calcite-shell-panel_14.entry.js +126 -114
- package/dist/esm/calcite-sortable-list.entry.js +23 -21
- package/dist/esm/calcite-split-button.entry.js +13 -13
- package/dist/esm/calcite-stepper-item.entry.js +24 -24
- package/dist/esm/calcite-stepper.entry.js +34 -34
- package/dist/esm/calcite-switch.entry.js +14 -14
- package/dist/esm/calcite-table-cell_2.entry.js +41 -32
- package/dist/esm/calcite-table-row.entry.js +23 -12
- package/dist/esm/calcite-table.entry.js +29 -25
- package/dist/esm/calcite-text-area.entry.js +39 -40
- package/dist/esm/calcite-tile-select-group.entry.js +5 -5
- package/dist/esm/calcite-tile-select.entry.js +39 -28
- package/dist/esm/calcite-tile.entry.js +16 -21
- package/dist/esm/calcite-time-picker.entry.js +44 -44
- package/dist/esm/calcite-tip-group.entry.js +1 -1
- package/dist/esm/calcite-tip-manager.entry.js +24 -24
- package/dist/esm/calcite-tip.entry.js +20 -20
- package/dist/esm/calcite-tooltip.entry.js +212 -213
- package/dist/esm/calcite-tree_2.entry.js +45 -46
- package/dist/esm/card-manager_3.entry.js +5 -5
- package/dist/esm/component-edd2c3cd.js +30 -0
- package/dist/esm/conditionalSlot-12c4fcfb.js +60 -0
- package/dist/esm/crowdsource-manager.entry.js +8 -4
- package/dist/esm/crowdsource-reporter.entry.js +11 -13
- package/dist/esm/cs-3d744598.js +146 -0
- package/dist/esm/da-ad0f6f82.js +65 -0
- package/dist/esm/date-5630530d.js +245 -0
- package/dist/esm/de-at-8de8843c.js +89 -0
- package/dist/esm/de-ch-03a1c027.js +89 -0
- package/dist/esm/de-d6966c3f.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/dom-38c6f027.js +1056 -0
- package/dist/esm/downloadUtils-8b83a40c.js +3130 -0
- package/dist/esm/el-7130c722.js +65 -0
- package/dist/esm/en-au-005d4093.js +65 -0
- package/dist/esm/en-ca-1b54d10b.js +64 -0
- package/dist/esm/en-gb-ac1ad784.js +68 -0
- package/dist/esm/es-d6f91b06.js +65 -0
- package/dist/esm/es-mx-26a8411a.js +64 -0
- package/dist/esm/et-1f7ea62f.js +91 -0
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/fi-df7f8ad0.js +114 -0
- package/dist/esm/filter-ce763acf.js +763 -0
- package/dist/esm/floating-ui-41dfe3f1.js +1958 -0
- package/dist/esm/focusTrapComponent-47ddce58.js +1023 -0
- package/dist/esm/form-50dcd52e.js +307 -0
- package/dist/esm/fr-14ad3cd0.js +67 -0
- package/dist/esm/fr-ch-328d9a38.js +65 -0
- package/dist/esm/guid-b75a5f7b.js +24 -0
- package/dist/esm/he-a30ddc93.js +104 -0
- package/dist/esm/helpers-e8852b4a.js +877 -0
- package/dist/esm/hi-5d914f70.js +64 -0
- package/dist/esm/hr-232bce19.js +79 -0
- package/dist/esm/hu-cb9fa8dc.js +87 -0
- package/dist/esm/id-28662048.js +65 -0
- package/dist/esm/index-164d485a.js +2519 -0
- package/dist/esm/index-477ea182.js +199 -0
- package/dist/esm/index.es-33e2ee2d.js +10725 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
- package/dist/esm/instant-apps-language-translator.entry.js +3 -3
- package/dist/esm/instant-apps-measurement.entry.js +1 -1
- package/dist/esm/instant-apps-popover.entry.js +1 -1
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/interactive-39bf5602.js +139 -0
- package/dist/esm/it-7fd85aa4.js +65 -0
- package/dist/esm/it-ch-ab98adcc.js +65 -0
- package/dist/esm/ja-eaf04e42.js +71 -0
- package/dist/esm/key-c83d835f.js +16 -0
- package/dist/esm/ko-d029100b.js +71 -0
- package/dist/esm/label-b4cea72e.js +179 -0
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loadable-37e7fbd6.js +89 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/locale-25a5ae3e.js +156 -0
- package/dist/esm/locale-904407bf.js +571 -0
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/lt-4c10b6c4.js +96 -0
- package/dist/esm/lv-d2afd652.js +65 -0
- package/dist/esm/map-select-tools_3.entry.js +6 -6
- package/dist/esm/math-efada7a9.js +54 -0
- package/dist/esm/mk-ee9a3d11.js +65 -0
- package/dist/esm/nb-b9ec8eb4.js +66 -0
- package/dist/esm/nl-8e5bf9af.js +66 -0
- package/dist/esm/observers-d04d1da9.js +51 -0
- package/dist/esm/openCloseComponent-9f90f493.js +90 -0
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/pl-1379aa6d.js +113 -0
- package/dist/esm/popupUtils-23fe3c9f.js +94 -0
- package/dist/esm/pt-8494ce08.js +66 -0
- package/dist/esm/pt-br-54686d6b.js +64 -0
- package/dist/esm/public-notification.entry.js +6 -6
- package/dist/esm/publicNotificationStore-3bf4de75.js +45 -0
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/resources-00983bd3.js +48 -0
- package/dist/esm/resources-20074cb1.js +24 -0
- package/dist/esm/resources-3709252d.js +35 -0
- package/dist/esm/resources-79914606.js +2051 -0
- package/dist/esm/resources-8834f920.js +28 -0
- package/dist/esm/resources-88a48c5c.js +20 -0
- package/dist/esm/resources-9b7e72d5.js +20 -0
- package/dist/esm/resources-abd87b42.js +24 -0
- package/dist/esm/resources-b0e2b809.js +22 -0
- package/dist/esm/ro-63586962.js +65 -0
- package/dist/esm/ru-ec1f486a.js +125 -0
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/shared-list-render-ede061c1.js +343 -0
- package/dist/esm/sk-d7d87eb9.js +147 -0
- package/dist/esm/sl-2a7d999b.js +167 -0
- package/dist/esm/solution-configuration.entry.js +4 -4
- package/dist/esm/solution-contents_3.entry.js +4 -4
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solution-store-01769bbf.js +1342 -0
- package/dist/esm/solutions-components.js +6 -6
- package/dist/esm/sortableComponent-d7cd11a3.js +2738 -0
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/sr-a3be308c.js +100 -0
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/sv-890688fe.js +70 -0
- package/dist/esm/t9n-436fb2b1.js +95 -0
- package/dist/esm/th-ae3d67ae.js +64 -0
- package/dist/esm/time-29001694.js +274 -0
- package/dist/esm/tr-260f6f88.js +65 -0
- package/dist/esm/uk-d84b6056.js +103 -0
- package/dist/esm/utils-9fb4104a.js +61 -0
- package/dist/esm/utils-a15078af.js +203 -0
- package/dist/esm/utils-b46c535b.js +121 -0
- package/dist/esm/utils-d2b2562a.js +95 -0
- package/dist/esm/utils-ef0ff036.js +51 -0
- package/dist/esm/vi-f3eb25b9.js +69 -0
- package/dist/esm/zh-cn-d6fc0582.js +93 -0
- package/dist/esm/zh-hk-285977d0.js +70 -0
- package/dist/esm/zh-tw-d83c5c9d.js +91 -0
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +13 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +37 -43
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +10 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +27 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +10 -27
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +29 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +29 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +55 -8
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +13 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +20 -16
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +54 -18
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +35 -10
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +40 -9
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +14 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +17 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +42 -30
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +12 -20
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +35 -11
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +13 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +13 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +25 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +57 -29
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +90 -7
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +9 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +9 -5
- package/dist/solutions-components/assets/combobox/t9n/messages_ar.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_bg.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_bs.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_ca.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_cs.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_da.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_de.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_el.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_es.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_et.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_fi.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_fr.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_he.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_hr.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_hu.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_id.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_it.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_ja.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_ko.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_lt.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_lv.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_nl.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_no.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_pl.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_pt-BR.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_pt-PT.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_ro.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_ru.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_sk.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_sl.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_sr.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_sv.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_th.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_tr.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_uk.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_vi.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_zh-CN.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_zh-HK.json +4 -1
- package/dist/solutions-components/assets/combobox/t9n/messages_zh-TW.json +4 -1
- package/dist/solutions-components/assets/handle/t9n/index.d.ts +1 -0
- package/dist/solutions-components/assets/handle/t9n/messages.json +2 -1
- package/dist/solutions-components/assets/handle/t9n/messages_en.json +2 -1
- package/dist/solutions-components/assets/icon/absoluteDirection16.json +1 -0
- package/dist/solutions-components/assets/icon/absoluteDirection24.json +1 -0
- package/dist/solutions-components/assets/icon/absoluteDirection32.json +1 -0
- package/dist/solutions-components/assets/icon/absoluteElevation16.json +1 -0
- package/dist/solutions-components/assets/icon/absoluteElevation24.json +1 -0
- package/dist/solutions-components/assets/icon/absoluteElevation32.json +1 -0
- package/dist/solutions-components/assets/icon/columnSettings16.json +1 -0
- package/dist/solutions-components/assets/icon/columnSettings24.json +1 -0
- package/dist/solutions-components/assets/icon/columnSettings32.json +1 -0
- package/dist/solutions-components/assets/icon/folderVideo16.json +1 -0
- package/dist/solutions-components/assets/icon/folderVideo24.json +1 -0
- package/dist/solutions-components/assets/icon/folderVideo32.json +1 -0
- package/dist/solutions-components/assets/icon/full1Column16.json +1 -0
- package/dist/solutions-components/assets/icon/full1Column24.json +1 -0
- package/dist/solutions-components/assets/icon/full1Column32.json +1 -0
- package/dist/solutions-components/assets/icon/fullMedium1Column16.json +1 -0
- package/dist/solutions-components/assets/icon/fullMedium1Column24.json +1 -0
- package/dist/solutions-components/assets/icon/fullMedium1Column32.json +1 -0
- package/dist/solutions-components/assets/icon/fullSmall1Column16.json +1 -0
- package/dist/solutions-components/assets/icon/fullSmall1Column24.json +1 -0
- package/dist/solutions-components/assets/icon/fullSmall1Column32.json +1 -0
- package/dist/solutions-components/assets/icon/hexagon16.json +1 -0
- package/dist/solutions-components/assets/icon/hexagon24.json +1 -0
- package/dist/solutions-components/assets/icon/hexagon32.json +1 -0
- package/dist/solutions-components/assets/icon/large2Column16.json +1 -0
- package/dist/solutions-components/assets/icon/large2Column24.json +1 -0
- package/dist/solutions-components/assets/icon/large2Column32.json +1 -0
- package/dist/solutions-components/assets/icon/medium2Column16.json +1 -0
- package/dist/solutions-components/assets/icon/medium2Column24.json +1 -0
- package/dist/solutions-components/assets/icon/medium2Column32.json +1 -0
- package/dist/solutions-components/assets/icon/octagon16.json +1 -0
- package/dist/solutions-components/assets/icon/octagon24.json +1 -0
- package/dist/solutions-components/assets/icon/octagon32.json +1 -0
- package/dist/solutions-components/assets/icon/onTheGroundElevation16.json +1 -0
- package/dist/solutions-components/assets/icon/onTheGroundElevation24.json +1 -0
- package/dist/solutions-components/assets/icon/onTheGroundElevation32.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplatePlay16.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplatePlay24.json +1 -0
- package/dist/solutions-components/assets/icon/rasterFunctionTemplatePlay32.json +1 -0
- package/dist/solutions-components/assets/icon/relativeDirection16.json +1 -0
- package/dist/solutions-components/assets/icon/relativeDirection24.json +1 -0
- package/dist/solutions-components/assets/icon/relativeDirection32.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToGroundElevation16.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToGroundElevation24.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToGroundElevation32.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToSceneElevation16.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToSceneElevation24.json +1 -0
- package/dist/solutions-components/assets/icon/relativeToSceneElevation32.json +1 -0
- package/dist/solutions-components/assets/icon/small2Column16.json +1 -0
- package/dist/solutions-components/assets/icon/small2Column24.json +1 -0
- package/dist/solutions-components/assets/icon/small2Column32.json +1 -0
- package/dist/solutions-components/assets/icon/surface16.json +1 -0
- package/dist/solutions-components/assets/icon/surface24.json +1 -0
- package/dist/solutions-components/assets/icon/surface32.json +1 -0
- package/dist/solutions-components/assets/icon/timeFilter16.json +1 -0
- package/dist/solutions-components/assets/icon/timeFilter24.json +1 -0
- package/dist/solutions-components/assets/icon/timeFilter32.json +1 -0
- package/dist/solutions-components/assets/input-time-zone/t9n/messages_fr.json +1 -1
- package/dist/solutions-components/assets/list/t9n/messages_ar.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_bg.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_bs.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_ca.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_cs.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_da.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_de.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_el.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_es.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_et.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_fi.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_fr.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_he.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_hr.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_hu.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_id.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_it.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_ja.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_ko.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_lt.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_lv.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_nl.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_no.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_pl.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_pt-BR.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_pt-PT.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_ro.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_ru.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_sk.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_sl.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_sr.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_sv.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_th.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_tr.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_uk.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_vi.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_zh-CN.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_zh-HK.json +4 -0
- package/dist/solutions-components/assets/list/t9n/messages_zh-TW.json +4 -0
- package/dist/solutions-components/assets/list-item/t9n/index.d.ts +2 -0
- package/dist/solutions-components/assets/list-item/t9n/messages.json +3 -1
- package/dist/solutions-components/assets/list-item/t9n/messages_en.json +3 -1
- package/dist/solutions-components/assets/pagination/t9n/messages_ar.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_bg.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_bs.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_ca.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_cs.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_da.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_de.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_el.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_es.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_et.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_fi.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_fr.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_he.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_hr.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_hu.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_id.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_it.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_ja.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_ko.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_lt.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_lv.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_nl.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_no.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_pl.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_pt-BR.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_pt-PT.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_ro.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_ru.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_sk.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_sl.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_sr.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_sv.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_th.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_tr.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_uk.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_vi.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_zh-CN.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_zh-HK.json +2 -2
- package/dist/solutions-components/assets/pagination/t9n/messages_zh-TW.json +2 -2
- package/dist/solutions-components/p-01f7f1a2.js +6 -0
- package/dist/solutions-components/p-028fba9d.js +6 -0
- package/dist/solutions-components/p-02fa1945.entry.js +11 -0
- package/dist/solutions-components/p-033522a7.entry.js +11 -0
- package/dist/solutions-components/p-038fcd93.entry.js +12 -0
- package/dist/solutions-components/p-04923112.entry.js +17 -0
- package/dist/solutions-components/p-04c37d69.entry.js +17 -0
- package/dist/solutions-components/p-05cb50f9.js +11 -0
- package/dist/solutions-components/p-070d486d.entry.js +17 -0
- package/dist/solutions-components/p-076673a8.js +6 -0
- package/dist/solutions-components/p-08651773.entry.js +11 -0
- package/dist/solutions-components/p-0883bc7b.js +6 -0
- package/dist/solutions-components/p-08cca1ba.entry.js +6 -0
- package/dist/solutions-components/p-0b92e4b1.entry.js +11 -0
- package/dist/solutions-components/p-0c6d2898.entry.js +6 -0
- package/dist/solutions-components/p-0cb5f2ee.js +6 -0
- package/dist/solutions-components/p-0d641d14.entry.js +11 -0
- package/dist/solutions-components/p-0f66fd89.js +145 -0
- package/dist/solutions-components/p-1065f4fa.js +11 -0
- package/dist/solutions-components/p-11c85508.entry.js +6 -0
- package/dist/solutions-components/p-13a02132.js +6 -0
- package/dist/solutions-components/p-13f2d901.js +16 -0
- package/dist/solutions-components/p-16a82c20.js +11 -0
- package/dist/solutions-components/p-18f1e8b5.js +6 -0
- package/dist/solutions-components/p-1b627c37.js +6 -0
- package/dist/solutions-components/p-1c19b946.js +6 -0
- package/dist/solutions-components/p-1c8cdfeb.entry.js +11 -0
- package/dist/solutions-components/p-1ee6220e.entry.js +17 -0
- package/dist/solutions-components/p-1f33a29d.js +11 -0
- package/dist/solutions-components/p-1f65ab1e.js +11 -0
- package/dist/solutions-components/p-1fbac542.js +6 -0
- package/dist/solutions-components/p-201a6ea3.js +11 -0
- package/dist/solutions-components/p-20320bf6.entry.js +11 -0
- package/dist/solutions-components/p-212c00e9.entry.js +6 -0
- package/dist/solutions-components/p-23de1b01.entry.js +11 -0
- package/dist/solutions-components/p-25894d7a.entry.js +6 -0
- package/dist/solutions-components/p-26461392.entry.js +11 -0
- package/dist/solutions-components/p-2917dae0.entry.js +6 -0
- package/dist/solutions-components/p-2a0f52c5.entry.js +6 -0
- package/dist/solutions-components/p-2a546c56.js +6 -0
- package/dist/solutions-components/p-2b0454a0.js +11 -0
- package/dist/solutions-components/p-2b6679d2.entry.js +6 -0
- package/dist/solutions-components/p-2ba240b9.entry.js +6 -0
- package/dist/solutions-components/p-2c6b8811.js +18 -0
- package/dist/solutions-components/p-2eeff59b.js +6 -0
- package/dist/solutions-components/p-30480847.entry.js +11 -0
- package/dist/solutions-components/p-30e7ecfa.js +6 -0
- package/dist/solutions-components/p-312c045a.entry.js +11 -0
- package/dist/solutions-components/p-32dc5007.entry.js +23 -0
- package/dist/solutions-components/p-32fed23c.entry.js +17 -0
- package/dist/solutions-components/p-36375749.js +6 -0
- package/dist/solutions-components/p-399d795d.js +6 -0
- package/dist/solutions-components/p-3bb79204.js +6 -0
- package/dist/solutions-components/p-3c5cae90.entry.js +6 -0
- package/dist/solutions-components/p-3cb1de38.entry.js +6 -0
- package/dist/solutions-components/p-3cf84035.entry.js +6 -0
- package/dist/solutions-components/p-3d324690.entry.js +11 -0
- package/dist/solutions-components/p-3d7d78f3.entry.js +6 -0
- package/dist/solutions-components/p-3dd92f0d.js +17 -0
- package/dist/solutions-components/p-3e79d77b.entry.js +11 -0
- package/dist/solutions-components/p-3fbfe26a.entry.js +11 -0
- package/dist/solutions-components/p-4000a88a.js +6 -0
- package/dist/solutions-components/p-431d8154.entry.js +6 -0
- package/dist/solutions-components/p-449db954.entry.js +6 -0
- package/dist/solutions-components/p-45263007.entry.js +17 -0
- package/dist/solutions-components/p-463712ef.entry.js +36 -0
- package/dist/solutions-components/p-479d1e95.js +6 -0
- package/dist/solutions-components/p-47a97db7.entry.js +11 -0
- package/dist/solutions-components/p-48bef730.js +11 -0
- package/dist/solutions-components/p-495e7b9d.js +11 -0
- package/dist/solutions-components/p-4a030771.entry.js +11 -0
- package/dist/solutions-components/p-4b530f7b.entry.js +6 -0
- package/dist/solutions-components/p-4c5d243f.js +11 -0
- package/dist/solutions-components/p-4ce1ffd8.entry.js +11 -0
- package/dist/solutions-components/p-4d09aa4c.entry.js +6 -0
- package/dist/solutions-components/p-4f489e61.js +6 -0
- package/dist/solutions-components/p-52a6d2dc.entry.js +11 -0
- package/dist/solutions-components/p-531ccf84.entry.js +6 -0
- package/dist/solutions-components/p-547b4dba.entry.js +21 -0
- package/dist/solutions-components/p-563a0b20.js +11 -0
- package/dist/solutions-components/p-565e0f0d.entry.js +6 -0
- package/dist/solutions-components/p-5a9a971a.js +11 -0
- package/dist/solutions-components/p-5b228ed7.entry.js +11 -0
- package/dist/solutions-components/p-5f5de955.js +11 -0
- package/dist/solutions-components/p-5fbfa5e4.entry.js +12 -0
- package/dist/solutions-components/p-5fd1ae46.entry.js +6 -0
- package/dist/solutions-components/p-602f3e72.js +16 -0
- package/dist/solutions-components/p-6068c1cf.entry.js +22 -0
- package/dist/solutions-components/p-62f2cea7.entry.js +6 -0
- package/dist/solutions-components/p-6332fd4e.entry.js +6 -0
- package/dist/solutions-components/p-63572270.entry.js +6 -0
- package/dist/solutions-components/p-66ff2c3f.js +11 -0
- package/dist/solutions-components/p-680b89db.js +16 -0
- package/dist/solutions-components/p-6a61c742.entry.js +6 -0
- package/dist/solutions-components/p-6aa16b3c.js +6 -0
- package/dist/solutions-components/p-6ce37201.js +11 -0
- package/dist/solutions-components/p-6d0203ed.entry.js +6 -0
- package/dist/solutions-components/p-6d520a58.js +12 -0
- package/dist/solutions-components/p-6d93bdfd.entry.js +11 -0
- package/dist/solutions-components/p-6f6deff1.js +6 -0
- package/dist/solutions-components/p-701568c2.entry.js +16 -0
- package/dist/solutions-components/p-701ed205.js +6 -0
- package/dist/solutions-components/p-7169fadf.js +6 -0
- package/dist/solutions-components/p-71964176.entry.js +11 -0
- package/dist/solutions-components/p-71b65d8a.entry.js +11 -0
- package/dist/solutions-components/p-72849648.js +6 -0
- package/dist/solutions-components/p-732ae6e8.entry.js +6 -0
- package/dist/solutions-components/p-75099601.js +6 -0
- package/dist/solutions-components/p-75a758c8.js +6 -0
- package/dist/solutions-components/p-76bd5032.js +11 -0
- package/dist/solutions-components/p-7878534f.entry.js +11 -0
- package/dist/solutions-components/p-792907e2.entry.js +11 -0
- package/dist/solutions-components/p-7b257e2e.js +6 -0
- package/dist/solutions-components/p-7c0fe27e.entry.js +11 -0
- package/dist/solutions-components/p-7c2be8cc.js +11 -0
- package/dist/solutions-components/p-7c2ef952.js +6 -0
- package/dist/solutions-components/p-7cfce9ee.entry.js +11 -0
- package/dist/solutions-components/p-7d04ff20.js +11 -0
- package/dist/solutions-components/p-7d280d8a.js +7 -0
- package/dist/solutions-components/p-8007ac36.js +11 -0
- package/dist/solutions-components/p-807900ac.js +6 -0
- package/dist/solutions-components/p-80fd6b2e.js +6 -0
- package/dist/solutions-components/p-8365664f.entry.js +17 -0
- package/dist/solutions-components/p-84546f35.entry.js +6 -0
- package/dist/solutions-components/p-8571c89f.entry.js +6 -0
- package/dist/solutions-components/p-88cd4a24.entry.js +6 -0
- package/dist/solutions-components/p-8942f6fa.js +6 -0
- package/dist/solutions-components/p-8dbf3319.entry.js +6 -0
- package/dist/solutions-components/p-8dc26294.js +11 -0
- package/dist/solutions-components/p-905f7e81.entry.js +6 -0
- package/dist/solutions-components/p-906ad47a.entry.js +11 -0
- package/dist/solutions-components/p-91c49d95.entry.js +6 -0
- package/dist/solutions-components/p-922f2467.entry.js +6 -0
- package/dist/solutions-components/p-928c0b29.entry.js +6 -0
- package/dist/solutions-components/p-93369c9f.entry.js +6 -0
- package/dist/solutions-components/p-94de9279.js +11 -0
- package/dist/solutions-components/p-96104375.entry.js +6 -0
- package/dist/solutions-components/p-97425481.entry.js +6 -0
- package/dist/solutions-components/p-9ae4f911.entry.js +6 -0
- package/dist/solutions-components/p-9d3b46e2.js +11 -0
- package/dist/solutions-components/p-9d53e0f2.js +11 -0
- package/dist/solutions-components/p-9f895288.entry.js +6 -0
- package/dist/solutions-components/p-a17d0d80.entry.js +6 -0
- package/dist/solutions-components/p-a4149333.js +11 -0
- package/dist/solutions-components/p-a5088b70.js +6 -0
- package/dist/solutions-components/p-a55b766f.entry.js +6 -0
- package/dist/solutions-components/p-acb9b78e.js +6 -0
- package/dist/solutions-components/p-ae4c8b8c.entry.js +6 -0
- package/dist/solutions-components/p-aec06ce4.entry.js +18 -0
- package/dist/solutions-components/p-b04c9dc3.js +36 -0
- package/dist/solutions-components/p-b15fda15.js +6 -0
- package/dist/solutions-components/p-b3ad3ac1.entry.js +6 -0
- package/dist/solutions-components/p-b3eb3302.js +17 -0
- package/dist/solutions-components/p-b4103233.js +6 -0
- package/dist/solutions-components/p-b4d85b2c.js +6 -0
- package/dist/solutions-components/p-b7337228.entry.js +11 -0
- package/dist/solutions-components/p-ba7d55ea.js +11 -0
- package/dist/solutions-components/p-bb94c414.entry.js +6 -0
- package/dist/solutions-components/p-bc665a3a.js +6 -0
- package/dist/solutions-components/p-bd06bae0.entry.js +11 -0
- package/dist/solutions-components/p-bdbfe9f1.js +6 -0
- package/dist/solutions-components/p-bdea5320.js +11 -0
- package/dist/solutions-components/p-beba1804.entry.js +11 -0
- package/dist/solutions-components/p-bfdf89c2.js +11 -0
- package/dist/solutions-components/p-c51f2880.entry.js +11 -0
- package/dist/solutions-components/p-c85ce035.entry.js +11 -0
- package/dist/solutions-components/p-c8ca9b8c.entry.js +17 -0
- package/dist/solutions-components/p-c94d2cec.js +11 -0
- package/dist/solutions-components/p-c97eebe2.js +6 -0
- package/dist/solutions-components/p-caa7580c.js +6 -0
- package/dist/solutions-components/p-cc280aa1.js +21 -0
- package/dist/solutions-components/p-cc859d2b.entry.js +16 -0
- package/dist/solutions-components/p-ced067bd.entry.js +17 -0
- package/dist/solutions-components/p-cf24dd35.entry.js +23 -0
- package/dist/solutions-components/p-d36f2db6.entry.js +11 -0
- package/dist/solutions-components/p-d3ba36ce.entry.js +11 -0
- package/dist/solutions-components/p-d3da7497.entry.js +6 -0
- package/dist/solutions-components/p-d5ce0c2b.js +11 -0
- package/dist/solutions-components/p-d67f3b6e.entry.js +11 -0
- package/dist/solutions-components/p-d6c662dc.js +6 -0
- package/dist/solutions-components/p-d7b02d3a.js +22 -0
- package/dist/solutions-components/p-d9826b1d.entry.js +11 -0
- package/dist/solutions-components/p-db53bde3.js +11 -0
- package/dist/solutions-components/p-dc58d9ec.js +6 -0
- package/dist/solutions-components/p-dd45738e.entry.js +6 -0
- package/dist/solutions-components/p-dd67e38a.entry.js +6 -0
- package/dist/solutions-components/p-ddd1cc66.js +6 -0
- package/dist/solutions-components/p-de9522e9.js +11 -0
- package/dist/solutions-components/p-df468e80.entry.js +12 -0
- package/dist/solutions-components/p-e05b02c5.entry.js +47 -0
- package/dist/solutions-components/p-e10ca475.entry.js +11 -0
- package/dist/solutions-components/p-e14e6c12.entry.js +6 -0
- package/dist/solutions-components/p-e29a378e.entry.js +6 -0
- package/dist/solutions-components/p-e2eb93d3.js +6 -0
- package/dist/solutions-components/p-e46910c5.js +6 -0
- package/dist/solutions-components/p-e4e59f16.js +489 -0
- package/dist/solutions-components/p-e61c56fa.entry.js +11 -0
- package/dist/solutions-components/p-e7afc0a8.js +11 -0
- package/dist/solutions-components/p-e813faf8.entry.js +11 -0
- package/dist/solutions-components/p-e822a96b.js +6 -0
- package/dist/solutions-components/p-e9700988.entry.js +6 -0
- package/dist/solutions-components/p-e9788173.entry.js +11 -0
- package/dist/solutions-components/p-e9828fd0.js +6 -0
- package/dist/solutions-components/p-eb0f4ede.entry.js +6 -0
- package/dist/solutions-components/p-ebd6afea.entry.js +11 -0
- package/dist/solutions-components/p-ebdd6c63.js +6 -0
- package/dist/solutions-components/p-ede2a93f.js +6 -0
- package/dist/solutions-components/p-ee1e4df3.js +61 -0
- package/dist/solutions-components/p-ef1cf76c.entry.js +6 -0
- package/dist/solutions-components/p-efec6ba5.entry.js +11 -0
- package/dist/solutions-components/p-f0c7d964.js +11 -0
- package/dist/solutions-components/p-f232f765.js +6 -0
- package/dist/solutions-components/p-f23e6499.js +21 -0
- package/dist/solutions-components/p-f8015a1b.js +6 -0
- package/dist/solutions-components/p-f8a6785d.entry.js +6 -0
- package/dist/solutions-components/p-fc4df904.entry.js +6 -0
- package/dist/solutions-components/p-fc9fe5fb.js +11 -0
- package/dist/solutions-components/p-fdedce1c.entry.js +11 -0
- package/dist/solutions-components/p-fe74de01.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +16 -8
- package/dist/solutions-components/utils/interfaces.ts +5 -0
- package/dist/types/components/layer-table/layer-table.d.ts +2 -2
- package/dist/types/preact.d.ts +13 -5
- package/dist/types/utils/downloadUtils.d.ts +4 -4
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cjs/ExpandToggle-f83d93f8.js +0 -118
- package/dist/cjs/FloatingArrow-7e1624ea.js +0 -50
- package/dist/cjs/Heading-fe70b3e6.js +0 -25
- package/dist/cjs/app-globals-b3f43c6b.js +0 -69
- package/dist/cjs/ar-5f98cd4b.js +0 -104
- package/dist/cjs/array-1d19377b.js +0 -17
- package/dist/cjs/bg-a55b554b.js +0 -82
- package/dist/cjs/browser-9a43b900.js +0 -23
- package/dist/cjs/bs-00e4d31b.js +0 -51
- package/dist/cjs/ca-cdd10d29.js +0 -71
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -261
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +0 -2232
- package/dist/cjs/calcite-input-time-picker-4f7e55b6.js +0 -1849
- package/dist/cjs/component-c270a500.js +0 -33
- package/dist/cjs/conditionalSlot-63e11cba.js +0 -63
- package/dist/cjs/cs-d08a7e91.js +0 -147
- package/dist/cjs/da-2fb40e38.js +0 -66
- package/dist/cjs/date-a0b274b2.js +0 -261
- package/dist/cjs/de-at-8cb4fc8d.js +0 -90
- package/dist/cjs/de-ch-98281a16.js +0 -90
- package/dist/cjs/de-f88ab56a.js +0 -91
- package/dist/cjs/dom-e111eaa6.js +0 -1087
- package/dist/cjs/downloadUtils-6b451886.js +0 -3131
- package/dist/cjs/el-42222f37.js +0 -66
- package/dist/cjs/en-au-ce99afe4.js +0 -66
- package/dist/cjs/en-ca-44a0c79e.js +0 -65
- package/dist/cjs/en-gb-9bd18cc2.js +0 -69
- package/dist/cjs/es-a630678a.js +0 -66
- package/dist/cjs/es-mx-cb026d16.js +0 -65
- package/dist/cjs/et-9801d7bf.js +0 -92
- package/dist/cjs/fi-99bb68b2.js +0 -115
- package/dist/cjs/filter-8f1bbfe6.js +0 -765
- package/dist/cjs/floating-ui-290f99dd.js +0 -1906
- package/dist/cjs/focusTrapComponent-3add574e.js +0 -1028
- package/dist/cjs/form-0291a707.js +0 -260
- package/dist/cjs/fr-047990d9.js +0 -68
- package/dist/cjs/fr-ch-eefff196.js +0 -66
- package/dist/cjs/globalAttributes-c973ec3a.js +0 -77
- package/dist/cjs/guid-1a466ca6.js +0 -26
- package/dist/cjs/he-3f50b1de.js +0 -105
- package/dist/cjs/helpers-a0719076.js +0 -903
- package/dist/cjs/hi-8fad23c8.js +0 -65
- package/dist/cjs/hr-85523ea5.js +0 -80
- package/dist/cjs/hu-133d6509.js +0 -88
- package/dist/cjs/id-cf31387c.js +0 -66
- package/dist/cjs/index-22bb61da.js +0 -201
- package/dist/cjs/index-b8a649fc.js +0 -2530
- package/dist/cjs/index.es-3eaba9ef.js +0 -10811
- package/dist/cjs/interactive-8aff886e.js +0 -147
- package/dist/cjs/it-87a2a88e.js +0 -66
- package/dist/cjs/it-ch-6197d836.js +0 -66
- package/dist/cjs/ja-1be83730.js +0 -72
- package/dist/cjs/key-b8c05387.js +0 -19
- package/dist/cjs/ko-ea4b0148.js +0 -72
- package/dist/cjs/label-bcad2894.js +0 -186
- package/dist/cjs/loadable-07a214c7.js +0 -94
- package/dist/cjs/locale-6a627639.js +0 -584
- package/dist/cjs/locale-a476e15d.js +0 -161
- package/dist/cjs/lt-4acaf0a6.js +0 -97
- package/dist/cjs/lv-251e08f1.js +0 -66
- package/dist/cjs/math-6c9027e3.js +0 -60
- package/dist/cjs/mk-8b1ae7dd.js +0 -66
- package/dist/cjs/nb-fa98c484.js +0 -67
- package/dist/cjs/nl-e71e8890.js +0 -67
- package/dist/cjs/observers-281a8c99.js +0 -53
- package/dist/cjs/openCloseComponent-8c9a1749.js +0 -92
- package/dist/cjs/pl-8527f540.js +0 -114
- package/dist/cjs/popupUtils-7755782a.js +0 -96
- package/dist/cjs/pt-a1c7a6ea.js +0 -67
- package/dist/cjs/pt-br-c5319e0c.js +0 -65
- package/dist/cjs/publicNotificationStore-3a17c2f4.js +0 -47
- package/dist/cjs/resources-0986c5c2.js +0 -2062
- package/dist/cjs/resources-222ad22c.js +0 -20
- package/dist/cjs/resources-228f9286.js +0 -39
- package/dist/cjs/resources-6c60363a.js +0 -32
- package/dist/cjs/resources-8e3763a4.js +0 -52
- package/dist/cjs/resources-9400a252.js +0 -23
- package/dist/cjs/resources-a825d7ae.js +0 -29
- package/dist/cjs/resources-d2d7b7c7.js +0 -27
- package/dist/cjs/resources-f3e0e822.js +0 -26
- package/dist/cjs/ro-df6f795a.js +0 -66
- package/dist/cjs/ru-7516a3ba.js +0 -126
- package/dist/cjs/shared-list-render-25bedff5.js +0 -364
- package/dist/cjs/sk-9d31fa10.js +0 -148
- package/dist/cjs/sl-abecca0d.js +0 -168
- package/dist/cjs/solution-store-ab6c980f.js +0 -1344
- package/dist/cjs/sortableComponent-188f3290.js +0 -3108
- package/dist/cjs/sr-334c5c73.js +0 -101
- package/dist/cjs/sv-832dd153.js +0 -71
- package/dist/cjs/t9n-0556abcb.js +0 -100
- package/dist/cjs/th-cca86754.js +0 -65
- package/dist/cjs/time-06aad495.js +0 -289
- package/dist/cjs/tr-fcef3dae.js +0 -66
- package/dist/cjs/uk-69eceeec.js +0 -104
- package/dist/cjs/utils-234879c7.js +0 -99
- package/dist/cjs/utils-3df24da4.js +0 -62
- package/dist/cjs/utils-6587cc34.js +0 -64
- package/dist/cjs/utils-6c713ba8.js +0 -130
- package/dist/cjs/utils-c735a41d.js +0 -221
- package/dist/cjs/vi-6afa69a0.js +0 -70
- package/dist/cjs/zh-cn-0513bc09.js +0 -94
- package/dist/cjs/zh-hk-73971e1d.js +0 -71
- package/dist/cjs/zh-tw-af0db947.js +0 -92
- package/dist/components/globalAttributes.js +0 -74
- package/dist/components/tile.js +0 -115
- package/dist/esm/ExpandToggle-96688cda.js +0 -110
- package/dist/esm/FloatingArrow-245804f3.js +0 -48
- package/dist/esm/Heading-c45d3f45.js +0 -22
- package/dist/esm/app-globals-e4f88f7e.js +0 -67
- package/dist/esm/ar-29711364.js +0 -102
- package/dist/esm/array-51c31356.js +0 -15
- package/dist/esm/bg-c0f5033b.js +0 -80
- package/dist/esm/browser-b4c16201.js +0 -21
- package/dist/esm/bs-60479ce5.js +0 -49
- package/dist/esm/ca-4317b986.js +0 -69
- package/dist/esm/calcite-chip.entry.js +0 -257
- package/dist/esm/calcite-combobox_6.entry.js +0 -2223
- package/dist/esm/calcite-input-time-picker-2e1b2157.js +0 -1846
- package/dist/esm/component-98bae46b.js +0 -30
- package/dist/esm/conditionalSlot-1149b5cb.js +0 -60
- package/dist/esm/cs-da404a04.js +0 -145
- package/dist/esm/da-1afac3fa.js +0 -64
- package/dist/esm/date-8b4a8f33.js +0 -245
- package/dist/esm/de-98f3129e.js +0 -89
- package/dist/esm/de-at-ed4817af.js +0 -88
- package/dist/esm/de-ch-556c82c8.js +0 -88
- package/dist/esm/dom-8f926f33.js +0 -1056
- package/dist/esm/downloadUtils-4577cf8b.js +0 -3125
- package/dist/esm/el-394dfd74.js +0 -64
- package/dist/esm/en-au-6dde1e7e.js +0 -64
- package/dist/esm/en-ca-420be416.js +0 -63
- package/dist/esm/en-gb-0a7caa85.js +0 -67
- package/dist/esm/es-2e1beb99.js +0 -64
- package/dist/esm/es-mx-ef132a24.js +0 -63
- package/dist/esm/et-83d139c1.js +0 -90
- package/dist/esm/fi-8b81ed94.js +0 -113
- package/dist/esm/filter-8b806ae6.js +0 -763
- package/dist/esm/floating-ui-c397f653.js +0 -1898
- package/dist/esm/focusTrapComponent-14368766.js +0 -1023
- package/dist/esm/form-133b00c7.js +0 -252
- package/dist/esm/fr-c47c114a.js +0 -66
- package/dist/esm/fr-ch-97635343.js +0 -64
- package/dist/esm/globalAttributes-03c9e433.js +0 -74
- package/dist/esm/guid-36c6c6a5.js +0 -24
- package/dist/esm/he-ed2a12b9.js +0 -103
- package/dist/esm/helpers-078591d2.js +0 -877
- package/dist/esm/hi-a05727ac.js +0 -63
- package/dist/esm/hr-d01671ca.js +0 -78
- package/dist/esm/hu-16506ca7.js +0 -86
- package/dist/esm/id-e9367e87.js +0 -64
- package/dist/esm/index-7183ce4a.js +0 -2496
- package/dist/esm/index-857df22e.js +0 -199
- package/dist/esm/index.es-a28dad8e.js +0 -10725
- package/dist/esm/interactive-20bb1dc4.js +0 -143
- package/dist/esm/it-14246b4a.js +0 -64
- package/dist/esm/it-ch-a877e111.js +0 -64
- package/dist/esm/ja-67a0cfa0.js +0 -70
- package/dist/esm/key-af303047.js +0 -16
- package/dist/esm/ko-35b0b83a.js +0 -70
- package/dist/esm/label-cd393c81.js +0 -179
- package/dist/esm/loadable-c3685e51.js +0 -89
- package/dist/esm/locale-6107ef11.js +0 -571
- package/dist/esm/locale-731e75a8.js +0 -156
- package/dist/esm/lt-71014faf.js +0 -95
- package/dist/esm/lv-def9df38.js +0 -64
- package/dist/esm/math-cdaf4dc0.js +0 -54
- package/dist/esm/mk-bfeac49e.js +0 -64
- package/dist/esm/nb-0723b461.js +0 -65
- package/dist/esm/nl-89663165.js +0 -65
- package/dist/esm/observers-8ce200f2.js +0 -51
- package/dist/esm/openCloseComponent-982c6b9e.js +0 -90
- package/dist/esm/pl-0157c37c.js +0 -112
- package/dist/esm/popupUtils-d75edf93.js +0 -94
- package/dist/esm/pt-80d1520c.js +0 -65
- package/dist/esm/pt-br-ee5003c7.js +0 -63
- package/dist/esm/publicNotificationStore-9362d7ae.js +0 -45
- package/dist/esm/resources-13098091.js +0 -35
- package/dist/esm/resources-1a8d4d77.js +0 -24
- package/dist/esm/resources-242fdf8d.js +0 -2051
- package/dist/esm/resources-4bcfc016.js +0 -22
- package/dist/esm/resources-649a0f91.js +0 -48
- package/dist/esm/resources-6772a50d.js +0 -24
- package/dist/esm/resources-6e00e0d1.js +0 -20
- package/dist/esm/resources-a0420cda.js +0 -20
- package/dist/esm/resources-cdc36705.js +0 -28
- package/dist/esm/ro-eff987f8.js +0 -64
- package/dist/esm/ru-62839398.js +0 -124
- package/dist/esm/shared-list-render-a2ab63e8.js +0 -342
- package/dist/esm/sk-c2f4bd58.js +0 -146
- package/dist/esm/sl-328ff1db.js +0 -166
- package/dist/esm/solution-store-19f7825b.js +0 -1342
- package/dist/esm/sortableComponent-65956286.js +0 -3104
- package/dist/esm/sr-75a3ad46.js +0 -99
- package/dist/esm/sv-10da5ef2.js +0 -69
- package/dist/esm/t9n-f16911e7.js +0 -95
- package/dist/esm/th-aa112042.js +0 -63
- package/dist/esm/time-855b3426.js +0 -274
- package/dist/esm/tr-5925a2f5.js +0 -64
- package/dist/esm/uk-c40eeb9f.js +0 -102
- package/dist/esm/utils-5ec65194.js +0 -121
- package/dist/esm/utils-86d242a6.js +0 -90
- package/dist/esm/utils-93fd55c4.js +0 -61
- package/dist/esm/utils-abdd879e.js +0 -203
- package/dist/esm/utils-c3509713.js +0 -51
- package/dist/esm/vi-27922b93.js +0 -68
- package/dist/esm/zh-cn-38a2e1d3.js +0 -92
- package/dist/esm/zh-hk-e0217bd1.js +0 -69
- package/dist/esm/zh-tw-31f0447c.js +0 -90
- package/dist/solutions-components/p-0392679d.js +0 -6
- package/dist/solutions-components/p-05f702ae.js +0 -6
- package/dist/solutions-components/p-0637dbc2.entry.js +0 -6
- package/dist/solutions-components/p-068f5a8c.entry.js +0 -11
- package/dist/solutions-components/p-08bde7db.entry.js +0 -6
- package/dist/solutions-components/p-0a0d0d3a.entry.js +0 -6
- package/dist/solutions-components/p-0b4f4b0e.entry.js +0 -6
- package/dist/solutions-components/p-0b65130f.entry.js +0 -6
- package/dist/solutions-components/p-0c07ad8a.js +0 -11
- package/dist/solutions-components/p-0c97de08.js +0 -12
- package/dist/solutions-components/p-0d774e41.js +0 -6
- package/dist/solutions-components/p-0f156577.entry.js +0 -6
- package/dist/solutions-components/p-0f6b58b2.js +0 -6
- package/dist/solutions-components/p-10410f92.entry.js +0 -6
- package/dist/solutions-components/p-10f2d6b0.entry.js +0 -11
- package/dist/solutions-components/p-13be5cf5.entry.js +0 -11
- package/dist/solutions-components/p-14548a83.js +0 -6
- package/dist/solutions-components/p-17668cb7.js +0 -16
- package/dist/solutions-components/p-1b9fb070.entry.js +0 -6
- package/dist/solutions-components/p-1be63b50.js +0 -11
- package/dist/solutions-components/p-1c75bb3d.js +0 -6
- package/dist/solutions-components/p-1e2ffee3.js +0 -11
- package/dist/solutions-components/p-1f7046e9.entry.js +0 -6
- package/dist/solutions-components/p-21c2d29c.entry.js +0 -6
- package/dist/solutions-components/p-21ccd955.entry.js +0 -6
- package/dist/solutions-components/p-225c4ca4.js +0 -6
- package/dist/solutions-components/p-234a8293.entry.js +0 -11
- package/dist/solutions-components/p-2447b332.js +0 -6
- package/dist/solutions-components/p-24c699b0.entry.js +0 -16
- package/dist/solutions-components/p-259f6f81.js +0 -11
- package/dist/solutions-components/p-25dd768d.js +0 -11
- package/dist/solutions-components/p-2656c6e4.entry.js +0 -47
- package/dist/solutions-components/p-284cc5cd.entry.js +0 -6
- package/dist/solutions-components/p-28b33708.js +0 -6
- package/dist/solutions-components/p-29d68474.js +0 -11
- package/dist/solutions-components/p-2d68a6fd.js +0 -6
- package/dist/solutions-components/p-2e2d01de.entry.js +0 -11
- package/dist/solutions-components/p-2f425700.entry.js +0 -11
- package/dist/solutions-components/p-324d71f4.entry.js +0 -11
- package/dist/solutions-components/p-32b6b6c9.js +0 -11
- package/dist/solutions-components/p-35c58364.js +0 -11
- package/dist/solutions-components/p-364486d1.entry.js +0 -6
- package/dist/solutions-components/p-368cbb2c.entry.js +0 -11
- package/dist/solutions-components/p-36f247db.entry.js +0 -6
- package/dist/solutions-components/p-38544b17.js +0 -6
- package/dist/solutions-components/p-3a73ee38.entry.js +0 -11
- package/dist/solutions-components/p-3ad4426b.entry.js +0 -11
- package/dist/solutions-components/p-3c10901a.entry.js +0 -11
- package/dist/solutions-components/p-3c7d0eb9.js +0 -6
- package/dist/solutions-components/p-3ca39d08.entry.js +0 -6
- package/dist/solutions-components/p-3d17ee9f.entry.js +0 -6
- package/dist/solutions-components/p-3f279568.js +0 -18
- package/dist/solutions-components/p-411b73a7.js +0 -6
- package/dist/solutions-components/p-428554b4.js +0 -11
- package/dist/solutions-components/p-429e1284.entry.js +0 -6
- package/dist/solutions-components/p-42f0e1fa.entry.js +0 -11
- package/dist/solutions-components/p-4416d288.js +0 -11
- package/dist/solutions-components/p-451b16b3.entry.js +0 -11
- package/dist/solutions-components/p-4647b2a6.js +0 -6
- package/dist/solutions-components/p-475ad635.js +0 -11
- package/dist/solutions-components/p-480d0789.js +0 -6
- package/dist/solutions-components/p-49b02dda.entry.js +0 -6
- package/dist/solutions-components/p-49fb1bfa.js +0 -11
- package/dist/solutions-components/p-4abf1c34.js +0 -6
- package/dist/solutions-components/p-4ae36626.js +0 -6
- package/dist/solutions-components/p-4bff69aa.entry.js +0 -11
- package/dist/solutions-components/p-4ccdac24.entry.js +0 -12
- package/dist/solutions-components/p-4d402bcf.entry.js +0 -11
- package/dist/solutions-components/p-4d8fc031.js +0 -6
- package/dist/solutions-components/p-4d99cb49.entry.js +0 -6
- package/dist/solutions-components/p-4fbadb84.entry.js +0 -6
- package/dist/solutions-components/p-515a319e.js +0 -21
- package/dist/solutions-components/p-5268d845.entry.js +0 -11
- package/dist/solutions-components/p-568822d4.js +0 -11
- package/dist/solutions-components/p-5a885617.entry.js +0 -6
- package/dist/solutions-components/p-5b566d55.js +0 -11
- package/dist/solutions-components/p-5e12026e.js +0 -6
- package/dist/solutions-components/p-5fe99315.entry.js +0 -11
- package/dist/solutions-components/p-60d212df.entry.js +0 -6
- package/dist/solutions-components/p-6105d57c.js +0 -6
- package/dist/solutions-components/p-613315a7.entry.js +0 -12
- package/dist/solutions-components/p-61a523a6.entry.js +0 -6
- package/dist/solutions-components/p-6268020e.entry.js +0 -6
- package/dist/solutions-components/p-627c19b5.entry.js +0 -6
- package/dist/solutions-components/p-62eba559.entry.js +0 -17
- package/dist/solutions-components/p-63fa7791.entry.js +0 -11
- package/dist/solutions-components/p-653af7e0.js +0 -11
- package/dist/solutions-components/p-6604ac77.js +0 -11
- package/dist/solutions-components/p-668c9fd9.entry.js +0 -6
- package/dist/solutions-components/p-674be06c.entry.js +0 -6
- package/dist/solutions-components/p-67b9b58f.entry.js +0 -6
- package/dist/solutions-components/p-67ff8e9a.entry.js +0 -17
- package/dist/solutions-components/p-68434a63.js +0 -6
- package/dist/solutions-components/p-68e0adcf.js +0 -6
- package/dist/solutions-components/p-68e84199.entry.js +0 -6
- package/dist/solutions-components/p-69763854.js +0 -6
- package/dist/solutions-components/p-6ae45648.js +0 -6
- package/dist/solutions-components/p-6b2b8b41.entry.js +0 -29
- package/dist/solutions-components/p-6c85b276.js +0 -489
- package/dist/solutions-components/p-6cce7009.entry.js +0 -11
- package/dist/solutions-components/p-6d511162.js +0 -6
- package/dist/solutions-components/p-708294ca.entry.js +0 -11
- package/dist/solutions-components/p-7116f96d.entry.js +0 -36
- package/dist/solutions-components/p-727596e6.js +0 -11
- package/dist/solutions-components/p-73100e79.js +0 -11
- package/dist/solutions-components/p-734bc1b0.entry.js +0 -11
- package/dist/solutions-components/p-752ece4a.entry.js +0 -11
- package/dist/solutions-components/p-758d94ea.entry.js +0 -6
- package/dist/solutions-components/p-75e2a322.entry.js +0 -17
- package/dist/solutions-components/p-775ad144.js +0 -11
- package/dist/solutions-components/p-77b43a94.js +0 -11
- package/dist/solutions-components/p-787203af.entry.js +0 -11
- package/dist/solutions-components/p-78780f63.js +0 -7
- package/dist/solutions-components/p-79110824.js +0 -6
- package/dist/solutions-components/p-793cad54.js +0 -6
- package/dist/solutions-components/p-797aa505.js +0 -6
- package/dist/solutions-components/p-7c13406e.entry.js +0 -6
- package/dist/solutions-components/p-7dbccc10.entry.js +0 -21
- package/dist/solutions-components/p-7ebd34df.entry.js +0 -11
- package/dist/solutions-components/p-802acc51.entry.js +0 -6
- package/dist/solutions-components/p-809b7e47.entry.js +0 -11
- package/dist/solutions-components/p-83fd31d5.js +0 -17
- package/dist/solutions-components/p-84378c8d.entry.js +0 -11
- package/dist/solutions-components/p-864b1d72.entry.js +0 -6
- package/dist/solutions-components/p-8684a905.js +0 -21
- package/dist/solutions-components/p-891682da.entry.js +0 -12
- package/dist/solutions-components/p-8953a9cc.entry.js +0 -6
- package/dist/solutions-components/p-8b47b607.entry.js +0 -11
- package/dist/solutions-components/p-8d49a084.js +0 -6
- package/dist/solutions-components/p-8fabb8a4.entry.js +0 -22
- package/dist/solutions-components/p-95aba86b.entry.js +0 -6
- package/dist/solutions-components/p-96c2ed64.entry.js +0 -11
- package/dist/solutions-components/p-978d936a.entry.js +0 -11
- package/dist/solutions-components/p-980cd015.entry.js +0 -11
- package/dist/solutions-components/p-981e9549.js +0 -11
- package/dist/solutions-components/p-98308b13.entry.js +0 -11
- package/dist/solutions-components/p-98fe7b5d.entry.js +0 -6
- package/dist/solutions-components/p-993e8bd0.js +0 -11
- package/dist/solutions-components/p-99c5701d.entry.js +0 -6
- package/dist/solutions-components/p-9cbfd8cd.js +0 -6
- package/dist/solutions-components/p-a09c8edf.entry.js +0 -6
- package/dist/solutions-components/p-a4755ea8.entry.js +0 -6
- package/dist/solutions-components/p-a5272d7e.js +0 -6
- package/dist/solutions-components/p-a5c5b24d.js +0 -6
- package/dist/solutions-components/p-a5e93c7e.entry.js +0 -18
- package/dist/solutions-components/p-a6bb4148.js +0 -6
- package/dist/solutions-components/p-a84acc82.entry.js +0 -6
- package/dist/solutions-components/p-a8c9ac0b.entry.js +0 -16
- package/dist/solutions-components/p-a9bd945b.entry.js +0 -11
- package/dist/solutions-components/p-a9c30842.entry.js +0 -11
- package/dist/solutions-components/p-abdd289e.js +0 -6
- package/dist/solutions-components/p-aca29f67.entry.js +0 -11
- package/dist/solutions-components/p-ad96cd8b.entry.js +0 -11
- package/dist/solutions-components/p-ada368a5.entry.js +0 -6
- package/dist/solutions-components/p-af1bb992.js +0 -6
- package/dist/solutions-components/p-b1a5f341.js +0 -61
- package/dist/solutions-components/p-b1b768f7.js +0 -145
- package/dist/solutions-components/p-b21a9b47.js +0 -11
- package/dist/solutions-components/p-b29677ca.js +0 -6
- package/dist/solutions-components/p-b2c5e62b.js +0 -6
- package/dist/solutions-components/p-b326b592.entry.js +0 -11
- package/dist/solutions-components/p-b3ebaa79.js +0 -11
- package/dist/solutions-components/p-b699637f.entry.js +0 -11
- package/dist/solutions-components/p-b6efec9a.entry.js +0 -6
- package/dist/solutions-components/p-b7285bd5.js +0 -6
- package/dist/solutions-components/p-b8959537.js +0 -6
- package/dist/solutions-components/p-baf4cb37.js +0 -6
- package/dist/solutions-components/p-baf82bab.entry.js +0 -6
- package/dist/solutions-components/p-bfebff0e.js +0 -6
- package/dist/solutions-components/p-c0f97ed2.entry.js +0 -6
- package/dist/solutions-components/p-c3190f85.js +0 -6
- package/dist/solutions-components/p-c4ebb5d1.js +0 -11
- package/dist/solutions-components/p-c504529e.entry.js +0 -6
- package/dist/solutions-components/p-c56fd16c.entry.js +0 -11
- package/dist/solutions-components/p-c6b9a129.js +0 -11
- package/dist/solutions-components/p-c77ff1b4.entry.js +0 -6
- package/dist/solutions-components/p-c7e7da9a.entry.js +0 -17
- package/dist/solutions-components/p-c8cf222b.entry.js +0 -6
- package/dist/solutions-components/p-c92fff33.js +0 -11
- package/dist/solutions-components/p-c9bd3666.js +0 -6
- package/dist/solutions-components/p-cb1d29d4.entry.js +0 -17
- package/dist/solutions-components/p-cbe7a79a.entry.js +0 -6
- package/dist/solutions-components/p-cdee3846.js +0 -6
- package/dist/solutions-components/p-cfb3d66a.js +0 -6
- package/dist/solutions-components/p-d2d7d6b4.entry.js +0 -11
- package/dist/solutions-components/p-d32e6900.js +0 -11
- package/dist/solutions-components/p-d44e2fd7.js +0 -6
- package/dist/solutions-components/p-d5263cb9.entry.js +0 -17
- package/dist/solutions-components/p-d9a59fcc.js +0 -22
- package/dist/solutions-components/p-db44593d.js +0 -16
- package/dist/solutions-components/p-dbacb910.js +0 -11
- package/dist/solutions-components/p-dd48cc25.entry.js +0 -6
- package/dist/solutions-components/p-de281b08.js +0 -16
- package/dist/solutions-components/p-df118036.js +0 -6
- package/dist/solutions-components/p-e01f576a.entry.js +0 -6
- package/dist/solutions-components/p-e22bce70.entry.js +0 -6
- package/dist/solutions-components/p-e274f3b0.entry.js +0 -23
- package/dist/solutions-components/p-e377cfb3.entry.js +0 -6
- package/dist/solutions-components/p-e6d4bdce.js +0 -6
- package/dist/solutions-components/p-e6dfc80f.js +0 -6
- package/dist/solutions-components/p-e834d132.js +0 -6
- package/dist/solutions-components/p-e83b1772.entry.js +0 -11
- package/dist/solutions-components/p-e902ba19.js +0 -36
- package/dist/solutions-components/p-ea17cefb.entry.js +0 -6
- package/dist/solutions-components/p-ea83d12d.js +0 -11
- package/dist/solutions-components/p-ee4e5212.js +0 -17
- package/dist/solutions-components/p-ef05dea5.js +0 -6
- package/dist/solutions-components/p-f0d68a3f.js +0 -11
- package/dist/solutions-components/p-f10944e6.js +0 -11
- package/dist/solutions-components/p-f17941f1.entry.js +0 -6
- package/dist/solutions-components/p-f1e6ce96.entry.js +0 -11
- package/dist/solutions-components/p-f6253a08.entry.js +0 -6
- package/dist/solutions-components/p-f9e3a93d.js +0 -11
- package/dist/solutions-components/p-f9ff6c29.entry.js +0 -6
- package/dist/solutions-components/p-fcefdfff.js +0 -11
- package/dist/solutions-components/p-ff460d05.entry.js +0 -17
- package/dist/solutions-components/p-ff7c9bc3.entry.js +0 -11
- package/dist/solutions-components/p-ffa2c430.js +0 -6
- package/dist/solutions-components/p-ffbed9b2.entry.js +0 -12
@@ -1,2232 +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
|
-
'use strict';
|
7
|
-
|
8
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
-
|
10
|
-
const index = require('./index-b8a649fc.js');
|
11
|
-
const filter = require('./filter-8f1bbfe6.js');
|
12
|
-
const dom = require('./dom-e111eaa6.js');
|
13
|
-
const floatingUi = require('./floating-ui-290f99dd.js');
|
14
|
-
const form = require('./form-0291a707.js');
|
15
|
-
const guid = require('./guid-1a466ca6.js');
|
16
|
-
const interactive = require('./interactive-8aff886e.js');
|
17
|
-
const label = require('./label-bcad2894.js');
|
18
|
-
const loadable = require('./loadable-07a214c7.js');
|
19
|
-
const locale = require('./locale-6a627639.js');
|
20
|
-
const observers = require('./observers-281a8c99.js');
|
21
|
-
const openCloseComponent = require('./openCloseComponent-8c9a1749.js');
|
22
|
-
const t9n = require('./t9n-0556abcb.js');
|
23
|
-
const utils = require('./utils-3df24da4.js');
|
24
|
-
const component = require('./component-c270a500.js');
|
25
|
-
const debounce = require('./debounce-30afab47.js');
|
26
|
-
const conditionalSlot = require('./conditionalSlot-63e11cba.js');
|
27
|
-
const key = require('./key-b8c05387.js');
|
28
|
-
const locale$1 = require('./locale-a476e15d.js');
|
29
|
-
const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
30
|
-
const publicNotificationStore = require('./publicNotificationStore-3a17c2f4.js');
|
31
|
-
require('./resources-6c60363a.js');
|
32
|
-
require('./browser-9a43b900.js');
|
33
|
-
require('./esri-loader-a91c0ec1.js');
|
34
|
-
require('./_commonjsHelpers-384729db.js');
|
35
|
-
require('./interfaces-7cd0a48a.js');
|
36
|
-
require('./index-22bb61da.js');
|
37
|
-
|
38
|
-
/*!
|
39
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
40
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
41
|
-
* v2.0.0
|
42
|
-
*/
|
43
|
-
const CSS$2 = {
|
44
|
-
button: "x-button",
|
45
|
-
};
|
46
|
-
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
47
|
-
return (index.h("button", { "aria-label": label, class: CSS$2.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
48
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
49
|
-
ref: ref }, index.h("calcite-icon", { icon: "x", scale: component.getIconScale(scale) })));
|
50
|
-
}
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Do not edit directly
|
54
|
-
* Generated on Sat, 02 Dec 2023 04:05:27 GMT
|
55
|
-
*/
|
56
|
-
const calciteSize48 = "48px";
|
57
|
-
|
58
|
-
const comboboxCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0px;display:flex;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.25rem - 1px)}:host([scale=s]) .x-button{margin-inline:0.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.5rem - 1px)}:host([scale=m]) .x-button{margin-inline-end:0.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:1.5rem;--calcite-internal-combobox-input-margin-block:calc(0.625rem - 1px)}:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;gap:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:-moz-placeholder-shown{text-overflow:ellipsis}.input:placeholder-shown{text-overflow:ellipsis}.input--transparent{opacity:0}.input--single{padding:0px;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-s)}:host([scale=m]) .input--icon,:host([scale=l]) .input--icon{padding-inline:0.25rem}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.floating-ui-container{--calcite-floating-ui-z-index:var(--calcite-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}.floating-ui-container--active{visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}calcite-chip{--calcite-animation-timing:0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}";
|
59
|
-
|
60
|
-
const isGroup = (el) => el.tagName === utils.ComboboxItemGroup;
|
61
|
-
const itemUidPrefix = "combobox-item-";
|
62
|
-
const chipUidPrefix = "combobox-chip-";
|
63
|
-
const labelUidPrefix = "combobox-label-";
|
64
|
-
const listboxUidPrefix = "combobox-listbox-";
|
65
|
-
const inputUidPrefix = "combobox-input-";
|
66
|
-
const Combobox = class {
|
67
|
-
constructor(hostRef) {
|
68
|
-
index.registerInstance(this, hostRef);
|
69
|
-
this.calciteComboboxChange = index.createEvent(this, "calciteComboboxChange", 6);
|
70
|
-
this.calciteComboboxFilterChange = index.createEvent(this, "calciteComboboxFilterChange", 6);
|
71
|
-
this.calciteComboboxChipClose = index.createEvent(this, "calciteComboboxChipClose", 6);
|
72
|
-
this.calciteComboboxBeforeClose = index.createEvent(this, "calciteComboboxBeforeClose", 6);
|
73
|
-
this.calciteComboboxClose = index.createEvent(this, "calciteComboboxClose", 6);
|
74
|
-
this.calciteComboboxBeforeOpen = index.createEvent(this, "calciteComboboxBeforeOpen", 6);
|
75
|
-
this.calciteComboboxOpen = index.createEvent(this, "calciteComboboxOpen", 6);
|
76
|
-
this.placement = floatingUi.defaultMenuPlacement;
|
77
|
-
this.internalValueChangeFlag = false;
|
78
|
-
this.textInput = null;
|
79
|
-
this.mutationObserver = observers.createObserver("mutation", () => this.updateItems());
|
80
|
-
this.resizeObserver = observers.createObserver("resize", () => {
|
81
|
-
this.setMaxScrollerHeight();
|
82
|
-
this.refreshSelectionDisplay();
|
83
|
-
});
|
84
|
-
this.guid = guid.guid();
|
85
|
-
this.inputHeight = 0;
|
86
|
-
this.ignoreSelectedEventsFlag = false;
|
87
|
-
this.openTransitionProp = "opacity";
|
88
|
-
this.setFilteredPlacements = () => {
|
89
|
-
const { el, flipPlacements } = this;
|
90
|
-
this.filteredFlipPlacements = flipPlacements
|
91
|
-
? floatingUi.filterComputedPlacements(flipPlacements, el)
|
92
|
-
: null;
|
93
|
-
};
|
94
|
-
this.getValue = () => {
|
95
|
-
const items = this.selectedItems.map((item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) === null || _a === void 0 ? void 0 : _a.toString(); });
|
96
|
-
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
97
|
-
};
|
98
|
-
this.onLabelClick = () => {
|
99
|
-
this.setFocus();
|
100
|
-
};
|
101
|
-
this.keyDownHandler = (event) => {
|
102
|
-
const { key } = event;
|
103
|
-
switch (key) {
|
104
|
-
case "Tab":
|
105
|
-
this.activeChipIndex = -1;
|
106
|
-
this.activeItemIndex = -1;
|
107
|
-
if (this.allowCustomValues && this.text) {
|
108
|
-
this.addCustomChip(this.text, true);
|
109
|
-
event.preventDefault();
|
110
|
-
}
|
111
|
-
else if (this.open) {
|
112
|
-
this.open = false;
|
113
|
-
event.preventDefault();
|
114
|
-
}
|
115
|
-
else if (!this.allowCustomValues && this.text) {
|
116
|
-
this.clearInputValue();
|
117
|
-
this.filterItems("");
|
118
|
-
this.updateActiveItemIndex(-1);
|
119
|
-
}
|
120
|
-
break;
|
121
|
-
case "ArrowLeft":
|
122
|
-
this.previousChip();
|
123
|
-
event.preventDefault();
|
124
|
-
break;
|
125
|
-
case "ArrowRight":
|
126
|
-
this.nextChip();
|
127
|
-
event.preventDefault();
|
128
|
-
break;
|
129
|
-
case "ArrowUp":
|
130
|
-
event.preventDefault();
|
131
|
-
if (this.open) {
|
132
|
-
this.shiftActiveItemIndex(-1);
|
133
|
-
}
|
134
|
-
if (!this.comboboxInViewport()) {
|
135
|
-
this.el.scrollIntoView();
|
136
|
-
}
|
137
|
-
break;
|
138
|
-
case "ArrowDown":
|
139
|
-
event.preventDefault();
|
140
|
-
if (this.open) {
|
141
|
-
this.shiftActiveItemIndex(1);
|
142
|
-
}
|
143
|
-
else {
|
144
|
-
this.open = true;
|
145
|
-
this.ensureRecentSelectedItemIsActive();
|
146
|
-
}
|
147
|
-
if (!this.comboboxInViewport()) {
|
148
|
-
this.el.scrollIntoView();
|
149
|
-
}
|
150
|
-
break;
|
151
|
-
case " ":
|
152
|
-
if (!this.textInput.value) {
|
153
|
-
if (!this.open) {
|
154
|
-
this.open = true;
|
155
|
-
this.shiftActiveItemIndex(1);
|
156
|
-
}
|
157
|
-
event.preventDefault();
|
158
|
-
}
|
159
|
-
break;
|
160
|
-
case "Home":
|
161
|
-
if (!this.open) {
|
162
|
-
return;
|
163
|
-
}
|
164
|
-
event.preventDefault();
|
165
|
-
this.updateActiveItemIndex(0);
|
166
|
-
this.scrollToActiveItem();
|
167
|
-
if (!this.comboboxInViewport()) {
|
168
|
-
this.el.scrollIntoView();
|
169
|
-
}
|
170
|
-
break;
|
171
|
-
case "End":
|
172
|
-
if (!this.open) {
|
173
|
-
return;
|
174
|
-
}
|
175
|
-
event.preventDefault();
|
176
|
-
this.updateActiveItemIndex(this.filteredItems.length - 1);
|
177
|
-
this.scrollToActiveItem();
|
178
|
-
if (!this.comboboxInViewport()) {
|
179
|
-
this.el.scrollIntoView();
|
180
|
-
}
|
181
|
-
break;
|
182
|
-
case "Escape":
|
183
|
-
if (!this.clearDisabled && !this.open) {
|
184
|
-
this.clearValue();
|
185
|
-
}
|
186
|
-
this.open = false;
|
187
|
-
event.preventDefault();
|
188
|
-
break;
|
189
|
-
case "Enter":
|
190
|
-
if (this.activeItemIndex > -1) {
|
191
|
-
this.toggleSelection(this.filteredItems[this.activeItemIndex]);
|
192
|
-
event.preventDefault();
|
193
|
-
}
|
194
|
-
else if (this.activeChipIndex > -1) {
|
195
|
-
this.removeActiveChip();
|
196
|
-
event.preventDefault();
|
197
|
-
}
|
198
|
-
else if (this.allowCustomValues && this.text) {
|
199
|
-
this.addCustomChip(this.text, true);
|
200
|
-
event.preventDefault();
|
201
|
-
}
|
202
|
-
else if (!event.defaultPrevented) {
|
203
|
-
if (form.submitForm(this)) {
|
204
|
-
event.preventDefault();
|
205
|
-
}
|
206
|
-
}
|
207
|
-
break;
|
208
|
-
case "Delete":
|
209
|
-
case "Backspace":
|
210
|
-
if (this.activeChipIndex > -1) {
|
211
|
-
event.preventDefault();
|
212
|
-
this.removeActiveChip();
|
213
|
-
}
|
214
|
-
else if (!this.text && this.isMulti()) {
|
215
|
-
event.preventDefault();
|
216
|
-
this.removeLastChip();
|
217
|
-
}
|
218
|
-
break;
|
219
|
-
}
|
220
|
-
};
|
221
|
-
this.toggleCloseEnd = () => {
|
222
|
-
this.open = false;
|
223
|
-
this.el.removeEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
224
|
-
};
|
225
|
-
this.toggleOpenEnd = () => {
|
226
|
-
this.open = false;
|
227
|
-
this.el.removeEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
228
|
-
};
|
229
|
-
this.setMaxScrollerHeight = async () => {
|
230
|
-
const { listContainerEl, open, referenceEl } = this;
|
231
|
-
if (!listContainerEl || !open) {
|
232
|
-
return;
|
233
|
-
}
|
234
|
-
await this.reposition(true);
|
235
|
-
const maxScrollerHeight = this.getMaxScrollerHeight();
|
236
|
-
listContainerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
237
|
-
listContainerEl.style.minWidth = `${referenceEl.clientWidth}px`;
|
238
|
-
await this.reposition(true);
|
239
|
-
};
|
240
|
-
this.calciteChipCloseHandler = (comboboxItem) => {
|
241
|
-
this.open = false;
|
242
|
-
const selection = this.items.find((item) => item === comboboxItem);
|
243
|
-
if (selection) {
|
244
|
-
this.toggleSelection(selection, false);
|
245
|
-
}
|
246
|
-
this.calciteComboboxChipClose.emit();
|
247
|
-
};
|
248
|
-
this.clickHandler = (event) => {
|
249
|
-
const composedPath = event.composedPath();
|
250
|
-
if (composedPath.some((node) => node.tagName === "CALCITE-CHIP")) {
|
251
|
-
this.open = false;
|
252
|
-
event.preventDefault();
|
253
|
-
return;
|
254
|
-
}
|
255
|
-
if (composedPath.some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$2.button); })) {
|
256
|
-
this.clearValue();
|
257
|
-
event.preventDefault();
|
258
|
-
return;
|
259
|
-
}
|
260
|
-
this.open = !this.open;
|
261
|
-
this.ensureRecentSelectedItemIsActive();
|
262
|
-
};
|
263
|
-
this.refreshSelectionDisplay = async () => {
|
264
|
-
await loadable.componentLoaded(this);
|
265
|
-
if (utils.isSingleLike(this.selectionMode)) {
|
266
|
-
return;
|
267
|
-
}
|
268
|
-
if (!this.textInput) {
|
269
|
-
return;
|
270
|
-
}
|
271
|
-
const { allSelectedIndicatorChipEl, chipContainerEl, selectionDisplay, placeholder, selectedIndicatorChipEl, textInput, } = this;
|
272
|
-
const chipContainerElGap = parseInt(getComputedStyle(chipContainerEl).gap.replace("px", ""));
|
273
|
-
const chipContainerElWidth = dom.getElementWidth(chipContainerEl);
|
274
|
-
const { fontSize, fontFamily } = getComputedStyle(textInput);
|
275
|
-
const inputTextWidth = dom.getTextWidth(placeholder, `${fontSize} ${fontFamily}`);
|
276
|
-
const inputWidth = (inputTextWidth || parseInt(calciteSize48)) + chipContainerElGap;
|
277
|
-
const allSelectedIndicatorChipElWidth = dom.getElementWidth(allSelectedIndicatorChipEl);
|
278
|
-
const selectedIndicatorChipElWidth = dom.getElementWidth(selectedIndicatorChipEl);
|
279
|
-
const largestSelectedIndicatorChipWidth = Math.max(allSelectedIndicatorChipElWidth, selectedIndicatorChipElWidth);
|
280
|
-
this.setCompactSelectionDisplay({
|
281
|
-
chipContainerElGap,
|
282
|
-
chipContainerElWidth,
|
283
|
-
inputWidth,
|
284
|
-
largestSelectedIndicatorChipWidth,
|
285
|
-
});
|
286
|
-
if (selectionDisplay === "fit") {
|
287
|
-
const chipEls = Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter((chipEl) => chipEl.closable);
|
288
|
-
const availableHorizontalChipElSpace = Math.round(chipContainerElWidth -
|
289
|
-
((this.selectedHiddenChipsCount > 0 ? selectedIndicatorChipElWidth : 0) +
|
290
|
-
chipContainerElGap +
|
291
|
-
inputWidth +
|
292
|
-
chipContainerElGap));
|
293
|
-
this.refreshChipDisplay({ availableHorizontalChipElSpace, chipContainerElGap, chipEls });
|
294
|
-
this.setVisibleAndHiddenChips(chipEls);
|
295
|
-
}
|
296
|
-
};
|
297
|
-
this.setFloatingEl = (el) => {
|
298
|
-
this.floatingEl = el;
|
299
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
300
|
-
};
|
301
|
-
this.setContainerEl = (el) => {
|
302
|
-
this.resizeObserver.observe(el);
|
303
|
-
this.listContainerEl = el;
|
304
|
-
this.transitionEl = el;
|
305
|
-
};
|
306
|
-
this.setChipContainerEl = (el) => {
|
307
|
-
this.resizeObserver.observe(el);
|
308
|
-
this.chipContainerEl = el;
|
309
|
-
};
|
310
|
-
this.setReferenceEl = (el) => {
|
311
|
-
this.referenceEl = el;
|
312
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
313
|
-
};
|
314
|
-
this.setAllSelectedIndicatorChipEl = (el) => {
|
315
|
-
this.allSelectedIndicatorChipEl = el;
|
316
|
-
};
|
317
|
-
this.setSelectedIndicatorChipEl = (el) => {
|
318
|
-
this.selectedIndicatorChipEl = el;
|
319
|
-
};
|
320
|
-
this.inputHandler = (event) => {
|
321
|
-
const value = event.target.value;
|
322
|
-
this.text = value;
|
323
|
-
this.filterItems(value);
|
324
|
-
if (value) {
|
325
|
-
this.activeChipIndex = -1;
|
326
|
-
}
|
327
|
-
};
|
328
|
-
this.filterItems = (() => {
|
329
|
-
const find = (item, filteredData) => item &&
|
330
|
-
filteredData.some(({ label, value }) => isGroup(item) ? label === item.label : value === item.value && label === item.textLabel);
|
331
|
-
return debounce.debounce((text) => {
|
332
|
-
const filteredData = filter.filter(this.data, text);
|
333
|
-
const itemsAndGroups = this.getItemsAndGroups();
|
334
|
-
itemsAndGroups.forEach((item) => {
|
335
|
-
const hidden = !find(item, filteredData);
|
336
|
-
item.hidden = hidden;
|
337
|
-
const [parent, grandparent] = item.ancestors;
|
338
|
-
if (find(parent, filteredData) || find(grandparent, filteredData)) {
|
339
|
-
item.hidden = false;
|
340
|
-
}
|
341
|
-
if (!hidden) {
|
342
|
-
item.ancestors.forEach((ancestor) => (ancestor.hidden = false));
|
343
|
-
}
|
344
|
-
});
|
345
|
-
this.filteredItems = this.getFilteredItems();
|
346
|
-
this.calciteComboboxFilterChange.emit();
|
347
|
-
}, 100);
|
348
|
-
})();
|
349
|
-
this.internalComboboxChangeEvent = () => {
|
350
|
-
this.calciteComboboxChange.emit();
|
351
|
-
};
|
352
|
-
this.emitComboboxChange = debounce.debounce(this.internalComboboxChangeEvent, 0);
|
353
|
-
this.getSelectedItems = () => {
|
354
|
-
if (!this.isMulti()) {
|
355
|
-
const match = this.items.find(({ selected }) => selected);
|
356
|
-
return match ? [match] : [];
|
357
|
-
}
|
358
|
-
return (this.items
|
359
|
-
.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !utils.hasActiveChildren(item)))
|
360
|
-
/** Preserve order of entered tags */
|
361
|
-
.sort((a, b) => {
|
362
|
-
const aIdx = this.selectedItems.indexOf(a);
|
363
|
-
const bIdx = this.selectedItems.indexOf(b);
|
364
|
-
if (aIdx > -1 && bIdx > -1) {
|
365
|
-
return aIdx - bIdx;
|
366
|
-
}
|
367
|
-
return bIdx - aIdx;
|
368
|
-
}));
|
369
|
-
};
|
370
|
-
this.updateItems = () => {
|
371
|
-
this.items = this.getItems();
|
372
|
-
this.groupItems = this.getGroupItems();
|
373
|
-
this.data = this.getData();
|
374
|
-
this.selectedItems = this.getSelectedItems();
|
375
|
-
this.filteredItems = this.getFilteredItems();
|
376
|
-
this.needsIcon = this.getNeedsIcon();
|
377
|
-
this.items.forEach((item) => {
|
378
|
-
item.selectionMode = this.selectionMode;
|
379
|
-
item.scale = this.scale;
|
380
|
-
});
|
381
|
-
if (!this.allowCustomValues) {
|
382
|
-
this.setMaxScrollerHeight();
|
383
|
-
}
|
384
|
-
this.groupItems.forEach((groupItem, index, items) => {
|
385
|
-
if (index === 0) {
|
386
|
-
groupItem.afterEmptyGroup = false;
|
387
|
-
}
|
388
|
-
const nextGroupItem = items[index + 1];
|
389
|
-
if (nextGroupItem) {
|
390
|
-
nextGroupItem.afterEmptyGroup = groupItem.children.length === 0;
|
391
|
-
}
|
392
|
-
});
|
393
|
-
};
|
394
|
-
this.scrollToActiveItem = () => {
|
395
|
-
const activeItem = this.filteredItems[this.activeItemIndex];
|
396
|
-
if (!activeItem) {
|
397
|
-
return;
|
398
|
-
}
|
399
|
-
const height = this.calculateSingleItemHeight(activeItem);
|
400
|
-
const { offsetHeight, scrollTop } = this.listContainerEl;
|
401
|
-
if (offsetHeight + scrollTop < activeItem.offsetTop + height) {
|
402
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;
|
403
|
-
}
|
404
|
-
else if (activeItem.offsetTop < scrollTop) {
|
405
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop;
|
406
|
-
}
|
407
|
-
};
|
408
|
-
this.comboboxFocusHandler = () => {
|
409
|
-
var _a;
|
410
|
-
if (this.disabled) {
|
411
|
-
return;
|
412
|
-
}
|
413
|
-
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
414
|
-
};
|
415
|
-
this.clearDisabled = false;
|
416
|
-
this.selectionDisplay = "all";
|
417
|
-
this.open = false;
|
418
|
-
this.disabled = false;
|
419
|
-
this.form = undefined;
|
420
|
-
this.label = undefined;
|
421
|
-
this.placeholder = undefined;
|
422
|
-
this.placeholderIcon = undefined;
|
423
|
-
this.placeholderIconFlipRtl = false;
|
424
|
-
this.maxItems = 0;
|
425
|
-
this.name = undefined;
|
426
|
-
this.allowCustomValues = undefined;
|
427
|
-
this.overlayPositioning = "absolute";
|
428
|
-
this.required = false;
|
429
|
-
this.selectionMode = "multiple";
|
430
|
-
this.scale = "m";
|
431
|
-
this.status = "idle";
|
432
|
-
this.value = null;
|
433
|
-
this.flipPlacements = undefined;
|
434
|
-
this.messages = undefined;
|
435
|
-
this.messageOverrides = undefined;
|
436
|
-
this.selectedItems = [];
|
437
|
-
this.filteredItems = [];
|
438
|
-
this.items = [];
|
439
|
-
this.groupItems = [];
|
440
|
-
this.needsIcon = undefined;
|
441
|
-
this.activeItemIndex = -1;
|
442
|
-
this.activeChipIndex = -1;
|
443
|
-
this.activeDescendant = "";
|
444
|
-
this.compactSelectionDisplay = false;
|
445
|
-
this.selectedHiddenChipsCount = 0;
|
446
|
-
this.selectedVisibleChipsCount = 0;
|
447
|
-
this.text = "";
|
448
|
-
this.effectiveLocale = undefined;
|
449
|
-
this.defaultMessages = undefined;
|
450
|
-
}
|
451
|
-
openHandler() {
|
452
|
-
openCloseComponent.onToggleOpenCloseComponent(this);
|
453
|
-
if (this.disabled) {
|
454
|
-
this.open = false;
|
455
|
-
return;
|
456
|
-
}
|
457
|
-
this.setMaxScrollerHeight();
|
458
|
-
}
|
459
|
-
handleDisabledChange(value) {
|
460
|
-
if (!value) {
|
461
|
-
this.open = false;
|
462
|
-
}
|
463
|
-
}
|
464
|
-
maxItemsHandler() {
|
465
|
-
this.setMaxScrollerHeight();
|
466
|
-
}
|
467
|
-
overlayPositioningHandler() {
|
468
|
-
this.reposition(true);
|
469
|
-
}
|
470
|
-
handlePropsChange() {
|
471
|
-
this.updateItems();
|
472
|
-
}
|
473
|
-
valueHandler(value) {
|
474
|
-
if (!this.internalValueChangeFlag) {
|
475
|
-
const items = this.getItems();
|
476
|
-
if (Array.isArray(value)) {
|
477
|
-
items.forEach((item) => (item.selected = value.includes(item.value)));
|
478
|
-
}
|
479
|
-
else if (value) {
|
480
|
-
items.forEach((item) => (item.selected = value === item.value));
|
481
|
-
}
|
482
|
-
else {
|
483
|
-
items.forEach((item) => (item.selected = false));
|
484
|
-
}
|
485
|
-
this.updateItems();
|
486
|
-
}
|
487
|
-
}
|
488
|
-
onMessagesChange() {
|
489
|
-
/* wired up by t9n util */
|
490
|
-
}
|
491
|
-
flipPlacementsHandler() {
|
492
|
-
this.setFilteredPlacements();
|
493
|
-
this.reposition(true);
|
494
|
-
}
|
495
|
-
selectedItemsHandler() {
|
496
|
-
this.internalValueChangeFlag = true;
|
497
|
-
this.value = this.getValue();
|
498
|
-
this.internalValueChangeFlag = false;
|
499
|
-
}
|
500
|
-
//--------------------------------------------------------------------------
|
501
|
-
//
|
502
|
-
// Event Listeners
|
503
|
-
//
|
504
|
-
//--------------------------------------------------------------------------
|
505
|
-
documentClickHandler(event) {
|
506
|
-
if (this.disabled || !dom.isPrimaryPointerButton(event)) {
|
507
|
-
return;
|
508
|
-
}
|
509
|
-
const composedPath = event.composedPath();
|
510
|
-
if (composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
511
|
-
return;
|
512
|
-
}
|
513
|
-
if (!this.allowCustomValues && this.textInput.value) {
|
514
|
-
this.clearInputValue();
|
515
|
-
this.filterItems("");
|
516
|
-
this.updateActiveItemIndex(-1);
|
517
|
-
}
|
518
|
-
if (this.allowCustomValues && this.text.trim().length) {
|
519
|
-
this.addCustomChip(this.text);
|
520
|
-
}
|
521
|
-
this.open = false;
|
522
|
-
}
|
523
|
-
calciteComboboxItemChangeHandler(event) {
|
524
|
-
if (this.ignoreSelectedEventsFlag) {
|
525
|
-
return;
|
526
|
-
}
|
527
|
-
const target = event.target;
|
528
|
-
const newIndex = this.filteredItems.indexOf(target);
|
529
|
-
this.updateActiveItemIndex(newIndex);
|
530
|
-
this.toggleSelection(target, target.selected);
|
531
|
-
}
|
532
|
-
//--------------------------------------------------------------------------
|
533
|
-
//
|
534
|
-
// Public Methods
|
535
|
-
//
|
536
|
-
//--------------------------------------------------------------------------
|
537
|
-
/**
|
538
|
-
* Updates the position of the component.
|
539
|
-
*
|
540
|
-
* @param delayed Reposition the component after a delay
|
541
|
-
* @returns Promise
|
542
|
-
*/
|
543
|
-
async reposition(delayed = false) {
|
544
|
-
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
545
|
-
return floatingUi.reposition(this, {
|
546
|
-
floatingEl,
|
547
|
-
referenceEl,
|
548
|
-
overlayPositioning,
|
549
|
-
placement,
|
550
|
-
flipPlacements: filteredFlipPlacements,
|
551
|
-
type: "menu",
|
552
|
-
}, delayed);
|
553
|
-
}
|
554
|
-
/** Sets focus on the component. */
|
555
|
-
async setFocus() {
|
556
|
-
var _a;
|
557
|
-
await loadable.componentFocusable(this);
|
558
|
-
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
559
|
-
this.activeChipIndex = -1;
|
560
|
-
this.activeItemIndex = -1;
|
561
|
-
}
|
562
|
-
// --------------------------------------------------------------------------
|
563
|
-
//
|
564
|
-
// Lifecycle
|
565
|
-
//
|
566
|
-
// --------------------------------------------------------------------------
|
567
|
-
connectedCallback() {
|
568
|
-
var _a;
|
569
|
-
interactive.connectInteractive(this);
|
570
|
-
locale.connectLocalized(this);
|
571
|
-
t9n.connectMessages(this);
|
572
|
-
label.connectLabel(this);
|
573
|
-
form.connectForm(this);
|
574
|
-
this.internalValueChangeFlag = true;
|
575
|
-
this.value = this.getValue();
|
576
|
-
this.internalValueChangeFlag = false;
|
577
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
578
|
-
this.updateItems();
|
579
|
-
this.setFilteredPlacements();
|
580
|
-
this.reposition(true);
|
581
|
-
if (this.open) {
|
582
|
-
this.openHandler();
|
583
|
-
openCloseComponent.onToggleOpenCloseComponent(this);
|
584
|
-
}
|
585
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
586
|
-
}
|
587
|
-
async componentWillLoad() {
|
588
|
-
loadable.setUpLoadableComponent(this);
|
589
|
-
this.updateItems();
|
590
|
-
await t9n.setUpMessages(this);
|
591
|
-
}
|
592
|
-
componentDidLoad() {
|
593
|
-
form.afterConnectDefaultValueSet(this, this.getValue());
|
594
|
-
this.reposition(true);
|
595
|
-
loadable.setComponentLoaded(this);
|
596
|
-
}
|
597
|
-
componentDidRender() {
|
598
|
-
if (this.el.offsetHeight !== this.inputHeight) {
|
599
|
-
this.reposition(true);
|
600
|
-
this.inputHeight = this.el.offsetHeight;
|
601
|
-
}
|
602
|
-
interactive.updateHostInteraction(this);
|
603
|
-
}
|
604
|
-
componentDidUpdate() {
|
605
|
-
this.refreshSelectionDisplay();
|
606
|
-
}
|
607
|
-
disconnectedCallback() {
|
608
|
-
var _a, _b;
|
609
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
610
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
611
|
-
interactive.disconnectInteractive(this);
|
612
|
-
label.disconnectLabel(this);
|
613
|
-
form.disconnectForm(this);
|
614
|
-
floatingUi.disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
615
|
-
locale.disconnectLocalized(this);
|
616
|
-
t9n.disconnectMessages(this);
|
617
|
-
}
|
618
|
-
/** when search text is cleared, reset active to */
|
619
|
-
textHandler() {
|
620
|
-
this.updateActiveItemIndex(-1);
|
621
|
-
}
|
622
|
-
effectiveLocaleChange() {
|
623
|
-
t9n.updateMessages(this, this.effectiveLocale);
|
624
|
-
}
|
625
|
-
// --------------------------------------------------------------------------
|
626
|
-
//
|
627
|
-
// Private Methods
|
628
|
-
//
|
629
|
-
// --------------------------------------------------------------------------
|
630
|
-
clearValue() {
|
631
|
-
this.ignoreSelectedEventsFlag = true;
|
632
|
-
this.items.forEach((el) => (el.selected = false));
|
633
|
-
this.ignoreSelectedEventsFlag = false;
|
634
|
-
this.selectedItems = [];
|
635
|
-
this.emitComboboxChange();
|
636
|
-
this.open = false;
|
637
|
-
this.updateActiveItemIndex(-1);
|
638
|
-
this.resetText();
|
639
|
-
this.filterItems("");
|
640
|
-
this.setFocus();
|
641
|
-
}
|
642
|
-
clearInputValue() {
|
643
|
-
this.textInput.value = "";
|
644
|
-
this.text = "";
|
645
|
-
}
|
646
|
-
comboboxInViewport() {
|
647
|
-
const bounding = this.el.getBoundingClientRect();
|
648
|
-
return (bounding.top >= 0 &&
|
649
|
-
bounding.left >= 0 &&
|
650
|
-
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) &&
|
651
|
-
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight));
|
652
|
-
}
|
653
|
-
onBeforeOpen() {
|
654
|
-
this.scrollToActiveItem();
|
655
|
-
this.calciteComboboxBeforeOpen.emit();
|
656
|
-
}
|
657
|
-
onOpen() {
|
658
|
-
this.calciteComboboxOpen.emit();
|
659
|
-
}
|
660
|
-
onBeforeClose() {
|
661
|
-
this.calciteComboboxBeforeClose.emit();
|
662
|
-
}
|
663
|
-
onClose() {
|
664
|
-
this.calciteComboboxClose.emit();
|
665
|
-
}
|
666
|
-
ensureRecentSelectedItemIsActive() {
|
667
|
-
const { selectedItems } = this;
|
668
|
-
const targetIndex = selectedItems.length === 0 ? 0 : this.items.indexOf(selectedItems[selectedItems.length - 1]);
|
669
|
-
this.updateActiveItemIndex(targetIndex);
|
670
|
-
}
|
671
|
-
hideChip(chipEl) {
|
672
|
-
chipEl.classList.add(utils.CSS.chipInvisible);
|
673
|
-
}
|
674
|
-
showChip(chipEl) {
|
675
|
-
chipEl.classList.remove(utils.CSS.chipInvisible);
|
676
|
-
}
|
677
|
-
refreshChipDisplay({ chipEls, availableHorizontalChipElSpace, chipContainerElGap, }) {
|
678
|
-
chipEls.forEach((chipEl) => {
|
679
|
-
if (!chipEl.selected) {
|
680
|
-
this.hideChip(chipEl);
|
681
|
-
}
|
682
|
-
else {
|
683
|
-
const chipElWidth = dom.getElementWidth(chipEl);
|
684
|
-
if (chipElWidth && chipElWidth < availableHorizontalChipElSpace) {
|
685
|
-
availableHorizontalChipElSpace -= chipElWidth + chipContainerElGap;
|
686
|
-
this.showChip(chipEl);
|
687
|
-
return;
|
688
|
-
}
|
689
|
-
}
|
690
|
-
this.hideChip(chipEl);
|
691
|
-
});
|
692
|
-
}
|
693
|
-
setCompactSelectionDisplay({ chipContainerElGap, chipContainerElWidth, inputWidth, largestSelectedIndicatorChipWidth, }) {
|
694
|
-
const newCompactBreakpoint = Math.round(largestSelectedIndicatorChipWidth + chipContainerElGap + inputWidth);
|
695
|
-
if (!this.maxCompactBreakpoint || this.maxCompactBreakpoint < newCompactBreakpoint) {
|
696
|
-
this.maxCompactBreakpoint = newCompactBreakpoint;
|
697
|
-
}
|
698
|
-
this.compactSelectionDisplay = chipContainerElWidth < this.maxCompactBreakpoint;
|
699
|
-
}
|
700
|
-
setVisibleAndHiddenChips(chipEls) {
|
701
|
-
let newSelectedVisibleChipsCount = 0;
|
702
|
-
chipEls.forEach((chipEl) => {
|
703
|
-
if (chipEl.selected && !chipEl.classList.contains(utils.CSS.chipInvisible)) {
|
704
|
-
newSelectedVisibleChipsCount++;
|
705
|
-
}
|
706
|
-
});
|
707
|
-
if (newSelectedVisibleChipsCount !== this.selectedVisibleChipsCount) {
|
708
|
-
this.selectedVisibleChipsCount = newSelectedVisibleChipsCount;
|
709
|
-
}
|
710
|
-
const newSelectedHiddenChipsCount = this.getSelectedItems().length - newSelectedVisibleChipsCount;
|
711
|
-
if (newSelectedHiddenChipsCount !== this.selectedHiddenChipsCount) {
|
712
|
-
this.selectedHiddenChipsCount = newSelectedHiddenChipsCount;
|
713
|
-
}
|
714
|
-
}
|
715
|
-
getMaxScrollerHeight() {
|
716
|
-
const items = this.getItemsAndGroups().filter((item) => !item.hidden);
|
717
|
-
const { maxItems } = this;
|
718
|
-
let itemsToProcess = 0;
|
719
|
-
let maxScrollerHeight = 0;
|
720
|
-
if (items.length > maxItems) {
|
721
|
-
items.forEach((item) => {
|
722
|
-
if (itemsToProcess < maxItems && maxItems > 0) {
|
723
|
-
const height = this.calculateSingleItemHeight(item);
|
724
|
-
if (height > 0) {
|
725
|
-
maxScrollerHeight += height;
|
726
|
-
itemsToProcess++;
|
727
|
-
}
|
728
|
-
}
|
729
|
-
});
|
730
|
-
}
|
731
|
-
return maxScrollerHeight;
|
732
|
-
}
|
733
|
-
calculateSingleItemHeight(item) {
|
734
|
-
if (!item) {
|
735
|
-
return;
|
736
|
-
}
|
737
|
-
let height = item.offsetHeight;
|
738
|
-
// if item has children items, don't count their height twice
|
739
|
-
const children = Array.from(item.querySelectorAll(utils.ComboboxChildSelector));
|
740
|
-
children
|
741
|
-
.map((child) => child === null || child === void 0 ? void 0 : child.offsetHeight)
|
742
|
-
.forEach((offsetHeight) => {
|
743
|
-
height -= offsetHeight;
|
744
|
-
});
|
745
|
-
return height;
|
746
|
-
}
|
747
|
-
getItemsAndGroups() {
|
748
|
-
return [...this.groupItems, ...this.items];
|
749
|
-
}
|
750
|
-
toggleSelection(item, value = !item.selected) {
|
751
|
-
if (!item ||
|
752
|
-
(this.selectionMode === "single-persist" && item.selected && item.value === this.value)) {
|
753
|
-
return;
|
754
|
-
}
|
755
|
-
if (this.isMulti()) {
|
756
|
-
item.selected = value;
|
757
|
-
this.updateAncestors(item);
|
758
|
-
this.selectedItems = this.getSelectedItems();
|
759
|
-
this.emitComboboxChange();
|
760
|
-
this.resetText();
|
761
|
-
this.filterItems("");
|
762
|
-
}
|
763
|
-
else {
|
764
|
-
this.ignoreSelectedEventsFlag = true;
|
765
|
-
this.items.forEach((el) => (el.selected = el === item ? value : false));
|
766
|
-
this.ignoreSelectedEventsFlag = false;
|
767
|
-
this.selectedItems = this.getSelectedItems();
|
768
|
-
this.emitComboboxChange();
|
769
|
-
if (this.textInput) {
|
770
|
-
this.textInput.value = item.textLabel;
|
771
|
-
}
|
772
|
-
this.open = false;
|
773
|
-
this.updateActiveItemIndex(-1);
|
774
|
-
this.resetText();
|
775
|
-
this.filterItems("");
|
776
|
-
}
|
777
|
-
}
|
778
|
-
updateAncestors(item) {
|
779
|
-
if (this.selectionMode !== "ancestors") {
|
780
|
-
return;
|
781
|
-
}
|
782
|
-
const ancestors = utils.getItemAncestors(item);
|
783
|
-
const children = utils.getItemChildren(item);
|
784
|
-
if (item.selected) {
|
785
|
-
ancestors.forEach((el) => {
|
786
|
-
el.selected = true;
|
787
|
-
});
|
788
|
-
}
|
789
|
-
else {
|
790
|
-
children.forEach((el) => (el.selected = false));
|
791
|
-
[...ancestors].forEach((el) => {
|
792
|
-
if (!utils.hasActiveChildren(el)) {
|
793
|
-
el.selected = false;
|
794
|
-
}
|
795
|
-
});
|
796
|
-
}
|
797
|
-
}
|
798
|
-
getFilteredItems() {
|
799
|
-
return this.items.filter((item) => !item.hidden);
|
800
|
-
}
|
801
|
-
getData() {
|
802
|
-
return this.items.map((item) => ({
|
803
|
-
filterDisabled: item.filterDisabled,
|
804
|
-
value: item.value,
|
805
|
-
label: item.textLabel,
|
806
|
-
}));
|
807
|
-
}
|
808
|
-
getNeedsIcon() {
|
809
|
-
return utils.isSingleLike(this.selectionMode) && this.items.some((item) => item.icon);
|
810
|
-
}
|
811
|
-
resetText() {
|
812
|
-
if (this.textInput) {
|
813
|
-
this.textInput.value = "";
|
814
|
-
}
|
815
|
-
this.text = "";
|
816
|
-
}
|
817
|
-
getItems() {
|
818
|
-
const items = Array.from(this.el.querySelectorAll(utils.ComboboxItem));
|
819
|
-
return items.filter((item) => !item.disabled);
|
820
|
-
}
|
821
|
-
getGroupItems() {
|
822
|
-
return Array.from(this.el.querySelectorAll(utils.ComboboxItemGroup));
|
823
|
-
}
|
824
|
-
addCustomChip(value, focus) {
|
825
|
-
const existingItem = this.items.find((el) => el.textLabel === value);
|
826
|
-
if (existingItem) {
|
827
|
-
this.toggleSelection(existingItem, true);
|
828
|
-
}
|
829
|
-
else {
|
830
|
-
if (!this.isMulti()) {
|
831
|
-
this.toggleSelection(this.selectedItems[this.selectedItems.length - 1], false);
|
832
|
-
}
|
833
|
-
const item = document.createElement(utils.ComboboxItem);
|
834
|
-
item.value = value;
|
835
|
-
item.textLabel = value;
|
836
|
-
item.selected = true;
|
837
|
-
this.el.appendChild(item);
|
838
|
-
this.resetText();
|
839
|
-
if (focus) {
|
840
|
-
this.setFocus();
|
841
|
-
}
|
842
|
-
this.updateItems();
|
843
|
-
this.filterItems("");
|
844
|
-
this.emitComboboxChange();
|
845
|
-
}
|
846
|
-
}
|
847
|
-
removeActiveChip() {
|
848
|
-
this.toggleSelection(this.selectedItems[this.activeChipIndex], false);
|
849
|
-
this.setFocus();
|
850
|
-
}
|
851
|
-
removeLastChip() {
|
852
|
-
this.toggleSelection(this.selectedItems[this.selectedItems.length - 1], false);
|
853
|
-
this.setFocus();
|
854
|
-
}
|
855
|
-
previousChip() {
|
856
|
-
if (this.text) {
|
857
|
-
return;
|
858
|
-
}
|
859
|
-
const length = this.selectedItems.length - 1;
|
860
|
-
const active = this.activeChipIndex;
|
861
|
-
this.activeChipIndex = active === -1 ? length : Math.max(active - 1, 0);
|
862
|
-
this.updateActiveItemIndex(-1);
|
863
|
-
this.focusChip();
|
864
|
-
}
|
865
|
-
nextChip() {
|
866
|
-
if (this.text || this.activeChipIndex === -1) {
|
867
|
-
return;
|
868
|
-
}
|
869
|
-
const last = this.selectedItems.length - 1;
|
870
|
-
const newIndex = this.activeChipIndex + 1;
|
871
|
-
if (newIndex > last) {
|
872
|
-
this.activeChipIndex = -1;
|
873
|
-
this.setFocus();
|
874
|
-
}
|
875
|
-
else {
|
876
|
-
this.activeChipIndex = newIndex;
|
877
|
-
this.focusChip();
|
878
|
-
}
|
879
|
-
this.updateActiveItemIndex(-1);
|
880
|
-
}
|
881
|
-
focusChip() {
|
882
|
-
var _a;
|
883
|
-
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
884
|
-
const chip = guid
|
885
|
-
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
886
|
-
: null;
|
887
|
-
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
888
|
-
}
|
889
|
-
shiftActiveItemIndex(delta) {
|
890
|
-
const { length } = this.filteredItems;
|
891
|
-
const newIndex = (this.activeItemIndex + length + delta) % length;
|
892
|
-
this.updateActiveItemIndex(newIndex);
|
893
|
-
this.scrollToActiveItem();
|
894
|
-
}
|
895
|
-
updateActiveItemIndex(index) {
|
896
|
-
this.activeItemIndex = index;
|
897
|
-
let activeDescendant = null;
|
898
|
-
this.filteredItems.forEach((el, i) => {
|
899
|
-
if (i === index) {
|
900
|
-
el.active = true;
|
901
|
-
activeDescendant = `${itemUidPrefix}${el.guid}`;
|
902
|
-
}
|
903
|
-
else {
|
904
|
-
el.active = false;
|
905
|
-
}
|
906
|
-
});
|
907
|
-
this.activeDescendant = activeDescendant;
|
908
|
-
if (this.activeItemIndex > -1) {
|
909
|
-
this.activeChipIndex = -1;
|
910
|
-
}
|
911
|
-
}
|
912
|
-
isAllSelected() {
|
913
|
-
return this.getItems().length === this.getSelectedItems().length;
|
914
|
-
}
|
915
|
-
isMulti() {
|
916
|
-
return !utils.isSingleLike(this.selectionMode);
|
917
|
-
}
|
918
|
-
//--------------------------------------------------------------------------
|
919
|
-
//
|
920
|
-
// Render Methods
|
921
|
-
//
|
922
|
-
//--------------------------------------------------------------------------
|
923
|
-
renderChips() {
|
924
|
-
const { activeChipIndex, scale, selectionMode, messages } = this;
|
925
|
-
return this.selectedItems.map((item, i) => {
|
926
|
-
const chipClasses = {
|
927
|
-
chip: true,
|
928
|
-
"chip--active": activeChipIndex === i,
|
929
|
-
};
|
930
|
-
const ancestors = [...utils.getItemAncestors(item)].reverse();
|
931
|
-
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
932
|
-
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
933
|
-
return (index.h("calcite-chip", { class: chipClasses, closable: true, icon: item.icon, iconFlipRtl: item.iconFlipRtl, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, messageOverrides: { dismissLabel: messages.removeTag }, onCalciteChipClose: () => this.calciteChipCloseHandler(item), scale: scale, selected: item.selected, title: label, value: item.value }, label));
|
934
|
-
});
|
935
|
-
}
|
936
|
-
renderAllSelectedIndicatorChip() {
|
937
|
-
const { compactSelectionDisplay, scale, selectedVisibleChipsCount, setAllSelectedIndicatorChipEl, } = this;
|
938
|
-
const label = this.messages.allSelected;
|
939
|
-
return (index.h("calcite-chip", { class: {
|
940
|
-
chip: true,
|
941
|
-
[utils.CSS.chipInvisible]: !(this.isAllSelected() &&
|
942
|
-
!selectedVisibleChipsCount &&
|
943
|
-
!compactSelectionDisplay),
|
944
|
-
}, scale: scale, title: label, value: "",
|
945
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
946
|
-
ref: setAllSelectedIndicatorChipEl }, label));
|
947
|
-
}
|
948
|
-
renderAllSelectedIndicatorChipCompact() {
|
949
|
-
const { compactSelectionDisplay, scale, selectedVisibleChipsCount } = this;
|
950
|
-
const label = this.messages.all || "All";
|
951
|
-
return (index.h("calcite-chip", { class: {
|
952
|
-
chip: true,
|
953
|
-
[utils.CSS.chipInvisible]: !(this.isAllSelected() &&
|
954
|
-
!selectedVisibleChipsCount &&
|
955
|
-
compactSelectionDisplay),
|
956
|
-
}, scale: scale, title: label, value: "" }, label));
|
957
|
-
}
|
958
|
-
renderSelectedIndicatorChip() {
|
959
|
-
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, setSelectedIndicatorChipEl, } = this;
|
960
|
-
let chipInvisible;
|
961
|
-
let label;
|
962
|
-
if (compactSelectionDisplay) {
|
963
|
-
chipInvisible = true;
|
964
|
-
}
|
965
|
-
else {
|
966
|
-
if (selectionDisplay === "single") {
|
967
|
-
const selectedItemsCount = getSelectedItems().length;
|
968
|
-
if (this.isAllSelected()) {
|
969
|
-
chipInvisible = true;
|
970
|
-
}
|
971
|
-
else if (selectedItemsCount > 0) {
|
972
|
-
chipInvisible = false;
|
973
|
-
}
|
974
|
-
else {
|
975
|
-
chipInvisible = true;
|
976
|
-
}
|
977
|
-
label = `${selectedItemsCount} ${this.messages.selected}`;
|
978
|
-
}
|
979
|
-
else if (selectionDisplay === "fit") {
|
980
|
-
chipInvisible = !!((this.isAllSelected() && selectedVisibleChipsCount === 0) ||
|
981
|
-
selectedHiddenChipsCount === 0);
|
982
|
-
label =
|
983
|
-
selectedVisibleChipsCount > 0
|
984
|
-
? `+${selectedHiddenChipsCount}`
|
985
|
-
: `${selectedHiddenChipsCount} ${this.messages.selected}`;
|
986
|
-
}
|
987
|
-
}
|
988
|
-
return (index.h("calcite-chip", { class: {
|
989
|
-
chip: true,
|
990
|
-
[utils.CSS.chipInvisible]: chipInvisible,
|
991
|
-
}, scale: scale, title: label, value: "",
|
992
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
993
|
-
ref: setSelectedIndicatorChipEl }, label));
|
994
|
-
}
|
995
|
-
renderSelectedIndicatorChipCompact() {
|
996
|
-
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, } = this;
|
997
|
-
let chipInvisible;
|
998
|
-
let label;
|
999
|
-
if (compactSelectionDisplay) {
|
1000
|
-
const selectedItemsCount = getSelectedItems().length;
|
1001
|
-
if (this.isAllSelected()) {
|
1002
|
-
chipInvisible = true;
|
1003
|
-
}
|
1004
|
-
else if (selectionDisplay === "fit") {
|
1005
|
-
chipInvisible = !(selectedHiddenChipsCount > 0);
|
1006
|
-
label = `${selectedHiddenChipsCount || 0}`;
|
1007
|
-
}
|
1008
|
-
else if (selectionDisplay === "single") {
|
1009
|
-
chipInvisible = !(selectedItemsCount > 0);
|
1010
|
-
label = `${selectedItemsCount}`;
|
1011
|
-
}
|
1012
|
-
}
|
1013
|
-
else {
|
1014
|
-
chipInvisible = true;
|
1015
|
-
}
|
1016
|
-
return (index.h("calcite-chip", { class: {
|
1017
|
-
chip: true,
|
1018
|
-
[utils.CSS.chipInvisible]: chipInvisible,
|
1019
|
-
}, scale: scale, title: label, value: "" }, label));
|
1020
|
-
}
|
1021
|
-
renderInput() {
|
1022
|
-
const { guid, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
1023
|
-
const single = utils.isSingleLike(selectionMode);
|
1024
|
-
const selectedItem = selectedItems[0];
|
1025
|
-
const showLabel = !open && single && !!selectedItem;
|
1026
|
-
return (index.h("span", { class: {
|
1027
|
-
"input-wrap": true,
|
1028
|
-
"input-wrap--single": single,
|
1029
|
-
} }, showLabel && (index.h("span", { class: {
|
1030
|
-
label: true,
|
1031
|
-
"label--icon": !!(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon),
|
1032
|
-
}, key: "label" }, selectedItem.textLabel)), index.h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": label.getLabelText(this), class: {
|
1033
|
-
input: true,
|
1034
|
-
"input--single": true,
|
1035
|
-
"input--transparent": this.activeChipIndex > -1,
|
1036
|
-
"input--hidden": showLabel,
|
1037
|
-
"input--icon": !!this.placeholderIcon,
|
1038
|
-
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, type: "text",
|
1039
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1040
|
-
ref: (el) => (this.textInput = el) })));
|
1041
|
-
}
|
1042
|
-
renderListBoxOptions() {
|
1043
|
-
return this.filteredItems.map((item) => (index.h("li", { "aria-selected": dom.toAriaBoolean(item.selected), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
1044
|
-
}
|
1045
|
-
renderFloatingUIContainer() {
|
1046
|
-
const { setFloatingEl, setContainerEl, open } = this;
|
1047
|
-
const classes = {
|
1048
|
-
[utils.CSS.listContainer]: true,
|
1049
|
-
[floatingUi.FloatingCSS.animation]: true,
|
1050
|
-
[floatingUi.FloatingCSS.animationActive]: open,
|
1051
|
-
};
|
1052
|
-
return (index.h("div", { "aria-hidden": "true", class: {
|
1053
|
-
"floating-ui-container": true,
|
1054
|
-
"floating-ui-container--active": open,
|
1055
|
-
},
|
1056
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1057
|
-
ref: setFloatingEl }, index.h("div", { class: classes,
|
1058
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1059
|
-
ref: setContainerEl }, index.h("ul", { class: { list: true, "list--hide": !open } }, index.h("slot", null)))));
|
1060
|
-
}
|
1061
|
-
renderIconStart() {
|
1062
|
-
const { selectedItems, placeholderIcon, selectionMode, placeholderIconFlipRtl } = this;
|
1063
|
-
const selectedItem = selectedItems[0];
|
1064
|
-
const selectedIcon = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon;
|
1065
|
-
const singleSelectionMode = utils.isSingleLike(selectionMode);
|
1066
|
-
const iconAtStart = !this.open && selectedItem
|
1067
|
-
? !!selectedIcon && singleSelectionMode
|
1068
|
-
: !!this.placeholderIcon && (!selectedItem || singleSelectionMode);
|
1069
|
-
return (iconAtStart && (index.h("span", { class: "icon-start" }, index.h("calcite-icon", { class: "selected-icon", flipRtl: this.open && selectedItem ? selectedItem.iconFlipRtl : placeholderIconFlipRtl, icon: !this.open && selectedItem ? selectedIcon : placeholderIcon, scale: component.getIconScale(this.scale) }))));
|
1070
|
-
}
|
1071
|
-
renderIconEnd() {
|
1072
|
-
const { open } = this;
|
1073
|
-
return (index.h("span", { class: "icon-end" }, index.h("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: component.getIconScale(this.scale) })));
|
1074
|
-
}
|
1075
|
-
render() {
|
1076
|
-
var _a;
|
1077
|
-
const { selectionDisplay, guid, label: label$1, open } = this;
|
1078
|
-
const singleSelectionMode = utils.isSingleLike(this.selectionMode);
|
1079
|
-
const allSelectionDisplay = selectionDisplay === "all";
|
1080
|
-
const singleSelectionDisplay = selectionDisplay === "single";
|
1081
|
-
const fitSelectionDisplay = !singleSelectionMode && selectionDisplay === "fit";
|
1082
|
-
const isClearable = !this.clearDisabled && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
1083
|
-
return (index.h(index.Host, { onClick: this.comboboxFocusHandler }, index.h("div", { "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-expanded": dom.toAriaBoolean(open), "aria-haspopup": "listbox", "aria-label": label.getLabelText(this), "aria-live": "polite", "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
1084
|
-
wrapper: true,
|
1085
|
-
"wrapper--single": singleSelectionMode || !this.selectedItems.length,
|
1086
|
-
"wrapper--active": open,
|
1087
|
-
}, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, role: "combobox",
|
1088
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1089
|
-
ref: this.setReferenceEl }, index.h("div", { class: {
|
1090
|
-
"grid-input": true,
|
1091
|
-
[utils.CSS.selectionDisplayFit]: fitSelectionDisplay,
|
1092
|
-
[utils.CSS.selectionDisplaySingle]: singleSelectionDisplay,
|
1093
|
-
}, ref: this.setChipContainerEl }, this.renderIconStart(), !singleSelectionMode && !singleSelectionDisplay && this.renderChips(), !singleSelectionMode &&
|
1094
|
-
!allSelectionDisplay && [
|
1095
|
-
this.renderSelectedIndicatorChip(),
|
1096
|
-
this.renderSelectedIndicatorChipCompact(),
|
1097
|
-
this.renderAllSelectedIndicatorChip(),
|
1098
|
-
this.renderAllSelectedIndicatorChipCompact(),
|
1099
|
-
], index.h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label$1), this.renderInput()), isClearable ? (index.h(XButton, { disabled: this.disabled, key: "close-button", label: this.messages.clear, scale: this.scale })) : null, this.renderIconEnd()), index.h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderFloatingUIContainer(), index.h(form.HiddenFormInputSlot, { component: this })));
|
1100
|
-
}
|
1101
|
-
static get assetsDirs() { return ["assets"]; }
|
1102
|
-
get el() { return index.getElement(this); }
|
1103
|
-
static get watchers() { return {
|
1104
|
-
"open": ["openHandler"],
|
1105
|
-
"disabled": ["handleDisabledChange"],
|
1106
|
-
"maxItems": ["maxItemsHandler"],
|
1107
|
-
"overlayPositioning": ["overlayPositioningHandler"],
|
1108
|
-
"selectionMode": ["handlePropsChange"],
|
1109
|
-
"scale": ["handlePropsChange"],
|
1110
|
-
"value": ["valueHandler"],
|
1111
|
-
"messageOverrides": ["onMessagesChange"],
|
1112
|
-
"flipPlacements": ["flipPlacementsHandler"],
|
1113
|
-
"selectedItems": ["selectedItemsHandler"],
|
1114
|
-
"text": ["textHandler"],
|
1115
|
-
"effectiveLocale": ["effectiveLocaleChange"]
|
1116
|
-
}; }
|
1117
|
-
};
|
1118
|
-
Combobox.style = comboboxCss;
|
1119
|
-
|
1120
|
-
/*!
|
1121
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1122
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
1123
|
-
* v2.0.0
|
1124
|
-
*/
|
1125
|
-
const CSS$1 = {
|
1126
|
-
icon: "icon",
|
1127
|
-
iconActive: "icon--active",
|
1128
|
-
iconIndent: "icon--indent",
|
1129
|
-
custom: "icon--custom",
|
1130
|
-
dot: "icon--dot",
|
1131
|
-
single: "label--single",
|
1132
|
-
label: "label",
|
1133
|
-
active: "label--active",
|
1134
|
-
selected: "label--selected",
|
1135
|
-
title: "title",
|
1136
|
-
textContainer: "text-container",
|
1137
|
-
};
|
1138
|
-
|
1139
|
-
const comboboxItemCss = "@charset \"UTF-8\";:host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem;--calcite-combobox-item-selector-icon-size:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem;--calcite-combobox-item-selector-icon-size:1rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.625rem;--calcite-combobox-item-spacing-indent:1rem;--calcite-combobox-item-selector-icon-size:1.5rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:flex;flex-direction:column;padding:0px}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-color:transparent;word-wrap:break-word;word-break:break-word;padding-block:var(--calcite-combobox-item-spacing-unit-s);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.label--active{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.label:hover,.label:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.title{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon{display:inline-flex;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-color-border-1)}.icon--indent{padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{margin-block-start:-1px;padding-inline-start:var(--calcite-combobox-item-spacing-unit-l);color:var(--calcite-color-text-3)}.icon--active{color:var(--calcite-color-text-1)}.icon--dot{display:flex;justify-content:center;min-inline-size:var(--calcite-combobox-item-selector-icon-size)}.icon--dot:before{text-align:start;content:\"•\"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-color-brand)}:host(:hover[disabled]) .icon{opacity:1}";
|
1140
|
-
|
1141
|
-
const ComboboxItem = class {
|
1142
|
-
constructor(hostRef) {
|
1143
|
-
index.registerInstance(this, hostRef);
|
1144
|
-
this.calciteComboboxItemChange = index.createEvent(this, "calciteComboboxItemChange", 6);
|
1145
|
-
this.itemClickHandler = () => {
|
1146
|
-
this.toggleSelected();
|
1147
|
-
};
|
1148
|
-
this.disabled = false;
|
1149
|
-
this.selected = false;
|
1150
|
-
this.active = false;
|
1151
|
-
this.ancestors = undefined;
|
1152
|
-
this.guid = guid.guid();
|
1153
|
-
this.icon = undefined;
|
1154
|
-
this.iconFlipRtl = false;
|
1155
|
-
this.textLabel = undefined;
|
1156
|
-
this.value = undefined;
|
1157
|
-
this.filterDisabled = undefined;
|
1158
|
-
this.selectionMode = "multiple";
|
1159
|
-
this.scale = "m";
|
1160
|
-
}
|
1161
|
-
selectedWatchHandler() {
|
1162
|
-
this.calciteComboboxItemChange.emit();
|
1163
|
-
}
|
1164
|
-
// --------------------------------------------------------------------------
|
1165
|
-
//
|
1166
|
-
// Lifecycle
|
1167
|
-
//
|
1168
|
-
// --------------------------------------------------------------------------
|
1169
|
-
connectedCallback() {
|
1170
|
-
this.ancestors = utils.getAncestors(this.el);
|
1171
|
-
conditionalSlot.connectConditionalSlotComponent(this);
|
1172
|
-
interactive.connectInteractive(this);
|
1173
|
-
}
|
1174
|
-
disconnectedCallback() {
|
1175
|
-
conditionalSlot.disconnectConditionalSlotComponent(this);
|
1176
|
-
interactive.disconnectInteractive(this);
|
1177
|
-
}
|
1178
|
-
componentDidRender() {
|
1179
|
-
interactive.updateHostInteraction(this);
|
1180
|
-
}
|
1181
|
-
// --------------------------------------------------------------------------
|
1182
|
-
//
|
1183
|
-
// Private Methods
|
1184
|
-
//
|
1185
|
-
// --------------------------------------------------------------------------
|
1186
|
-
toggleSelected() {
|
1187
|
-
const isSinglePersistSelect = this.selectionMode === "single-persist";
|
1188
|
-
if (this.disabled || (isSinglePersistSelect && this.selected)) {
|
1189
|
-
return;
|
1190
|
-
}
|
1191
|
-
this.selected = !this.selected;
|
1192
|
-
}
|
1193
|
-
// --------------------------------------------------------------------------
|
1194
|
-
//
|
1195
|
-
// Render Methods
|
1196
|
-
//
|
1197
|
-
// --------------------------------------------------------------------------
|
1198
|
-
renderIcon(iconPath) {
|
1199
|
-
return this.icon ? (index.h("calcite-icon", { class: {
|
1200
|
-
[CSS$1.custom]: !!this.icon,
|
1201
|
-
[CSS$1.iconActive]: this.icon && this.selected,
|
1202
|
-
[CSS$1.iconIndent]: true,
|
1203
|
-
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: component.getIconScale(this.scale) })) : null;
|
1204
|
-
}
|
1205
|
-
renderSelectIndicator(showDot, iconPath) {
|
1206
|
-
return showDot ? (index.h("span", { class: {
|
1207
|
-
[CSS$1.icon]: true,
|
1208
|
-
[CSS$1.dot]: true,
|
1209
|
-
[CSS$1.iconIndent]: true,
|
1210
|
-
} })) : (index.h("calcite-icon", { class: {
|
1211
|
-
[CSS$1.icon]: true,
|
1212
|
-
[CSS$1.iconActive]: this.selected,
|
1213
|
-
[CSS$1.iconIndent]: true,
|
1214
|
-
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: component.getIconScale(this.scale) }));
|
1215
|
-
}
|
1216
|
-
renderChildren() {
|
1217
|
-
if (dom.getSlotted(this.el)) {
|
1218
|
-
return (index.h("ul", { key: "default-slot-container" }, index.h("slot", null)));
|
1219
|
-
}
|
1220
|
-
return null;
|
1221
|
-
}
|
1222
|
-
render() {
|
1223
|
-
const isSingleSelect = utils.isSingleLike(this.selectionMode);
|
1224
|
-
const showDot = isSingleSelect && !this.disabled;
|
1225
|
-
const defaultIcon = isSingleSelect ? "dot" : "check";
|
1226
|
-
const iconPath = this.disabled ? "" : defaultIcon;
|
1227
|
-
const classes = {
|
1228
|
-
[CSS$1.label]: true,
|
1229
|
-
[CSS$1.selected]: this.selected,
|
1230
|
-
[CSS$1.active]: this.active,
|
1231
|
-
[CSS$1.single]: isSingleSelect,
|
1232
|
-
};
|
1233
|
-
const depth = utils.getDepth(this.el);
|
1234
|
-
return (index.h(index.Host, { "aria-hidden": "true" }, index.h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, index.h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderSelectIndicator(showDot, iconPath), this.renderIcon(iconPath), index.h("span", { class: "title" }, this.textLabel)), this.renderChildren())));
|
1235
|
-
}
|
1236
|
-
get el() { return index.getElement(this); }
|
1237
|
-
static get watchers() { return {
|
1238
|
-
"selected": ["selectedWatchHandler"]
|
1239
|
-
}; }
|
1240
|
-
};
|
1241
|
-
ComboboxItem.style = comboboxItemCss;
|
1242
|
-
|
1243
|
-
/*!
|
1244
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1245
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
1246
|
-
* v2.0.0
|
1247
|
-
*/
|
1248
|
-
const SLOTS = {
|
1249
|
-
dropdownTrigger: "trigger",
|
1250
|
-
};
|
1251
|
-
|
1252
|
-
const dropdownCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{--calcite-floating-ui-z-index:var(--calcite-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;block-size:100%;flex:1 1 auto;word-wrap:break-word;word-break:break-word}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width-scale=s]){--calcite-dropdown-width:12rem}:host([width-scale=m]){--calcite-dropdown-width:14rem}:host([width-scale=l]){--calcite-dropdown-width:16rem}:host([hidden]){display:none}[hidden]{display:none}";
|
1253
|
-
|
1254
|
-
const Dropdown = class {
|
1255
|
-
constructor(hostRef) {
|
1256
|
-
index.registerInstance(this, hostRef);
|
1257
|
-
this.calciteDropdownSelect = index.createEvent(this, "calciteDropdownSelect", 6);
|
1258
|
-
this.calciteDropdownBeforeClose = index.createEvent(this, "calciteDropdownBeforeClose", 6);
|
1259
|
-
this.calciteDropdownClose = index.createEvent(this, "calciteDropdownClose", 6);
|
1260
|
-
this.calciteDropdownBeforeOpen = index.createEvent(this, "calciteDropdownBeforeOpen", 6);
|
1261
|
-
this.calciteDropdownOpen = index.createEvent(this, "calciteDropdownOpen", 6);
|
1262
|
-
this.items = [];
|
1263
|
-
this.groups = [];
|
1264
|
-
this.mutationObserver = observers.createObserver("mutation", () => this.updateItems());
|
1265
|
-
this.resizeObserver = observers.createObserver("resize", (entries) => this.resizeObserverCallback(entries));
|
1266
|
-
this.openTransitionProp = "opacity";
|
1267
|
-
this.guid = `calcite-dropdown-${guid.guid()}`;
|
1268
|
-
this.defaultAssignedElements = [];
|
1269
|
-
//--------------------------------------------------------------------------
|
1270
|
-
//
|
1271
|
-
// Private Methods
|
1272
|
-
//
|
1273
|
-
//--------------------------------------------------------------------------
|
1274
|
-
this.slotChangeHandler = (event) => {
|
1275
|
-
this.defaultAssignedElements = event.target.assignedElements({
|
1276
|
-
flatten: true,
|
1277
|
-
});
|
1278
|
-
this.updateItems();
|
1279
|
-
};
|
1280
|
-
this.setFilteredPlacements = () => {
|
1281
|
-
const { el, flipPlacements } = this;
|
1282
|
-
this.filteredFlipPlacements = flipPlacements
|
1283
|
-
? floatingUi.filterComputedPlacements(flipPlacements, el)
|
1284
|
-
: null;
|
1285
|
-
};
|
1286
|
-
this.updateTriggers = (event) => {
|
1287
|
-
this.triggers = event.target.assignedElements({
|
1288
|
-
flatten: true,
|
1289
|
-
});
|
1290
|
-
this.reposition(true);
|
1291
|
-
};
|
1292
|
-
this.updateItems = () => {
|
1293
|
-
this.items = this.groups
|
1294
|
-
.map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll("calcite-dropdown-item")))
|
1295
|
-
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
1296
|
-
this.updateSelectedItems();
|
1297
|
-
this.reposition(true);
|
1298
|
-
this.items.forEach((item) => (item.scale = this.scale));
|
1299
|
-
};
|
1300
|
-
this.updateGroups = (event) => {
|
1301
|
-
const groups = event.target
|
1302
|
-
.assignedElements({ flatten: true })
|
1303
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-dropdown-group"));
|
1304
|
-
this.groups = groups;
|
1305
|
-
this.updateItems();
|
1306
|
-
};
|
1307
|
-
this.resizeObserverCallback = (entries) => {
|
1308
|
-
entries.forEach((entry) => {
|
1309
|
-
const { target } = entry;
|
1310
|
-
if (target === this.referenceEl) {
|
1311
|
-
this.setDropdownWidth();
|
1312
|
-
}
|
1313
|
-
else if (target === this.scrollerEl) {
|
1314
|
-
this.setMaxScrollerHeight();
|
1315
|
-
}
|
1316
|
-
});
|
1317
|
-
};
|
1318
|
-
this.setDropdownWidth = () => {
|
1319
|
-
const { referenceEl, scrollerEl } = this;
|
1320
|
-
const referenceElWidth = referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.clientWidth;
|
1321
|
-
if (!referenceElWidth || !scrollerEl) {
|
1322
|
-
return;
|
1323
|
-
}
|
1324
|
-
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
1325
|
-
};
|
1326
|
-
this.setMaxScrollerHeight = () => {
|
1327
|
-
const { scrollerEl } = this;
|
1328
|
-
if (!scrollerEl) {
|
1329
|
-
return;
|
1330
|
-
}
|
1331
|
-
this.reposition(true);
|
1332
|
-
const maxScrollerHeight = this.getMaxScrollerHeight();
|
1333
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
1334
|
-
this.reposition(true);
|
1335
|
-
};
|
1336
|
-
this.setScrollerAndTransitionEl = (el) => {
|
1337
|
-
this.resizeObserver.observe(el);
|
1338
|
-
this.scrollerEl = el;
|
1339
|
-
this.transitionEl = el;
|
1340
|
-
};
|
1341
|
-
this.setReferenceEl = (el) => {
|
1342
|
-
this.referenceEl = el;
|
1343
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
1344
|
-
this.resizeObserver.observe(el);
|
1345
|
-
};
|
1346
|
-
this.setFloatingEl = (el) => {
|
1347
|
-
this.floatingEl = el;
|
1348
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
1349
|
-
};
|
1350
|
-
this.keyDownHandler = (event) => {
|
1351
|
-
if (!event.composedPath().includes(this.referenceEl)) {
|
1352
|
-
return;
|
1353
|
-
}
|
1354
|
-
const { defaultPrevented, key: key$1 } = event;
|
1355
|
-
if (defaultPrevented) {
|
1356
|
-
return;
|
1357
|
-
}
|
1358
|
-
if (this.open) {
|
1359
|
-
if (key$1 === "Escape") {
|
1360
|
-
this.closeCalciteDropdown();
|
1361
|
-
event.preventDefault();
|
1362
|
-
return;
|
1363
|
-
}
|
1364
|
-
else if (event.shiftKey && key$1 === "Tab") {
|
1365
|
-
this.closeCalciteDropdown();
|
1366
|
-
event.preventDefault();
|
1367
|
-
return;
|
1368
|
-
}
|
1369
|
-
}
|
1370
|
-
if (key.isActivationKey(key$1)) {
|
1371
|
-
this.openCalciteDropdown();
|
1372
|
-
event.preventDefault();
|
1373
|
-
}
|
1374
|
-
else if (key$1 === "Escape") {
|
1375
|
-
this.closeCalciteDropdown();
|
1376
|
-
event.preventDefault();
|
1377
|
-
}
|
1378
|
-
};
|
1379
|
-
this.focusOnFirstActiveOrFirstItem = () => {
|
1380
|
-
this.getFocusableElement(this.items.find((item) => item.selected) || this.items[0]);
|
1381
|
-
};
|
1382
|
-
this.toggleOpenEnd = () => {
|
1383
|
-
this.focusOnFirstActiveOrFirstItem();
|
1384
|
-
this.el.removeEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
1385
|
-
};
|
1386
|
-
this.openCalciteDropdown = () => {
|
1387
|
-
this.open = !this.open;
|
1388
|
-
if (this.open) {
|
1389
|
-
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
1390
|
-
}
|
1391
|
-
};
|
1392
|
-
this.open = false;
|
1393
|
-
this.closeOnSelectDisabled = false;
|
1394
|
-
this.disabled = false;
|
1395
|
-
this.flipPlacements = undefined;
|
1396
|
-
this.maxItems = 0;
|
1397
|
-
this.overlayPositioning = "absolute";
|
1398
|
-
this.placement = floatingUi.defaultMenuPlacement;
|
1399
|
-
this.selectedItems = [];
|
1400
|
-
this.type = "click";
|
1401
|
-
this.widthScale = undefined;
|
1402
|
-
this.scale = "m";
|
1403
|
-
}
|
1404
|
-
openHandler() {
|
1405
|
-
if (!this.disabled) {
|
1406
|
-
openCloseComponent.onToggleOpenCloseComponent(this);
|
1407
|
-
return;
|
1408
|
-
}
|
1409
|
-
this.open = false;
|
1410
|
-
}
|
1411
|
-
handleDisabledChange(value) {
|
1412
|
-
if (!value) {
|
1413
|
-
this.open = false;
|
1414
|
-
}
|
1415
|
-
}
|
1416
|
-
flipPlacementsHandler() {
|
1417
|
-
this.setFilteredPlacements();
|
1418
|
-
this.reposition(true);
|
1419
|
-
}
|
1420
|
-
maxItemsHandler() {
|
1421
|
-
this.setMaxScrollerHeight();
|
1422
|
-
}
|
1423
|
-
overlayPositioningHandler() {
|
1424
|
-
this.reposition(true);
|
1425
|
-
}
|
1426
|
-
placementHandler() {
|
1427
|
-
this.reposition(true);
|
1428
|
-
}
|
1429
|
-
handlePropsChange() {
|
1430
|
-
this.updateItems();
|
1431
|
-
}
|
1432
|
-
//--------------------------------------------------------------------------
|
1433
|
-
//
|
1434
|
-
// Public Methods
|
1435
|
-
//
|
1436
|
-
//--------------------------------------------------------------------------
|
1437
|
-
/** Sets focus on the component's first focusable element. */
|
1438
|
-
async setFocus() {
|
1439
|
-
await loadable.componentFocusable(this);
|
1440
|
-
this.el.focus();
|
1441
|
-
}
|
1442
|
-
//--------------------------------------------------------------------------
|
1443
|
-
//
|
1444
|
-
// Lifecycle
|
1445
|
-
//
|
1446
|
-
//--------------------------------------------------------------------------
|
1447
|
-
connectedCallback() {
|
1448
|
-
var _a;
|
1449
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
1450
|
-
this.setFilteredPlacements();
|
1451
|
-
this.reposition(true);
|
1452
|
-
if (this.open) {
|
1453
|
-
this.openHandler();
|
1454
|
-
openCloseComponent.onToggleOpenCloseComponent(this);
|
1455
|
-
}
|
1456
|
-
interactive.connectInteractive(this);
|
1457
|
-
this.updateItems();
|
1458
|
-
floatingUi.connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
1459
|
-
}
|
1460
|
-
componentWillLoad() {
|
1461
|
-
loadable.setUpLoadableComponent(this);
|
1462
|
-
}
|
1463
|
-
componentDidLoad() {
|
1464
|
-
loadable.setComponentLoaded(this);
|
1465
|
-
this.reposition(true);
|
1466
|
-
}
|
1467
|
-
componentDidRender() {
|
1468
|
-
interactive.updateHostInteraction(this);
|
1469
|
-
}
|
1470
|
-
disconnectedCallback() {
|
1471
|
-
var _a, _b;
|
1472
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
1473
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
1474
|
-
interactive.disconnectInteractive(this);
|
1475
|
-
floatingUi.disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
1476
|
-
}
|
1477
|
-
render() {
|
1478
|
-
const { open, guid } = this;
|
1479
|
-
return (index.h(index.Host, null, index.h("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
1480
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1481
|
-
ref: this.setReferenceEl }, index.h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": dom.toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS.dropdownTrigger, onSlotchange: this.updateTriggers })), index.h("div", { "aria-hidden": dom.toAriaBoolean(!open), class: "calcite-dropdown-wrapper",
|
1482
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1483
|
-
ref: this.setFloatingEl }, index.h("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
1484
|
-
["calcite-dropdown-content"]: true,
|
1485
|
-
[floatingUi.FloatingCSS.animation]: true,
|
1486
|
-
[floatingUi.FloatingCSS.animationActive]: open,
|
1487
|
-
}, id: `${guid}-menu`, role: "menu",
|
1488
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1489
|
-
ref: this.setScrollerAndTransitionEl }, index.h("slot", { onSlotchange: this.updateGroups })))));
|
1490
|
-
}
|
1491
|
-
//--------------------------------------------------------------------------
|
1492
|
-
//
|
1493
|
-
// Public Methods
|
1494
|
-
//
|
1495
|
-
//--------------------------------------------------------------------------
|
1496
|
-
/**
|
1497
|
-
* Updates the position of the component.
|
1498
|
-
*
|
1499
|
-
* @param delayed
|
1500
|
-
*/
|
1501
|
-
async reposition(delayed = false) {
|
1502
|
-
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
1503
|
-
return floatingUi.reposition(this, {
|
1504
|
-
floatingEl,
|
1505
|
-
referenceEl,
|
1506
|
-
overlayPositioning,
|
1507
|
-
placement,
|
1508
|
-
flipPlacements: filteredFlipPlacements,
|
1509
|
-
type: "menu",
|
1510
|
-
}, delayed);
|
1511
|
-
}
|
1512
|
-
closeCalciteDropdownOnClick(event) {
|
1513
|
-
if (this.disabled ||
|
1514
|
-
!dom.isPrimaryPointerButton(event) ||
|
1515
|
-
!this.open ||
|
1516
|
-
event.composedPath().includes(this.el)) {
|
1517
|
-
return;
|
1518
|
-
}
|
1519
|
-
this.closeCalciteDropdown(false);
|
1520
|
-
}
|
1521
|
-
closeCalciteDropdownOnEvent(event) {
|
1522
|
-
this.closeCalciteDropdown();
|
1523
|
-
event.stopPropagation();
|
1524
|
-
}
|
1525
|
-
closeCalciteDropdownOnOpenEvent(event) {
|
1526
|
-
if (event.composedPath().includes(this.el)) {
|
1527
|
-
return;
|
1528
|
-
}
|
1529
|
-
this.open = false;
|
1530
|
-
}
|
1531
|
-
pointerEnterHandler() {
|
1532
|
-
if (this.disabled || this.type !== "hover") {
|
1533
|
-
return;
|
1534
|
-
}
|
1535
|
-
this.openCalciteDropdown();
|
1536
|
-
}
|
1537
|
-
pointerLeaveHandler() {
|
1538
|
-
if (this.disabled || this.type !== "hover") {
|
1539
|
-
return;
|
1540
|
-
}
|
1541
|
-
this.closeCalciteDropdown();
|
1542
|
-
}
|
1543
|
-
calciteInternalDropdownItemKeyEvent(event) {
|
1544
|
-
const { keyboardEvent } = event.detail;
|
1545
|
-
const target = keyboardEvent.target;
|
1546
|
-
switch (keyboardEvent.key) {
|
1547
|
-
case "Tab":
|
1548
|
-
this.open = false;
|
1549
|
-
this.updateTabIndexOfItems(target);
|
1550
|
-
break;
|
1551
|
-
case "ArrowDown":
|
1552
|
-
dom.focusElementInGroup(this.items, target, "next");
|
1553
|
-
break;
|
1554
|
-
case "ArrowUp":
|
1555
|
-
dom.focusElementInGroup(this.items, target, "previous");
|
1556
|
-
break;
|
1557
|
-
case "Home":
|
1558
|
-
dom.focusElementInGroup(this.items, target, "first");
|
1559
|
-
break;
|
1560
|
-
case "End":
|
1561
|
-
dom.focusElementInGroup(this.items, target, "last");
|
1562
|
-
break;
|
1563
|
-
}
|
1564
|
-
event.stopPropagation();
|
1565
|
-
}
|
1566
|
-
handleItemSelect(event) {
|
1567
|
-
this.updateSelectedItems();
|
1568
|
-
event.stopPropagation();
|
1569
|
-
this.calciteDropdownSelect.emit();
|
1570
|
-
if (!this.closeOnSelectDisabled ||
|
1571
|
-
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
1572
|
-
this.closeCalciteDropdown();
|
1573
|
-
}
|
1574
|
-
event.stopPropagation();
|
1575
|
-
}
|
1576
|
-
onBeforeOpen() {
|
1577
|
-
this.reposition(true);
|
1578
|
-
this.calciteDropdownBeforeOpen.emit();
|
1579
|
-
}
|
1580
|
-
onOpen() {
|
1581
|
-
this.calciteDropdownOpen.emit();
|
1582
|
-
}
|
1583
|
-
onBeforeClose() {
|
1584
|
-
this.calciteDropdownBeforeClose.emit();
|
1585
|
-
}
|
1586
|
-
onClose() {
|
1587
|
-
this.calciteDropdownClose.emit();
|
1588
|
-
this.reposition(true);
|
1589
|
-
}
|
1590
|
-
updateSelectedItems() {
|
1591
|
-
this.selectedItems = this.items.filter((item) => item.selected);
|
1592
|
-
}
|
1593
|
-
getMaxScrollerHeight() {
|
1594
|
-
const { maxItems, items } = this;
|
1595
|
-
let itemsToProcess = 0;
|
1596
|
-
let maxScrollerHeight = 0;
|
1597
|
-
let groupHeaderHeight;
|
1598
|
-
this.groups.forEach((group) => {
|
1599
|
-
if (maxItems > 0 && itemsToProcess < maxItems) {
|
1600
|
-
Array.from(group.children).forEach((item, index) => {
|
1601
|
-
if (index === 0) {
|
1602
|
-
if (isNaN(groupHeaderHeight)) {
|
1603
|
-
groupHeaderHeight = item.offsetTop;
|
1604
|
-
}
|
1605
|
-
maxScrollerHeight += groupHeaderHeight;
|
1606
|
-
}
|
1607
|
-
if (itemsToProcess < maxItems) {
|
1608
|
-
maxScrollerHeight += item.offsetHeight;
|
1609
|
-
itemsToProcess += 1;
|
1610
|
-
}
|
1611
|
-
});
|
1612
|
-
}
|
1613
|
-
});
|
1614
|
-
return items.length > maxItems ? maxScrollerHeight : 0;
|
1615
|
-
}
|
1616
|
-
closeCalciteDropdown(focusTrigger = true) {
|
1617
|
-
this.open = false;
|
1618
|
-
if (focusTrigger) {
|
1619
|
-
dom.focusElement(this.triggers[0]);
|
1620
|
-
}
|
1621
|
-
}
|
1622
|
-
getFocusableElement(item) {
|
1623
|
-
if (!item) {
|
1624
|
-
return;
|
1625
|
-
}
|
1626
|
-
const target = item.attributes.isLink
|
1627
|
-
? item.shadowRoot.querySelector("a")
|
1628
|
-
: item;
|
1629
|
-
dom.focusElement(target);
|
1630
|
-
}
|
1631
|
-
updateTabIndexOfItems(target) {
|
1632
|
-
this.items.forEach((item) => {
|
1633
|
-
item.tabIndex = target !== item ? -1 : 0;
|
1634
|
-
});
|
1635
|
-
}
|
1636
|
-
static get delegatesFocus() { return true; }
|
1637
|
-
get el() { return index.getElement(this); }
|
1638
|
-
static get watchers() { return {
|
1639
|
-
"open": ["openHandler"],
|
1640
|
-
"disabled": ["handleDisabledChange"],
|
1641
|
-
"flipPlacements": ["flipPlacementsHandler"],
|
1642
|
-
"maxItems": ["maxItemsHandler"],
|
1643
|
-
"overlayPositioning": ["overlayPositioningHandler"],
|
1644
|
-
"placement": ["placementHandler"],
|
1645
|
-
"scale": ["handlePropsChange"]
|
1646
|
-
}; }
|
1647
|
-
};
|
1648
|
-
Dropdown.style = dropdownCss;
|
1649
|
-
|
1650
|
-
/*!
|
1651
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1652
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
1653
|
-
* v2.0.0
|
1654
|
-
*/
|
1655
|
-
const CSS = {
|
1656
|
-
container: "container",
|
1657
|
-
containerLink: "container--link",
|
1658
|
-
containerMulti: "container--multi-selection",
|
1659
|
-
containerSingle: "container--single-selection",
|
1660
|
-
containerNone: "container--none-selection",
|
1661
|
-
icon: "dropdown-item-icon",
|
1662
|
-
iconEnd: "dropdown-item-icon-end",
|
1663
|
-
iconStart: "dropdown-item-icon-start",
|
1664
|
-
itemContent: "dropdown-item-content",
|
1665
|
-
link: "dropdown-link",
|
1666
|
-
};
|
1667
|
-
|
1668
|
-
const dropdownGroupCss = ":host{position:relative;display:block}.container{text-align:start}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}";
|
1669
|
-
|
1670
|
-
const DropdownGroup = class {
|
1671
|
-
constructor(hostRef) {
|
1672
|
-
index.registerInstance(this, hostRef);
|
1673
|
-
this.calciteInternalDropdownItemChange = index.createEvent(this, "calciteInternalDropdownItemChange", 6);
|
1674
|
-
this.updateItems = () => {
|
1675
|
-
Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach((item) => (item.selectionMode = this.selectionMode));
|
1676
|
-
};
|
1677
|
-
this.mutationObserver = observers.createObserver("mutation", () => this.updateItems());
|
1678
|
-
this.groupTitle = undefined;
|
1679
|
-
this.scale = "m";
|
1680
|
-
this.selectionMode = "single";
|
1681
|
-
}
|
1682
|
-
handlePropsChange() {
|
1683
|
-
this.updateItems();
|
1684
|
-
}
|
1685
|
-
//--------------------------------------------------------------------------
|
1686
|
-
//
|
1687
|
-
// Lifecycle
|
1688
|
-
//
|
1689
|
-
//--------------------------------------------------------------------------
|
1690
|
-
connectedCallback() {
|
1691
|
-
var _a;
|
1692
|
-
this.updateItems();
|
1693
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
1694
|
-
}
|
1695
|
-
componentWillLoad() {
|
1696
|
-
this.groupPosition = this.getGroupPosition();
|
1697
|
-
}
|
1698
|
-
disconnectedCallback() {
|
1699
|
-
var _a;
|
1700
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
1701
|
-
}
|
1702
|
-
render() {
|
1703
|
-
const groupTitle = this.groupTitle ? (index.h("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
1704
|
-
const dropdownSeparator = this.groupPosition > 0 ? index.h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
1705
|
-
return (index.h(index.Host, { "aria-label": this.groupTitle, role: "group" }, index.h("div", { class: {
|
1706
|
-
[CSS.container]: true,
|
1707
|
-
[`${CSS.container}--${this.scale}`]: true,
|
1708
|
-
} }, dropdownSeparator, groupTitle, index.h("slot", null))));
|
1709
|
-
}
|
1710
|
-
//--------------------------------------------------------------------------
|
1711
|
-
//
|
1712
|
-
// Event Listeners
|
1713
|
-
//
|
1714
|
-
//--------------------------------------------------------------------------
|
1715
|
-
updateActiveItemOnChange(event) {
|
1716
|
-
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
1717
|
-
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
1718
|
-
this.calciteInternalDropdownItemChange.emit({
|
1719
|
-
requestedDropdownGroup: this.requestedDropdownGroup,
|
1720
|
-
requestedDropdownItem: this.requestedDropdownItem,
|
1721
|
-
});
|
1722
|
-
}
|
1723
|
-
//--------------------------------------------------------------------------
|
1724
|
-
//
|
1725
|
-
// Private Methods
|
1726
|
-
//
|
1727
|
-
//--------------------------------------------------------------------------
|
1728
|
-
getGroupPosition() {
|
1729
|
-
return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"), this.el);
|
1730
|
-
}
|
1731
|
-
static get delegatesFocus() { return true; }
|
1732
|
-
get el() { return index.getElement(this); }
|
1733
|
-
static get watchers() { return {
|
1734
|
-
"selectionMode": ["handlePropsChange"]
|
1735
|
-
}; }
|
1736
|
-
};
|
1737
|
-
DropdownGroup.style = dropdownGroupCss;
|
1738
|
-
|
1739
|
-
const dropdownItemCss = ".container--s{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}.container--s.container--none-selection{padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{padding-inline-start:0px}.container--m.container--none-selection{padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{padding-inline-start:0px}.container--l.container--none-selection{padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{padding-inline-start:0px}:host{position:relative;display:flex;flex-grow:1;align-items:center}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}.dropdown-item-content{flex:1 1 auto;padding-block:0.125rem;padding-inline-end:auto;padding-inline-start:0.25rem}:host,.container--link a{outline-color:transparent}:host(:focus){outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.container--link{padding:0px}.container--link a{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.container--s .dropdown-link{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-color-text-1)}:host(:focus) .container{color:var(--calcite-color-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-color-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([selected]) .container:not(.container--none-selection),:host([selected]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .container:not(.container--none-selection):before,:host([selected]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-color-brand)}:host([selected]) .container:not(.container--none-selection) calcite-icon,:host([selected]) .container--link .dropdown-link calcite-icon{color:var(--calcite-color-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-color-border-1);opacity:1}:host([selected]) .dropdown-item-icon{color:var(--calcite-color-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-inline-end:0.5rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{margin-inline-end:0.75rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{margin-inline-end:1rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{margin-inline-start:1rem}:host([hidden]){display:none}[hidden]{display:none}";
|
1740
|
-
|
1741
|
-
const DropdownItem = class {
|
1742
|
-
constructor(hostRef) {
|
1743
|
-
index.registerInstance(this, hostRef);
|
1744
|
-
this.calciteDropdownItemSelect = index.createEvent(this, "calciteDropdownItemSelect", 6);
|
1745
|
-
this.calciteInternalDropdownItemSelect = index.createEvent(this, "calciteInternalDropdownItemSelect", 6);
|
1746
|
-
this.calciteInternalDropdownItemKeyEvent = index.createEvent(this, "calciteInternalDropdownItemKeyEvent", 6);
|
1747
|
-
this.calciteInternalDropdownCloseRequest = index.createEvent(this, "calciteInternalDropdownCloseRequest", 6);
|
1748
|
-
this.selected = false;
|
1749
|
-
this.iconFlipRtl = undefined;
|
1750
|
-
this.iconStart = undefined;
|
1751
|
-
this.iconEnd = undefined;
|
1752
|
-
this.href = undefined;
|
1753
|
-
this.label = undefined;
|
1754
|
-
this.rel = undefined;
|
1755
|
-
this.target = undefined;
|
1756
|
-
this.selectionMode = "single";
|
1757
|
-
this.scale = "m";
|
1758
|
-
}
|
1759
|
-
//--------------------------------------------------------------------------
|
1760
|
-
//
|
1761
|
-
// Public Methods
|
1762
|
-
//
|
1763
|
-
//--------------------------------------------------------------------------
|
1764
|
-
/** Sets focus on the component. */
|
1765
|
-
async setFocus() {
|
1766
|
-
var _a;
|
1767
|
-
await loadable.componentFocusable(this);
|
1768
|
-
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
1769
|
-
}
|
1770
|
-
//--------------------------------------------------------------------------
|
1771
|
-
//
|
1772
|
-
// Lifecycle
|
1773
|
-
//
|
1774
|
-
//--------------------------------------------------------------------------
|
1775
|
-
componentWillLoad() {
|
1776
|
-
loadable.setUpLoadableComponent(this);
|
1777
|
-
this.initialize();
|
1778
|
-
}
|
1779
|
-
componentDidLoad() {
|
1780
|
-
loadable.setComponentLoaded(this);
|
1781
|
-
}
|
1782
|
-
connectedCallback() {
|
1783
|
-
this.initialize();
|
1784
|
-
}
|
1785
|
-
render() {
|
1786
|
-
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
1787
|
-
const iconStartEl = (index.h("calcite-icon", { class: CSS.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: component.getIconScale(this.scale) }));
|
1788
|
-
const contentNode = (index.h("span", { class: CSS.itemContent }, index.h("slot", null)));
|
1789
|
-
const iconEndEl = (index.h("calcite-icon", { class: CSS.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: component.getIconScale(this.scale) }));
|
1790
|
-
const slottedContent = this.iconStart && this.iconEnd
|
1791
|
-
? [iconStartEl, contentNode, iconEndEl]
|
1792
|
-
: this.iconStart
|
1793
|
-
? [iconStartEl, contentNode]
|
1794
|
-
: this.iconEnd
|
1795
|
-
? [contentNode, iconEndEl]
|
1796
|
-
: contentNode;
|
1797
|
-
const contentEl = !href ? (slottedContent) : (index.h("a", { "aria-label": label, class: CSS.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
1798
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
1799
|
-
ref: (el) => (this.childLink = el) }, slottedContent));
|
1800
|
-
const itemRole = href
|
1801
|
-
? null
|
1802
|
-
: selectionMode === "single"
|
1803
|
-
? "menuitemradio"
|
1804
|
-
: selectionMode === "multiple"
|
1805
|
-
? "menuitemcheckbox"
|
1806
|
-
: "menuitem";
|
1807
|
-
const itemAria = selectionMode !== "none" ? dom.toAriaBoolean(this.selected) : null;
|
1808
|
-
return (index.h(index.Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, index.h("div", { class: {
|
1809
|
-
[CSS.container]: true,
|
1810
|
-
[CSS.containerLink]: !!href,
|
1811
|
-
[`${CSS.container}--${scale}`]: true,
|
1812
|
-
[CSS.containerMulti]: selectionMode === "multiple",
|
1813
|
-
[CSS.containerSingle]: selectionMode === "single",
|
1814
|
-
[CSS.containerNone]: selectionMode === "none",
|
1815
|
-
} }, selectionMode !== "none" ? (index.h("calcite-icon", { class: CSS.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: component.getIconScale(this.scale) })) : null, contentEl)));
|
1816
|
-
}
|
1817
|
-
//--------------------------------------------------------------------------
|
1818
|
-
//
|
1819
|
-
// Event Listeners
|
1820
|
-
//
|
1821
|
-
//--------------------------------------------------------------------------
|
1822
|
-
onClick() {
|
1823
|
-
this.emitRequestedItem();
|
1824
|
-
}
|
1825
|
-
keyDownHandler(event) {
|
1826
|
-
switch (event.key) {
|
1827
|
-
case " ":
|
1828
|
-
case "Enter":
|
1829
|
-
this.emitRequestedItem();
|
1830
|
-
if (this.href) {
|
1831
|
-
this.childLink.click();
|
1832
|
-
}
|
1833
|
-
event.preventDefault();
|
1834
|
-
break;
|
1835
|
-
case "Escape":
|
1836
|
-
this.calciteInternalDropdownCloseRequest.emit();
|
1837
|
-
event.preventDefault();
|
1838
|
-
break;
|
1839
|
-
case "Tab":
|
1840
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
1841
|
-
break;
|
1842
|
-
case "ArrowUp":
|
1843
|
-
case "ArrowDown":
|
1844
|
-
case "Home":
|
1845
|
-
case "End":
|
1846
|
-
event.preventDefault();
|
1847
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
1848
|
-
break;
|
1849
|
-
}
|
1850
|
-
}
|
1851
|
-
updateActiveItemOnChange(event) {
|
1852
|
-
const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);
|
1853
|
-
if (parentEmittedChange) {
|
1854
|
-
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
1855
|
-
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
1856
|
-
this.determineActiveItem();
|
1857
|
-
}
|
1858
|
-
event.stopPropagation();
|
1859
|
-
}
|
1860
|
-
//--------------------------------------------------------------------------
|
1861
|
-
//
|
1862
|
-
// Private Methods
|
1863
|
-
//
|
1864
|
-
//--------------------------------------------------------------------------
|
1865
|
-
initialize() {
|
1866
|
-
this.parentDropdownGroupEl = this.el.closest("calcite-dropdown-group");
|
1867
|
-
if (this.selectionMode === "none") {
|
1868
|
-
this.selected = false;
|
1869
|
-
}
|
1870
|
-
}
|
1871
|
-
determineActiveItem() {
|
1872
|
-
switch (this.selectionMode) {
|
1873
|
-
case "multiple":
|
1874
|
-
if (this.el === this.requestedDropdownItem) {
|
1875
|
-
this.selected = !this.selected;
|
1876
|
-
}
|
1877
|
-
break;
|
1878
|
-
case "single":
|
1879
|
-
if (this.el === this.requestedDropdownItem) {
|
1880
|
-
this.selected = true;
|
1881
|
-
}
|
1882
|
-
else if (this.requestedDropdownGroup === this.parentDropdownGroupEl) {
|
1883
|
-
this.selected = false;
|
1884
|
-
}
|
1885
|
-
break;
|
1886
|
-
case "none":
|
1887
|
-
this.selected = false;
|
1888
|
-
break;
|
1889
|
-
}
|
1890
|
-
}
|
1891
|
-
emitRequestedItem() {
|
1892
|
-
this.calciteDropdownItemSelect.emit();
|
1893
|
-
this.calciteInternalDropdownItemSelect.emit({
|
1894
|
-
requestedDropdownItem: this.el,
|
1895
|
-
requestedDropdownGroup: this.parentDropdownGroupEl,
|
1896
|
-
});
|
1897
|
-
}
|
1898
|
-
get el() { return index.getElement(this); }
|
1899
|
-
};
|
1900
|
-
DropdownItem.style = dropdownItemCss;
|
1901
|
-
|
1902
|
-
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom:0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}";
|
1903
|
-
|
1904
|
-
const MapLayerPicker = class {
|
1905
|
-
constructor(hostRef) {
|
1906
|
-
index.registerInstance(this, hostRef);
|
1907
|
-
this.idsFound = index.createEvent(this, "idsFound", 7);
|
1908
|
-
this.noLayersFound = index.createEvent(this, "noLayersFound", 7);
|
1909
|
-
this.layerSelectionChange = index.createEvent(this, "layerSelectionChange", 7);
|
1910
|
-
//--------------------------------------------------------------------------
|
1911
|
-
//
|
1912
|
-
// Properties (protected)
|
1913
|
-
//
|
1914
|
-
//--------------------------------------------------------------------------
|
1915
|
-
/**
|
1916
|
-
* boolean: When true the default layer has been loaded once and should no longer be used
|
1917
|
-
*/
|
1918
|
-
this.defaultLayerHonored = false;
|
1919
|
-
this.appearance = "transparent";
|
1920
|
-
this.defaultLayerId = "";
|
1921
|
-
this.display = "inline-block";
|
1922
|
-
this.enabledLayerIds = [];
|
1923
|
-
this.enabledTableIds = [];
|
1924
|
-
this.height = undefined;
|
1925
|
-
this.isMobile = undefined;
|
1926
|
-
this.mapView = undefined;
|
1927
|
-
this.onlyShowUpdatableLayers = undefined;
|
1928
|
-
this.placeholderIcon = "";
|
1929
|
-
this.selectedIds = [];
|
1930
|
-
this.scale = "m";
|
1931
|
-
this.showTables = undefined;
|
1932
|
-
this.showSingleLayerAsLabel = false;
|
1933
|
-
this.type = "select";
|
1934
|
-
this._hasMultipleLayers = true;
|
1935
|
-
this._hasValidLayers = true;
|
1936
|
-
this._isDropdownOpen = undefined;
|
1937
|
-
this.ids = [];
|
1938
|
-
this.selectedName = "";
|
1939
|
-
this._translations = undefined;
|
1940
|
-
}
|
1941
|
-
//--------------------------------------------------------------------------
|
1942
|
-
//
|
1943
|
-
// Watch handlers
|
1944
|
-
//
|
1945
|
-
//--------------------------------------------------------------------------
|
1946
|
-
/**
|
1947
|
-
* Called each time the mapView prop is changed.
|
1948
|
-
*/
|
1949
|
-
async mapViewWatchHandler() {
|
1950
|
-
await this._setLayers();
|
1951
|
-
if (this.ids.length > 0) {
|
1952
|
-
this._hasValidLayers = true;
|
1953
|
-
this._hasMultipleLayers = this.ids.length > 1;
|
1954
|
-
this._setSelectedLayer(this.ids[0]);
|
1955
|
-
}
|
1956
|
-
else {
|
1957
|
-
this._hasValidLayers = false;
|
1958
|
-
this.noLayersFound.emit();
|
1959
|
-
}
|
1960
|
-
}
|
1961
|
-
//--------------------------------------------------------------------------
|
1962
|
-
//
|
1963
|
-
// Functions (lifecycle)
|
1964
|
-
//
|
1965
|
-
//--------------------------------------------------------------------------
|
1966
|
-
/**
|
1967
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
1968
|
-
*/
|
1969
|
-
async componentWillLoad() {
|
1970
|
-
await this._getTranslations();
|
1971
|
-
await this._setLayers();
|
1972
|
-
if (this.ids.length > 0 || this.selectedIds.length === 1) {
|
1973
|
-
this.layerSelectionChange.emit(this.selectedIds.length === 1 ? [this.selectedIds[0]] : [this.ids[0]]);
|
1974
|
-
}
|
1975
|
-
}
|
1976
|
-
/**
|
1977
|
-
* Renders the component.
|
1978
|
-
*/
|
1979
|
-
render() {
|
1980
|
-
const id = "map-layer-picker";
|
1981
|
-
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
1982
|
-
style = Object.assign(Object.assign({}, style), { "display": this.display });
|
1983
|
-
return (index.h(index.Host, null, index.h("div", { class: "map-layer-picker-container", style: style }, index.h("div", { class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
1984
|
-
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
1985
|
-
this.type === "combobox" ? this._getCombobox(id) :
|
1986
|
-
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
1987
|
-
}
|
1988
|
-
/**
|
1989
|
-
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
1990
|
-
*/
|
1991
|
-
async componentDidLoad() {
|
1992
|
-
if (this.ids.length > 0 || this.selectedIds.length === 1) {
|
1993
|
-
const id = this.selectedIds.length === 1 ? this.selectedIds[0] : this.ids[0];
|
1994
|
-
if (this.type === "select") {
|
1995
|
-
this._layerElement.value = id;
|
1996
|
-
}
|
1997
|
-
else if (this.type === "dropdown") {
|
1998
|
-
this.selectedName = Object.keys(this._layerNameHash).indexOf(id) > -1 ?
|
1999
|
-
this._layerNameHash[id].name : Object.keys(this._tableNameHash).indexOf(id) > -1 ?
|
2000
|
-
this._tableNameHash[id].name : "";
|
2001
|
-
}
|
2002
|
-
}
|
2003
|
-
}
|
2004
|
-
//--------------------------------------------------------------------------
|
2005
|
-
//
|
2006
|
-
// Functions (protected)
|
2007
|
-
//
|
2008
|
-
//--------------------------------------------------------------------------
|
2009
|
-
/**
|
2010
|
-
* Create a notice to inform the user that no layers were found
|
2011
|
-
*
|
2012
|
-
* @returns Calcite Notice component with the message
|
2013
|
-
*/
|
2014
|
-
_getInvalidPlaceholder() {
|
2015
|
-
return (index.h("div", null, index.h("calcite-notice", { class: "height-100", icon: "exclamation-mark-triangle", id: "no-valid-layers", kind: "danger", open: true }, index.h("div", { slot: "message" }, this._translations.noLayersFound)), index.h("calcite-tooltip", { label: this._translations.enableEditUpdate, placement: "bottom", "reference-element": "no-valid-layers" }, index.h("span", null, this._translations.enableEditUpdate))));
|
2016
|
-
}
|
2017
|
-
/**
|
2018
|
-
* Show layer name as a label with icon
|
2019
|
-
*
|
2020
|
-
* @returns Calcite label with the layer name and icon
|
2021
|
-
*/
|
2022
|
-
_getSingleLayerPlaceholder() {
|
2023
|
-
return (index.h("div", { class: "layer-picker-label-container cursor-default" }, index.h("calcite-icon", { icon: "layers", scale: "s" }), index.h("calcite-label", { class: "no-bottom-margin padding-start-1" }, this.selectedName)));
|
2024
|
-
}
|
2025
|
-
/**
|
2026
|
-
* Create a list of layers from the map
|
2027
|
-
* Used for selecting a single layer.
|
2028
|
-
*
|
2029
|
-
* @param id the id for the select component used to support the tooltip
|
2030
|
-
*
|
2031
|
-
* @returns Calcite Select component with the ids of the layers from the map
|
2032
|
-
*/
|
2033
|
-
_getSelect(id) {
|
2034
|
-
return (index.h("calcite-select", { id: id, label: "", onCalciteSelectChange: () => this._layerSelectionChange(), ref: (el) => { this._layerElement = el; }, scale: this.scale }, this._getMapLayerOptions()));
|
2035
|
-
}
|
2036
|
-
/**
|
2037
|
-
* Create a list of layer ids from the map
|
2038
|
-
* Used for selecting multiple layers
|
2039
|
-
*
|
2040
|
-
* @param id the id for the combobox component used to support the tooltip
|
2041
|
-
*
|
2042
|
-
* @returns Calcite ComboBox component with the ids of the layers from the map
|
2043
|
-
*/
|
2044
|
-
_getCombobox(id) {
|
2045
|
-
return (index.h("calcite-combobox", { clearDisabled: true, id: id, label: "", onCalciteComboboxChange: () => this._layerSelectionChange(), "placeholder-icon": this.placeholderIcon, ref: (el) => { this._layerElement = el; }, scale: this.scale, "selection-mode": "single" }, this._getMapLayerOptions()));
|
2046
|
-
}
|
2047
|
-
/**
|
2048
|
-
* Hydrate a dropdown component with items to display the layer names
|
2049
|
-
*
|
2050
|
-
* @param id the id for the dropdown component used to support the tooltip
|
2051
|
-
*
|
2052
|
-
* @returns Array of Dropdown items with layer names
|
2053
|
-
*/
|
2054
|
-
_getDropdown(id) {
|
2055
|
-
return (index.h("calcite-dropdown", { calciteDropdownOpen: () => alert("open"), class: "layer-picker-dropdown", onCalciteDropdownBeforeClose: () => this._isDropdownOpen = false, onCalciteDropdownBeforeOpen: () => this._isDropdownOpen = true }, this.isMobile ? this._getDropdownButton() : this._getActionDropdownButton(id), index.h("calcite-dropdown-group", { "selection-mode": "single" }, this._getMapLayerOptions())));
|
2056
|
-
}
|
2057
|
-
/**
|
2058
|
-
* Get the button that will open the dropdown list wrapped in an action
|
2059
|
-
*
|
2060
|
-
* @returns the node for the action and button
|
2061
|
-
*/
|
2062
|
-
_getActionDropdownButton(id) {
|
2063
|
-
return (index.h("calcite-action", { id: id, slot: "trigger", text: "" }, this._getDropdownButton()));
|
2064
|
-
}
|
2065
|
-
/**
|
2066
|
-
* Get the button that will open the dropdown list
|
2067
|
-
*
|
2068
|
-
* @returns the node for the button
|
2069
|
-
*/
|
2070
|
-
_getDropdownButton() {
|
2071
|
-
const buttonClass = this.isMobile ? "" : "max-width-350";
|
2072
|
-
const buttonSlot = this.isMobile ? "trigger" : "";
|
2073
|
-
const buttonIcon = this._isDropdownOpen ? "chevron-up" : "chevron-down";
|
2074
|
-
return (index.h("calcite-button", { alignment: "icon-end-space-between", appearance: this.appearance, class: buttonClass, iconEnd: buttonIcon, iconStart: "layers", kind: "neutral", slot: buttonSlot, width: "full" }, index.h("div", null, this.selectedName)));
|
2075
|
-
}
|
2076
|
-
/**
|
2077
|
-
* Get the appropriate type of dom nodes for each valid layer or table
|
2078
|
-
*
|
2079
|
-
* @returns Array of dom nodes with the names of the layers and optionally of the tables
|
2080
|
-
*/
|
2081
|
-
_getMapLayerOptions() {
|
2082
|
-
return this.ids.reduce((prev, cur) => {
|
2083
|
-
if (this._validLayer(cur)) {
|
2084
|
-
prev.push(this._getItem(cur, "layer"));
|
2085
|
-
}
|
2086
|
-
else if (this._validTable(cur)) {
|
2087
|
-
prev.push(this._getItem(cur, "table"));
|
2088
|
-
}
|
2089
|
-
return prev;
|
2090
|
-
}, []);
|
2091
|
-
}
|
2092
|
-
/**
|
2093
|
-
* Get the appropriate type of dom node for the current layer or table id
|
2094
|
-
*
|
2095
|
-
* @returns A dom node with the name of the layer or table
|
2096
|
-
*/
|
2097
|
-
_getItem(id, itemType) {
|
2098
|
-
const item = itemType === "layer" ? this._layerNameHash[id] : this._tableNameHash[id];
|
2099
|
-
const disabled = this.onlyShowUpdatableLayers ? !item.supportsUpdate : false;
|
2100
|
-
const name = item.name;
|
2101
|
-
const selected = this.selectedIds.indexOf(id) > -1;
|
2102
|
-
return this.type === "combobox" ? (index.h("calcite-combobox-item", { disabled: disabled, selected: selected, textLabel: name, value: id })) :
|
2103
|
-
this.type === "select" ? (index.h("calcite-option", { disabled: disabled, label: name, selected: selected, value: id })) : (index.h("calcite-dropdown-group", { class: disabled ? "disabled" : "", selectionMode: disabled ? "none" : "single" }, index.h("calcite-dropdown-item", { onClick: disabled ? undefined : () => void this._setSelectedLayer(id), selected: selected }, name)));
|
2104
|
-
}
|
2105
|
-
/**
|
2106
|
-
* Store the layer name based on the user selection
|
2107
|
-
*/
|
2108
|
-
_setSelectedLayer(id) {
|
2109
|
-
let item;
|
2110
|
-
const hasDefaultLayer = this.defaultLayerId && !this.defaultLayerHonored;
|
2111
|
-
if (hasDefaultLayer) {
|
2112
|
-
item = this._getLayerFromHash(this.defaultLayerId);
|
2113
|
-
this.defaultLayerHonored = item !== undefined;
|
2114
|
-
id = this.defaultLayerHonored ? this.defaultLayerId : id;
|
2115
|
-
}
|
2116
|
-
item = item ? item : this._getLayerFromHash(id);
|
2117
|
-
this.selectedName = item === null || item === void 0 ? void 0 : item.name;
|
2118
|
-
this.selectedIds = [id];
|
2119
|
-
this.layerSelectionChange.emit(this.selectedIds);
|
2120
|
-
}
|
2121
|
-
/**
|
2122
|
-
* Fetch layer hash info for the given id
|
2123
|
-
*
|
2124
|
-
* @returns ILayerHashInfo for the id
|
2125
|
-
*/
|
2126
|
-
_getLayerFromHash(id) {
|
2127
|
-
return Object.keys(this._layerNameHash).indexOf(id) > -1 ?
|
2128
|
-
this._layerNameHash[id] : Object.keys(this._tableNameHash).indexOf(id) > -1 ?
|
2129
|
-
this._tableNameHash[id] : undefined;
|
2130
|
-
}
|
2131
|
-
/**
|
2132
|
-
* Fetch the ids of the layers from the map
|
2133
|
-
*
|
2134
|
-
* @returns Promise when the operation has completed
|
2135
|
-
*/
|
2136
|
-
async _setLayers() {
|
2137
|
-
if (this.mapView) {
|
2138
|
-
await this._initLayerTableHash();
|
2139
|
-
const layerIds = this.onlyShowUpdatableLayers ?
|
2140
|
-
this._getEditableIds(this._layerNameHash) : Object.keys(this._layerNameHash);
|
2141
|
-
const tableIds = this.showTables ? this.onlyShowUpdatableLayers ?
|
2142
|
-
this._getEditableIds(this._tableNameHash) : Object.keys(this._tableNameHash) : [];
|
2143
|
-
this.ids = [
|
2144
|
-
...layerIds.reverse().filter(n => { var _a; return ((_a = this.enabledLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.enabledLayerIds.reverse().indexOf(n) > -1 : true; }),
|
2145
|
-
...tableIds.reverse().filter(n => { var _a; return ((_a = this.enabledTableIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.enabledTableIds.reverse().indexOf(n) > -1 : true; }),
|
2146
|
-
];
|
2147
|
-
this.idsFound.emit({
|
2148
|
-
layerIds,
|
2149
|
-
tableIds
|
2150
|
-
});
|
2151
|
-
}
|
2152
|
-
}
|
2153
|
-
/**
|
2154
|
-
* Fetch the ids of all layers that support edits with the update capability
|
2155
|
-
*
|
2156
|
-
* @returns array of layer ids
|
2157
|
-
*/
|
2158
|
-
_getEditableIds(hash) {
|
2159
|
-
return Object.keys(hash).reduce((prev, cur) => {
|
2160
|
-
if (hash[cur].supportsUpdate) {
|
2161
|
-
prev.push(cur);
|
2162
|
-
}
|
2163
|
-
return prev;
|
2164
|
-
}, []);
|
2165
|
-
}
|
2166
|
-
/**
|
2167
|
-
* Create a layer id:title hash for layer name display
|
2168
|
-
*
|
2169
|
-
* @returns Promise when the operation has completed
|
2170
|
-
*/
|
2171
|
-
async _initLayerTableHash() {
|
2172
|
-
this._layerNameHash = await mapViewUtils.getMapLayerHash(this.mapView, this.onlyShowUpdatableLayers);
|
2173
|
-
this._tableNameHash = this.showTables ? await mapViewUtils.getMapTableHash(this.mapView, this.onlyShowUpdatableLayers) : {};
|
2174
|
-
}
|
2175
|
-
/**
|
2176
|
-
* Evaluate if the id exists in the current hash and verify if it should be excluded
|
2177
|
-
*
|
2178
|
-
* @returns boolean when true the layer will be used in the current layer picker type
|
2179
|
-
*/
|
2180
|
-
_validLayer(id) {
|
2181
|
-
var _a;
|
2182
|
-
const name = (_a = this._layerNameHash[id]) === null || _a === void 0 ? void 0 : _a.name;
|
2183
|
-
return name && publicNotificationStore.state.managedLayers.indexOf(name) < 0 && (this.enabledLayerIds.length > 0 ?
|
2184
|
-
this.enabledLayerIds.indexOf(id) > -1 : true);
|
2185
|
-
}
|
2186
|
-
/**
|
2187
|
-
* Evaluate if the id exists in the current hash and verify if it should be excluded
|
2188
|
-
*
|
2189
|
-
* @returns boolean when true the table will be used in the current layer picker type
|
2190
|
-
*/
|
2191
|
-
_validTable(id) {
|
2192
|
-
var _a;
|
2193
|
-
const name = (_a = this._tableNameHash[id]) === null || _a === void 0 ? void 0 : _a.name;
|
2194
|
-
const validName = name && this.showTables;
|
2195
|
-
return validName ? publicNotificationStore.state.managedTables.indexOf(name) < 0 &&
|
2196
|
-
(this.enabledTableIds.length > 0 ? this.enabledTableIds.indexOf(id) > -1 : true) : validName;
|
2197
|
-
}
|
2198
|
-
/**
|
2199
|
-
* Fetch the ids of the layers from the map
|
2200
|
-
*
|
2201
|
-
* @returns Promise when the operation has completed
|
2202
|
-
*/
|
2203
|
-
_layerSelectionChange() {
|
2204
|
-
const ids = Array.isArray(this._layerElement.value) ? this._layerElement.value : [this._layerElement.value];
|
2205
|
-
if (JSON.stringify(ids) !== JSON.stringify([""])) {
|
2206
|
-
this.selectedIds = ids;
|
2207
|
-
this.layerSelectionChange.emit(this.selectedIds);
|
2208
|
-
}
|
2209
|
-
}
|
2210
|
-
/**
|
2211
|
-
* Fetches the component's translations
|
2212
|
-
*
|
2213
|
-
* @returns Promise when complete
|
2214
|
-
* @protected
|
2215
|
-
*/
|
2216
|
-
async _getTranslations() {
|
2217
|
-
const messages = await locale$1.getLocaleComponentStrings(this.el);
|
2218
|
-
this._translations = messages[0];
|
2219
|
-
}
|
2220
|
-
get el() { return index.getElement(this); }
|
2221
|
-
static get watchers() { return {
|
2222
|
-
"mapView": ["mapViewWatchHandler"]
|
2223
|
-
}; }
|
2224
|
-
};
|
2225
|
-
MapLayerPicker.style = mapLayerPickerCss;
|
2226
|
-
|
2227
|
-
exports.calcite_combobox = Combobox;
|
2228
|
-
exports.calcite_combobox_item = ComboboxItem;
|
2229
|
-
exports.calcite_dropdown = Dropdown;
|
2230
|
-
exports.calcite_dropdown_group = DropdownGroup;
|
2231
|
-
exports.calcite_dropdown_item = DropdownItem;
|
2232
|
-
exports.map_layer_picker = MapLayerPicker;
|