@esri/solutions-components 0.10.47 → 0.10.48
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ExpandToggle-2cdd9a8e.js → ExpandToggle-c5e409ce.js} +5 -5
- package/dist/cjs/{FloatingArrow-91a71a80.js → FloatingArrow-c2b50d47.js} +1 -1
- package/dist/cjs/{Heading-a3e36113.js → Heading-3e2d46fd.js} +1 -1
- package/dist/cjs/{Validation-55fc2417.js → Validation-c065b988.js} +1 -1
- package/dist/cjs/{app-globals-3ff4b752.js → app-globals-09eb9eb5.js} +5 -5
- package/dist/cjs/{ar-76c21e64.js → ar-0afb390b.js} +20 -20
- package/dist/cjs/{array-286e5a3b.js → array-a8a57676.js} +1 -1
- package/dist/cjs/{bg-14c9b066.js → bg-b1be4ef3.js} +20 -20
- package/dist/cjs/{browser-333a21c5.js → browser-0bedacf5.js} +1 -1
- package/dist/cjs/{bs-af03a828.js → bs-a314390f.js} +20 -20
- package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
- package/dist/cjs/{ca-ae8e24ac.js → ca-b8e89e47.js} +20 -20
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-alert_6.cjs.entry.js +17 -17
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-card.cjs.entry.js +11 -11
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-chip_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +24 -24
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dialog.cjs.entry.js +22 -17
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter_5.cjs.entry.js +18 -18
- package/dist/cjs/calcite-flow_4.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-icon_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-text.cjs.entry.js +16 -16
- package/dist/cjs/{calcite-input-time-picker-74396a94.js → calcite-input-time-picker-42ed419f.js} +64 -64
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +21 -21
- package/dist/cjs/calcite-input_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -16
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +15 -15
- package/dist/cjs/calcite-option_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-sheet.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +23 -9
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +29 -29
- package/dist/cjs/calcite-shell.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +11 -11
- package/dist/cjs/calcite-stepper.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile-select.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/{component-5d190962.js → component-65f2fe4b.js} +1 -1
- package/dist/cjs/{conditionalSlot-37ff4832.js → conditionalSlot-003e6975.js} +2 -2
- package/dist/cjs/{config-e76d9931.js → config-2282fdac.js} +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -2
- package/dist/cjs/{cs-5c693156.js → cs-f14626e8.js} +20 -20
- package/dist/cjs/{da-1a406d67.js → da-2fce32d4.js} +20 -20
- package/dist/cjs/{date-bb8f971c.js → date-e763caec.js} +2 -2
- package/dist/cjs/{de-11376da8.js → de-2c1fce6f.js} +20 -20
- package/dist/cjs/{de-at-a7437de2.js → de-at-94de293d.js} +20 -20
- package/dist/cjs/{de-ch-862dfe8d.js → de-ch-d42f4faf.js} +20 -20
- package/dist/cjs/{dom-795d4a33.js → dom-e11b7daf.js} +3 -3
- package/dist/cjs/{el-69fd471f.js → el-8092eeb9.js} +20 -20
- package/dist/cjs/{en-au-4af4c244.js → en-au-9bc4467f.js} +20 -20
- package/dist/cjs/{en-ca-dd0f74b8.js → en-ca-d9140239.js} +20 -20
- package/dist/cjs/{en-gb-d9916a0a.js → en-gb-f5e2af8e.js} +20 -20
- package/dist/cjs/{es-b96f4aa7.js → es-4b6327d7.js} +20 -20
- package/dist/cjs/{es-mx-7ce9a959.js → es-mx-f729412a.js} +20 -20
- package/dist/cjs/{et-ed1f6381.js → et-ec115eb3.js} +20 -20
- package/dist/cjs/{fi-16433386.js → fi-95701850.js} +20 -20
- package/dist/cjs/{filter-e600c2fe.js → filter-899cda85.js} +1 -1
- package/dist/cjs/{floating-ui-0f85d59c.js → floating-ui-a8693586.js} +4 -4
- package/dist/cjs/{focusTrapComponent-b19fd5d5.js → focusTrapComponent-48fdd3f6.js} +3 -3
- package/dist/cjs/{form-6dd8050a.js → form-a36bd0e5.js} +2 -2
- package/dist/cjs/{fr-ch-368648e3.js → fr-ch-a231f229.js} +20 -20
- package/dist/cjs/{fr-32b252ad.js → fr-e22a2684.js} +20 -20
- package/dist/cjs/{guid-e84a8375.js → guid-d99f21fe.js} +1 -1
- package/dist/cjs/{he-d139901b.js → he-d0070eb9.js} +20 -20
- package/dist/cjs/{hi-ba5e377e.js → hi-04615e27.js} +20 -20
- package/dist/cjs/{hr-87b5a9d8.js → hr-27fefb6d.js} +20 -20
- package/dist/cjs/{hu-3b80d082.js → hu-63da9819.js} +20 -20
- package/dist/cjs/{id-09dfbe6e.js → id-d4fe65cd.js} +20 -20
- package/dist/cjs/{index-89a62dc9.js → index-0b0f3737.js} +3 -3
- package/dist/cjs/{index-c134f2f6.js → index-b4e2f888.js} +3 -3
- package/dist/cjs/{index-0fb00064.js → index-fedf53b1.js} +2 -2
- package/dist/cjs/{input-8c28213d.js → input-ce93953f.js} +1 -1
- package/dist/cjs/{interactive-a128ac30.js → interactive-7ccdd728.js} +1 -1
- package/dist/cjs/{it-da71aa25.js → it-418a53bf.js} +20 -20
- package/dist/cjs/{it-ch-00a4c4b4.js → it-ch-7f4632ab.js} +20 -20
- package/dist/cjs/{ja-c3519ced.js → ja-6c5d5c7d.js} +20 -20
- package/dist/cjs/{key-47c9469a.js → key-cdfc85aa.js} +1 -1
- package/dist/cjs/{ko-ea8cd08b.js → ko-e4154b91.js} +20 -20
- package/dist/cjs/{label-726fc287.js → label-e18f62c9.js} +3 -3
- package/dist/cjs/{loadable-1c888c87.js → loadable-f3fe73a2.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-da840314.js → locale-7eb2f603.js} +5 -5
- package/dist/cjs/{logger-f177776b.js → logger-912d7f26.js} +2 -2
- package/dist/cjs/{lt-4e8161c8.js → lt-d6dae6fd.js} +20 -20
- package/dist/cjs/{lv-b976ad37.js → lv-bcf9724a.js} +20 -20
- package/dist/cjs/{math-089392ef.js → math-34746601.js} +1 -1
- package/dist/cjs/{mk-e2ea18b4.js → mk-171505d2.js} +20 -20
- package/dist/cjs/{nb-d81f921b.js → nb-0dcee19c.js} +20 -20
- package/dist/cjs/{nl-7249cded.js → nl-dace5864.js} +20 -20
- package/dist/cjs/{observers-18d87cb5.js → observers-affd684f.js} +2 -2
- package/dist/cjs/{openCloseComponent-3c540d25.js → openCloseComponent-044883e4.js} +2 -2
- package/dist/cjs/{pl-d93521bd.js → pl-7755a609.js} +20 -20
- package/dist/cjs/{pt-bf297919.js → pt-3121cc39.js} +20 -20
- package/dist/cjs/{pt-br-2c9c4ba2.js → pt-br-67b16e3a.js} +20 -20
- package/dist/cjs/{region-26804632.js → region-7f262d75.js} +1 -1
- package/dist/cjs/{resources-cf1791da.js → resources-1454138b.js} +1 -1
- package/dist/cjs/{resources-9c07e2ea.js → resources-18358747.js} +1 -1
- package/dist/cjs/{resources-b3dc59f7.js → resources-2392e12e.js} +1 -1
- package/dist/cjs/{resources-eeda5acf.js → resources-23a86b54.js} +1 -1
- package/dist/cjs/{resources-f895ff54.js → resources-2ae05f17.js} +1 -1
- package/dist/cjs/{resources-535f936c.js → resources-392a021f.js} +1 -1
- package/dist/cjs/{resources-388efec5.js → resources-51c2cde3.js} +1 -1
- package/dist/cjs/{resources-18f799c7.js → resources-6c04ccee.js} +1 -1
- package/dist/cjs/{resources-f9ab74c4.js → resources-72fc2b95.js} +1 -1
- package/dist/cjs/{resources-7aaf489b.js → resources-9b6cf400.js} +1 -1
- package/dist/cjs/{responsive-a61585b1.js → responsive-9d6c09ff.js} +1 -1
- package/dist/cjs/{ro-b770ba3d.js → ro-7f726306.js} +20 -20
- package/dist/cjs/{ru-f70d0afe.js → ru-fc11963d.js} +20 -20
- package/dist/cjs/{shared-list-render-546c7296.js → shared-list-render-3d6ec3ca.js} +7 -7
- package/dist/cjs/{sk-67e2fd96.js → sk-e85b9c15.js} +20 -20
- package/dist/cjs/{sl-cf79e6c6.js → sl-9eb375c2.js} +20 -20
- package/dist/cjs/solutions-components.cjs.js +5 -5
- package/dist/cjs/{sortableComponent-5dfc7ff8.js → sortableComponent-6983a0f0.js} +1 -1
- package/dist/cjs/{sr-02a5153e.js → sr-1d2513be.js} +20 -20
- package/dist/cjs/{sv-1c32f9ba.js → sv-f7693c9f.js} +20 -20
- package/dist/cjs/{t9n-ed5c03a7.js → t9n-64df74f3.js} +3 -3
- package/dist/cjs/{th-ddd7073f.js → th-0d2328bb.js} +20 -20
- package/dist/cjs/{time-a92ca33f.js → time-513586eb.js} +3 -3
- package/dist/cjs/{time-zones-a7e83971.js → time-zones-bb3f09ac.js} +1 -1
- package/dist/cjs/{tr-31fcd3f7.js → tr-2c074411.js} +20 -20
- package/dist/cjs/{uk-a0f9e2bc.js → uk-5e16db67.js} +20 -20
- package/dist/cjs/{utils-51a793a5.js → utils-5f5839d7.js} +2 -2
- package/dist/cjs/{utils-7e5609ab.js → utils-d0049d76.js} +5 -4
- package/dist/cjs/{vi-d484e1b9.js → vi-2a4d8334.js} +20 -20
- package/dist/cjs/{zh-cn-3d843268.js → zh-cn-126bcbc0.js} +20 -20
- package/dist/cjs/{zh-hk-4aacd6d2.js → zh-hk-aeeba861.js} +20 -20
- package/dist/cjs/{zh-tw-cbd770ad.js → zh-tw-0cfb6e20.js} +20 -20
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +10 -1
- package/dist/collection/demos/crowdsource-reporter.html +267 -266
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +1 -1
- package/dist/components/accordion-item.js +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-bar.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action-pad.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/block.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-dialog.js +8 -3
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +2 -2
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +16 -3
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/carousel-item.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +5 -5
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/crowdsource-reporter.js +11 -3
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/flow-item.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/input-date-picker.js +2 -2
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input2.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale2.js +2 -2
- package/dist/components/logger.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/navigation-user.js +1 -1
- package/dist/components/notice.js +2 -2
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/panel.js +2 -2
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/radio-button.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/responsive.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/segmented-control-item.js +1 -1
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components/tree-item.js +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +3 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +1 -1
- package/dist/components/value-list.js +2 -2
- package/dist/esm/{ExpandToggle-4d440eb0.js → ExpandToggle-d2cde0b5.js} +5 -5
- package/dist/esm/{FloatingArrow-4f645ccd.js → FloatingArrow-1ba04e83.js} +1 -1
- package/dist/esm/{Heading-80b3be96.js → Heading-82d9e017.js} +1 -1
- package/dist/esm/{Validation-cf136c56.js → Validation-594a63f5.js} +1 -1
- package/dist/esm/{app-globals-4aab2132.js → app-globals-177bd1cd.js} +5 -5
- package/dist/esm/{ar-d4e9c6ca.js → ar-a85b5d05.js} +20 -20
- package/dist/esm/{array-0e780f6f.js → array-e540e707.js} +1 -1
- package/dist/esm/{bg-e7db3070.js → bg-def28c6d.js} +20 -20
- package/dist/esm/{browser-b67d8df6.js → browser-e3f463e1.js} +1 -1
- package/dist/esm/{bs-154d0540.js → bs-86bb2bcb.js} +20 -20
- package/dist/esm/buffer-tools_3.entry.js +4 -4
- package/dist/esm/{ca-403d9586.js → ca-823e6ba8.js} +20 -20
- package/dist/esm/calcite-accordion_2.entry.js +10 -10
- package/dist/esm/calcite-action-bar.entry.js +14 -14
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu_2.entry.js +16 -16
- package/dist/esm/calcite-action-pad_2.entry.js +14 -14
- package/dist/esm/calcite-action_2.entry.js +20 -20
- package/dist/esm/calcite-alert_6.entry.js +17 -17
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block-section.entry.js +10 -10
- package/dist/esm/calcite-block_5.entry.js +27 -27
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card-group.entry.js +6 -6
- package/dist/esm/calcite-card.entry.js +11 -11
- package/dist/esm/calcite-carousel_2.entry.js +14 -14
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +6 -6
- package/dist/esm/calcite-chip_2.entry.js +16 -16
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
- package/dist/esm/calcite-color-picker.entry.js +12 -12
- package/dist/esm/calcite-combobox-item-group.entry.js +6 -6
- package/dist/esm/calcite-combobox_3.entry.js +24 -24
- package/dist/esm/calcite-date-picker-day_3.entry.js +13 -13
- package/dist/esm/calcite-dialog.entry.js +22 -17
- package/dist/esm/calcite-dropdown_2.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter_5.entry.js +18 -18
- package/dist/esm/calcite-flow_4.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +15 -15
- package/dist/esm/calcite-icon_2.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-number.entry.js +16 -16
- package/dist/esm/calcite-input-text.entry.js +16 -16
- package/dist/esm/{calcite-input-time-picker-cc675f33.js → calcite-input-time-picker-c45e1964.js} +64 -64
- package/dist/esm/calcite-input-time-picker.entry.js +20 -20
- package/dist/esm/calcite-input-time-zone.entry.js +21 -21
- package/dist/esm/calcite-input_2.entry.js +16 -16
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +3 -3
- package/dist/esm/calcite-menu-item.entry.js +10 -10
- package/dist/esm/calcite-menu.entry.js +9 -9
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +16 -16
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +15 -15
- package/dist/esm/calcite-option_2.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +12 -12
- package/dist/esm/calcite-pick-list-group.entry.js +10 -10
- package/dist/esm/calcite-pick-list-item.entry.js +15 -15
- package/dist/esm/calcite-pick-list.entry.js +13 -13
- package/dist/esm/calcite-radio-button-group.entry.js +8 -8
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +12 -12
- package/dist/esm/calcite-sheet.entry.js +10 -10
- package/dist/esm/calcite-shell-center-row.entry.js +23 -9
- package/dist/esm/calcite-shell-panel_14.entry.js +29 -29
- package/dist/esm/calcite-shell.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +11 -11
- package/dist/esm/calcite-stepper.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +7 -7
- package/dist/esm/calcite-table.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-group.entry.js +7 -7
- package/dist/esm/calcite-tile-select-group.entry.js +3 -3
- package/dist/esm/calcite-tile-select.entry.js +7 -7
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-time-picker.entry.js +13 -13
- package/dist/esm/calcite-tip-group.entry.js +2 -2
- package/dist/esm/calcite-tip-manager.entry.js +12 -12
- package/dist/esm/calcite-tip.entry.js +13 -13
- package/dist/esm/calcite-tooltip.entry.js +10 -10
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/{component-83541c88.js → component-09697fb8.js} +1 -1
- package/dist/esm/{conditionalSlot-8a0b08ef.js → conditionalSlot-720a3c33.js} +2 -2
- package/dist/esm/{config-16813c92.js → config-3af0e436.js} +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +9 -2
- package/dist/esm/{cs-4687cf9f.js → cs-87414fd8.js} +20 -20
- package/dist/esm/{da-27cb521d.js → da-f7060594.js} +20 -20
- package/dist/esm/{date-4fc03f44.js → date-8f6c3f50.js} +2 -2
- package/dist/esm/{de-1fcb8b55.js → de-18aa2195.js} +20 -20
- package/dist/esm/{de-at-621e3161.js → de-at-00f0ce55.js} +20 -20
- package/dist/esm/{de-ch-dbe106ba.js → de-ch-2bf886c0.js} +20 -20
- package/dist/esm/{dom-75c641a7.js → dom-6f6759df.js} +3 -3
- package/dist/esm/{el-60cb7e8e.js → el-0c5df4ce.js} +20 -20
- package/dist/esm/{en-au-6b31eadf.js → en-au-947d067e.js} +20 -20
- package/dist/esm/{en-ca-c62e2c29.js → en-ca-d80eb647.js} +20 -20
- package/dist/esm/{en-gb-7b86a861.js → en-gb-78272f13.js} +20 -20
- package/dist/esm/{es-b048cf9a.js → es-6b8b399b.js} +20 -20
- package/dist/esm/{es-mx-a469d043.js → es-mx-4f12df51.js} +20 -20
- package/dist/esm/{et-09e59731.js → et-11aeba76.js} +20 -20
- package/dist/esm/{fi-98448a04.js → fi-c44d11d6.js} +20 -20
- package/dist/esm/{filter-c0066fe2.js → filter-848e0efa.js} +1 -1
- package/dist/esm/{floating-ui-93b345b1.js → floating-ui-d21020a0.js} +4 -4
- package/dist/esm/{focusTrapComponent-35b3348c.js → focusTrapComponent-1ddc67c5.js} +3 -3
- package/dist/esm/{form-d45062d8.js → form-e9b1ad9a.js} +2 -2
- package/dist/esm/{fr-3a6bc75f.js → fr-cac28d20.js} +20 -20
- package/dist/esm/{fr-ch-dd9aa577.js → fr-ch-a324bd02.js} +20 -20
- package/dist/esm/{guid-b0fb1de3.js → guid-45e997d8.js} +1 -1
- package/dist/esm/{he-510944f3.js → he-eab95e66.js} +20 -20
- package/dist/esm/{hi-b7f35ddc.js → hi-cefe2a7e.js} +20 -20
- package/dist/esm/{hr-91d6e89b.js → hr-f863024d.js} +20 -20
- package/dist/esm/{hu-ab576bec.js → hu-2921d1d5.js} +20 -20
- package/dist/esm/{id-5ebe99df.js → id-4e25c1e7.js} +20 -20
- package/dist/esm/{index-3aaf8d41.js → index-92bcd383.js} +2 -2
- package/dist/esm/{index-46fa2a72.js → index-c8258692.js} +3 -3
- package/dist/esm/{index-19dc829d.js → index-e86ce97a.js} +3 -3
- package/dist/esm/{input-e01adc49.js → input-461c96ef.js} +1 -1
- package/dist/esm/{interactive-98ed6b6f.js → interactive-949b348f.js} +1 -1
- package/dist/esm/{it-62f24385.js → it-1f2ce2fc.js} +20 -20
- package/dist/esm/{it-ch-11bc01ef.js → it-ch-fa4f6a28.js} +20 -20
- package/dist/esm/{ja-4073b97b.js → ja-dd6ac9b5.js} +20 -20
- package/dist/esm/{key-e6b442de.js → key-2e7789c2.js} +1 -1
- package/dist/esm/{ko-c1f9c746.js → ko-3c269b4f.js} +20 -20
- package/dist/esm/{label-272c5973.js → label-1ef4763d.js} +3 -3
- package/dist/esm/{loadable-7cb2fc6f.js → loadable-421e634e.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-24516fec.js → locale-a75d14ff.js} +5 -5
- package/dist/esm/{logger-f75712ce.js → logger-5c7a2fec.js} +2 -2
- package/dist/esm/{lt-f293ef90.js → lt-8f5fd3eb.js} +20 -20
- package/dist/esm/{lv-cc60dc4f.js → lv-d1afc7ed.js} +20 -20
- package/dist/esm/{math-d7c8823c.js → math-abbf3537.js} +1 -1
- package/dist/esm/{mk-90d4457e.js → mk-794650fc.js} +20 -20
- package/dist/esm/{nb-3d8eb4cc.js → nb-800989aa.js} +20 -20
- package/dist/esm/{nl-a2e0732f.js → nl-634b9b85.js} +20 -20
- package/dist/esm/{observers-c83631e8.js → observers-2d4fa9e3.js} +2 -2
- package/dist/esm/{openCloseComponent-f642bffd.js → openCloseComponent-4621d4ae.js} +2 -2
- package/dist/esm/{pl-1e1abb9b.js → pl-45fb968c.js} +20 -20
- package/dist/esm/{pt-1bc85b37.js → pt-bd7887a6.js} +20 -20
- package/dist/esm/{pt-br-bd78f1f2.js → pt-br-d9181dce.js} +20 -20
- package/dist/esm/{region-a37e45f7.js → region-9343aba8.js} +1 -1
- package/dist/esm/{resources-c1a8d628.js → resources-2780a851.js} +1 -1
- package/dist/esm/{resources-14a1713f.js → resources-32f19aa5.js} +1 -1
- package/dist/esm/{resources-de1ba6bb.js → resources-3adf06cd.js} +1 -1
- package/dist/esm/{resources-be1618c8.js → resources-833bf39f.js} +1 -1
- package/dist/esm/{resources-aa7bb7b6.js → resources-912401b4.js} +1 -1
- package/dist/esm/{resources-8e2ed936.js → resources-ab131744.js} +1 -1
- package/dist/esm/{resources-35208c6c.js → resources-bc66182e.js} +1 -1
- package/dist/esm/{resources-bc1429eb.js → resources-d81723e9.js} +1 -1
- package/dist/esm/{resources-5956d3f9.js → resources-f6e948a0.js} +1 -1
- package/dist/esm/{resources-29590c8b.js → resources-fa50aa39.js} +1 -1
- package/dist/esm/{responsive-b2be423e.js → responsive-6cfebeae.js} +1 -1
- package/dist/esm/{ro-c1cb4571.js → ro-31fe0dcc.js} +20 -20
- package/dist/esm/{ru-deb7b95b.js → ru-e73bc075.js} +20 -20
- package/dist/esm/{shared-list-render-0d3e719c.js → shared-list-render-83bb7274.js} +7 -7
- package/dist/esm/{sk-e86a1a74.js → sk-e7e24146.js} +20 -20
- package/dist/esm/{sl-4f70ce5c.js → sl-ad96d047.js} +20 -20
- package/dist/esm/solutions-components.js +5 -5
- package/dist/esm/{sortableComponent-7f184466.js → sortableComponent-55f7a145.js} +1 -1
- package/dist/esm/{sr-bcde0bb0.js → sr-785166a3.js} +20 -20
- package/dist/esm/{sv-e585fbb5.js → sv-9f422817.js} +20 -20
- package/dist/esm/{t9n-9a5d28cf.js → t9n-23649a4a.js} +3 -3
- package/dist/esm/{th-f1746070.js → th-7e8b3dad.js} +20 -20
- package/dist/esm/{time-fbe17659.js → time-5ca488ba.js} +3 -3
- package/dist/esm/{time-zones-044d518b.js → time-zones-b8cfef3f.js} +1 -1
- package/dist/esm/{tr-065767bb.js → tr-1b1dd6db.js} +20 -20
- package/dist/esm/{uk-96e72322.js → uk-13d0afbf.js} +20 -20
- package/dist/esm/{utils-b5a6dbcd.js → utils-a564ca55.js} +5 -4
- package/dist/esm/{utils-dadbd166.js → utils-c1c0bd2c.js} +2 -2
- package/dist/esm/{vi-667fe4b6.js → vi-82ec876c.js} +20 -20
- package/dist/esm/{zh-cn-fbbbe429.js → zh-cn-c4181895.js} +20 -20
- package/dist/esm/{zh-hk-d11430a1.js → zh-hk-752cc263.js} +20 -20
- package/dist/esm/{zh-tw-4a1b522b.js → zh-tw-e653ba6c.js} +20 -20
- 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 +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +5 -5
- 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 +5 -5
- 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 +5 -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 +5 -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/card-group/card-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +10 -19
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -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 +5 -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/dialog/dialog.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -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 +5 -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 +5 -5
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- 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 +7 -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 +5 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -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 +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- 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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -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 +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/solutions-components/demos/crowdsource-reporter.html +267 -266
- package/dist/solutions-components/{p-6aab07ba.entry.js → p-087c3740.entry.js} +1 -1
- package/dist/solutions-components/{p-4f82eb55.js → p-08c18450.js} +1 -1
- package/dist/solutions-components/{p-ed844e16.entry.js → p-09d34b2b.entry.js} +3 -3
- package/dist/solutions-components/{p-d4f16e41.js → p-0af967af.js} +1 -1
- package/dist/solutions-components/{p-e01d27aa.entry.js → p-0f8241d2.entry.js} +1 -1
- package/dist/solutions-components/{p-d0f16cd3.entry.js → p-10a158fd.entry.js} +2 -2
- package/dist/solutions-components/{p-020143eb.entry.js → p-115af8e4.entry.js} +3 -3
- package/dist/solutions-components/{p-f898b163.js → p-12833b70.js} +1 -1
- package/dist/solutions-components/{p-91e05c99.js → p-13fd4eeb.js} +1 -1
- package/dist/solutions-components/{p-895e7b9c.js → p-177b4cbc.js} +5 -5
- package/dist/solutions-components/p-184b270d.entry.js +11 -0
- package/dist/solutions-components/{p-faf3343c.entry.js → p-191f30e1.entry.js} +2 -2
- package/dist/solutions-components/{p-5e406ad0.entry.js → p-19e89591.entry.js} +3 -3
- package/dist/solutions-components/{p-d3338131.entry.js → p-1afc5947.entry.js} +2 -2
- package/dist/solutions-components/{p-c97472e4.js → p-1b3684d7.js} +1 -1
- package/dist/solutions-components/{p-c9f94a25.js → p-1b59cd94.js} +1 -1
- package/dist/solutions-components/p-1e8af7ed.js +6 -0
- package/dist/solutions-components/{p-a584543f.js → p-1f65aed7.js} +1 -1
- package/dist/solutions-components/{p-2506309d.entry.js → p-1fafdc23.entry.js} +2 -2
- package/dist/solutions-components/{p-33d732d7.entry.js → p-20ed3f7f.entry.js} +2 -2
- package/dist/solutions-components/{p-fc243a76.entry.js → p-25f30972.entry.js} +2 -2
- package/dist/solutions-components/{p-621ad249.js → p-26ba0cc7.js} +2 -2
- package/dist/solutions-components/{p-47f85755.entry.js → p-2714ede8.entry.js} +4 -4
- package/dist/solutions-components/p-294cd25c.js +6 -0
- package/dist/solutions-components/p-2b9f9f7d.js +16 -0
- package/dist/solutions-components/{p-58338ff8.entry.js → p-2d9072d8.entry.js} +3 -3
- package/dist/solutions-components/{p-f966fadb.entry.js → p-2e0aea4e.entry.js} +3 -3
- package/dist/solutions-components/{p-f62b8031.js → p-2e42f34c.js} +1 -1
- package/dist/solutions-components/{p-6e93a997.entry.js → p-2f1ef41d.entry.js} +1 -1
- package/dist/solutions-components/p-368902f1.entry.js +6 -0
- package/dist/solutions-components/{p-60412359.js → p-39e21b70.js} +1 -1
- package/dist/solutions-components/{p-347f341e.js → p-3aee989b.js} +3 -3
- package/dist/solutions-components/{p-2154a0f9.entry.js → p-3af39767.entry.js} +1 -1
- package/dist/solutions-components/{p-91f0f556.entry.js → p-3ba388b6.entry.js} +3 -3
- package/dist/solutions-components/{p-16f52a67.js → p-3e87c19c.js} +1 -1
- package/dist/solutions-components/{p-efdd44e3.js → p-3f9ec755.js} +1 -1
- package/dist/solutions-components/{p-be9a6a87.entry.js → p-4416d650.entry.js} +3 -3
- package/dist/solutions-components/p-443be7fe.js +6 -0
- package/dist/solutions-components/{p-7b8d7eef.entry.js → p-49df6eb3.entry.js} +2 -2
- package/dist/solutions-components/{p-9e862c85.js → p-4a665563.js} +1 -1
- package/dist/solutions-components/{p-24ab8211.entry.js → p-4b15f4a4.entry.js} +2 -2
- package/dist/solutions-components/{p-097bf845.entry.js → p-4b47caf1.entry.js} +3 -3
- package/dist/solutions-components/{p-fae4708b.js → p-4bfecfe9.js} +1 -1
- package/dist/solutions-components/{p-3df0c310.entry.js → p-4d6e359e.entry.js} +2 -2
- package/dist/solutions-components/{p-da2fd30a.js → p-4e3a18b1.js} +1 -1
- package/dist/solutions-components/{p-39678a7e.js → p-4ff35ed4.js} +1 -1
- package/dist/solutions-components/{p-91371f97.js → p-51ab623a.js} +1 -1
- package/dist/solutions-components/{p-7ffa7eae.entry.js → p-545a48dc.entry.js} +3 -3
- package/dist/solutions-components/p-55bbfdbc.entry.js +6 -0
- package/dist/solutions-components/{p-876c3f5f.js → p-55d38454.js} +1 -1
- package/dist/solutions-components/{p-706cddd1.entry.js → p-5804e6e1.entry.js} +7 -7
- package/dist/solutions-components/{p-bb1de7a0.entry.js → p-58cff07f.entry.js} +3 -3
- package/dist/solutions-components/p-592ab45c.js +6 -0
- package/dist/solutions-components/p-5b5b78c0.js +6 -0
- package/dist/solutions-components/{p-72ab74b8.entry.js → p-614a66c4.entry.js} +3 -3
- package/dist/solutions-components/{p-c6dac8d2.js → p-6166d8b4.js} +5 -5
- package/dist/solutions-components/{p-9ff02b5e.js → p-61cc2efe.js} +1 -1
- package/dist/solutions-components/{p-96a983ab.entry.js → p-62c10928.entry.js} +1 -1
- package/dist/solutions-components/{p-3776809a.js → p-63a91fdb.js} +1 -1
- package/dist/solutions-components/p-63d334b2.entry.js +6 -0
- package/dist/solutions-components/{p-144b7a4d.js → p-677db47a.js} +1 -1
- package/dist/solutions-components/p-68375137.js +6 -0
- package/dist/solutions-components/{p-36b864ba.entry.js → p-6acd19c5.entry.js} +2 -2
- package/dist/solutions-components/{p-b3e498bd.js → p-6cad2a22.js} +1 -1
- package/dist/solutions-components/p-7059fc40.js +6 -0
- package/dist/solutions-components/{p-3cfc1e2e.js → p-70e78995.js} +1 -1
- package/dist/solutions-components/p-70eba636.entry.js +6 -0
- package/dist/solutions-components/{p-89334c32.js → p-71f31d39.js} +1 -1
- package/dist/solutions-components/{p-8d59545b.js → p-725a961a.js} +1 -1
- package/dist/solutions-components/{p-49fbb67d.js → p-74720d2b.js} +1 -1
- package/dist/solutions-components/{p-5230c9ff.entry.js → p-764ff506.entry.js} +2 -2
- package/dist/solutions-components/{p-d6902512.js → p-770a5a64.js} +1 -1
- package/dist/solutions-components/{p-15410144.js → p-77469834.js} +1 -1
- package/dist/solutions-components/{p-49ed272d.entry.js → p-77865541.entry.js} +2 -2
- package/dist/solutions-components/{p-0bfef9c6.entry.js → p-78df7603.entry.js} +3 -3
- package/dist/solutions-components/{p-efe845d9.js → p-78e09c03.js} +1 -1
- package/dist/solutions-components/{p-a9742ffc.entry.js → p-7a7951bd.entry.js} +3 -3
- package/dist/solutions-components/p-7cc8e95a.js +11 -0
- package/dist/solutions-components/{p-f746ec20.js → p-7d5d1b0a.js} +2 -2
- package/dist/solutions-components/{p-a02e2069.js → p-7eee9aa8.js} +1 -1
- package/dist/solutions-components/p-7f68e6a4.js +11 -0
- package/dist/solutions-components/{p-143f9e99.entry.js → p-7fb51464.entry.js} +3 -3
- package/dist/solutions-components/{p-8d0d5a69.js → p-80ff858b.js} +1 -1
- package/dist/solutions-components/p-8304ce4b.js +17 -0
- package/dist/solutions-components/{p-c0c6f4b2.js → p-85c068fd.js} +1 -1
- package/dist/solutions-components/{p-ff336351.js → p-85c3237c.js} +2 -2
- package/dist/solutions-components/{p-fb4f7ace.js → p-860099d5.js} +1 -1
- package/dist/solutions-components/{p-dac93fa8.js → p-86a5caf8.js} +1 -1
- package/dist/solutions-components/{p-b5ddeee9.js → p-86db882f.js} +1 -1
- package/dist/solutions-components/{p-e070ef82.entry.js → p-872986ce.entry.js} +3 -3
- package/dist/solutions-components/{p-f76d3cfe.js → p-8a2ccb1e.js} +1 -1
- package/dist/solutions-components/{p-471c6630.js → p-8cb9ecf6.js} +1 -1
- package/dist/solutions-components/{p-5949dd38.js → p-8d811472.js} +1 -1
- package/dist/solutions-components/{p-bb630f8c.entry.js → p-8dc9d5b6.entry.js} +1 -1
- package/dist/solutions-components/{p-40bfb158.entry.js → p-8ff43000.entry.js} +2 -2
- package/dist/solutions-components/{p-96027923.entry.js → p-91a83986.entry.js} +8 -8
- package/dist/solutions-components/{p-cd8e711f.entry.js → p-928f0b5e.entry.js} +1 -1
- package/dist/solutions-components/{p-c7f8b7f0.js → p-93d03bf0.js} +2 -2
- package/dist/solutions-components/{p-b13aca6a.js → p-977c099e.js} +1 -1
- package/dist/solutions-components/{p-7b862835.js → p-997afdca.js} +1 -1
- package/dist/solutions-components/{p-89f86585.js → p-9c1a6360.js} +1 -1
- package/dist/solutions-components/{p-6adaac20.js → p-9c5d5171.js} +2 -2
- package/dist/solutions-components/{p-d25fc2c2.js → p-9ce8e34f.js} +2 -2
- package/dist/solutions-components/p-9d86dd68.js +6 -0
- package/dist/solutions-components/{p-7475b8b4.entry.js → p-9e8d7c1d.entry.js} +5 -5
- package/dist/solutions-components/p-9e996faa.js +6 -0
- package/dist/solutions-components/{p-fe58f3f0.entry.js → p-a1473254.entry.js} +2 -2
- package/dist/solutions-components/{p-1effd2f3.entry.js → p-a1ed15b8.entry.js} +3 -3
- package/dist/solutions-components/{p-1c9db4df.entry.js → p-a329f05c.entry.js} +1 -1
- package/dist/solutions-components/{p-af0e57e2.js → p-a3df6501.js} +1 -1
- package/dist/solutions-components/{p-08e9cb30.entry.js → p-a52fa87b.entry.js} +3 -3
- package/dist/solutions-components/{p-353312fc.entry.js → p-a5f6a4b9.entry.js} +6 -6
- package/dist/solutions-components/{p-181ac808.entry.js → p-a6790373.entry.js} +3 -3
- package/dist/solutions-components/{p-96385535.entry.js → p-a693aa25.entry.js} +5 -5
- package/dist/solutions-components/{p-f0c96a6a.js → p-a71250ea.js} +1 -1
- package/dist/solutions-components/{p-bf187297.js → p-a7d249d9.js} +1 -1
- package/dist/solutions-components/p-a7d4b1a4.js +6 -0
- package/dist/solutions-components/{p-f61fdfc6.entry.js → p-ac9c4111.entry.js} +2 -2
- package/dist/solutions-components/{p-3ec0ab00.entry.js → p-acc4d847.entry.js} +2 -2
- package/dist/solutions-components/{p-4a291f79.js → p-ae019e19.js} +1 -1
- package/dist/solutions-components/{p-e93184af.entry.js → p-ae5ea416.entry.js} +1 -1
- package/dist/solutions-components/{p-fa80bc7e.js → p-b138a65e.js} +2 -2
- package/dist/solutions-components/{p-b0b1c672.entry.js → p-b5a5da41.entry.js} +4 -4
- package/dist/solutions-components/{p-daff208e.js → p-b90978d2.js} +1 -1
- package/dist/solutions-components/{p-fdeceaf6.entry.js → p-bab47a85.entry.js} +5 -5
- package/dist/solutions-components/{p-cf4273a0.js → p-bd35725f.js} +1 -1
- package/dist/solutions-components/{p-61aebbb5.js → p-bd7be7a7.js} +1 -1
- package/dist/solutions-components/{p-3517faab.entry.js → p-be6cd650.entry.js} +2 -2
- package/dist/solutions-components/{p-54a3d9b8.js → p-c0ceb17a.js} +1 -1
- package/dist/solutions-components/p-c2ceb29c.js +6 -0
- package/dist/solutions-components/p-c604728b.js +6 -0
- package/dist/solutions-components/{p-a922f993.entry.js → p-c63451e1.entry.js} +2 -2
- package/dist/solutions-components/{p-7d974838.js → p-c8ad7a15.js} +1 -1
- package/dist/solutions-components/{p-b10d9165.entry.js → p-c8e22575.entry.js} +6 -6
- package/dist/solutions-components/{p-685091db.js → p-c9422007.js} +1 -1
- package/dist/solutions-components/{p-d751e255.entry.js → p-c9715704.entry.js} +3 -3
- package/dist/solutions-components/p-cb8d90d1.js +11 -0
- package/dist/solutions-components/{p-5f63be31.entry.js → p-cc6f6e41.entry.js} +5 -5
- package/dist/solutions-components/{p-81681ba0.entry.js → p-cdc63710.entry.js} +2 -2
- package/dist/solutions-components/{p-3cadb18d.js → p-cdd08de8.js} +1 -1
- package/dist/solutions-components/{p-8a1a0f9b.entry.js → p-ce7b0b1a.entry.js} +3 -3
- package/dist/solutions-components/p-cf2947f6.entry.js +11 -0
- package/dist/solutions-components/p-d02fb95c.entry.js +17 -0
- package/dist/solutions-components/{p-8cdeed09.entry.js → p-d031cf50.entry.js} +3 -3
- package/dist/solutions-components/{p-3c775d00.js → p-d0ebd10d.js} +1 -1
- package/dist/solutions-components/{p-2ebd8a9b.entry.js → p-d154b5a1.entry.js} +2 -2
- package/dist/solutions-components/{p-2daeb1fe.js → p-d1a979b8.js} +1 -1
- package/dist/solutions-components/{p-b034e287.entry.js → p-d1b2484b.entry.js} +3 -3
- package/dist/solutions-components/{p-549cdc87.entry.js → p-d2c2a105.entry.js} +3 -3
- package/dist/solutions-components/{p-2a6ecaa9.entry.js → p-d390df76.entry.js} +2 -2
- package/dist/solutions-components/{p-296bd1c0.js → p-d3e1cc81.js} +1 -1
- package/dist/solutions-components/p-d4f7a87c.js +6 -0
- package/dist/solutions-components/{p-8d48a13f.js → p-d851b11e.js} +1 -1
- package/dist/solutions-components/{p-d75cf651.entry.js → p-d9d25da8.entry.js} +2 -2
- package/dist/solutions-components/{p-4253e9f1.js → p-d9e9fe80.js} +2 -2
- package/dist/solutions-components/p-d9f3778e.js +6 -0
- package/dist/solutions-components/{p-ec56afaa.js → p-daae2ae7.js} +1 -1
- package/dist/solutions-components/p-ddb37cba.entry.js +11 -0
- package/dist/solutions-components/{p-27bcce86.entry.js → p-df062602.entry.js} +3 -3
- package/dist/solutions-components/{p-e799935e.js → p-e2fd2e29.js} +1 -1
- package/dist/solutions-components/{p-5d8592e0.js → p-e3111b70.js} +1 -1
- package/dist/solutions-components/{p-745efeab.js → p-e37e117f.js} +1 -1
- package/dist/solutions-components/{p-b90ed430.entry.js → p-e4be63b6.entry.js} +2 -2
- package/dist/solutions-components/p-e4e7add2.js +11 -0
- package/dist/solutions-components/{p-44d04914.entry.js → p-e93a531c.entry.js} +2 -2
- package/dist/solutions-components/{p-233f219c.js → p-ec51378a.js} +1 -1
- package/dist/solutions-components/{p-54e5a55d.js → p-ee3c41d6.js} +1 -1
- package/dist/solutions-components/{p-1862084a.entry.js → p-ee487e75.entry.js} +3 -3
- package/dist/solutions-components/{p-7d542581.js → p-eed08718.js} +1 -1
- package/dist/solutions-components/{p-72522a67.js → p-ef773a13.js} +1 -1
- package/dist/solutions-components/{p-e7acd771.entry.js → p-f3119757.entry.js} +2 -2
- package/dist/solutions-components/{p-67e7f047.entry.js → p-f5789e08.entry.js} +8 -8
- package/dist/solutions-components/{p-1fc9919b.entry.js → p-f6cc1cf8.entry.js} +5 -5
- package/dist/solutions-components/{p-7fdb374f.js → p-f845da58.js} +1 -1
- package/dist/solutions-components/{p-8f556cfc.entry.js → p-fbf63d14.entry.js} +1 -1
- package/dist/solutions-components/{p-13d2e3cb.js → p-fc7c88c8.js} +1 -1
- package/dist/solutions-components/{p-27a4a537.js → p-fd019d15.js} +2 -2
- package/dist/solutions-components/{p-ea822f6e.js → p-fd40d066.js} +1 -1
- package/dist/solutions-components/{p-4bb08a47.entry.js → p-febf9f75.entry.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/package.json +6 -6
- package/dist/solutions-components/p-017f63c5.js +0 -6
- package/dist/solutions-components/p-0374291c.js +0 -6
- package/dist/solutions-components/p-086f8bbb.js +0 -6
- package/dist/solutions-components/p-1726f46c.js +0 -6
- package/dist/solutions-components/p-2bb1b8a8.entry.js +0 -6
- package/dist/solutions-components/p-319f79c2.js +0 -6
- package/dist/solutions-components/p-347fa724.js +0 -6
- package/dist/solutions-components/p-45ab1117.entry.js +0 -11
- package/dist/solutions-components/p-5d2cd0a4.js +0 -11
- package/dist/solutions-components/p-5e25a0b8.js +0 -11
- package/dist/solutions-components/p-5f6d9950.js +0 -6
- package/dist/solutions-components/p-713949f2.js +0 -6
- package/dist/solutions-components/p-7cc351f6.js +0 -6
- package/dist/solutions-components/p-866cc732.js +0 -6
- package/dist/solutions-components/p-8ac08cc3.entry.js +0 -17
- package/dist/solutions-components/p-8e0a95ff.js +0 -16
- package/dist/solutions-components/p-904a670f.js +0 -6
- package/dist/solutions-components/p-93b87dd4.entry.js +0 -11
- package/dist/solutions-components/p-986dd5b2.js +0 -17
- package/dist/solutions-components/p-9f98f213.js +0 -6
- package/dist/solutions-components/p-ad9d1221.js +0 -11
- package/dist/solutions-components/p-b658f264.js +0 -6
- package/dist/solutions-components/p-c64d61d9.entry.js +0 -6
- package/dist/solutions-components/p-d4e07230.entry.js +0 -11
- package/dist/solutions-components/p-efaa77a0.js +0 -11
- package/dist/solutions-components/p-f86c2a0c.entry.js +0 -6
- package/dist/solutions-components/p-fca48d30.entry.js +0 -6
- package/dist/solutions-components/p-fdbb52ca.js +0 -6
- /package/dist/cjs/{index-c44fa2e4.js → index-04255c05.js} +0 -0
- /package/dist/cjs/{index-p4VH55K1-8a6a97cb.js → index-p4VH55K1-3ec8b213.js} +0 -0
- /package/dist/esm/{index-8fda18f5.js → index-87ec7c0a.js} +0 -0
- /package/dist/esm/{index-p4VH55K1-881b80d8.js → index-p4VH55K1-c28a3519.js} +0 -0
- /package/dist/solutions-components/{p-794d1b98.js → p-1a3181c3.js} +0 -0
- /package/dist/solutions-components/{p-065e678f.js → p-6ae916a3.js} +0 -0
- /package/dist/solutions-components/{p-33ff2b9e.js → p-fc17754b.js} +0 -0
@@ -3,21 +3,21 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,f as t,h as i,H as o,g as a,c as n}from"./p-4e6eb06e.js";import{t as r,H as s,f as c,q as l}from"./p-
|
6
|
+
import{r as e,f as t,h as i,H as o,g as a,c as n}from"./p-4e6eb06e.js";import{t as r,H as s,f as c,q as l}from"./p-26ba0cc7.js";import{g as d}from"./p-eed08718.js";import{u as h,I as p}from"./p-770a5a64.js";import{s as u,a as f,c as b}from"./p-7f68e6a4.js";import{c as v,d as m}from"./p-177b4cbc.js";import{c as g}from"./p-85c3237c.js";import{g as x}from"./p-ae019e19.js";import{u as y,c as k,s as w,d as z}from"./p-cb8d90d1.js";import{i as j}from"./p-08c18450.js";import{f as C,c as E,e as H,b as L,r as D,F as P}from"./p-7d5d1b0a.js";import{d as F,a as R,c as $,u as O}from"./p-d9e9fe80.js";import{o as A}from"./p-93d03bf0.js";import{H as I}from"./p-977c099e.js";import{F as S}from"./p-ef773a13.js";import{i as T}from"./p-ec51378a.js";import"./p-51ab623a.js";import"./p-c8d3207e.js";import"./p-7eee9aa8.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
11
|
-
*/const _="button",B="button--text-visible",M="button--compact",q="slot-container",W="slot-container--hidden",G="text-container",J="text-container--visible",K="indicator-with-icon",N=class{constructor(i){e(this,i),this.mutationObserver=g("mutation",(()=>t(this))),this.guid=`calcite-action-${d()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-tooltip")))[0];t&&(t.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){v(this),k(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){
|
10
|
+
* v2.13.2
|
11
|
+
*/const _="button",B="button--text-visible",M="button--compact",q="slot-container",W="slot-container--hidden",G="text-container",J="text-container--visible",K="indicator-with-icon",N=class{constructor(i){e(this,i),this.mutationObserver=g("mutation",(()=>t(this))),this.guid=`calcite-action-${d()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-tooltip")))[0];t&&(t.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){v(this),k(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){u(this),j()&&await w(this)}componentDidLoad(){f(this)}disconnectedCallback(){m(this),z(this),this.mutationObserver?.disconnect()}componentDidRender(){h(this)}async setFocus(){await b(this),this.buttonEl?.focus()}renderTextContainer(){const{text:e,textEnabled:t}=this;return e?i("div",{class:{[G]:!0,[J]:t},key:"text-container"},e):null}renderIndicatorText(){const{indicator:e,messages:t,indicatorId:o,buttonId:a}=this;return i("div",{"aria-labelledby":a,"aria-live":"polite",class:"indicator-text",id:o,role:"region"},e?t.indicator:null)}renderIconContainer(){const{loading:e,icon:t,scale:o,el:a,iconFlipRtl:n,indicator:r}=this,s=e?i("calcite-loader",{inline:!0,label:this.messages.loading,scale:"l"===o?"l":"m"}):null,c=t?i("calcite-icon",{class:{[K]:r},flipRtl:n,icon:t,scale:x(this.scale)}):null,l=s||c,d=l||a.children?.length,h=i("div",{class:{[q]:!0,[W]:e}},i("slot",null));return d?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},l,h):null}render(){const{active:e,compact:t,disabled:a,icon:n,loading:s,textEnabled:c,label:l,text:d,indicator:h,indicatorId:u,buttonId:f,messages:b}=this,v=l||d,m=v?`${v}${h?` (${b.indicator})`:""}`:"",g={[_]:!0,[B]:c,[M]:t};return i(o,{key:"3b459307dcb6f8d373e70cd5c7a45d122565a70e"},i(p,{key:"3a81f1fb62a66f1dbd608f095ed90f2d47a9daf6",disabled:a},i("button",{key:"bb5249babc116d462becd6b9a056ca0d368c6e09","aria-busy":r(s),"aria-controls":h?u:null,"aria-label":m,"aria-pressed":r(e),class:g,disabled:a,id:f,ref:e=>this.buttonEl=e},this.renderIconContainer(),this.renderTextContainer(),!n&&h&&i("div",{class:"indicator-without-icon",key:"indicator-no-icon"})),i("slot",{key:"983989711d64076eca866c1928f9c777331fcba4",name:"tooltip",onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText()))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};N.style=':host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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:flex;background-color:transparent}:host,button{border-end-end-radius:var(--calcite-action-corner-radius-end-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-end-start-radius:var(--calcite-action-corner-radius-end-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-end-radius:var(--calcite-action-corner-radius-start-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-start-radius:var(--calcite-action-corner-radius-start-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)))}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-ui-focus-color, 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 )}.button:active{background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}.icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1));background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-ui-focus-color, 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([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:0.25rem;inline-size:1rem;position:relative}.indicator-without-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{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}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-color-foreground-1);opacity:var(--calcite-opacity-disabled)}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{background-color:var(--calcite-color-foreground-3);opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}';
|
12
12
|
/*!
|
13
13
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
14
14
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
15
|
-
* v2.13.
|
15
|
+
* v2.13.2
|
16
16
|
*/
|
17
17
|
const Q="container",U="close-button-container",V="has-header",X="header",Y="headerContainer",Z="aria-controls",ee="aria-expanded",te=new
|
18
18
|
/*!
|
19
19
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
20
20
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
21
|
-
* v2.13.
|
21
|
+
* v2.13.2
|
22
22
|
*/
|
23
|
-
class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyDownHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():T(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{s(e)||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},ie=class{constructor(t){e(this,t),this.calcitePopoverBeforeClose=n(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=n(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=n(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=n(this,"calcitePopoverOpen",6),this.mutationObserver=g("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${d()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?C(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),E(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:o}=this;e&&i&&!o&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(ee,r(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(Z,t),te.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(Z),e.removeAttribute(ee)),te.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=H,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?F(this):R(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){A(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),v(this),k(this),$(this),requestAnimationFrame((()=>this.setUpReferenceElement(this.hasLoaded)))}async componentWillLoad(){await w(this),f(this)}componentDidLoad(){u(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&A(this),this.hasLoaded=!0}disconnectedCallback(){this.mutationObserver?.disconnect(),this.removeReferences(),m(this),z(this),L(this,this.effectiveReferenceElement,this.el),F(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:o,overlayPositioning:a,flipDisabled:n,filteredFlipPlacements:r,offsetDistance:s,offsetSkidding:c,arrowEl:l}=this;return D(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:o,flipDisabled:n,flipPlacements:r,offsetDistance:s,offsetSkidding:c,arrowEl:l,type:"popover"},e)}async setFocus(){await b(this),t(this.el),c(this.el)}async updateFocusTrapElements(){O(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?l(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),R(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),F(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?i("div",{class:U,key:U},i("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,ref:e=>this.closeButtonEl=e,scale:this.scale,text:e.close},i("calcite-icon",{icon:"x",scale:x(this.scale)}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,o=e?i(I,{class:"heading",level:t},e):null;return o?i("div",{class:X,key:X},o,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:a,open:n,pointerDisabled:s,floatingLayout:c}=this,l=e&&n,d=!l,h=s?null:i(S,{floatingLayout:c,key:"floating-arrow",ref:this.storeArrowEl});return i(o,{key:"a563d48090d6e6c0c138023e169667834f657c4c","aria-hidden":r(d),"aria-label":a,"aria-live":"polite","calcite-hydrated-hidden":d,id:this.getId(),role:"dialog"},i("div",{key:"73053dbdce2cfc68fcd42667089d611e81010955",class:{[Q]:!0,[P.animation]:!0,[P.animationActive]:l},ref:this.setTransitionEl},h,i("div",{key:"1fbcd45ee42b10a67881ced74db2db051231c94d",class:{[V]:!!t,[Y]:!0}},this.renderHeader(),i("div",{key:"522abe801b98787863aac14d990b948d2d286156",class:"content"},i("slot",{key:"022a8f690288acdbac4ec1b3eccf807ffe382d5d"})),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ie.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, 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}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{N as calcite_action,ie as calcite_popover}
|
23
|
+
class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyDownHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():T(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{s(e)||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},ie=class{constructor(t){e(this,t),this.calcitePopoverBeforeClose=n(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=n(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=n(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=n(this,"calcitePopoverOpen",6),this.mutationObserver=g("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${d()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?C(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),E(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:o}=this;e&&i&&!o&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(ee,r(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(Z,t),te.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(Z),e.removeAttribute(ee)),te.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=H,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?F(this):R(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){A(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),v(this),k(this),$(this),requestAnimationFrame((()=>this.setUpReferenceElement(this.hasLoaded)))}async componentWillLoad(){await w(this),u(this)}componentDidLoad(){f(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&A(this),this.hasLoaded=!0}disconnectedCallback(){this.mutationObserver?.disconnect(),this.removeReferences(),m(this),z(this),L(this,this.effectiveReferenceElement,this.el),F(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:o,overlayPositioning:a,flipDisabled:n,filteredFlipPlacements:r,offsetDistance:s,offsetSkidding:c,arrowEl:l}=this;return D(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:o,flipDisabled:n,flipPlacements:r,offsetDistance:s,offsetSkidding:c,arrowEl:l,type:"popover"},e)}async setFocus(){await b(this),t(this.el),c(this.el)}async updateFocusTrapElements(){O(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?l(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),R(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),F(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?i("div",{class:U,key:U},i("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,ref:e=>this.closeButtonEl=e,scale:this.scale,text:e.close},i("calcite-icon",{icon:"x",scale:x(this.scale)}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,o=e?i(I,{class:"heading",level:t},e):null;return o?i("div",{class:X,key:X},o,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:a,open:n,pointerDisabled:s,floatingLayout:c}=this,l=e&&n,d=!l,h=s?null:i(S,{floatingLayout:c,key:"floating-arrow",ref:this.storeArrowEl});return i(o,{key:"a563d48090d6e6c0c138023e169667834f657c4c","aria-hidden":r(d),"aria-label":a,"aria-live":"polite","calcite-hydrated-hidden":d,id:this.getId(),role:"dialog"},i("div",{key:"73053dbdce2cfc68fcd42667089d611e81010955",class:{[Q]:!0,[P.animation]:!0,[P.animationActive]:l},ref:this.setTransitionEl},h,i("div",{key:"1fbcd45ee42b10a67881ced74db2db051231c94d",class:{[V]:!!t,[Y]:!0}},this.renderHeader(),i("div",{key:"522abe801b98787863aac14d990b948d2d286156",class:"content"},i("slot",{key:"022a8f690288acdbac4ec1b3eccf807ffe382d5d"})),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ie.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, 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}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{N as calcite_action,ie as calcite_popover}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,f as e,h as o,H as n,g as s}from"./p-4e6eb06e.js";import{i as r,z as a,o as
|
6
|
+
import{r as t,c as i,f as e,h as o,H as n,g as s}from"./p-4e6eb06e.js";import{i as r,z as a,o as c,g as l,t as h}from"./p-26ba0cc7.js";import{s as d,c as u,i as b,d as m,H as p}from"./p-9c5d5171.js";import{u as f,I as v}from"./p-770a5a64.js";import{n as g}from"./p-ec51378a.js";import{c as x,d as k,g as y}from"./p-9ce8e34f.js";import{a as w,s as z,c as j}from"./p-7f68e6a4.js";import{n as I,i as C,p as E,s as D,e as L,c as N,d as W,B as A}from"./p-177b4cbc.js";import{c as M}from"./p-85c3237c.js";import{C as G}from"./p-51ab623a.js";import{u as V,c as F,d as P,s as $}from"./p-cb8d90d1.js";import{g as O}from"./p-ae019e19.js";import{V as S}from"./p-e37e117f.js";import{s as U}from"./p-a71250ea.js";import"./p-eed08718.js";import"./p-08c18450.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
11
|
-
*/const B="number-button-item--horizontal",K="wrapper",R="number-button-item",H="inputNumberValidationMessage",T=class{constructor(e){t(this,e),this.calciteInternalInputNumberFocus=i(this,"calciteInternalInputNumberFocus",6),this.calciteInternalInputNumberBlur=i(this,"calciteInternalInputNumberBlur",6),this.calciteInputNumberInput=i(this,"calciteInputNumberInput",7),this.calciteInputNumberChange=i(this,"calciteInputNumberChange",6),this.previousValueOrigin="initial",this.mutationObserver=M("mutation",(()=>this.setDisabledAction())),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault()),"Enter"===t.key&&d(this)&&t.preventDefault())},this.clearInputValue=t=>{this.setNumberValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{"user"===this.previousValueOrigin&&this.value!==this.previousEmittedNumberValue&&(this.calciteInputNumberChange.emit(),this.setPreviousEmittedNumberValue(this.value))},this.inputNumberBlurHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputNumberBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;const i=t.composedPath();i.includes(this.inputWrapperEl)&&!i.includes(this.actionWrapperEl)&&this.setFocus()},this.inputNumberFocusHandler=()=>{this.calciteInternalInputNumberFocus.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return;const i=t.target.value;I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const e=I.delocalize(i);"insertFromPaste"===t.inputType?((!C(e)||this.integer&&(e.includes("e")||e.includes(".")))&&t.preventDefault(),this.setNumberValue({nativeEvent:t,origin:"user",value:E(e)}),this.childNumberEl.value=this.displayedValue):this.setNumberValue({nativeEvent:t,origin:"user",value:e})},this.inputNumberKeyDownHandler=t=>{if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return t.preventDefault(),void("Backspace"!==t.key&&"Delete"!==t.key||this.clearInputValue(t));if("ArrowUp"===t.key)return t.preventDefault(),void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...g,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)||e)"Enter"===t.key&&this.emitChangeIfUserModified();else{if(I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},t.key===I.decimal&&!this.integer){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(I.decimal))return}if(/[eE]/.test(t.key)&&!this.integer){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&!/[eE]/.test(this.childNumberEl.value))return}if("-"===t.key){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&this.childNumberEl.value.split("-").length<=2)return}t.preventDefault()}},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat)return;const e=this.maxString?parseFloat(this.maxString):null,o=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,o,i),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let n=!0;this.nudgeNumberValueIntervalId=window.setInterval((()=>{n?n=!1:this.incrementOrDecrementNumberValue(t,e,o,i)}),150)},this.nudgeButtonPointerUpHandler=t=>{r(t)&&window.clearInterval(this.nudgeNumberValueIntervalId)},this.nudgeButtonPointerOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.nudgeButtonPointerDownHandler=t=>{r(t)&&(t.preventDefault(),this.disabled||this.nudgeNumberValue(t.target.dataset.adjustment,t))},this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setNumberValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputNumberValue=t=>{this.childNumberEl&&(this.childNumberEl.value=t)},this.setPreviousEmittedNumberValue=t=>{this.previousEmittedNumberValue=this.normalizeValue(t)},this.setPreviousNumberValue=t=>{this.previousValue=this.normalizeValue(t)},this.setNumberValue=({committing:t=!1,nativeEvent:i,origin:e,previousValue:o,value:n})=>{I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const s=this.previousValue?.length>n.length||this.value?.length>n.length,r=this.integer?n.replace(/[e.]/g,""):n,a="."===r.charAt(r.length-1),l=a&&s?r:D(r),c=n&&!l?C(this.previousValue)?this.previousValue:"":l;let h=I.localize(c);"connected"===e||a||(h=L(h,c,I)),this.displayedValue=a&&s?`${h}${I.decimal}`:h,this.setPreviousNumberValue(o??this.value),this.previousValueOrigin=e,this.userChangedValue="user"===e&&this.value!==c,this.value=["-","."].includes(c)?"":c,"direct"===e&&(this.setInputNumberValue(h),this.setPreviousEmittedNumberValue(h)),i&&(this.calciteInputNumberInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=I.localize(this.previousValue)):t&&this.emitChangeIfUserModified())},this.inputNumberKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=void 0,this.clearable=!1,this.disabled=!1,this.enterKeyHint=void 0,this.form=void 0,this.groupSeparator=!1,this.icon=void 0,this.iconFlipRtl=!1,this.inputMode=void 0,this.integer=!1,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.suffixText=void 0,this.editingEnabled=!1,this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.displayedValue=void 0,this.slottedActionElDisabledInternally=!1}handleGlobalAttributesChanged(){e(this)}disabledWatcher(){this.setDisabledAction()}maxWatcher(){this.maxString=this.max?.toString()||null}minWatcher(){this.minString=this.min?.toString()||null}onMessagesChange(){}valueWatcher(t,i){if(!this.userChangedValue){if("Infinity"===t||"-Infinity"===t)return this.displayedValue=t,void(this.previousEmittedNumberValue=t);this.setNumberValue({origin:"direct",previousValue:i,value:null==t||""==t?"":C(t)?t:this.previousValue||""}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=a({},this.icon,"number")}get isClearable(){return this.clearable&&this.value.length>0}effectiveLocaleWatcher(t){V(this,this.effectiveLocale),I.numberFormatOptions={locale:t,numberingSystem:this.numberingSystem,useGrouping:!1}}connectedCallback(){N(this),F(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),x(this),u(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(b,this.onHiddenFormInputInput)}componentDidLoad(){w(this)}disconnectedCallback(){k(this),m(this),W(this),P(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(b,this.onHiddenFormInputInput)}async componentWillLoad(){z(this),this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=a({},this.icon,"number"),await $(this),this.setPreviousEmittedNumberValue(this.value),this.setPreviousNumberValue(this.value),this.warnAboutInvalidNumberValue(this.value),"Infinity"===this.value||"-Infinity"===this.value?(this.displayedValue=this.value,this.previousEmittedNumberValue=this.value):this.setNumberValue({origin:"connected",value:C(this.value)?this.value:""})}componentShouldUpdate(t,i,e){return!("value"===e&&t&&!C(t)&&(this.setNumberValue({origin:"reset",value:i}),1))}componentDidRender(){f(this)}async setFocus(){await j(this),this.childNumberEl?.focus()}async selectText(){this.childNumberEl?.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,i,e,o){const{value:n}=this;if("Infinity"===n||"-Infinity"===n)return;const s="up"===t?1:-1,r=this.integer&&"any"!==this.step?Math.round(this.step):this.step,a="any"===r?1:Math.abs(r||1),l=new A(""!==n?n:"0").add(""+a*s),c="number"==typeof e&&!isNaN(e)&&l.subtract(`${e}`).isNegative?`${e}`:"number"!=typeof i||isNaN(i)||l.subtract(`${i}`).isNegative?l.toString():`${i}`;this.setNumberValue({committing:!0,nativeEvent:o,origin:"user",value:c})}syncHiddenFormInput(t){U("number",this,t)}setDisabledAction(){const t=l(this.el,"action");t&&(this.disabled?(null==t.getAttribute("disabled")&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(t){return C(t)?t:""}warnAboutInvalidNumberValue(t){t&&!C(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){const t=c(this.el),i=o("div",{key:"cc2f276e80dee457d8a8f38e06d18967647e4591",class:"loader"},o("calcite-progress",{key:"2764fc118ec3063a7e76e0738050fa7b3872018a",label:this.messages.loading,type:"indeterminate"})),e=o("button",{key:"6bb6db58c8c20594f88c60f2d717ad9b4dfb9fe0","aria-label":this.messages.clear,class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},o("calcite-icon",{key:"1746fe8d0a79b4516beb7574ba6b74b6a5070d81",icon:"x",scale:O(this.scale)})),s=o("calcite-icon",{key:"4d57c3fedac7bedd8f9397c4b276866ee5b7237f",class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:O(this.scale)}),r="horizontal"===this.numberButtonType,a=o("button",{key:"c0e52d338c61d3d6f6349975751f6af707325db3","aria-hidden":"true",class:{[R]:!0,[B]:r},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerOutHandler,onPointerUp:this.nudgeButtonPointerUpHandler,tabIndex:-1,type:"button"},o("calcite-icon",{key:"28697a2ed4b3581c5d190c86ef3d7ab1d70823f8",icon:"chevron-up",scale:O(this.scale)})),l=o("button",{key:"11f9db5af2916069d412089875d53fdea0b453c0","aria-hidden":"true",class:{[R]:!0,[B]:r},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerOutHandler,onPointerUp:this.nudgeButtonPointerUpHandler,tabIndex:-1,type:"button"},o("calcite-icon",{key:"1614213fecd0d957cda096df5ddf220bacc49dca",icon:"chevron-down",scale:O(this.scale)})),d=o("div",{key:"e8822b7270ea89e13ebf3703b6f271be512c6a9b",class:"number-button-wrapper"},a,l),u=o("div",{key:"333318e5c2f5fbd0d307255c7a0a4eebde29b5c8",class:"prefix"},this.prefixText),b=o("div",{key:"4812a571237e8016e9d173036e663e91ef7df638",class:"suffix"},this.suffixText),m=o("input",{"aria-errormessage":H,"aria-invalid":h("invalid"===this.status),"aria-label":y(this),autocomplete:this.autocomplete,autofocus:!!this.el.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),inputMode:this.el.inputMode||this.el.getAttribute("inputmode")||"decimal",key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputNumberBlurHandler,onFocus:this.inputNumberFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputNumberKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.displayedValue});return o(n,{key:"a765b9d4616c91517c512bf08511e7dd979ba8cc",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},o(v,{key:"b9ea4743c23e8dc2773cfb600b0e345797c3558d",disabled:this.disabled},o("div",{key:"17dfcce5d569e546184d908cc595914d5aefe132",class:{[K]:!0,[G.rtl]:"rtl"===t},ref:t=>this.inputWrapperEl=t},"horizontal"!==this.numberButtonType||this.readOnly?null:l,this.prefixText?u:null,o("div",{key:"db2a55ec06a2418761f7a64c06b88680156870c3",class:"element-wrapper"},m,this.isClearable?e:null,this.requestedIcon?s:null,this.loading?i:null),o("div",{key:"26fa02f076266dd8e4e9441d17b708994bac580d",class:"action-wrapper",ref:t=>this.actionWrapperEl=t},o("slot",{key:"cf216669a1ef119c5512515f014be59ee6c8121e",name:"action"})),"vertical"!==this.numberButtonType||this.readOnly?null:d,this.suffixText?b:null,"horizontal"!==this.numberButtonType||this.readOnly?null:a,o(p,{key:"efc80f0a385d1d56971473fde6862738cb06b446",component:this})),this.validationMessage&&"invalid"===this.status?o(S,{icon:this.validationIcon,id:H,message:this.validationMessage,scale:this.scale,status:this.status}):null))}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleWatcher"]}}};T.style=":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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0px;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:-moz-placeholder-shown{text-overflow:ellipsis}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-focus-color, 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]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{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 )}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, 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 )}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::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}";export{T as calcite_input_number}
|
10
|
+
* v2.13.2
|
11
|
+
*/const B="number-button-item--horizontal",K="wrapper",R="number-button-item",H="inputNumberValidationMessage",T=class{constructor(e){t(this,e),this.calciteInternalInputNumberFocus=i(this,"calciteInternalInputNumberFocus",6),this.calciteInternalInputNumberBlur=i(this,"calciteInternalInputNumberBlur",6),this.calciteInputNumberInput=i(this,"calciteInputNumberInput",7),this.calciteInputNumberChange=i(this,"calciteInputNumberChange",6),this.previousValueOrigin="initial",this.mutationObserver=M("mutation",(()=>this.setDisabledAction())),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault()),"Enter"===t.key&&d(this)&&t.preventDefault())},this.clearInputValue=t=>{this.setNumberValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{"user"===this.previousValueOrigin&&this.value!==this.previousEmittedNumberValue&&(this.calciteInputNumberChange.emit(),this.setPreviousEmittedNumberValue(this.value))},this.inputNumberBlurHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputNumberBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;const i=t.composedPath();i.includes(this.inputWrapperEl)&&!i.includes(this.actionWrapperEl)&&this.setFocus()},this.inputNumberFocusHandler=()=>{this.calciteInternalInputNumberFocus.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return;const i=t.target.value;I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const e=I.delocalize(i);"insertFromPaste"===t.inputType?((!C(e)||this.integer&&(e.includes("e")||e.includes(".")))&&t.preventDefault(),this.setNumberValue({nativeEvent:t,origin:"user",value:E(e)}),this.childNumberEl.value=this.displayedValue):this.setNumberValue({nativeEvent:t,origin:"user",value:e})},this.inputNumberKeyDownHandler=t=>{if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return t.preventDefault(),void("Backspace"!==t.key&&"Delete"!==t.key||this.clearInputValue(t));if("ArrowUp"===t.key)return t.preventDefault(),void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...g,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)||e)"Enter"===t.key&&this.emitChangeIfUserModified();else{if(I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},t.key===I.decimal&&!this.integer){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(I.decimal))return}if(/[eE]/.test(t.key)&&!this.integer){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&!/[eE]/.test(this.childNumberEl.value))return}if("-"===t.key){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&this.childNumberEl.value.split("-").length<=2)return}t.preventDefault()}},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat)return;const e=this.maxString?parseFloat(this.maxString):null,o=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,o,i),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let n=!0;this.nudgeNumberValueIntervalId=window.setInterval((()=>{n?n=!1:this.incrementOrDecrementNumberValue(t,e,o,i)}),150)},this.nudgeButtonPointerUpHandler=t=>{r(t)&&window.clearInterval(this.nudgeNumberValueIntervalId)},this.nudgeButtonPointerOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.nudgeButtonPointerDownHandler=t=>{r(t)&&(t.preventDefault(),this.disabled||this.nudgeNumberValue(t.target.dataset.adjustment,t))},this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setNumberValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputNumberValue=t=>{this.childNumberEl&&(this.childNumberEl.value=t)},this.setPreviousEmittedNumberValue=t=>{this.previousEmittedNumberValue=this.normalizeValue(t)},this.setPreviousNumberValue=t=>{this.previousValue=this.normalizeValue(t)},this.setNumberValue=({committing:t=!1,nativeEvent:i,origin:e,previousValue:o,value:n})=>{I.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const s=this.previousValue?.length>n.length||this.value?.length>n.length,r=this.integer?n.replace(/[e.]/g,""):n,a="."===r.charAt(r.length-1),c=a&&s?r:D(r),l=n&&!c?C(this.previousValue)?this.previousValue:"":c;let h=I.localize(l);"connected"===e||a||(h=L(h,l,I)),this.displayedValue=a&&s?`${h}${I.decimal}`:h,this.setPreviousNumberValue(o??this.value),this.previousValueOrigin=e,this.userChangedValue="user"===e&&this.value!==l,this.value=["-","."].includes(l)?"":l,"direct"===e&&(this.setInputNumberValue(h),this.setPreviousEmittedNumberValue(h)),i&&(this.calciteInputNumberInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=I.localize(this.previousValue)):t&&this.emitChangeIfUserModified())},this.inputNumberKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=void 0,this.clearable=!1,this.disabled=!1,this.enterKeyHint=void 0,this.form=void 0,this.groupSeparator=!1,this.icon=void 0,this.iconFlipRtl=!1,this.inputMode=void 0,this.integer=!1,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.suffixText=void 0,this.editingEnabled=!1,this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.displayedValue=void 0,this.slottedActionElDisabledInternally=!1}handleGlobalAttributesChanged(){e(this)}disabledWatcher(){this.setDisabledAction()}maxWatcher(){this.maxString=this.max?.toString()||null}minWatcher(){this.minString=this.min?.toString()||null}onMessagesChange(){}valueWatcher(t,i){if(!this.userChangedValue){if("Infinity"===t||"-Infinity"===t)return this.displayedValue=t,void(this.previousEmittedNumberValue=t);this.setNumberValue({origin:"direct",previousValue:i,value:null==t||""==t?"":C(t)?t:this.previousValue||""}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=a({},this.icon,"number")}get isClearable(){return this.clearable&&this.value.length>0}effectiveLocaleWatcher(t){V(this,this.effectiveLocale),I.numberFormatOptions={locale:t,numberingSystem:this.numberingSystem,useGrouping:!1}}connectedCallback(){N(this),F(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),x(this),u(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(b,this.onHiddenFormInputInput)}componentDidLoad(){w(this)}disconnectedCallback(){k(this),m(this),W(this),P(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(b,this.onHiddenFormInputInput)}async componentWillLoad(){z(this),this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=a({},this.icon,"number"),await $(this),this.setPreviousEmittedNumberValue(this.value),this.setPreviousNumberValue(this.value),this.warnAboutInvalidNumberValue(this.value),"Infinity"===this.value||"-Infinity"===this.value?(this.displayedValue=this.value,this.previousEmittedNumberValue=this.value):this.setNumberValue({origin:"connected",value:C(this.value)?this.value:""})}componentShouldUpdate(t,i,e){return!("value"===e&&t&&!C(t)&&(this.setNumberValue({origin:"reset",value:i}),1))}componentDidRender(){f(this)}async setFocus(){await j(this),this.childNumberEl?.focus()}async selectText(){this.childNumberEl?.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,i,e,o){const{value:n}=this;if("Infinity"===n||"-Infinity"===n)return;const s="up"===t?1:-1,r=this.integer&&"any"!==this.step?Math.round(this.step):this.step,a="any"===r?1:Math.abs(r||1),c=new A(""!==n?n:"0").add(""+a*s),l="number"==typeof e&&!isNaN(e)&&c.subtract(`${e}`).isNegative?`${e}`:"number"!=typeof i||isNaN(i)||c.subtract(`${i}`).isNegative?c.toString():`${i}`;this.setNumberValue({committing:!0,nativeEvent:o,origin:"user",value:l})}syncHiddenFormInput(t){U("number",this,t)}setDisabledAction(){const t=c(this.el,"action");t&&(this.disabled?(null==t.getAttribute("disabled")&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(t){return C(t)?t:""}warnAboutInvalidNumberValue(t){t&&!C(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){const t=l(this.el),i=o("div",{key:"cc2f276e80dee457d8a8f38e06d18967647e4591",class:"loader"},o("calcite-progress",{key:"2764fc118ec3063a7e76e0738050fa7b3872018a",label:this.messages.loading,type:"indeterminate"})),e=o("button",{key:"6bb6db58c8c20594f88c60f2d717ad9b4dfb9fe0","aria-label":this.messages.clear,class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},o("calcite-icon",{key:"1746fe8d0a79b4516beb7574ba6b74b6a5070d81",icon:"x",scale:O(this.scale)})),s=o("calcite-icon",{key:"4d57c3fedac7bedd8f9397c4b276866ee5b7237f",class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:O(this.scale)}),r="horizontal"===this.numberButtonType,a=o("button",{key:"c0e52d338c61d3d6f6349975751f6af707325db3","aria-hidden":"true",class:{[R]:!0,[B]:r},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerOutHandler,onPointerUp:this.nudgeButtonPointerUpHandler,tabIndex:-1,type:"button"},o("calcite-icon",{key:"28697a2ed4b3581c5d190c86ef3d7ab1d70823f8",icon:"chevron-up",scale:O(this.scale)})),c=o("button",{key:"11f9db5af2916069d412089875d53fdea0b453c0","aria-hidden":"true",class:{[R]:!0,[B]:r},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerOutHandler,onPointerUp:this.nudgeButtonPointerUpHandler,tabIndex:-1,type:"button"},o("calcite-icon",{key:"1614213fecd0d957cda096df5ddf220bacc49dca",icon:"chevron-down",scale:O(this.scale)})),d=o("div",{key:"e8822b7270ea89e13ebf3703b6f271be512c6a9b",class:"number-button-wrapper"},a,c),u=o("div",{key:"333318e5c2f5fbd0d307255c7a0a4eebde29b5c8",class:"prefix"},this.prefixText),b=o("div",{key:"4812a571237e8016e9d173036e663e91ef7df638",class:"suffix"},this.suffixText),m=o("input",{"aria-errormessage":H,"aria-invalid":h("invalid"===this.status),"aria-label":y(this),autocomplete:this.autocomplete,autofocus:!!this.el.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),inputMode:this.el.inputMode||this.el.getAttribute("inputmode")||"decimal",key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputNumberBlurHandler,onFocus:this.inputNumberFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputNumberKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.displayedValue});return o(n,{key:"a765b9d4616c91517c512bf08511e7dd979ba8cc",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},o(v,{key:"b9ea4743c23e8dc2773cfb600b0e345797c3558d",disabled:this.disabled},o("div",{key:"17dfcce5d569e546184d908cc595914d5aefe132",class:{[K]:!0,[G.rtl]:"rtl"===t},ref:t=>this.inputWrapperEl=t},"horizontal"!==this.numberButtonType||this.readOnly?null:c,this.prefixText?u:null,o("div",{key:"db2a55ec06a2418761f7a64c06b88680156870c3",class:"element-wrapper"},m,this.isClearable?e:null,this.requestedIcon?s:null,this.loading?i:null),o("div",{key:"26fa02f076266dd8e4e9441d17b708994bac580d",class:"action-wrapper",ref:t=>this.actionWrapperEl=t},o("slot",{key:"cf216669a1ef119c5512515f014be59ee6c8121e",name:"action"})),"vertical"!==this.numberButtonType||this.readOnly?null:d,this.suffixText?b:null,"horizontal"!==this.numberButtonType||this.readOnly?null:a,o(p,{key:"efc80f0a385d1d56971473fde6862738cb06b446",component:this})),this.validationMessage&&"invalid"===this.status?o(S,{icon:this.validationIcon,id:H,message:this.validationMessage,scale:this.scale,status:this.status}):null))}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleWatcher"]}}};T.style=":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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0px;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:-moz-placeholder-shown{text-overflow:ellipsis}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-focus-color, 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]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{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 )}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, 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 )}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::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}";export{T as calcite_input_number}
|
@@ -3,15 +3,15 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,f as e,h as i,g as a,c as s,H as l}from"./p-4e6eb06e.js";import{g as n}from"./p-
|
6
|
+
import{r as t,f as e,h as i,g as a,c as s,H as l}from"./p-4e6eb06e.js";import{g as n}from"./p-eed08718.js";import{c as h}from"./p-85c3237c.js";import{i as r,r as o}from"./p-26ba0cc7.js";import{c,d,a as m,H as u}from"./p-9c5d5171.js";import{u as b,I as p}from"./p-770a5a64.js";import{i as g}from"./p-ec51378a.js";import{c as f,d as v,g as x}from"./p-9ce8e34f.js";import{s as k,a as _,c as $}from"./p-7f68e6a4.js";import{n as y,c as w,d as z,B as M}from"./p-177b4cbc.js";import{d as V,c as L}from"./p-bd7be7a7.js";import"./p-08c18450.js";import"./p-51ab623a.js";import"./p-ae019e19.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
11
|
-
*/function H(t,e,i){const a=e[0]-t[0];return a?(3*(e[1]-t[1])/a-i)/2:i}function j(t,e,i,a,s){const[l,n]=t,[h,r]=e,o=(h-l)/3;return`C ${s([l+o,n+o*i]).join(",")} ${s([h-o,r-o*a]).join(",")} ${s([h,r]).join(",")}`}const T=class{constructor(i){t(this,i),this.graphId=`calcite-graph-${n()}`,this.resizeObserver=h("resize",(()=>e(this))),this.data=[],this.colorStops=void 0,this.highlightMin=void 0,this.highlightMax=void 0,this.min=void 0,this.max=void 0}connectedCallback(){this.resizeObserver?.observe(this.el)}disconnectedCallback(){this.resizeObserver?.disconnect()}render(){const{data:t,colorStops:e,el:a,highlightMax:s,highlightMin:l,min:n,max:h}=this,r=this.graphId,{clientHeight:o,clientWidth:c}=a;if(!t||0===t.length)return i("svg",{"aria-hidden":"true",class:"svg",height:o,preserveAspectRatio:"none",viewBox:`0 0 ${c} ${o}`,width:c});const{min:d,max:m}=function(t){const[e,i]=t[0];return t.reduce((({min:t,max:e},[i,a])=>({min:[Math.min(t[0],i),Math.min(t[1],a)],max:[Math.max(e[0],i),Math.max(e[1],a)]})),{min:[e,i],max:[e,i]})}(t);let u=d,b=m;(n<d[0]||n>d[0])&&(u=[n,0]),(h>m[0]||h<m[0])&&(b=[h,m[1]]);const p=function({width:t,height:e,min:i,max:a}){const s=a[0]-i[0],l=a[1]-i[1];return a=>[(a[0]-i[0])/s*t,e-a[1]/l*e]}({min:u,max:b,width:c,height:o}),[
|
10
|
+
* v2.13.2
|
11
|
+
*/function H(t,e,i){const a=e[0]-t[0];return a?(3*(e[1]-t[1])/a-i)/2:i}function j(t,e,i,a,s){const[l,n]=t,[h,r]=e,o=(h-l)/3;return`C ${s([l+o,n+o*i]).join(",")} ${s([h-o,r-o*a]).join(",")} ${s([h,r]).join(",")}`}const T=class{constructor(i){t(this,i),this.graphId=`calcite-graph-${n()}`,this.resizeObserver=h("resize",(()=>e(this))),this.data=[],this.colorStops=void 0,this.highlightMin=void 0,this.highlightMax=void 0,this.min=void 0,this.max=void 0}connectedCallback(){this.resizeObserver?.observe(this.el)}disconnectedCallback(){this.resizeObserver?.disconnect()}render(){const{data:t,colorStops:e,el:a,highlightMax:s,highlightMin:l,min:n,max:h}=this,r=this.graphId,{clientHeight:o,clientWidth:c}=a;if(!t||0===t.length)return i("svg",{"aria-hidden":"true",class:"svg",height:o,preserveAspectRatio:"none",viewBox:`0 0 ${c} ${o}`,width:c});const{min:d,max:m}=function(t){const[e,i]=t[0];return t.reduce((({min:t,max:e},[i,a])=>({min:[Math.min(t[0],i),Math.min(t[1],a)],max:[Math.max(e[0],i),Math.max(e[1],a)]})),{min:[e,i],max:[e,i]})}(t);let u=d,b=m;(n<d[0]||n>d[0])&&(u=[n,0]),(h>m[0]||h<m[0])&&(b=[h,m[1]]);const p=function({width:t,height:e,min:i,max:a}){const s=a[0]-i[0],l=a[1]-i[1];return a=>[(a[0]-i[0])/s*t,e-a[1]/l*e]}({min:u,max:b,width:c,height:o}),[g]=p([l,b[1]]),[f]=p([s,b[1]]),v=function({data:t,min:e,max:i,t:a}){if(0===t.length)return"";const[s,l]=a(t[0]),[n,h]=a(e),[r]=a(i);let o,c,d;const m=t.reduce(((e,i,s)=>{if(c=t[s-2],d=t[s-1],s>1){const t=function(t,e,i){const a=e[0]-t[0],s=i[0]-e[0],l=(e[1]-t[1])/(a||s<0&&0),n=(i[1]-e[1])/(s||a<0&&0),h=(l*s+n*a)/(a+s);return(Math.sign(l)+Math.sign(n))*Math.min(Math.abs(l),Math.abs(n),.5*Math.abs(h))||0}(c,d,i),s=void 0===o?H(c,d,t):o,l=j(c,d,s,t,a);return o=t,`${e} ${l}`}return e}),`M ${n},${h} L ${n},${l} L ${s},${l}`),u=t[t.length-1];return`${m} ${j(d,u,o,H(d,u,o),a)} L ${r},${h} Z`}({data:t,min:d,max:m,t:p}),x=e?`url(#linear-gradient-${r})`:void 0;return i("svg",{"aria-hidden":"true",class:"svg",height:o,preserveAspectRatio:"none",viewBox:`0 0 ${c} ${o}`,width:c},e?i("defs",null,i("linearGradient",{id:`linear-gradient-${r}`,x1:"0",x2:"1",y1:"0",y2:"0"},e.map((({offset:t,color:e,opacity:a})=>i("stop",{offset:100*t+"%","stop-color":e,"stop-opacity":a}))))):null,void 0!==l?[i("mask",{height:"100%",id:`${r}1`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M 0,0\n L ${g-1},0\n L ${g-1},${o}\n L 0,${o}\n Z\n `,fill:"white"})),i("mask",{height:"100%",id:`${r}2`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M ${g+1},0\n L ${f-1},0\n L ${f-1},${o}\n L ${g+1}, ${o}\n Z\n `,fill:"white"})),i("mask",{height:"100%",id:`${r}3`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M ${f+1},0\n L ${c},0\n L ${c},${o}\n L ${f+1}, ${o}\n Z\n `,fill:"white"})),i("path",{class:"graph-path",d:v,fill:x,mask:`url(#${r}1)`}),i("path",{class:"graph-path--highlight",d:v,fill:x,mask:`url(#${r}2)`}),i("path",{class:"graph-path",d:v,fill:x,mask:`url(#${r}3)`})]:i("path",{class:"graph-path",d:v,fill:x}))}get el(){return a(this)}};T.style=":host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;block-size:100%;inline-size:100%;padding:0px}.svg .graph-path--highlight{fill:var(--calcite-color-brand);opacity:0.5}:host([hidden]){display:none}[hidden]{display:none}";
|
12
12
|
/*!
|
13
13
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
14
14
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
15
|
-
* v2.13.
|
15
|
+
* v2.13.2
|
16
16
|
*/
|
17
|
-
const X="container",D="container--range",C="hyphen",S="hyphen--wrap",I="thumb",A="thumb--active",F="thumb--minValue",R="thumb--precise",P="thumb--value",O="tick",N="tick--active",W="tick__label",B="tick__label--max",U="tick__label--min";function Z(t){return Array.isArray(t)}const G=class{constructor(e){t(this,e),this.calciteSliderInput=s(this,"calciteSliderInput",6),this.calciteSliderChange=s(this,"calciteSliderChange",6),this.handleKeyDown=t=>{const e=this.shouldMirror(),{activeProp:i,max:a,min:s,pageStep:l,step:n}=this,h=this[i],{key:r}=t;if(f(r))return void t.preventDefault();let o;if("ArrowUp"===r||"ArrowRight"===r?o=h+n*(e&&"ArrowRight"===r?-1:1):"ArrowDown"===r||"ArrowLeft"===r?o=h-n*(e&&"ArrowLeft"===r?-1:1):"PageUp"===r?l&&(o=h+l):"PageDown"===r?l&&(o=h-l):"Home"===r?o=s:"End"===r&&(o=a),isNaN(o))return;t.preventDefault();const c=Number(o.toFixed(V(n)));this.setValue({[i]:this.clamp(c,i)})},this.activeProp="value",this.guid=`calcite-slider-${n()}`,this.onThumbBlur=()=>{this.activeProp=null},this.onThumbFocus=t=>{this.activeProp=t.currentTarget.getAttribute("data-value-prop")},this.onThumbPointerDown=t=>{this.pointerDownDragStart(t,t.currentTarget.getAttribute("data-value-prop"))},this.onTrackPointerDown=t=>{this.pointerDownDragStart(t,"minMaxValue")},this.dragUpdate=t=>{if(!this.disabled&&(t.preventDefault(),this.dragProp)){const e=this.mapToRange(t.clientX||t.pageX);if(Z(this.value)&&"minMaxValue"===this.dragProp)if(this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange){const t=e-this.minValueDragRange,i=e+this.maxValueDragRange;i<=this.max&&t>=this.min&&i-t===this.minMaxValueRange&&this.setValue({minValue:this.clamp(t,"minValue"),maxValue:this.clamp(i,"maxValue")})}else this.minValueDragRange=e-this.minValue,this.maxValueDragRange=this.maxValue-e,this.minMaxValueRange=this.maxValue-this.minValue;else this.setValue({[this.dragProp]:this.clamp(e,this.dragProp)})}},this.pointerUpDragEnd=t=>{!this.disabled&&r(t)&&this.dragEnd(t)},this.dragEnd=t=>{this.disabled||(this.removeDragListeners(),this.focusActiveHandle(t.clientX),this.lastDragPropValue!=this[this.dragProp]&&this.emitChange(),this.dragProp=null,this.lastDragPropValue=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.minMaxValueRange=null)},this.storeTrackRef=t=>{this.trackEl=t},this.storeThumbRef=t=>{t&&("minValue"===t.getAttribute("data-value-prop")?this.minHandle=t:this.maxHandle=t)},this.formatValue=t=>(y.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},y.localize(t.toString())),this.disabled=!1,this.fillPlacement="start",this.form=void 0,this.groupSeparator=!1,this.hasHistogram=!1,this.histogram=void 0,this.histogramStops=void 0,this.labelHandles=!1,this.labelFormatter=void 0,this.labelTicks=!1,this.max=100,this.maxLabel=void 0,this.maxValue=void 0,this.min=0,this.minLabel=void 0,this.minValue=void 0,this.mirrored=!1,this.name=void 0,this.numberingSystem=void 0,this.pageStep=void 0,this.precise=!1,this.required=!1,this.snap=!1,this.step=1,this.ticks=void 0,this.value=0,this.scale="m",this.effectiveLocale="",this.minMaxValueRange=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.tickValues=[]}histogramWatcher(t){this.hasHistogram=!!t}ticksWatcher(){this.tickValues=this.generateTickValues()}valueHandler(){this.setMinMaxFromValue()}minMaxValueHandler(){this.setValueFromMinMax()}connectedCallback(){w(this),this.setMinMaxFromValue(),this.setValueFromMinMax(),g(this),c(this)}disconnectedCallback(){v(this),d(this),z(this),this.removeDragListeners()}componentWillLoad(){k(this),Z(this.value)||(this.value=this.snap?this.getClosestStep(this.value):this.clamp(this.value)),this.ticksWatcher(),this.histogramWatcher(this.histogram),m(this,this.value)}componentDidLoad(){_(this)}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),Z(this.value)&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels())),this.hideObscuredBoundingTickLabels(),b(this)}render(){const t=this.el.id||this.guid,e=Z(this.value)?this.maxValue:this.value,a=this.minValue||this.min,s=this.shouldUseMinValue(),n=100*this.getUnitInterval(s?this.minValue:a),h=100*this.getUnitInterval(e),r=this.shouldMirror(),o=Z(this.value),c=this.buildThumbType("max"),d=this.renderThumb({type:c,thumbPlacement:c.includes("histogram")?"below":"above",maxInterval:h,minInterval:n,mirror:r}),m=this.buildThumbType("min"),b=o&&this.renderThumb({type:m,thumbPlacement:m.includes("histogram")||m.includes("precise")?"below":"above",maxInterval:h,minInterval:n,mirror:r}),f=o?"start":this.fillPlacement,g="none"===f?{left:"unset",right:"unset"}:"end"===f?{left:`${r?n:h}%`,right:`${r?h:n}%`}:{left:`${r?100-h:n}%`,right:`${r?n:100-h}%`};return i(l,{key:"dee9376120224b51dfa12f3e87fbdce4a481a1ed",id:t,onKeyDown:this.handleKeyDown,onTouchStart:this.handleTouchStart},i(p,{key:"65bca4d477d57ced846ef97b466917b6d7fc2f21",disabled:this.disabled},i("div",{key:"99dd57b50ded2302ca1d255708d9e4bd90de3ecb","aria-label":x(this),class:{[X]:!0,[D]:o,[`scale--${this.scale}`]:!0}},this.renderGraph(),i("div",{key:"47647c0d347232a0ddb384333b15860a0264aefa",class:"track",ref:this.storeTrackRef},i("div",{key:"3dc176871f6245f2dde77a016ddc747ad9571d3d",class:"track__range",onPointerDown:this.onTrackPointerDown,style:g}),i("div",{key:"0c08b977678d6ac7e8b9944157e51948969a5dc5",class:"ticks"},this.tickValues.map((t=>{const l=100*this.getUnitInterval(t)+"%";let n=!1;return"start"!==f&&"end"!==f||(n=s?t>=this.minValue&&t<=this.maxValue:t>=("start"===f?a:e)&&t<=("start"===f?e:this.max)),i("span",{class:{[O]:!0,[N]:n},style:{left:r?"":l,right:r?l:""}},this.renderTickLabel(t))})))),i("div",{key:"51996cb05142dbeec20093ca12b017adee23f293",class:"thumb-container"},b,d,i(u,{key:"6fd5c00374205d47e226a417674264417323a5c3",component:this})))))}renderThumb({type:t,mirror:e,thumbPlacement:a,minInterval:s,maxInterval:l}){const n=t.includes("labeled"),h=t.includes("precise"),r=t.includes("min"),o=Z(this.value),c=r?this.minValue:o?this.maxValue:this.value,d=r?"minValue":o?"maxValue":"value",m=r?this.minLabel:o?this.maxLabel:this.minLabel,u=r?this.minValue:c,b="minValue"===d?this.internalLabelFormatter(this.minValue,"min"):"maxValue"===d?this.internalLabelFormatter(this.maxValue,"max"):this.internalLabelFormatter(c,"value"),p=r?{left:`${e?100-s:s}%`}:{right:`${e?l:100-l}%`},f="handle__label "+(r?"handle__label--minValue":"handle__label--value"),g=[...n?[i("span",{"aria-hidden":"true",class:f},b),i("span",{"aria-hidden":"true",class:`${f} static`},b),i("span",{"aria-hidden":"true",class:`${f} transformed`},b)]:[],i("div",{class:"handle"}),h&&i("div",{class:"handle-extension"})];return"below"===a&&g.reverse(),i("div",{"aria-label":m,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":u,class:{[I]:!0,[P]:!r,[A]:"minMaxValue"!==this.lastDragProp&&this.dragProp===d,[R]:h,[F]:r},"data-value-prop":d,key:t,onBlur:this.onThumbBlur,onFocus:this.onThumbFocus,onPointerDown:this.onThumbPointerDown,ref:this.storeThumbRef,role:"slider",style:p,tabIndex:0},g)}renderGraph(){return this.histogram?i("calcite-graph",{class:"graph",colorStops:this.histogramStops,data:this.histogram,highlightMax:Z(this.value)?this.maxValue:this.value,highlightMin:Z(this.value)?this.minValue:this.min,max:this.max,min:this.min}):null}renderTickLabel(t){const{hasHistogram:e,labelHandles:a,labelTicks:s,max:l,min:n,precise:h,value:r}=this,o=Z(r),c=t===n,d=t===l,m=c||d;return!s||(e||!m&&h&&o)&&(!e||!m&&(h||a))?null:i("span",{class:{[W]:!0,[U]:c,[B]:d}},this.internalLabelFormatter(t,"tick"))}pointerDownHandler(t){if(this.disabled||!r(t))return;const e=t.clientX||t.pageX,i=this.mapToRange(e);let a="value";Z(this.value)&&(a=i>=this.minValue&&i<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-i)<Math.abs(this.minValue-i)||i>=this.maxValue?"maxValue":"minValue"),this.lastDragPropValue=this[a],this.dragStart(a),this.el.shadowRoot.querySelector(`.${I}:active`)||this.setValue({[a]:this.clamp(i,a)}),this.focusActiveHandle(e)}handleTouchStart(t){t.preventDefault()}async setFocus(){await $(this);const t=this.minHandle?this.minHandle:this.maxHandle;t?.focus()}buildThumbType(t){const e=[t];return this.labelHandles&&e.push("labeled"),this.precise&&e.push("precise"),this.hasHistogram&&e.push("histogram"),e.join("-")}setValueFromMinMax(){const{minValue:t,maxValue:e}=this;"number"==typeof t&&"number"==typeof e&&(this.value=[t,e])}setMinMaxFromValue(){const{value:t}=this;Z(t)&&(this.minValue=t[0],this.maxValue=t[1])}onLabelClick(){this.setFocus()}shouldMirror(){return this.mirrored&&!this.hasHistogram}shouldUseMinValue(){return!!Z(this.value)&&(this.hasHistogram&&0===this.maxValue||!this.hasHistogram&&0===this.minValue)}getTickDensity(){const t=(this.max-this.min)/this.ticks/250;return t<1?1:t}generateTickValues(){const t=this.ticks??0;if(t<=0)return[];const e=[this.min],i=t*this.getTickDensity();let a=this.min;for(;a<this.max;)a+=i,e.push(Math.min(a,this.max));return e.includes(this.max)||e.push(this.max),e}pointerDownDragStart(t,e){r(t)&&this.dragStart(e)}dragStart(t){this.dragProp=t,this.lastDragProp=this.dragProp,this.activeProp=t,window.addEventListener("pointermove",this.dragUpdate),window.addEventListener("pointerup",this.pointerUpDragEnd),window.addEventListener("pointercancel",this.dragEnd)}focusActiveHandle(t){"minValue"===this.dragProp?this.minHandle.focus():"maxValue"===this.dragProp||"value"===this.dragProp?this.maxHandle.focus():"minMaxValue"===this.dragProp&&this.getClosestHandle(t).focus()}emitInput(){this.calciteSliderInput.emit()}emitChange(){this.calciteSliderChange.emit()}removeDragListeners(){window.removeEventListener("pointermove",this.dragUpdate),window.removeEventListener("pointerup",this.pointerUpDragEnd),window.removeEventListener("pointercancel",this.dragEnd)}setValue(t){let e;Object.keys(t).forEach((i=>{const a=t[i];e||(e=this[i]!==a),this[i]=a})),e&&(this.dragProp||this.emitChange(),this.emitInput())}clamp(t,e){return t=L(t,this.min,this.max),"maxValue"===e&&(t=Math.max(t,this.minValue)),"minValue"===e&&(t=Math.min(t,this.maxValue)),t}mapToRange(t){const e=this.max-this.min,{left:i,width:a}=this.trackEl.getBoundingClientRect(),s=(t-i)/a,l=this.shouldMirror(),n=this.clamp(this.min+e*(l?1-s:s)),h=Number(n.toFixed(V(this.step)));return this.snap&&this.step?this.getClosestStep(h):h}getClosestStep(t){const{max:e,min:i,step:a}=this,s=new M(`${Math.floor((t-i)/a)}`).multiply(`${a}`).add(`${i}`).toString();let l=this.clamp(Number(s));return l>e&&(l-=a),l}getClosestHandle(t){return this.getDistanceX(this.maxHandle,t)>this.getDistanceX(this.minHandle,t)?this.minHandle:this.maxHandle}getDistanceX(t,e){return Math.abs(t.getBoundingClientRect().left-e)}getFontSizeForElement(t){return Number(window.getComputedStyle(t).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(t){return((t=this.clamp(t))-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(t){const e=this.el.shadowRoot.querySelector(`.handle__label--${t}`),i=this.el.shadowRoot.querySelector(`.handle__label--${t}.static`),a=this.el.shadowRoot.querySelector(`.handle__label--${t}.transformed`),s=i.getBoundingClientRect(),l=this.getHostOffset(s.left,s.right);e.style.transform=`translateX(${l}px)`,a.style.transform=`translateX(${l}px)`}hyphenateCollidingRangeHandleLabels(){const{shadowRoot:t}=this.el,e=this.shouldMirror(),i=e?"value":"minValue",a=e?"minValue":"value",s=t.querySelector(`.handle__label--${i}`),l=t.querySelector(`.handle__label--${i}.static`),n=t.querySelector(`.handle__label--${i}.transformed`),h=this.getHostOffset(l.getBoundingClientRect().left,l.getBoundingClientRect().right),r=t.querySelector(`.handle__label--${a}`),o=t.querySelector(`.handle__label--${a}.static`),c=t.querySelector(`.handle__label--${a}.transformed`),d=this.getHostOffset(o.getBoundingClientRect().left,o.getBoundingClientRect().right),m=this.getFontSizeForElement(s),u=this.getRangeLabelOverlap(n,c),b=s,p=m/2;if(u>0){if(b.classList.add(C,S),0===d&&0===h){let t=u/2-p;t=-1===Math.sign(t)?Math.abs(t):-t;const e=this.getHostOffset(n.getBoundingClientRect().left+t-p,n.getBoundingClientRect().right+t-p);let i=u/2;const a=this.getHostOffset(c.getBoundingClientRect().left+i,c.getBoundingClientRect().right+i);0!==e&&(t+=e,i+=e),0!==a&&(t+=a,i+=a),s.style.transform=`translateX(${t}px)`,n.style.transform=`translateX(${t-p}px)`,r.style.transform=`translateX(${i}px)`,c.style.transform=`translateX(${i}px)`}else if(h>0||d>0)s.style.transform=`translateX(${h+p}px)`,r.style.transform=`translateX(${u+d}px)`,c.style.transform=`translateX(${u+d}px)`;else if(h<0||d<0){let t=Math.abs(h)+u-p;t=-1===Math.sign(t)?Math.abs(t):-t,s.style.transform=`translateX(${t}px)`,n.style.transform=`translateX(${t-p}px)`}}else b.classList.remove(C,S),s.style.transform=`translateX(${h}px)`,n.style.transform=`translateX(${h}px)`,r.style.transform=`translateX(${d}px)`,c.style.transform=`translateX(${d}px)`}hideObscuredBoundingTickLabels(){const t=Z(this.value);if(!(this.hasHistogram||t||this.labelHandles||this.precise))return;if(!this.hasHistogram&&!t&&this.labelHandles&&!this.precise)return;if(!this.hasHistogram&&!t&&!this.labelHandles&&this.precise)return;if(!this.hasHistogram&&!t&&this.labelHandles&&this.precise)return;if(!this.hasHistogram&&t&&!this.precise)return;if(this.hasHistogram&&!this.precise&&!this.labelHandles)return;const e=this.el.shadowRoot.querySelector(`.${F}`),i=this.el.shadowRoot.querySelector(`.${P}`),a=this.el.shadowRoot.querySelector(`.${U}`),s=this.el.shadowRoot.querySelector(`.${B}`);!e&&i&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,i)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,i)?"0":"1"),e&&i&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,e)||this.isMinTickLabelObscured(a,i)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,e)||this.isMaxTickLabelObscured(s,i)&&this.hasHistogram?"0":"1")}getHostOffset(t,e){const i=this.el.getBoundingClientRect();return t+7<i.left?i.left-t-7:e-7>i.right?7-(e-i.right):0}getRangeLabelOverlap(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),s=this.getFontSizeForElement(t);return Math.max(i.right+s-a.left,0)}isMinTickLabelObscured(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();return o(i,a)}isMaxTickLabelObscured(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();return o(i,a)}internalLabelFormatter(t,e){const i=this.labelFormatter;if(!i)return this.formatValue(t);const a=i(t,e,this.formatValue);return null==a?this.formatValue(t):a}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{histogram:["histogramWatcher"],ticks:["ticksWatcher"],value:["valueHandler"],minValue:["minMaxValueHandler"],maxValue:["minMaxValueHandler"]}}};G.style='@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}.scale--s{--calcite-slider-handle-size:0.625rem;--calcite-slider-handle-extension-height:0.4rem;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:0.875rem;--calcite-slider-handle-extension-height:0.5rem;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:1rem;--calcite-slider-handle-extension-height:0.65rem;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * 0.5);padding-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-inline:0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n );touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen::after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-color-foreground-1);outline-color:transparent;block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:0.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-color-text-3)}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-color-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-focus-color, 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 )}.thumb:focus .handle-extension{background-color:var(--calcite-color-brand)}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-0.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-block-start:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-block-end:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise::after,.thumb:focus.thumb--precise::after,.thumb--active.thumb--precise::after{background-color:var(--calcite-color-brand)}.track{position:relative;block-size:0.125rem;border-radius:0px;background-color:var(--calcite-color-border-2);transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;inset-block-start:0px;block-size:0.125rem;background-color:var(--calcite-color-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range::after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media (forced-colors: active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:0.25rem;inline-size:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-color-border-input);border-color:var(--calcite-color-foreground-1);inset-block-start:-2px;pointer-events:none;margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-color-brand)}.tick__label{pointer-events:none;margin-block-start:0.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}.graph{color:var(--calcite-color-foreground-3);block-size:48px}:host([label-ticks][ticks]) .container{padding-block-end:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-block-end:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::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}';export{T as calcite_graph,G as calcite_slider}
|
17
|
+
const X="container",D="container--range",C="hyphen",S="hyphen--wrap",I="thumb",A="thumb--active",F="thumb--minValue",R="thumb--precise",P="thumb--value",O="tick",N="tick--active",W="tick__label",B="tick__label--max",U="tick__label--min";function Z(t){return Array.isArray(t)}const G=class{constructor(e){t(this,e),this.calciteSliderInput=s(this,"calciteSliderInput",6),this.calciteSliderChange=s(this,"calciteSliderChange",6),this.handleKeyDown=t=>{const e=this.shouldMirror(),{activeProp:i,max:a,min:s,pageStep:l,step:n}=this,h=this[i],{key:r}=t;if(g(r))return void t.preventDefault();let o;if("ArrowUp"===r||"ArrowRight"===r?o=h+n*(e&&"ArrowRight"===r?-1:1):"ArrowDown"===r||"ArrowLeft"===r?o=h-n*(e&&"ArrowLeft"===r?-1:1):"PageUp"===r?l&&(o=h+l):"PageDown"===r?l&&(o=h-l):"Home"===r?o=s:"End"===r&&(o=a),isNaN(o))return;t.preventDefault();const c=Number(o.toFixed(V(n)));this.setValue({[i]:this.clamp(c,i)})},this.activeProp="value",this.guid=`calcite-slider-${n()}`,this.onThumbBlur=()=>{this.activeProp=null},this.onThumbFocus=t=>{this.activeProp=t.currentTarget.getAttribute("data-value-prop")},this.onThumbPointerDown=t=>{this.pointerDownDragStart(t,t.currentTarget.getAttribute("data-value-prop"))},this.onTrackPointerDown=t=>{this.pointerDownDragStart(t,"minMaxValue")},this.dragUpdate=t=>{if(!this.disabled&&(t.preventDefault(),this.dragProp)){const e=this.mapToRange(t.clientX||t.pageX);if(Z(this.value)&&"minMaxValue"===this.dragProp)if(this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange){const t=e-this.minValueDragRange,i=e+this.maxValueDragRange;i<=this.max&&t>=this.min&&i-t===this.minMaxValueRange&&this.setValue({minValue:this.clamp(t,"minValue"),maxValue:this.clamp(i,"maxValue")})}else this.minValueDragRange=e-this.minValue,this.maxValueDragRange=this.maxValue-e,this.minMaxValueRange=this.maxValue-this.minValue;else this.setValue({[this.dragProp]:this.clamp(e,this.dragProp)})}},this.pointerUpDragEnd=t=>{!this.disabled&&r(t)&&this.dragEnd(t)},this.dragEnd=t=>{this.disabled||(this.removeDragListeners(),this.focusActiveHandle(t.clientX),this.lastDragPropValue!=this[this.dragProp]&&this.emitChange(),this.dragProp=null,this.lastDragPropValue=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.minMaxValueRange=null)},this.storeTrackRef=t=>{this.trackEl=t},this.storeThumbRef=t=>{t&&("minValue"===t.getAttribute("data-value-prop")?this.minHandle=t:this.maxHandle=t)},this.formatValue=t=>(y.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},y.localize(t.toString())),this.disabled=!1,this.fillPlacement="start",this.form=void 0,this.groupSeparator=!1,this.hasHistogram=!1,this.histogram=void 0,this.histogramStops=void 0,this.labelHandles=!1,this.labelFormatter=void 0,this.labelTicks=!1,this.max=100,this.maxLabel=void 0,this.maxValue=void 0,this.min=0,this.minLabel=void 0,this.minValue=void 0,this.mirrored=!1,this.name=void 0,this.numberingSystem=void 0,this.pageStep=void 0,this.precise=!1,this.required=!1,this.snap=!1,this.step=1,this.ticks=void 0,this.value=0,this.scale="m",this.effectiveLocale="",this.minMaxValueRange=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.tickValues=[]}histogramWatcher(t){this.hasHistogram=!!t}ticksWatcher(){this.tickValues=this.generateTickValues()}valueHandler(){this.setMinMaxFromValue()}minMaxValueHandler(){this.setValueFromMinMax()}connectedCallback(){w(this),this.setMinMaxFromValue(),this.setValueFromMinMax(),f(this),c(this)}disconnectedCallback(){v(this),d(this),z(this),this.removeDragListeners()}componentWillLoad(){k(this),Z(this.value)||(this.value=this.snap?this.getClosestStep(this.value):this.clamp(this.value)),this.ticksWatcher(),this.histogramWatcher(this.histogram),m(this,this.value)}componentDidLoad(){_(this)}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),Z(this.value)&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels())),this.hideObscuredBoundingTickLabels(),b(this)}render(){const t=this.el.id||this.guid,e=Z(this.value)?this.maxValue:this.value,a=this.minValue||this.min,s=this.shouldUseMinValue(),n=100*this.getUnitInterval(s?this.minValue:a),h=100*this.getUnitInterval(e),r=this.shouldMirror(),o=Z(this.value),c=this.buildThumbType("max"),d=this.renderThumb({type:c,thumbPlacement:c.includes("histogram")?"below":"above",maxInterval:h,minInterval:n,mirror:r}),m=this.buildThumbType("min"),b=o&&this.renderThumb({type:m,thumbPlacement:m.includes("histogram")||m.includes("precise")?"below":"above",maxInterval:h,minInterval:n,mirror:r}),g=o?"start":this.fillPlacement,f="none"===g?{left:"unset",right:"unset"}:"end"===g?{left:`${r?n:h}%`,right:`${r?h:n}%`}:{left:`${r?100-h:n}%`,right:`${r?n:100-h}%`};return i(l,{key:"dee9376120224b51dfa12f3e87fbdce4a481a1ed",id:t,onKeyDown:this.handleKeyDown,onTouchStart:this.handleTouchStart},i(p,{key:"65bca4d477d57ced846ef97b466917b6d7fc2f21",disabled:this.disabled},i("div",{key:"99dd57b50ded2302ca1d255708d9e4bd90de3ecb","aria-label":x(this),class:{[X]:!0,[D]:o,[`scale--${this.scale}`]:!0}},this.renderGraph(),i("div",{key:"47647c0d347232a0ddb384333b15860a0264aefa",class:"track",ref:this.storeTrackRef},i("div",{key:"3dc176871f6245f2dde77a016ddc747ad9571d3d",class:"track__range",onPointerDown:this.onTrackPointerDown,style:f}),i("div",{key:"0c08b977678d6ac7e8b9944157e51948969a5dc5",class:"ticks"},this.tickValues.map((t=>{const l=100*this.getUnitInterval(t)+"%";let n=!1;return"start"!==g&&"end"!==g||(n=s?t>=this.minValue&&t<=this.maxValue:t>=("start"===g?a:e)&&t<=("start"===g?e:this.max)),i("span",{class:{[O]:!0,[N]:n},style:{left:r?"":l,right:r?l:""}},this.renderTickLabel(t))})))),i("div",{key:"51996cb05142dbeec20093ca12b017adee23f293",class:"thumb-container"},b,d,i(u,{key:"6fd5c00374205d47e226a417674264417323a5c3",component:this})))))}renderThumb({type:t,mirror:e,thumbPlacement:a,minInterval:s,maxInterval:l}){const n=t.includes("labeled"),h=t.includes("precise"),r=t.includes("min"),o=Z(this.value),c=r?this.minValue:o?this.maxValue:this.value,d=r?"minValue":o?"maxValue":"value",m=r?this.minLabel:o?this.maxLabel:this.minLabel,u=r?this.minValue:c,b="minValue"===d?this.internalLabelFormatter(this.minValue,"min"):"maxValue"===d?this.internalLabelFormatter(this.maxValue,"max"):this.internalLabelFormatter(c,"value"),p=r?{left:`${e?100-s:s}%`}:{right:`${e?l:100-l}%`},g="handle__label "+(r?"handle__label--minValue":"handle__label--value"),f=[...n?[i("span",{"aria-hidden":"true",class:g},b),i("span",{"aria-hidden":"true",class:`${g} static`},b),i("span",{"aria-hidden":"true",class:`${g} transformed`},b)]:[],i("div",{class:"handle"}),h&&i("div",{class:"handle-extension"})];return"below"===a&&f.reverse(),i("div",{"aria-label":m,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":u,class:{[I]:!0,[P]:!r,[A]:"minMaxValue"!==this.lastDragProp&&this.dragProp===d,[R]:h,[F]:r},"data-value-prop":d,key:t,onBlur:this.onThumbBlur,onFocus:this.onThumbFocus,onPointerDown:this.onThumbPointerDown,ref:this.storeThumbRef,role:"slider",style:p,tabIndex:0},f)}renderGraph(){return this.histogram?i("calcite-graph",{class:"graph",colorStops:this.histogramStops,data:this.histogram,highlightMax:Z(this.value)?this.maxValue:this.value,highlightMin:Z(this.value)?this.minValue:this.min,max:this.max,min:this.min}):null}renderTickLabel(t){const{hasHistogram:e,labelHandles:a,labelTicks:s,max:l,min:n,precise:h,value:r}=this,o=Z(r),c=t===n,d=t===l,m=c||d;return!s||(e||!m&&h&&o)&&(!e||!m&&(h||a))?null:i("span",{class:{[W]:!0,[U]:c,[B]:d}},this.internalLabelFormatter(t,"tick"))}pointerDownHandler(t){if(this.disabled||!r(t))return;const e=t.clientX||t.pageX,i=this.mapToRange(e);let a="value";Z(this.value)&&(a=i>=this.minValue&&i<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-i)<Math.abs(this.minValue-i)||i>=this.maxValue?"maxValue":"minValue"),this.lastDragPropValue=this[a],this.dragStart(a),this.el.shadowRoot.querySelector(`.${I}:active`)||this.setValue({[a]:this.clamp(i,a)}),this.focusActiveHandle(e)}handleTouchStart(t){t.preventDefault()}async setFocus(){await $(this);const t=this.minHandle?this.minHandle:this.maxHandle;t?.focus()}buildThumbType(t){const e=[t];return this.labelHandles&&e.push("labeled"),this.precise&&e.push("precise"),this.hasHistogram&&e.push("histogram"),e.join("-")}setValueFromMinMax(){const{minValue:t,maxValue:e}=this;"number"==typeof t&&"number"==typeof e&&(this.value=[t,e])}setMinMaxFromValue(){const{value:t}=this;Z(t)&&(this.minValue=t[0],this.maxValue=t[1])}onLabelClick(){this.setFocus()}shouldMirror(){return this.mirrored&&!this.hasHistogram}shouldUseMinValue(){return!!Z(this.value)&&(this.hasHistogram&&0===this.maxValue||!this.hasHistogram&&0===this.minValue)}getTickDensity(){const t=(this.max-this.min)/this.ticks/250;return t<1?1:t}generateTickValues(){const t=this.ticks??0;if(t<=0)return[];const e=[this.min],i=t*this.getTickDensity();let a=this.min;for(;a<this.max;)a+=i,e.push(Math.min(a,this.max));return e.includes(this.max)||e.push(this.max),e}pointerDownDragStart(t,e){r(t)&&this.dragStart(e)}dragStart(t){this.dragProp=t,this.lastDragProp=this.dragProp,this.activeProp=t,window.addEventListener("pointermove",this.dragUpdate),window.addEventListener("pointerup",this.pointerUpDragEnd),window.addEventListener("pointercancel",this.dragEnd)}focusActiveHandle(t){"minValue"===this.dragProp?this.minHandle.focus():"maxValue"===this.dragProp||"value"===this.dragProp?this.maxHandle.focus():"minMaxValue"===this.dragProp&&this.getClosestHandle(t).focus()}emitInput(){this.calciteSliderInput.emit()}emitChange(){this.calciteSliderChange.emit()}removeDragListeners(){window.removeEventListener("pointermove",this.dragUpdate),window.removeEventListener("pointerup",this.pointerUpDragEnd),window.removeEventListener("pointercancel",this.dragEnd)}setValue(t){let e;Object.keys(t).forEach((i=>{const a=t[i];e||(e=this[i]!==a),this[i]=a})),e&&(this.dragProp||this.emitChange(),this.emitInput())}clamp(t,e){return t=L(t,this.min,this.max),"maxValue"===e&&(t=Math.max(t,this.minValue)),"minValue"===e&&(t=Math.min(t,this.maxValue)),t}mapToRange(t){const e=this.max-this.min,{left:i,width:a}=this.trackEl.getBoundingClientRect(),s=(t-i)/a,l=this.shouldMirror(),n=this.clamp(this.min+e*(l?1-s:s)),h=Number(n.toFixed(V(this.step)));return this.snap&&this.step?this.getClosestStep(h):h}getClosestStep(t){const{max:e,min:i,step:a}=this,s=new M(`${Math.floor((t-i)/a)}`).multiply(`${a}`).add(`${i}`).toString();let l=this.clamp(Number(s));return l>e&&(l-=a),l}getClosestHandle(t){return this.getDistanceX(this.maxHandle,t)>this.getDistanceX(this.minHandle,t)?this.minHandle:this.maxHandle}getDistanceX(t,e){return Math.abs(t.getBoundingClientRect().left-e)}getFontSizeForElement(t){return Number(window.getComputedStyle(t).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(t){return((t=this.clamp(t))-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(t){const e=this.el.shadowRoot.querySelector(`.handle__label--${t}`),i=this.el.shadowRoot.querySelector(`.handle__label--${t}.static`),a=this.el.shadowRoot.querySelector(`.handle__label--${t}.transformed`),s=i.getBoundingClientRect(),l=this.getHostOffset(s.left,s.right);e.style.transform=`translateX(${l}px)`,a.style.transform=`translateX(${l}px)`}hyphenateCollidingRangeHandleLabels(){const{shadowRoot:t}=this.el,e=this.shouldMirror(),i=e?"value":"minValue",a=e?"minValue":"value",s=t.querySelector(`.handle__label--${i}`),l=t.querySelector(`.handle__label--${i}.static`),n=t.querySelector(`.handle__label--${i}.transformed`),h=this.getHostOffset(l.getBoundingClientRect().left,l.getBoundingClientRect().right),r=t.querySelector(`.handle__label--${a}`),o=t.querySelector(`.handle__label--${a}.static`),c=t.querySelector(`.handle__label--${a}.transformed`),d=this.getHostOffset(o.getBoundingClientRect().left,o.getBoundingClientRect().right),m=this.getFontSizeForElement(s),u=this.getRangeLabelOverlap(n,c),b=s,p=m/2;if(u>0){if(b.classList.add(C,S),0===d&&0===h){let t=u/2-p;t=-1===Math.sign(t)?Math.abs(t):-t;const e=this.getHostOffset(n.getBoundingClientRect().left+t-p,n.getBoundingClientRect().right+t-p);let i=u/2;const a=this.getHostOffset(c.getBoundingClientRect().left+i,c.getBoundingClientRect().right+i);0!==e&&(t+=e,i+=e),0!==a&&(t+=a,i+=a),s.style.transform=`translateX(${t}px)`,n.style.transform=`translateX(${t-p}px)`,r.style.transform=`translateX(${i}px)`,c.style.transform=`translateX(${i}px)`}else if(h>0||d>0)s.style.transform=`translateX(${h+p}px)`,r.style.transform=`translateX(${u+d}px)`,c.style.transform=`translateX(${u+d}px)`;else if(h<0||d<0){let t=Math.abs(h)+u-p;t=-1===Math.sign(t)?Math.abs(t):-t,s.style.transform=`translateX(${t}px)`,n.style.transform=`translateX(${t-p}px)`}}else b.classList.remove(C,S),s.style.transform=`translateX(${h}px)`,n.style.transform=`translateX(${h}px)`,r.style.transform=`translateX(${d}px)`,c.style.transform=`translateX(${d}px)`}hideObscuredBoundingTickLabels(){const t=Z(this.value);if(!(this.hasHistogram||t||this.labelHandles||this.precise))return;if(!this.hasHistogram&&!t&&this.labelHandles&&!this.precise)return;if(!this.hasHistogram&&!t&&!this.labelHandles&&this.precise)return;if(!this.hasHistogram&&!t&&this.labelHandles&&this.precise)return;if(!this.hasHistogram&&t&&!this.precise)return;if(this.hasHistogram&&!this.precise&&!this.labelHandles)return;const e=this.el.shadowRoot.querySelector(`.${F}`),i=this.el.shadowRoot.querySelector(`.${P}`),a=this.el.shadowRoot.querySelector(`.${U}`),s=this.el.shadowRoot.querySelector(`.${B}`);!e&&i&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,i)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,i)?"0":"1"),e&&i&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,e)||this.isMinTickLabelObscured(a,i)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,e)||this.isMaxTickLabelObscured(s,i)&&this.hasHistogram?"0":"1")}getHostOffset(t,e){const i=this.el.getBoundingClientRect();return t+7<i.left?i.left-t-7:e-7>i.right?7-(e-i.right):0}getRangeLabelOverlap(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),s=this.getFontSizeForElement(t);return Math.max(i.right+s-a.left,0)}isMinTickLabelObscured(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();return o(i,a)}isMaxTickLabelObscured(t,e){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();return o(i,a)}internalLabelFormatter(t,e){const i=this.labelFormatter;if(!i)return this.formatValue(t);const a=i(t,e,this.formatValue);return null==a?this.formatValue(t):a}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{histogram:["histogramWatcher"],ticks:["ticksWatcher"],value:["valueHandler"],minValue:["minMaxValueHandler"],maxValue:["minMaxValueHandler"]}}};G.style='@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}.scale--s{--calcite-slider-handle-size:0.625rem;--calcite-slider-handle-extension-height:0.4rem;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:0.875rem;--calcite-slider-handle-extension-height:0.5rem;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:1rem;--calcite-slider-handle-extension-height:0.65rem;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * 0.5);padding-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-inline:0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n );touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen::after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-color-foreground-1);outline-color:transparent;block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:0.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-color-text-3)}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-color-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-focus-color, 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 )}.thumb:focus .handle-extension{background-color:var(--calcite-color-brand)}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-0.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-block-start:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-block-end:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise::after,.thumb:focus.thumb--precise::after,.thumb--active.thumb--precise::after{background-color:var(--calcite-color-brand)}.track{position:relative;block-size:0.125rem;border-radius:0px;background-color:var(--calcite-color-border-2);transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;inset-block-start:0px;block-size:0.125rem;background-color:var(--calcite-color-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range::after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media (forced-colors: active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:0.25rem;inline-size:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-color-border-input);border-color:var(--calcite-color-foreground-1);inset-block-start:-2px;pointer-events:none;margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-color-brand)}.tick__label{pointer-events:none;margin-block-start:0.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}.graph{color:var(--calcite-color-foreground-3);block-size:48px}:host([label-ticks][ticks]) .container{padding-block-end:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-block-end:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::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}';export{T as calcite_graph,G as calcite_slider}
|
@@ -6,6 +6,6 @@
|
|
6
6
|
/*!
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
9
|
-
* v2.13.
|
9
|
+
* v2.13.2
|
10
10
|
*/
|
11
11
|
const t=["date","datetime-local","month","number","range","time","week"],e=["email","password","search","tel","text","url"],a=["email","password","search","tel","text","textarea","url"];function n(t,e,a,n){const s=a.toLowerCase(),r=t[a];n&&null!=r?e.setAttribute(s,`${r}`):e.removeAttribute(s)}function s(s,r,o){o.type="textarea"===s?"text":s;const l=t.includes(s),m=r;n(m,o,"min",l),n(m,o,"max",l),n(m,o,"step",l);const c=a.includes(s),i=r;n(i,o,"minLength",c),n(i,o,"maxLength",c),n(i,o,"pattern",e.includes(s))}export{s}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as t}from"./p-
|
6
|
+
import{d as t}from"./p-80ff858b.js";import"./p-4e6eb06e.js";import"./p-9c5d5171.js";import"./p-26ba0cc7.js";import"./p-eed08718.js";import"./p-51ab623a.js";import"./p-770a5a64.js";import"./p-ec51378a.js";import"./p-9ce8e34f.js";import"./p-ae019e19.js";import"./p-7f68e6a4.js";import"./p-08c18450.js";import"./p-177b4cbc.js";import"./p-85c3237c.js";import"./p-d9e9fe80.js";import"./p-7eee9aa8.js";import"./p-fd019d15.js";import"./p-bd7be7a7.js";import"./p-cb8d90d1.js";import"./p-e37e117f.js";import"./p-a71250ea.js";var m={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};t.locale(m,null,!0);export{m as default}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{d as e}from"./p-80ff858b.js";import"./p-4e6eb06e.js";import"./p-9c5d5171.js";import"./p-26ba0cc7.js";import"./p-eed08718.js";import"./p-51ab623a.js";import"./p-770a5a64.js";import"./p-ec51378a.js";import"./p-9ce8e34f.js";import"./p-ae019e19.js";import"./p-7f68e6a4.js";import"./p-08c18450.js";import"./p-177b4cbc.js";import"./p-85c3237c.js";import"./p-d9e9fe80.js";import"./p-7eee9aa8.js";import"./p-fd019d15.js";import"./p-bd7be7a7.js";import"./p-cb8d90d1.js";import"./p-e37e117f.js";import"./p-a71250ea.js";var r={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(e,r,t,p){return"néhány másodperc"+(p||r?"":"e")},m:function(e,r,t,p){return"egy perc"+(p||r?"":"e")},mm:function(e,r,t,p){return e+" perc"+(p||r?"":"e")},h:function(e,r,t,p){return"egy "+(p||r?"óra":"órája")},hh:function(e,r,t,p){return e+" "+(p||r?"óra":"órája")},d:function(e,r,t,p){return"egy "+(p||r?"nap":"napja")},dd:function(e,r,t,p){return e+" "+(p||r?"nap":"napja")},M:function(e,r,t,p){return"egy "+(p||r?"hónap":"hónapja")},MM:function(e,r,t,p){return e+" "+(p||r?"hónap":"hónapja")},y:function(e,r,t,p){return"egy "+(p||r?"év":"éve")},yy:function(e,r,t,p){return e+" "+(p||r?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};e.locale(r,null,!0);export{r as default}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,h as i,g as s,H as a}from"./p-4e6eb06e.js";import{c as n}from"./p-
|
6
|
+
import{r as e,c as t,h as i,g as s,H as a}from"./p-4e6eb06e.js";import{c as n}from"./p-85c3237c.js";import{d as o,t as c}from"./p-26ba0cc7.js";import{c as r,d as l,a as d,H as h}from"./p-9c5d5171.js";import{u as p,I as m}from"./p-770a5a64.js";import{c as u,d as f,g as b}from"./p-9ce8e34f.js";import{s as v,a as g,c as w}from"./p-7f68e6a4.js";import{g as y}from"./p-ae019e19.js";import{V as x}from"./p-e37e117f.js";import"./p-08c18450.js";import"./p-eed08718.js";import"./p-51ab623a.js";const C=class{constructor(i){e(this,i),this.calciteInternalOptionChange=t(this,"calciteInternalOptionChange",6),this.mutationObserver=n("mutation",(()=>{this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()})),this.disabled=!1,this.label=void 0,this.selected=void 0,this.value=void 0}handlePropChange(e,t,i){"label"!==i&&"value"!==i||this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()}ensureTextContentDependentProps(){const{el:{textContent:e},internallySetLabel:t,internallySetValue:i,label:s,value:a}=this;s&&s!==t||(this.label=e,this.internallySetLabel=e),null!=a&&a!==i||(this.value=e,this.internallySetValue=e)}connectedCallback(){this.ensureTextContentDependentProps(),this.mutationObserver?.observe(this.el,{attributeFilter:["label","value"],characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){return i("slot",{key:"e5df72ac4455ee2e14c0e48a40739a9a271c9c57"},this.label)}get el(){return s(this)}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"],selected:["handlePropChange"],value:["handlePropChange"]}}};C.style=":host{display:block}:host([hidden]){display:none}[hidden]{display:none}";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
10
|
+
* v2.13.2
|
11
11
|
*/
|
12
12
|
const k="selectValidationMessage";function z(e){return"CALCITE-OPTION"===e.tagName}const O=class{constructor(i){e(this,i),this.calciteSelectChange=t(this,"calciteSelectChange",6),this.componentToNativeEl=new Map,this.mutationObserver=n("mutation",(()=>this.populateInternalSelect())),this.handleInternalSelectChange=()=>{this.selectFromNativeOption(this.selectEl.selectedOptions[0]),requestAnimationFrame((()=>this.emitChangeEvent()))},this.populateInternalSelect=()=>{const e=Array.from(this.el.children).filter((e=>"CALCITE-OPTION"===e.tagName||"CALCITE-OPTION-GROUP"===e.tagName));this.clearInternalSelect(),e.forEach((e=>this.selectEl?.append(this.toNativeElement(e))))},this.storeSelectRef=e=>{this.selectEl=e,this.populateInternalSelect(),this.selectFromNativeOption(this.selectEl.selectedOptions[0])},this.emitChangeEvent=()=>{this.calciteSelectChange.emit()},this.disabled=!1,this.form=void 0,this.label=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.required=!1,this.scale="m",this.status="idle",this.value=null,this.selectedOption=void 0,this.width="auto"}valueHandler(e){this.updateItemsFromValue(e)}selectedOptionHandler(e){this.value=e?.value}connectedCallback(){const{el:e}=this;this.mutationObserver?.observe(e,{subtree:!0,childList:!0}),u(this),r(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),f(this),l(this)}componentWillLoad(){v(this),"string"==typeof this.value&&this.updateItemsFromValue(this.value)}componentDidLoad(){g(this),d(this,this.selectedOption?.value??"")}componentDidRender(){p(this)}async setFocus(){await w(this),o(this.selectEl)}handleOptionOrGroupChange(e){e.stopPropagation();const t=e.target,i=this.componentToNativeEl.get(t);i&&(this.updateNativeElement(t,i),z(t)&&t.selected&&(this.deselectAllExcept(t),this.selectedOption=t))}onLabelClick(){this.setFocus()}updateItemsFromValue(e){this.el.querySelectorAll("calcite-option").forEach((t=>t.selected=t.value===e))}updateNativeElement(e,t){if(t.disabled=e.disabled,t.label=e.label,z(e)){const i=t;i.selected=e.selected,i.value=e.value,i.innerText=e.label}}clearInternalSelect(){this.componentToNativeEl.forEach((e=>e.remove())),this.componentToNativeEl.clear()}selectFromNativeOption(e){if(!e)return;let t;this.componentToNativeEl.forEach(((i,s)=>{z(s)&&i===e&&(s.selected=!0,t=s,this.deselectAllExcept(s))})),t&&(this.selectedOption=t)}toNativeElement(e){if(z(e)){const t=document.createElement("option");return this.updateNativeElement(e,t),this.componentToNativeEl.set(e,t),t}if(function(e){return"CALCITE-OPTION-GROUP"===e.tagName}(e)){const t=document.createElement("optgroup");return this.updateNativeElement(e,t),Array.from(e.children).forEach((i=>{const s=this.toNativeElement(i);t.append(s),this.componentToNativeEl.set(e,s)})),this.componentToNativeEl.set(e,t),t}throw new Error("unsupported element child provided")}deselectAllExcept(e){this.el.querySelectorAll("calcite-option").forEach((t=>{t!==e&&(t.selected=!1)}))}renderChevron(){return i("div",{class:"icon-container"},i("calcite-icon",{class:"icon",icon:"chevron-down",scale:y(this.scale)}))}render(){const{disabled:e}=this;return i(a,{key:"d2e0ad4197079513f4e9e0070fb397c4f8331597"},i(m,{key:"5eee0d42742248209469fb7a5e3541cdbe373d30",disabled:e},i("div",{key:"e12c66d415dfe7c24e63731f2a83a081687fba8a",class:"wrapper"},i("select",{key:"22685962db75d2527740d288f016665ec5e6053e","aria-errormessage":k,"aria-invalid":c("invalid"===this.status),"aria-label":b(this),class:"select",disabled:e,onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},i("slot",{key:"1b105206faa1f0765add18140b0f99f3d273c11f"})),this.renderChevron(),i(h,{key:"5767128465128a9fb5f69c9241bef0da56b9432e",component:this})),this.validationMessage&&"invalid"===this.status?i(x,{icon:this.validationIcon,id:k,message:this.validationMessage,scale:this.scale,status:this.status}):null))}get el(){return s(this)}static get watchers(){return{value:["valueHandler"],selectedOption:["selectedOptionHandler"]}}};O.style=":host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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:flex;flex-direction:column}.wrapper{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width)}.wrapper:focus-within .icon,.wrapper:active .icon,.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing-inline:0.5rem 2rem}:host([scale=s]) .wrapper{block-size:1.5rem}:host([scale=s]) .icon-container{padding-inline:0.5rem}:host([scale=m]){--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing-inline:0.75rem 2.5rem}:host([scale=m]) .wrapper{block-size:2rem}:host([scale=m]) .icon-container{padding-inline:0.75rem}:host([scale=l]){--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing-inline:1rem 3rem}:host([scale=l]) .wrapper{block-size:44px}:host([scale=l]) .icon-container{padding-inline:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0px;box-sizing:border-box;inline-size:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);font-family:inherit;color:var(--calcite-color-text-2);outline-color:transparent;font-size:var(--calcite-select-font-size);padding-inline:var(--calcite-select-spacing-inline);border-inline-end-width:0px}.select:focus{outline:2px solid var(--calcite-ui-focus-color, 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 )}select:disabled{border-color:var(--calcite-color-border-input);--tw-bg-opacity:1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:transparent;color:var(--calcite-color-text-2);inset-inline-end:0px;border-inline-width:0px 1px}.icon-container .icon{color:var(--calcite-color-text-3)}:host([status=invalid]) select,:host([status=invalid]) .icon-container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) select:focus,:host([status=invalid]) .icon-container:focus{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 )}.select:focus~.icon-container{border-color:transparent}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::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}";export{C as calcite_option,O as calcite_select}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as t,h as i,H as s,g as a}from"./p-4e6eb06e.js";import{s as n,a as l}from"./p-
|
6
|
+
import{r as e,c as t,h as i,H as s,g as a}from"./p-4e6eb06e.js";import{s as n,a as l}from"./p-7f68e6a4.js";import{u as c,s as o,c as h,d as r}from"./p-cb8d90d1.js";import{n as d,c as b,d as p}from"./p-177b4cbc.js";import{g as f}from"./p-08c18450.js";import"./p-26ba0cc7.js";import"./p-eed08718.js";import"./p-51ab623a.js";import"./p-ec51378a.js";import"./p-85c3237c.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
10
|
+
* v2.13.2
|
11
11
|
*/const g="bordered",m="striped",u="table-container",v="table--fixed",y=class{constructor(i){e(this,i),this.calciteTableSelect=t(this,"calciteTableSelect",6),this.calciteTablePageChange=t(this,"calciteTablePageChange",6),this.calciteInternalTableRowFocusChange=t(this,"calciteInternalTableRowFocusChange",6),this.getSlottedRows=e=>e?.assignedElements({flatten:!0})?.filter((e=>e?.matches("calcite-table-row"))),this.updateRows=()=>{const e=this.getSlottedRows(this.tableHeadSlotEl)||[],t=this.getSlottedRows(this.tableBodySlotEl)||[],i=this.getSlottedRows(this.tableFootSlotEl)||[],s=[...e,...t,...i];e?.forEach((t=>{const i=e?.indexOf(t);t.rowType="head",t.positionSection=i,t.positionSectionLocalized=this.localizeNumber((i+1).toString())})),t?.forEach((e=>{const i=t?.indexOf(e);e.rowType="body",e.positionSection=i,e.positionSectionLocalized=this.localizeNumber((i+1).toString())})),i?.forEach((e=>{const t=i?.indexOf(e);e.rowType="foot",e.positionSection=t,e.positionSectionLocalized=this.localizeNumber((t+1).toString())})),s?.forEach((e=>{e.interactionMode=this.interactionMode,e.selectionMode=this.selectionMode,e.bodyRowCount=t?.length,e.positionAll=s?.indexOf(e),e.numbered=this.numbered,e.scale=this.scale,e.readCellContentsToAT=this.readCellContentsToAT,e.lastVisibleRow=s?.indexOf(e)===s.length-1}));const a=e[0]?.cellCount||e[0]?.querySelectorAll("calcite-table-header")?.length;this.colCount=a,this.headRows=e,this.bodyRows=t,this.footRows=i,this.allRows=s,this.updateSelectedItems(),this.paginateRows()},this.handlePaginationChange=()=>{const e=this.paginationEl?.startItem;this.pageStartRow=e||1,this.calciteTablePageChange.emit(),this.updateRows()},this.paginateRows=()=>{this.bodyRows?.forEach((e=>{const t=e.positionSection+1;e.hidden=this.pageSize>0&&!(t>=this.pageStartRow&&t<this.pageStartRow+this.pageSize)&&!this.footRows.includes(e),e.lastVisibleRow=t===this.pageStartRow+this.pageSize-1||t===this.bodyRows.length}))},this.updateSelectedItems=e=>{const t=this.bodyRows?.filter((e=>e.selected));this.selectedItems=t,this.selectedCount=t?.length,this.allRows?.forEach((e=>{e.selectedRowCount=this.selectedCount,e.selectedRowCountLocalized=this.localizeNumber(this.selectedCount)})),e&&this.calciteTableSelect.emit()},this.handleDeselectAllRows=()=>{this.bodyRows?.forEach((e=>{e.selected=!1})),this.updateSelectedItems(!0)},this.setSelectedItems=e=>{this.bodyRows?.forEach((t=>{t.selected="head"===e?.rowType?this.selectedCount!==this.bodyRows?.length:e===t?!t.selected:"multiple"===this.selectionMode&&t.selected})),this.updateSelectedItems(!0)},this.localizeNumber=e=>(d.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},d.localize(e.toString())),this.bordered=!1,this.caption=void 0,this.groupSeparator=!1,this.interactionMode="interactive",this.layout="auto",this.numbered=!1,this.numberingSystem=void 0,this.pageSize=0,this.scale="m",this.selectionMode="none",this.selectionDisplay="top",this.zebra=!1,this.striped=!1,this.selectedItems=[],this.messages=void 0,this.messageOverrides=void 0,this.colCount=0,this.pageStartRow=1,this.selectedCount=0,this.readCellContentsToAT=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}handleNumberedChange(){this.updateRows()}onMessagesChange(){}effectiveLocaleChange(){c(this,this.effectiveLocale)}async componentWillLoad(){n(this),await o(this),this.readCellContentsToAT=/safari/i.test(f()),this.updateRows()}componentDidLoad(){l(this)}connectedCallback(){b(this),h(this)}disconnectedCallback(){p(this),r(this)}calciteChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(e.target)}calciteInternalTableRowFocusEvent(e){const t=e.detail.cellPosition,i=e.detail.rowPosition,s=e.detail.destination,a=e.detail.lastCell,n=this.bodyRows?.filter((e=>!e.hidden)),l=this.allRows?.filter((e=>!e.hidden)),c=this.headRows[this.headRows.length-1]?.positionAll,o=n[0]?.positionAll,h=n[n.length-1]?.positionAll,r=this.footRows[0]?.positionAll,d=l[l.length-1]?.positionAll,b="next"===s&&i===c,p="previous"===s&&i===r,f="previous"===s&&i===o,g="next"===s&&i===h;let m;switch(s){case"first":m=0;break;case"last":m=d;break;case"next":m=b?o:g?r:i+1;break;case"previous":m=p?h:f?c:i-1}const u=this.allRows?.find((e=>e.positionAll===m))?.cellCount;void 0!==m&&this.calciteInternalTableRowFocusChange.emit({cellPosition:t>u?u:t,rowPosition:m,destination:s,lastCell:a})}renderSelectionArea(){const e=this.selectedItems?.filter((e=>e.hidden))?.length,t=this.localizeNumber(e?.toString()),s=`${this.localizeNumber(this.selectedCount?.toString())} ${this.messages.selected}`,a=`${t} ${this.messages.hiddenSelected}`;return i("div",{class:"selection-area"},i("calcite-chip",{kind:this.selectedCount>0?"brand":"neutral",scale:this.scale,value:s},s),e>0&&i("calcite-chip",{icon:"hide-empty",scale:this.scale,title:a,value:a},t),this.selectedCount>0&&i("calcite-button",{"icon-start":"x",kind:"neutral",onClick:this.handleDeselectAllRows,round:!0,scale:this.scale,title:`${this.messages.clear} ${s} ${this.messages.row}`},this.messages.clear),i("div",{class:"selection-actions"},i("slot",{name:"selection-actions"})))}renderPaginationArea(){return i("div",{class:"pagination-area"},i("calcite-pagination",{groupSeparator:this.groupSeparator,numberingSystem:this.numberingSystem,onCalcitePaginationChange:this.handlePaginationChange,pageSize:this.pageSize,ref:e=>this.paginationEl=e,scale:this.scale,startItem:1,totalItems:this.bodyRows?.length}))}renderTHead(){return i("thead",null,i("slot",{name:"table-header",onSlotchange:this.updateRows,ref:e=>this.tableHeadSlotEl=e}))}renderTBody(){return i("tbody",null,i("slot",{onSlotchange:this.updateRows,ref:e=>this.tableBodySlotEl=e}))}renderTFoot(){return i("tfoot",null,i("slot",{name:"table-footer",onSlotchange:this.updateRows,ref:e=>this.tableFootSlotEl=e}))}render(){return i(s,{key:"8e6d0b48e0ffa640e5d0e052092bccf1b4b7fafe"},i("div",{key:"ce5932eda4dbec9b60ee5a7aad523e5d47178888",class:"container"},"none"!==this.selectionMode&&"none"!==this.selectionDisplay&&this.renderSelectionArea(),i("div",{key:"37fb918ba3079352db0ca83c253f648c327cc3d8",class:{[g]:this.bordered,[m]:this.striped||this.zebra,[u]:!0}},i("table",{key:"908c1e7ce7768c1c9f3146b83546ae639a86bac8","aria-colcount":this.colCount,"aria-multiselectable":"multiple"===this.selectionMode,"aria-rowcount":this.allRows?.length,class:{[v]:"fixed"===this.layout},role:"interactive"===this.interactionMode?"grid":"table"},i("caption",{key:"9ab15b8e9badee9b38925e563e5c607a13ccf664",class:"assistive-text"},this.caption),this.renderTHead(),this.renderTBody(),this.renderTFoot())),this.pageSize>0&&this.renderPaginationArea()))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{groupSeparator:["handleNumberedChange"],interactionMode:["handleNumberedChange"],numbered:["handleNumberedChange"],numberingSystem:["handleNumberedChange"],pageSize:["handleNumberedChange"],scale:["handleNumberedChange"],selectionMode:["handleNumberedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};y.style=":host([scale=s]){--calcite-internal-table-cell-padding:0.25rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size--2);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--3)}:host([scale=m]){--calcite-internal-table-cell-padding:0.5rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size--1);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--2)}:host([scale=l]){--calcite-internal-table-cell-padding:1rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size-0);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--1)}:host{display:flex}.container{display:flex;block-size:100%;inline-size:100%;flex-direction:column}.table-container{overflow:auto;white-space:nowrap;border:1px solid var(--calcite-color-border-3)}.assistive-text{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}table{inline-size:100%;border-collapse:collapse;overflow-x:scroll}.table--fixed{table-layout:fixed}.bordered ::slotted(calcite-table-row){--calcite-table-row-border-color:var(--calcite-color-border-3)}.striped ::slotted(calcite-table-row:nth-child(2n+1)){--calcite-table-row-background:var(--calcite-color-foreground-2)}.selection-actions{display:flex;flex-direction:row;margin-inline-start:auto}.selection-area{display:flex;flex-direction:row;align-items:center;padding-block:var(--calcite-internal-table-cell-padding)}.selection-area calcite-chip:last-of-type{margin-inline-end:0.5rem}.selection-area calcite-chip:last-of-type:not(:first-of-type){margin-inline-start:0.5rem}.selection-area calcite-button{margin-inline-end:1rem}.pagination-area{display:flex;inline-size:100%;flex-direction:row;justify-content:center;padding-block:var(--calcite-internal-table-cell-padding)}calcite-pagination{flex:1;justify-content:center}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_table}
|
@@ -6,6 +6,6 @@
|
|
6
6
|
/*!
|
7
7
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
8
8
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
9
|
-
* v2.13.
|
9
|
+
* v2.13.2
|
10
10
|
*/
|
11
11
|
function n(n){return"l"===n?"m":"s"}async function t(n){await(function(n){return"function"==typeof n.componentOnReady}(n)?n.componentOnReady():new Promise((n=>requestAnimationFrame((()=>n())))))}export{t as c,n as g}
|