@esri/calcite-components 1.0.0-next.597 → 1.0.0-next.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-6505334e.entry.js → p-010dd109.entry.js} +2 -2
- package/dist/calcite/{p-65e8434d.js → p-02c03af1.js} +1 -1
- package/dist/calcite/p-02d86d44.js +6 -0
- package/dist/calcite/{p-d758a89d.entry.js → p-03bdf648.entry.js} +2 -2
- package/dist/calcite/{p-016cee24.entry.js → p-062ce043.entry.js} +2 -2
- package/dist/calcite/{p-19c7faaf.entry.js → p-0deab0a4.entry.js} +2 -2
- package/dist/calcite/{p-3d3d179c.js → p-0edd33c6.js} +2 -2
- package/dist/calcite/{p-fd6d1ed1.js → p-0f5f53c2.js} +1 -1
- package/dist/calcite/{p-f827044c.entry.js → p-10c92db7.entry.js} +2 -2
- package/dist/calcite/{p-4e7b4c6c.entry.js → p-12b30d17.entry.js} +2 -2
- package/dist/calcite/{p-f64286c8.entry.js → p-1352273d.entry.js} +2 -2
- package/dist/calcite/{p-5da89821.entry.js → p-176c7c94.entry.js} +2 -2
- package/dist/calcite/{p-da5fac1a.entry.js → p-18ebc779.entry.js} +2 -2
- package/dist/calcite/{p-576a4d3b.js → p-1db0a85d.js} +2 -2
- package/dist/calcite/{p-36aa3ea2.entry.js → p-219e2e73.entry.js} +2 -2
- package/dist/calcite/{p-a7626d19.entry.js → p-2ab04b0f.entry.js} +2 -2
- package/dist/calcite/{p-ae8f6623.entry.js → p-2f357624.entry.js} +2 -2
- package/dist/calcite/{p-2e141574.entry.js → p-2f52a669.entry.js} +2 -2
- package/dist/calcite/p-2fecb26e.js +6 -0
- package/dist/calcite/{p-67c0d879.js → p-36a2b846.js} +1 -1
- package/dist/calcite/{p-034710a1.js → p-36c1c94c.js} +1 -1
- package/dist/calcite/{p-d4bab92e.entry.js → p-37bc6ac2.entry.js} +2 -2
- package/dist/calcite/{p-6e070c45.entry.js → p-392906a6.entry.js} +2 -2
- package/dist/calcite/p-3941a63c.js +6 -0
- package/dist/calcite/{p-91db8a1d.entry.js → p-3b9a8c5f.entry.js} +2 -2
- package/dist/calcite/{p-9804459d.entry.js → p-404e08b8.entry.js} +2 -2
- package/dist/calcite/{p-d465da16.entry.js → p-41aa50b7.entry.js} +2 -2
- package/dist/calcite/{p-fb5602cf.js → p-41c52f7c.js} +2 -2
- package/dist/calcite/{p-179ed97a.js → p-43b4a53e.js} +1 -1
- package/dist/calcite/{p-975aba66.js → p-44aecb14.js} +1 -1
- package/dist/calcite/{p-ed51bd87.entry.js → p-49529d9e.entry.js} +2 -2
- package/dist/calcite/{p-627b4177.js → p-4987b4ee.js} +1 -1
- package/dist/calcite/{p-80a6379c.entry.js → p-4cb9c524.entry.js} +2 -2
- package/dist/calcite/p-4e5fcfd7.entry.js +6 -0
- package/dist/calcite/{p-86384397.entry.js → p-4eeb34ad.entry.js} +2 -2
- package/dist/calcite/{p-df9538a5.entry.js → p-5139ac26.entry.js} +2 -2
- package/dist/calcite/{p-dfd51f34.entry.js → p-53c34094.entry.js} +2 -2
- package/dist/calcite/{p-205462c9.js → p-543a5925.js} +1 -1
- package/dist/calcite/{p-10c17d1c.entry.js → p-58ea74ab.entry.js} +2 -2
- package/dist/calcite/{p-b9542a0a.js → p-5d29962c.js} +1 -1
- package/dist/calcite/p-5e355fbb.entry.js +6 -0
- package/dist/calcite/{p-21931632.entry.js → p-66011932.entry.js} +2 -2
- package/dist/calcite/{p-ec1d7ff7.entry.js → p-665605d0.entry.js} +2 -2
- package/dist/calcite/{p-ba334a9d.entry.js → p-6d221ee4.entry.js} +2 -2
- package/dist/calcite/{p-6b8d9887.js → p-77a66a54.js} +2 -2
- package/dist/calcite/{p-b072ee90.js → p-7951d360.js} +2 -2
- package/dist/calcite/{p-228315da.entry.js → p-7c084561.entry.js} +2 -2
- package/dist/calcite/{p-46ff1ae6.entry.js → p-7cb27f2a.entry.js} +2 -2
- package/dist/calcite/{p-2a88fa13.js → p-7fa0faec.js} +1 -1
- package/dist/calcite/{p-5a81c608.entry.js → p-820a08a7.entry.js} +2 -2
- package/dist/calcite/{p-421dc091.entry.js → p-83ece20a.entry.js} +2 -2
- package/dist/calcite/{p-f66dfaea.entry.js → p-857f0433.entry.js} +2 -2
- package/dist/calcite/{p-ff82e6f2.entry.js → p-91ec0aa8.entry.js} +2 -2
- package/dist/calcite/{p-6bf1fe3b.entry.js → p-92976168.entry.js} +2 -2
- package/dist/calcite/{p-5dc47d03.js → p-93cd79e0.js} +1 -1
- package/dist/calcite/p-999f8f79.entry.js +6 -0
- package/dist/calcite/p-9c54742f.entry.js +6 -0
- package/dist/calcite/{p-7e36e2c5.entry.js → p-9fd20f7e.entry.js} +2 -2
- package/dist/calcite/p-a7862fd2.entry.js +6 -0
- package/dist/calcite/{p-7dddc346.js → p-aa9d985d.js} +2 -2
- package/dist/calcite/{p-d16a1324.js → p-ae75f7f9.js} +1 -1
- package/dist/calcite/{p-a0db47b9.js → p-b10d453d.js} +1 -1
- package/dist/calcite/{p-a71a4bc5.entry.js → p-b5abec95.entry.js} +2 -2
- package/dist/calcite/{p-ce171933.entry.js → p-b5d68e9b.entry.js} +2 -2
- package/dist/calcite/{p-f94b6442.entry.js → p-b62081a4.entry.js} +2 -2
- package/dist/calcite/p-bc460116.entry.js +6 -0
- package/dist/calcite/{p-0043efc4.js → p-bce0e288.js} +1 -1
- package/dist/calcite/{p-67890d9f.js → p-bd6478ee.js} +2 -2
- package/dist/calcite/{p-06505dc6.entry.js → p-cbbaffb1.entry.js} +2 -2
- package/dist/calcite/{p-b7dafefc.entry.js → p-cd2d103c.entry.js} +2 -2
- package/dist/calcite/p-cd3d6d8a.entry.js +6 -0
- package/dist/calcite/p-d274cd75.entry.js +6 -0
- package/dist/calcite/{p-e1c801a6.entry.js → p-d393cf2a.entry.js} +2 -2
- package/dist/calcite/{p-d6067141.entry.js → p-dd4f0eb4.entry.js} +2 -2
- package/dist/calcite/p-dd73aa68.entry.js +6 -0
- package/dist/calcite/{p-1085e82f.js → p-e1fa8d26.js} +2 -2
- package/dist/calcite/{p-1b9e3fb0.entry.js → p-e3158aba.entry.js} +2 -2
- package/dist/calcite/{p-bb21323e.entry.js → p-e43df264.entry.js} +2 -2
- package/dist/calcite/{p-59772111.js → p-e6757fa4.js} +2 -2
- package/dist/calcite/{p-c2258fac.js → p-e86518a3.js} +1 -1
- package/dist/calcite/{p-ec7e67d0.entry.js → p-eb8e9bec.entry.js} +2 -2
- package/dist/calcite/p-ecfdca0f.entry.js +6 -0
- package/dist/calcite/{p-3d1ef84a.entry.js → p-f1cc17e7.entry.js} +2 -2
- package/dist/calcite/{p-61cbec79.entry.js → p-f21ff110.entry.js} +2 -2
- package/dist/calcite/{p-1421f9ec.js → p-f4970d48.js} +1 -1
- package/dist/calcite/{p-14c442cb.entry.js → p-f707cf6d.entry.js} +2 -2
- package/dist/calcite/{p-ce15d4a4.entry.js → p-fd07c84a.entry.js} +2 -2
- package/dist/calcite/{p-a25cc528.entry.js → p-fd177f5d.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-73285037.js → ExpandToggle-ab03bc61.js} +5 -5
- package/dist/cjs/{Heading-5409de6d.js → Heading-2b3d0f1c.js} +2 -2
- package/dist/cjs/{app-globals-77859a02.js → app-globals-3d7459b7.js} +2 -2
- package/dist/cjs/{array-f86c9258.js → array-0903a4d0.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-bar.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +19 -20
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +16 -15
- package/dist/cjs/calcite-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +16 -16
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -9
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-message.cjs.entry.js +6 -6
- package/dist/cjs/calcite-input-number.cjs.entry.js +28 -28
- package/dist/cjs/calcite-input-text.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +98 -48
- package/dist/cjs/calcite-input.cjs.entry.js +29 -29
- package/dist/cjs/calcite-label.cjs.entry.js +8 -8
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-loader.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -16
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pagination.cjs.entry.js +11 -11
- package/dist/cjs/calcite-panel.cjs.entry.js +26 -23
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +24 -24
- package/dist/cjs/calcite-popover_2.cjs.entry.js +23 -21
- package/dist/cjs/calcite-progress.cjs.entry.js +9 -4
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +40 -18
- package/dist/cjs/calcite-switch.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-cdf70b61.js → conditionalSlot-4b981e1a.js} +3 -3
- package/dist/cjs/{debounce-1f3af549.js → debounce-6ac6d224.js} +1 -1
- package/dist/cjs/{dom-9409deef.js → dom-2aaee0df.js} +3 -3
- package/dist/cjs/{filter-6497f68a.js → filter-10c27a83.js} +2 -2
- package/dist/cjs/{floating-ui-40005e27.js → floating-ui-bf70093a.js} +2 -2
- package/dist/cjs/{form-ed16c84e.js → form-47d1e430.js} +3 -3
- package/dist/cjs/{guid-07011a93.js → guid-1b12a751.js} +1 -1
- package/dist/cjs/{index-dbaff4c6.js → index-457a5a54.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-825762eb.js → interactive-e35bd87f.js} +1 -1
- package/dist/cjs/{interfaces-a747d1cf.js → interfaces-58d0b0fb.js} +1 -1
- package/dist/cjs/{key-40cfbef8.js → key-5b6abad3.js} +1 -1
- package/dist/cjs/{label-942c98df.js → label-bcb3c8cc.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-3b5c2d93.js → locale-c66b8c43.js} +55 -48
- package/dist/cjs/{math-19d2ae8c.js → math-9a4a9057.js} +1 -1
- package/dist/cjs/{observers-2571ea25.js → observers-6c3955d2.js} +1 -1
- package/dist/cjs/{openCloseComponent-c152728d.js → openCloseComponent-d5404853.js} +1 -1
- package/dist/cjs/{resources-adfdf58d.js → resources-29b287c0.js} +1 -1
- package/dist/cjs/{resources-e5387109.js → resources-7103f0d8.js} +1 -1
- package/dist/cjs/{resources-110e5929.js → resources-83acf426.js} +1 -1
- package/dist/cjs/{resources-5f061484.js → resources-a636e50a.js} +5 -5
- package/dist/cjs/{resources-24f7e730.js → resources-c689e9d0.js} +3 -3
- package/dist/cjs/{resources-b88532e5.js → resources-d8da865a.js} +1 -1
- package/dist/cjs/{sortable.esm-9b594ce7.js → sortable.esm-4c7fab47.js} +1 -1
- package/dist/cjs/{utils-0af662a9.js → utils-147a89d2.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +4 -4
- package/dist/collection/components/accordion/accordion.stories.js +197 -0
- package/dist/collection/components/accordion-item/accordion-item.js +7 -7
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +1 -1
- package/dist/collection/components/action/action.js +12 -12
- package/dist/collection/components/action/action.stories.js +181 -0
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +5 -5
- package/dist/collection/components/action-bar/action-bar.stories.js +141 -0
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +1 -1
- package/dist/collection/components/action-group/action-group.js +5 -5
- package/dist/collection/components/action-group/action-group.stories.js +41 -0
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +5 -5
- package/dist/collection/components/action-menu/action-menu.stories.js +26 -0
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +5 -5
- package/dist/collection/components/action-pad/action-pad.stories.js +107 -0
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +16 -17
- package/dist/collection/components/alert/alert.stories.js +140 -0
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/avatar.stories.js +44 -0
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.css +7 -0
- package/dist/collection/components/block/block.js +4 -4
- package/dist/collection/components/block/block.stories.js +158 -0
- package/dist/collection/components/block/resources.js +3 -2
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/button.stories.js +129 -0
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/card.stories.js +225 -0
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +43 -0
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/chip.stories.js +85 -0
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/color-picker.stories.js +80 -0
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/combobox.stories.js +387 -0
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -8
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +5 -5
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +408 -0
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/fab.stories.js +96 -0
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/flow.stories.js +151 -0
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +6 -3
- package/dist/collection/components/flow-item/flow-item.stories.js +181 -0
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/graph.stories.js +77 -0
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/icon.stories.js +26 -0
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.stories.js +70 -0
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.css +5 -0
- package/dist/collection/components/input/input.js +28 -28
- package/dist/collection/components/input/input.stories.js +146 -0
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.stories.js +79 -0
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +3 -3
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +1 -20
- package/dist/collection/components/input-number/input-number.js +26 -26
- package/dist/collection/components/input-number/input-number.stories.js +124 -0
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +1 -20
- package/dist/collection/components/input-text/input-text.js +18 -18
- package/dist/collection/components/input-text/input-text.stories.js +99 -0
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +76 -17
- package/dist/collection/components/input-time-picker/input-time-picker.stories.js +77 -0
- package/dist/collection/components/label/label.js +5 -5
- package/dist/collection/components/label/label.stories.js +178 -0
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +4 -4
- package/dist/collection/components/link/link.stories.js +89 -0
- package/dist/collection/components/list/list.js +3 -3
- package/dist/collection/components/list/list.stories.js +187 -0
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +8 -8
- package/dist/collection/components/loader/loader.stories.js +42 -0
- package/dist/collection/components/modal/modal.js +19 -19
- package/dist/collection/components/modal/modal.stories.js +66 -0
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +14 -14
- package/dist/collection/components/notice/notice.stories.js +90 -0
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +4 -4
- package/dist/collection/components/option-group/option-group.js +3 -3
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/pagination/pagination.stories.js +37 -0
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +32 -29
- package/dist/collection/components/panel/panel.stories.js +181 -0
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +12 -12
- package/dist/collection/components/pick-list/pick-list.stories.js +142 -0
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +15 -15
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +24 -22
- package/dist/collection/components/popover/popover.stories.js +95 -0
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +10 -5
- package/dist/collection/components/progress/progress.stories.js +28 -0
- package/dist/collection/components/radio-button/radio-button.js +11 -11
- package/dist/collection/components/radio-button/radio-button.stories.js +43 -0
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +7 -7
- package/dist/collection/components/radio-button-group/radio-button-group.stories.js +67 -0
- package/dist/collection/components/radio-group/radio-group.js +7 -7
- package/dist/collection/components/radio-group/radio-group.stories.js +79 -0
- package/dist/collection/components/radio-group-item/radio-group-item.js +5 -5
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +9 -9
- package/dist/collection/components/rating/rating.stories.js +42 -0
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +3 -3
- package/dist/collection/components/scrim/scrim.stories.js +70 -0
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +8 -8
- package/dist/collection/components/select/select.stories.js +109 -0
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell/shell.stories.js +482 -0
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +3 -3
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +10 -10
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +24 -24
- package/dist/collection/components/slider/slider.stories.js +227 -0
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +8 -8
- package/dist/collection/components/split-button/split-button.stories.js +112 -0
- package/dist/collection/components/stepper/stepper.js +27 -5
- package/dist/collection/components/stepper/stepper.stories.js +163 -0
- package/dist/collection/components/stepper-item/stepper-item.js +43 -16
- package/dist/collection/components/switch/switch.js +8 -8
- package/dist/collection/components/switch/switch.stories.js +32 -0
- package/dist/collection/components/tab/tab.js +5 -5
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +9 -9
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +7 -7
- package/dist/collection/components/tabs/tabs.stories.js +223 -0
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +10 -10
- package/dist/collection/components/tile/tile.stories.js +81 -0
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +11 -11
- package/dist/collection/components/tile-select/tile-select.stories.js +137 -0
- package/dist/collection/components/tile-select-group/tile-select-group.js +3 -3
- package/dist/collection/components/tile-select-group/tile-select-group.stories.js +89 -0
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +49 -13
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +5 -5
- package/dist/collection/components/tip/tip.stories.js +60 -0
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +3 -3
- package/dist/collection/components/tip-manager/tip-manager.stories.js +115 -0
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/tooltip/tooltip.stories.js +60 -0
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -2
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +2 -2
- package/dist/collection/components/tree/tree.stories.js +76 -0
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +7 -7
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +18 -18
- package/dist/collection/components/value-list/value-list.stories.js +125 -0
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +9 -9
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +52 -45
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +16 -16
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +3 -3
- package/dist/components/action-menu.js +3 -3
- package/dist/components/action.js +6 -6
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +4 -4
- package/dist/components/calcite-accordion.js +3 -3
- package/dist/components/calcite-action-bar.js +3 -3
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +3 -3
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +11 -12
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +7 -6
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +6 -3
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +2 -2
- package/dist/components/calcite-input-number.js +17 -17
- package/dist/components/calcite-input-text.js +10 -10
- package/dist/components/calcite-input-time-picker.js +51 -13
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +3 -3
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +9 -9
- package/dist/components/calcite-notice.js +7 -7
- package/dist/components/calcite-option-group.js +2 -2
- package/dist/components/calcite-option.js +2 -2
- package/dist/components/calcite-pagination.js +4 -4
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +7 -7
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +4 -4
- package/dist/components/calcite-radio-button.js +5 -5
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +4 -4
- package/dist/components/calcite-rating.js +5 -5
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +4 -4
- package/dist/components/calcite-shell-center-row.js +2 -2
- package/dist/components/calcite-shell-panel.js +5 -5
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +12 -12
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +4 -4
- package/dist/components/calcite-stepper-item.js +32 -11
- package/dist/components/calcite-stepper.js +4 -3
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +2 -2
- package/dist/components/calcite-tile-select.js +6 -6
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +2 -2
- package/dist/components/calcite-tip.js +3 -3
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +4 -4
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +5 -5
- package/dist/components/calcite-value-list.js +8 -8
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +6 -6
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.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/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 +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +18 -18
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/loader.js +4 -4
- package/dist/components/locale.js +53 -46
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +17 -14
- package/dist/components/pick-list-item.js +7 -7
- package/dist/components/popover.js +13 -11
- package/dist/components/progress.js +8 -3
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +4 -4
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +4 -4
- package/dist/components/tab.js +3 -3
- package/dist/components/tabs.js +4 -4
- package/dist/components/tile.js +5 -5
- package/dist/components/time-picker.js +42 -27
- package/dist/components/tooltip.js +2 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-21a5493f.js → ExpandToggle-c4680d33.js} +5 -5
- package/dist/esm/{Heading-0da1d231.js → Heading-101a701e.js} +2 -2
- package/dist/esm/{app-globals-53484588.js → app-globals-ce2cbf03.js} +2 -2
- package/dist/esm/{array-afca26e4.js → array-2549899e.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +12 -12
- package/dist/esm/calcite-action-bar.entry.js +13 -13
- package/dist/esm/calcite-action-group.entry.js +11 -11
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +12 -12
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +19 -20
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +16 -15
- package/dist/esm/calcite-button.entry.js +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +14 -14
- package/dist/esm/calcite-date-picker_4.entry.js +16 -16
- package/dist/esm/calcite-dropdown_3.entry.js +11 -11
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +12 -9
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +23 -23
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +15 -15
- package/dist/esm/calcite-input-message.entry.js +6 -6
- package/dist/esm/calcite-input-number.entry.js +28 -28
- package/dist/esm/calcite-input-text.entry.js +18 -18
- package/dist/esm/calcite-input-time-picker_2.entry.js +97 -47
- package/dist/esm/calcite-input.entry.js +29 -29
- package/dist/esm/calcite-label.entry.js +8 -8
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +12 -12
- package/dist/esm/calcite-loader.entry.js +6 -6
- package/dist/esm/calcite-modal.entry.js +16 -16
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +14 -14
- package/dist/esm/calcite-pagination.entry.js +11 -11
- package/dist/esm/calcite-panel.entry.js +26 -23
- package/dist/esm/calcite-pick-list_3.entry.js +24 -24
- package/dist/esm/calcite-popover_2.entry.js +23 -21
- package/dist/esm/calcite-progress.entry.js +9 -4
- package/dist/esm/calcite-radio-button-group.entry.js +6 -6
- package/dist/esm/calcite-radio-button.entry.js +13 -13
- package/dist/esm/calcite-radio-group_2.entry.js +13 -13
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +13 -13
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +40 -18
- package/dist/esm/calcite-switch.entry.js +12 -12
- package/dist/esm/calcite-tab_4.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +10 -10
- package/dist/esm/calcite-tile.entry.js +12 -12
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip_2.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +11 -11
- package/dist/esm/calcite-value-list_2.entry.js +23 -23
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-e50c9f14.js → conditionalSlot-97eefd44.js} +3 -3
- package/dist/esm/{debounce-6816d02c.js → debounce-eb8de851.js} +1 -1
- package/dist/esm/{dom-1ac7b489.js → dom-648b4a2f.js} +3 -3
- package/dist/esm/{filter-1cca1a38.js → filter-7d351602.js} +2 -2
- package/dist/esm/{floating-ui-41bd9b35.js → floating-ui-65b7d762.js} +2 -2
- package/dist/esm/{form-08544720.js → form-6ee82a1e.js} +3 -3
- package/dist/esm/{guid-57e25130.js → guid-3260dd45.js} +1 -1
- package/dist/esm/{index-5326c3af.js → index-cf16b53b.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c086cb04.js → interactive-53846bd5.js} +1 -1
- package/dist/esm/{interfaces-ba4e7fb1.js → interfaces-5bcff418.js} +1 -1
- package/dist/esm/{key-42705c39.js → key-a3bce814.js} +1 -1
- package/dist/esm/{label-a209a39c.js → label-a2d9ea4b.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-6840e756.js → locale-66ebbf7a.js} +56 -49
- package/dist/esm/{math-e13ce572.js → math-a5ac6592.js} +1 -1
- package/dist/esm/{observers-68c33472.js → observers-85e8fe58.js} +1 -1
- package/dist/esm/{openCloseComponent-f9f51e92.js → openCloseComponent-926c5b7a.js} +1 -1
- package/dist/esm/{resources-d2b2a177.js → resources-19dbedf3.js} +1 -1
- package/dist/esm/{resources-ba2025cb.js → resources-386257f3.js} +1 -1
- package/dist/esm/{resources-c69a833c.js → resources-418fb8c6.js} +3 -3
- package/dist/esm/{resources-a65a8ad1.js → resources-6177d83d.js} +1 -1
- package/dist/esm/{resources-bf3cbf16.js → resources-8468e332.js} +1 -1
- package/dist/esm/{resources-d0f37d22.js → resources-ab13d20f.js} +5 -5
- package/dist/esm/{sortable.esm-1ad7cec8.js → sortable.esm-aca7e683.js} +1 -1
- package/dist/esm/{utils-f163e9f8.js → utils-78b2f096.js} +1 -1
- package/dist/extras/docs-json.json +553 -250
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +3 -3
- package/dist/types/components/action/action.d.ts +6 -6
- package/dist/types/components/action-bar/action-bar.d.ts +2 -2
- package/dist/types/components/action-group/action-group.d.ts +2 -2
- package/dist/types/components/action-menu/action-menu.d.ts +2 -2
- package/dist/types/components/action-pad/action-pad.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +5 -5
- package/dist/types/components/block/resources.d.ts +2 -1
- package/dist/types/components/flow-item/flow-item.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +11 -11
- package/dist/types/components/input-message/input-message.d.ts +1 -1
- package/dist/types/components/input-number/input-number.d.ts +10 -10
- package/dist/types/components/input-text/input-text.d.ts +9 -9
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +9 -5
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +1 -1
- package/dist/types/components/list-item/list-item.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +9 -4
- package/dist/types/components/modal/modal.d.ts +10 -10
- package/dist/types/components/notice/notice.d.ts +7 -7
- package/dist/types/components/option/option.d.ts +2 -2
- package/dist/types/components/option-group/option-group.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/panel/panel.d.ts +15 -15
- package/dist/types/components/pick-list/pick-list.d.ts +6 -6
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +8 -8
- package/dist/types/components/popover/popover.d.ts +13 -11
- package/dist/types/components/progress/progress.d.ts +7 -2
- package/dist/types/components/radio-button/radio-button.d.ts +6 -6
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +3 -3
- package/dist/types/components/radio-group/radio-group.d.ts +3 -3
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -2
- package/dist/types/components/rating/rating.d.ts +4 -4
- package/dist/types/components/scrim/scrim.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +4 -4
- package/dist/types/components/shell-center-row/shell-center-row.d.ts +1 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +5 -5
- package/dist/types/components/slider/slider.d.ts +12 -12
- package/dist/types/components/split-button/split-button.d.ts +4 -4
- package/dist/types/components/stepper/stepper.d.ts +7 -2
- package/dist/types/components/stepper-item/stepper-item.d.ts +13 -9
- package/dist/types/components/switch/switch.d.ts +5 -5
- package/dist/types/components/tab/tab.d.ts +2 -2
- package/dist/types/components/tab-title/tab-title.d.ts +5 -5
- package/dist/types/components/tabs/tabs.d.ts +3 -3
- package/dist/types/components/tile/tile.d.ts +5 -5
- package/dist/types/components/tile-select/tile-select.d.ts +5 -5
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
- package/dist/types/components/time-picker/time-picker.d.ts +7 -2
- package/dist/types/components/tip/tip.d.ts +2 -2
- package/dist/types/components/tip-manager/tip-manager.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +6 -2
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -1
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/tree-item/tree-item.d.ts +3 -3
- package/dist/types/components/value-list/value-list.d.ts +15 -15
- package/dist/types/components/value-list-item/value-list-item.d.ts +4 -4
- package/dist/types/components.d.ts +472 -448
- package/dist/types/utils/locale.d.ts +20 -19
- package/dist/types/utils/time.d.ts +29 -5
- package/hydrate/index.js +416 -323
- package/package.json +5 -5
- package/dist/calcite/p-01cb5477.js +0 -6
- package/dist/calcite/p-27969266.entry.js +0 -6
- package/dist/calcite/p-416510d6.js +0 -6
- package/dist/calcite/p-4c8218d4.entry.js +0 -6
- package/dist/calcite/p-672cf3c2.js +0 -6
- package/dist/calcite/p-99889377.entry.js +0 -6
- package/dist/calcite/p-a5ec748f.entry.js +0 -6
- package/dist/calcite/p-a8b04902.entry.js +0 -6
- package/dist/calcite/p-ab03590a.entry.js +0 -6
- package/dist/calcite/p-b31ac46b.entry.js +0 -6
- package/dist/calcite/p-b8492482.entry.js +0 -6
- package/dist/calcite/p-e9ccd0bc.entry.js +0 -6
- package/dist/calcite/p-f52edbbb.entry.js +0 -6
- package/dist/collection/components/accordion/accordion.e2e.js +0 -183
- package/dist/collection/components/accordion-item/accordion-item.e2e.js +0 -8
- package/dist/collection/components/action/action.e2e.js +0 -93
- package/dist/collection/components/action-bar/action-bar.e2e.js +0 -290
- package/dist/collection/components/action-group/action-group.e2e.js +0 -23
- package/dist/collection/components/action-menu/action-menu.e2e.js +0 -153
- package/dist/collection/components/action-pad/action-pad.e2e.js +0 -178
- package/dist/collection/components/alert/alert.e2e.js +0 -294
- package/dist/collection/components/avatar/avatar.e2e.js +0 -55
- package/dist/collection/components/avatar/avatar.spec.js +0 -42
- package/dist/collection/components/block/block.e2e.js +0 -194
- package/dist/collection/components/block-section/block-section.e2e.js +0 -132
- package/dist/collection/components/button/button.e2e.js +0 -529
- package/dist/collection/components/card/card.e2e.js +0 -87
- package/dist/collection/components/checkbox/checkbox.e2e.js +0 -105
- package/dist/collection/components/chip/chip.e2e.js +0 -149
- package/dist/collection/components/color-picker/color-picker.e2e.js +0 -1068
- package/dist/collection/components/color-picker/utils.spec.js +0 -66
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +0 -281
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +0 -71
- package/dist/collection/components/combobox/combobox.e2e.js +0 -1043
- package/dist/collection/components/combobox-item/combobox-item.e2e.js +0 -7
- package/dist/collection/components/date-picker/date-picker.e2e.js +0 -195
- package/dist/collection/components/date-picker/utils.spec.js +0 -55
- package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +0 -16
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +0 -72
- package/dist/collection/components/dropdown/dropdown.e2e.js +0 -1030
- package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +0 -5
- package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +0 -6
- package/dist/collection/components/fab/fab.e2e.js +0 -114
- package/dist/collection/components/filter/filter.e2e.js +0 -205
- package/dist/collection/components/flow/flow.e2e.js +0 -166
- package/dist/collection/components/flow-item/flow-item.e2e.js +0 -72
- package/dist/collection/components/functional/Heading.spec.js +0 -33
- package/dist/collection/components/graph/graph.e2e.js +0 -69
- package/dist/collection/components/handle/handle.e2e.js +0 -30
- package/dist/collection/components/icon/icon.e2e.js +0 -75
- package/dist/collection/components/icon/utils.spec.js +0 -61
- package/dist/collection/components/inline-editable/inline-editable.e2e.js +0 -327
- package/dist/collection/components/input/input.e2e.js +0 -1192
- package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +0 -295
- package/dist/collection/components/input-message/input-message.e2e.js +0 -122
- package/dist/collection/components/input-number/input-number.e2e.js +0 -1004
- package/dist/collection/components/input-text/input-text.e2e.js +0 -276
- package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +0 -241
- package/dist/collection/components/label/label.e2e.js +0 -156
- package/dist/collection/components/link/link.e2e.js +0 -257
- package/dist/collection/components/list/list.e2e.js +0 -32
- package/dist/collection/components/list-item/list-item.e2e.js +0 -46
- package/dist/collection/components/list-item-group/list-item-group.e2e.js +0 -16
- package/dist/collection/components/loader/loader.e2e.js +0 -49
- package/dist/collection/components/modal/modal.e2e.js +0 -382
- package/dist/collection/components/notice/notice.e2e.js +0 -127
- package/dist/collection/components/option/option.e2e.js +0 -56
- package/dist/collection/components/option-group/option-group.e2e.js +0 -26
- package/dist/collection/components/pagination/pagination.e2e.js +0 -208
- package/dist/collection/components/panel/panel.e2e.js +0 -281
- package/dist/collection/components/pick-list/pick-list.e2e.js +0 -157
- package/dist/collection/components/pick-list/shared-list-tests.js +0 -463
- package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +0 -54
- package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +0 -124
- package/dist/collection/components/popover/popover.e2e.js +0 -454
- package/dist/collection/components/popover-manager/popover-manager.e2e.js +0 -38
- package/dist/collection/components/progress/progress.e2e.js +0 -7
- package/dist/collection/components/radio-button/radio-button.e2e.js +0 -332
- package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +0 -384
- package/dist/collection/components/radio-group/radio-group.e2e.js +0 -258
- package/dist/collection/components/radio-group-item/radio-group-item.e2e.js +0 -92
- package/dist/collection/components/rating/rating.e2e.js +0 -450
- package/dist/collection/components/scrim/scrim.e2e.js +0 -122
- package/dist/collection/components/select/select.e2e.js +0 -266
- package/dist/collection/components/shell/shell.e2e.js +0 -126
- package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +0 -66
- package/dist/collection/components/shell-panel/shell-panel.e2e.js +0 -282
- package/dist/collection/components/slider/slider.e2e.js +0 -648
- package/dist/collection/components/sortable-list/sortable-list.e2e.js +0 -57
- package/dist/collection/components/split-button/split-button.e2e.js +0 -206
- package/dist/collection/components/stepper/stepper.e2e.js +0 -558
- package/dist/collection/components/stepper-item/stepper-item.e2e.js +0 -6
- package/dist/collection/components/switch/switch.e2e.js +0 -91
- package/dist/collection/components/tab/tab.e2e.js +0 -49
- package/dist/collection/components/tab-nav/tab-nav.e2e.js +0 -143
- package/dist/collection/components/tab-title/tab-title.e2e.js +0 -222
- package/dist/collection/components/tabs/tabs.e2e.js +0 -281
- package/dist/collection/components/tile/tile.e2e.js +0 -79
- package/dist/collection/components/tile-select/tile-select.e2e.js +0 -133
- package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +0 -14
- package/dist/collection/components/time-picker/time-picker.e2e.js +0 -737
- package/dist/collection/components/tip/tip.e2e.js +0 -42
- package/dist/collection/components/tip-group/tip-group.e2e.js +0 -6
- package/dist/collection/components/tip-manager/tip-manager.e2e.js +0 -176
- package/dist/collection/components/tip-manager/tip-manager.spec.js +0 -13
- package/dist/collection/components/tooltip/tooltip.e2e.js +0 -359
- package/dist/collection/components/tooltip-manager/tooltip-manager.e2e.js +0 -19
- package/dist/collection/components/tree/tree.e2e.js +0 -586
- package/dist/collection/components/tree-item/tree-item.e2e.js +0 -302
- package/dist/collection/components/value-list/value-list.e2e.js +0 -205
- package/dist/collection/components/value-list-item/value-list-item.e2e.js +0 -96
- package/dist/collection/demos/_assets/demo-dom-swapper.js +0 -45
- package/dist/collection/demos/_assets/demo-spacer.js +0 -17
- package/dist/collection/demos/_assets/demo-template.js +0 -24
- package/dist/collection/demos/_assets/head.js +0 -48
- package/dist/collection/demos/_assets/locales.js +0 -223
- package/dist/collection/tests/commonTests.js +0 -596
- package/dist/collection/tests/utils.js +0 -200
- package/dist/collection/utils/date.spec.js +0 -153
- package/dist/collection/utils/dom.e2e.js +0 -107
- package/dist/collection/utils/dom.spec.js +0 -273
- package/dist/collection/utils/floating-ui.spec.js +0 -23
- package/dist/collection/utils/form.spec.js +0 -16
- package/dist/collection/utils/globalAttributes.spec.js +0 -36
- package/dist/collection/utils/guid.spec.js +0 -7
- package/dist/collection/utils/interactive.spec.js +0 -20
- package/dist/collection/utils/label.spec.js +0 -188
- package/dist/collection/utils/locale.spec.js +0 -44
- package/dist/collection/utils/math.spec.js +0 -8
- package/dist/collection/utils/number.spec.js +0 -113
- package/dist/collection/utils/popper.js +0 -121
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.598
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5835,8 +5835,8 @@ class Accordion {
|
|
|
5835
5835
|
/** Specifies the size of the component. */
|
|
5836
5836
|
this.scale = "m";
|
|
5837
5837
|
/**
|
|
5838
|
-
* Specifies the selection mode - "multi" (allow any number of open items), "single" (allow one open item),
|
|
5839
|
-
* or "single-persist" (allow and require one open item).
|
|
5838
|
+
* Specifies the selection mode - `"multi"` (allow any number of open items), `"single"` (allow one open item),
|
|
5839
|
+
* or `"single-persist"` (allow and require one open item).
|
|
5840
5840
|
*/
|
|
5841
5841
|
this.selectionMode = "multi";
|
|
5842
5842
|
//--------------------------------------------------------------------------
|
|
@@ -6240,12 +6240,12 @@ class AccordionItem {
|
|
|
6240
6240
|
//
|
|
6241
6241
|
//--------------------------------------------------------------------------
|
|
6242
6242
|
/**
|
|
6243
|
-
* When true
|
|
6243
|
+
* When `true`, the component is active.
|
|
6244
6244
|
*
|
|
6245
|
-
* @deprecated use expanded instead
|
|
6245
|
+
* @deprecated use `expanded` instead.
|
|
6246
6246
|
*/
|
|
6247
6247
|
this.active = false;
|
|
6248
|
-
/** When true
|
|
6248
|
+
/** When `true`, the component is expanded. */
|
|
6249
6249
|
this.expanded = false;
|
|
6250
6250
|
/** what icon position does the parent accordion specify */
|
|
6251
6251
|
this.iconPosition = "end";
|
|
@@ -6489,21 +6489,21 @@ class Action {
|
|
|
6489
6489
|
//
|
|
6490
6490
|
// --------------------------------------------------------------------------
|
|
6491
6491
|
/**
|
|
6492
|
-
* When true
|
|
6492
|
+
* When `true`, the component is highlighted.
|
|
6493
6493
|
*/
|
|
6494
6494
|
this.active = false;
|
|
6495
6495
|
/** Specifies the appearance of the component. */
|
|
6496
6496
|
this.appearance = "solid";
|
|
6497
6497
|
/**
|
|
6498
|
-
* When true
|
|
6498
|
+
* When `true`, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.
|
|
6499
6499
|
*/
|
|
6500
6500
|
this.compact = false;
|
|
6501
6501
|
/**
|
|
6502
|
-
* When true
|
|
6502
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
6503
6503
|
*/
|
|
6504
6504
|
this.disabled = false;
|
|
6505
6505
|
/**
|
|
6506
|
-
* When true
|
|
6506
|
+
* When `true`, indicates unread changes.
|
|
6507
6507
|
*/
|
|
6508
6508
|
this.indicator = false;
|
|
6509
6509
|
/**
|
|
@@ -6513,7 +6513,7 @@ class Action {
|
|
|
6513
6513
|
*/
|
|
6514
6514
|
this.intlLoading = TEXT$u.loading;
|
|
6515
6515
|
/**
|
|
6516
|
-
* When true
|
|
6516
|
+
* When `true`, a busy indicator is displayed.
|
|
6517
6517
|
*/
|
|
6518
6518
|
this.loading = false;
|
|
6519
6519
|
/**
|
|
@@ -8042,11 +8042,11 @@ class ActionBar {
|
|
|
8042
8042
|
//
|
|
8043
8043
|
// --------------------------------------------------------------------------
|
|
8044
8044
|
/**
|
|
8045
|
-
* When true
|
|
8045
|
+
* When `true`, the expand-toggling behavior is disabled.
|
|
8046
8046
|
*/
|
|
8047
8047
|
this.expandDisabled = false;
|
|
8048
8048
|
/**
|
|
8049
|
-
* When true
|
|
8049
|
+
* When `true`, the component is expanded.
|
|
8050
8050
|
*/
|
|
8051
8051
|
this.expanded = false;
|
|
8052
8052
|
/**
|
|
@@ -8244,7 +8244,7 @@ class ActionGroup {
|
|
|
8244
8244
|
//
|
|
8245
8245
|
// --------------------------------------------------------------------------
|
|
8246
8246
|
/**
|
|
8247
|
-
* When true
|
|
8247
|
+
* When `true`, the component is expanded.
|
|
8248
8248
|
*/
|
|
8249
8249
|
this.expanded = false;
|
|
8250
8250
|
/**
|
|
@@ -8252,7 +8252,7 @@ class ActionGroup {
|
|
|
8252
8252
|
*/
|
|
8253
8253
|
this.layout = "vertical";
|
|
8254
8254
|
/**
|
|
8255
|
-
* When true
|
|
8255
|
+
* When `true`, the `calcite-action-menu` is open.
|
|
8256
8256
|
*/
|
|
8257
8257
|
this.menuOpen = false;
|
|
8258
8258
|
// --------------------------------------------------------------------------
|
|
@@ -8346,11 +8346,11 @@ class ActionMenu {
|
|
|
8346
8346
|
//
|
|
8347
8347
|
// --------------------------------------------------------------------------
|
|
8348
8348
|
/**
|
|
8349
|
-
* When true
|
|
8349
|
+
* When `true`, the component is expanded.
|
|
8350
8350
|
*/
|
|
8351
8351
|
this.expanded = false;
|
|
8352
8352
|
/**
|
|
8353
|
-
* When true
|
|
8353
|
+
* When `true`, the component is open.
|
|
8354
8354
|
*/
|
|
8355
8355
|
this.open = false;
|
|
8356
8356
|
/**
|
|
@@ -8657,11 +8657,11 @@ class ActionPad {
|
|
|
8657
8657
|
//
|
|
8658
8658
|
// --------------------------------------------------------------------------
|
|
8659
8659
|
/**
|
|
8660
|
-
* When true
|
|
8660
|
+
* When `true`, the expand-toggling behavior is disabled.
|
|
8661
8661
|
*/
|
|
8662
8662
|
this.expandDisabled = false;
|
|
8663
8663
|
/**
|
|
8664
|
-
* When true
|
|
8664
|
+
* When `true`, the component is expanded.
|
|
8665
8665
|
*/
|
|
8666
8666
|
this.expanded = false;
|
|
8667
8667
|
/**
|
|
@@ -9125,56 +9125,63 @@ function getLocale(component) {
|
|
|
9125
9125
|
*/
|
|
9126
9126
|
class NumberStringFormat {
|
|
9127
9127
|
constructor() {
|
|
9128
|
-
/**
|
|
9129
|
-
* This method needs to be called before localize/delocalize to ensure the options are up to date
|
|
9130
|
-
*
|
|
9131
|
-
* @param options
|
|
9132
|
-
*/
|
|
9133
|
-
this.setOptions = (options) => {
|
|
9134
|
-
const locale = getSupportedLocale(options.locale);
|
|
9135
|
-
const numberingSystem = getSupportedNumberingSystem(options.numberingSystem);
|
|
9136
|
-
// cache formatter by only recreating when options change
|
|
9137
|
-
if (numberingSystem === this.numberingSystem &&
|
|
9138
|
-
locale === this.locale &&
|
|
9139
|
-
(options === null || options === void 0 ? void 0 : options.useGrouping) === this.useGrouping) {
|
|
9140
|
-
return;
|
|
9141
|
-
}
|
|
9142
|
-
this.locale = locale;
|
|
9143
|
-
this.numberingSystem = numberingSystem;
|
|
9144
|
-
this.useGrouping = options.useGrouping;
|
|
9145
|
-
this.numberFormatter = new Intl.NumberFormat(this.locale, {
|
|
9146
|
-
useGrouping: this.useGrouping,
|
|
9147
|
-
numberingSystem: this.numberingSystem,
|
|
9148
|
-
minimumFractionDigits: 0,
|
|
9149
|
-
maximumFractionDigits: 20
|
|
9150
|
-
});
|
|
9151
|
-
this.digits = [
|
|
9152
|
-
...new Intl.NumberFormat(this.locale, {
|
|
9153
|
-
useGrouping: false,
|
|
9154
|
-
numberingSystem: this.numberingSystem
|
|
9155
|
-
}).format(9876543210)
|
|
9156
|
-
].reverse();
|
|
9157
|
-
const index = new Map(this.digits.map((d, i) => [d, i]));
|
|
9158
|
-
const parts = new Intl.NumberFormat(this.locale).formatToParts(-12345678.9);
|
|
9159
|
-
this.actualGroup = parts.find((d) => d.type === "group").value;
|
|
9160
|
-
// change whitespace group characters that don't render correctly
|
|
9161
|
-
this.group = this.actualGroup.trim().length === 0 ? " " : this.actualGroup;
|
|
9162
|
-
this.decimal = parts.find((d) => d.type === "decimal").value;
|
|
9163
|
-
this.minusSign = parts.find((d) => d.type === "minusSign").value;
|
|
9164
|
-
this.getDigitIndex = (d) => index.get(d);
|
|
9165
|
-
};
|
|
9166
9128
|
this.delocalize = (numberString) => sanitizeExponentialNumberString(numberString, (nonExpoNumString) => nonExpoNumString
|
|
9167
9129
|
.trim()
|
|
9168
|
-
.replace(new RegExp(`[${this.
|
|
9169
|
-
.replace(new RegExp(`[${this.
|
|
9170
|
-
.replace(new RegExp(`[${this.
|
|
9171
|
-
.replace(new RegExp(`[${this.
|
|
9130
|
+
.replace(new RegExp(`[${this._minusSign}]`, "g"), "-")
|
|
9131
|
+
.replace(new RegExp(`[${this._group}]`, "g"), "")
|
|
9132
|
+
.replace(new RegExp(`[${this._decimal}]`, "g"), ".")
|
|
9133
|
+
.replace(new RegExp(`[${this._digits.join("")}]`, "g"), this._getDigitIndex));
|
|
9172
9134
|
this.localize = (numberString) => sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString)
|
|
9173
9135
|
? new BigDecimal(nonExpoNumString.trim())
|
|
9174
|
-
.format(this.
|
|
9175
|
-
.replace(new RegExp(`[${this.
|
|
9136
|
+
.format(this._numberFormatter)
|
|
9137
|
+
.replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group)
|
|
9176
9138
|
: nonExpoNumString);
|
|
9177
9139
|
}
|
|
9140
|
+
get group() {
|
|
9141
|
+
return this._group;
|
|
9142
|
+
}
|
|
9143
|
+
get decimal() {
|
|
9144
|
+
return this._decimal;
|
|
9145
|
+
}
|
|
9146
|
+
get minusSign() {
|
|
9147
|
+
return this._minusSign;
|
|
9148
|
+
}
|
|
9149
|
+
get digits() {
|
|
9150
|
+
return this._digits;
|
|
9151
|
+
}
|
|
9152
|
+
get numberFormatter() {
|
|
9153
|
+
return this._numberFormatter;
|
|
9154
|
+
}
|
|
9155
|
+
get numberFormatOptions() {
|
|
9156
|
+
return this._numberFormatOptions;
|
|
9157
|
+
}
|
|
9158
|
+
/**
|
|
9159
|
+
* numberFormatOptions needs to be set before localize/delocalize is called to ensure the options are up to date
|
|
9160
|
+
*/
|
|
9161
|
+
set numberFormatOptions(options) {
|
|
9162
|
+
options.locale = getSupportedLocale(options.locale);
|
|
9163
|
+
options.numberingSystem = getSupportedNumberingSystem(options.numberingSystem);
|
|
9164
|
+
// cache formatter by only recreating when options change
|
|
9165
|
+
if (JSON.stringify(this._numberFormatOptions) === JSON.stringify(options)) {
|
|
9166
|
+
return;
|
|
9167
|
+
}
|
|
9168
|
+
this._numberFormatOptions = options;
|
|
9169
|
+
this._numberFormatter = new Intl.NumberFormat(this._numberFormatOptions.locale, this._numberFormatOptions);
|
|
9170
|
+
this._digits = [
|
|
9171
|
+
...new Intl.NumberFormat(this._numberFormatOptions.locale, {
|
|
9172
|
+
useGrouping: false,
|
|
9173
|
+
numberingSystem: this._numberFormatOptions.numberingSystem
|
|
9174
|
+
}).format(9876543210)
|
|
9175
|
+
].reverse();
|
|
9176
|
+
const index = new Map(this._digits.map((d, i) => [d, i]));
|
|
9177
|
+
const parts = new Intl.NumberFormat(this._numberFormatOptions.locale).formatToParts(-12345678.9);
|
|
9178
|
+
this._actualGroup = parts.find((d) => d.type === "group").value;
|
|
9179
|
+
// change whitespace group characters that don't render correctly
|
|
9180
|
+
this._group = this._actualGroup.trim().length === 0 ? " " : this._actualGroup;
|
|
9181
|
+
this._decimal = parts.find((d) => d.type === "decimal").value;
|
|
9182
|
+
this._minusSign = parts.find((d) => d.type === "minusSign").value;
|
|
9183
|
+
this._getDigitIndex = (d) => index.get(d);
|
|
9184
|
+
}
|
|
9178
9185
|
}
|
|
9179
9186
|
const numberStringFormatter = new NumberStringFormat();
|
|
9180
9187
|
|
|
@@ -9204,14 +9211,14 @@ class Alert {
|
|
|
9204
9211
|
//
|
|
9205
9212
|
//---------------------------------------------------------------------------
|
|
9206
9213
|
/**
|
|
9207
|
-
* When true
|
|
9214
|
+
* When `true`, displays and positions the component.
|
|
9208
9215
|
*
|
|
9209
|
-
* @deprecated use open instead
|
|
9216
|
+
* @deprecated use `open` instead.
|
|
9210
9217
|
*/
|
|
9211
9218
|
this.active = false;
|
|
9212
|
-
/** When true
|
|
9219
|
+
/** When `true`, displays and positions the component. */
|
|
9213
9220
|
this.open = false;
|
|
9214
|
-
/** When true
|
|
9221
|
+
/** When `true`, the component closes automatically (recommended for passive, non-blocking alerts). */
|
|
9215
9222
|
this.autoDismiss = false;
|
|
9216
9223
|
/** Specifies the duration before the component automatically closes (only use with `autoDismiss`). */
|
|
9217
9224
|
this.autoDismissDuration = this.autoDismiss ? "medium" : null;
|
|
@@ -9309,14 +9316,13 @@ class Alert {
|
|
|
9309
9316
|
}
|
|
9310
9317
|
render() {
|
|
9311
9318
|
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
numberingSystem: getSupportedNumberingSystem(this.numberingSystem),
|
|
9319
|
+
numberStringFormatter.numberFormatOptions = {
|
|
9320
|
+
locale: this.effectiveLocale,
|
|
9321
|
+
numberingSystem: this.numberingSystem,
|
|
9316
9322
|
signDisplay: "always"
|
|
9317
|
-
}
|
|
9323
|
+
};
|
|
9318
9324
|
const queueNumber = this.queueLength > 2 ? this.queueLength - 1 : 1;
|
|
9319
|
-
const queueText =
|
|
9325
|
+
const queueText = numberStringFormatter.numberFormatter.format(queueNumber);
|
|
9320
9326
|
const queueCount = (hAsync("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
9321
9327
|
const { active, autoDismiss, label, placement, queued, requestedIcon } = this;
|
|
9322
9328
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
@@ -9690,8 +9696,9 @@ class Avatar {
|
|
|
9690
9696
|
}
|
|
9691
9697
|
|
|
9692
9698
|
const CSS$P = {
|
|
9693
|
-
|
|
9699
|
+
container: "container",
|
|
9694
9700
|
content: "content",
|
|
9701
|
+
contentSpaced: "content--spaced",
|
|
9695
9702
|
headerContainer: "header-container",
|
|
9696
9703
|
icon: "icon",
|
|
9697
9704
|
statusIcon: "status-icon",
|
|
@@ -9737,7 +9744,7 @@ const Heading = (props, children) => {
|
|
|
9737
9744
|
return hAsync(HeadingTag, { ...props }, children);
|
|
9738
9745
|
};
|
|
9739
9746
|
|
|
9740
|
-
const blockCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-block:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-block{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-block{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-block{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-block{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-block{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-block:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-block-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-block-h *.sc-calcite-block{box-sizing:border-box}/*!@:host*/.sc-calcite-block-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-block:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-block-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-block-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-block-h{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;transition-property:margin;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);flex-basis:auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-block-h[disabled] .sc-calcite-block-s>[calcite-hydrated][disabled],[disabled].sc-calcite-block-h [calcite-hydrated][disabled].sc-calcite-block{opacity:1}/*!@.header*/.header.sc-calcite-block{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-block{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-block .heading.sc-calcite-block{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-block{justify-content:flex-start;padding:0px}/*!@.header,\n.toggle*/.header.sc-calcite-block,.toggle.sc-calcite-block{grid-area:header}/*!@.header-container*/.header-container.sc-calcite-block{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}/*!@.toggle*/.toggle.sc-calcite-block{margin:0px;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}/*!@.toggle:hover*/.toggle.sc-calcite-block:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.toggle:focus*/.toggle.sc-calcite-block:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@calcite-loader[inline]*/calcite-loader[inline].sc-calcite-block{grid-area:control;align-self:center}/*!@calcite-handle*/calcite-handle.sc-calcite-block{grid-area:handle}/*!@.title*/.title.sc-calcite-block{margin:0px;padding:0.75rem}/*!@.header .title .heading*/.header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}/*!@.description*/.description.sc-calcite-block{margin-block-start:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}/*!@.icon*/.icon.sc-calcite-block{margin-inline-start:0.75rem;margin-inline-end:0px;margin-block:0.75rem}/*!@.status-icon.valid*/.status-icon.valid.sc-calcite-block{color:var(--calcite-ui-success)}/*!@.status-icon.invalid*/.status-icon.invalid.sc-calcite-block{color:var(--calcite-ui-danger)}/*!@.status-icon.loading*/.status-icon.loading.sc-calcite-block{animation:spin var(--calcite-internal-animation-timing-medium) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}/*!@.toggle-icon*/.toggle-icon.sc-calcite-block{margin-block:0.75rem;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:1rem;margin-inline-start:auto}/*!@.toggle:hover .toggle-icon*/.toggle.sc-calcite-block:hover .toggle-icon.sc-calcite-block{color:var(--calcite-ui-text-1)}/*!@.content*/.content.sc-calcite-block{position:relative}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@.content*/.content.sc-calcite-block{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.content--spaced*/.content--spaced.sc-calcite-block{padding-block:var(--calcite-block-padding, 0.5rem);padding-inline:var(--calcite-block-padding, 0.625rem)}/*!@.control-container*/.control-container.sc-calcite-block{margin:0px;display:flex;grid-area:control}/*!@calcite-action-menu*/calcite-action-menu.sc-calcite-block{grid-area:menu}/*!@:host([open])*/[open].sc-calcite-block-h{margin-block:0.5rem}/*!@:host([open]) .header .title .heading*/[open].sc-calcite-block-h .header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{color:var(--calcite-ui-text-1)}";
|
|
9747
|
+
const blockCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-block:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-block{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-block{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-block{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-block{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-block{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-block:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-block-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-block-h *.sc-calcite-block{box-sizing:border-box}/*!@:host*/.sc-calcite-block-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-block:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-block-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-block-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-block-h{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;transition-property:margin;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);flex-basis:auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-block-h[disabled] .sc-calcite-block-s>[calcite-hydrated][disabled],[disabled].sc-calcite-block-h [calcite-hydrated][disabled].sc-calcite-block{opacity:1}/*!@.header*/.header.sc-calcite-block{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-block{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-block .heading.sc-calcite-block{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-block{justify-content:flex-start;padding:0px}/*!@.header,\n.toggle*/.header.sc-calcite-block,.toggle.sc-calcite-block{grid-area:header}/*!@.header-container*/.header-container.sc-calcite-block{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}/*!@.toggle*/.toggle.sc-calcite-block{margin:0px;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}/*!@.toggle:hover*/.toggle.sc-calcite-block:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.toggle:focus*/.toggle.sc-calcite-block:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@calcite-loader[inline]*/calcite-loader[inline].sc-calcite-block{grid-area:control;align-self:center}/*!@calcite-handle*/calcite-handle.sc-calcite-block{grid-area:handle}/*!@.title*/.title.sc-calcite-block{margin:0px;padding:0.75rem}/*!@.header .title .heading*/.header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}/*!@.description*/.description.sc-calcite-block{margin-block-start:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}/*!@.icon*/.icon.sc-calcite-block{margin-inline-start:0.75rem;margin-inline-end:0px;margin-block:0.75rem}/*!@.status-icon.valid*/.status-icon.valid.sc-calcite-block{color:var(--calcite-ui-success)}/*!@.status-icon.invalid*/.status-icon.invalid.sc-calcite-block{color:var(--calcite-ui-danger)}/*!@.status-icon.loading*/.status-icon.loading.sc-calcite-block{animation:spin var(--calcite-internal-animation-timing-medium) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}/*!@.toggle-icon*/.toggle-icon.sc-calcite-block{margin-block:0.75rem;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:1rem;margin-inline-start:auto}/*!@.toggle:hover .toggle-icon*/.toggle.sc-calcite-block:hover .toggle-icon.sc-calcite-block{color:var(--calcite-ui-text-1)}/*!@.container*/.container.sc-calcite-block{display:flex;block-size:100%;flex-direction:column}/*!@.content*/.content.sc-calcite-block{position:relative;flex:1 1 0%}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@.content*/.content.sc-calcite-block{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.content--spaced*/.content--spaced.sc-calcite-block{padding-block:var(--calcite-block-padding, 0.5rem);padding-inline:var(--calcite-block-padding, 0.625rem)}/*!@.control-container*/.control-container.sc-calcite-block{margin:0px;display:flex;grid-area:control}/*!@calcite-action-menu*/calcite-action-menu.sc-calcite-block{grid-area:menu}/*!@:host([open])*/[open].sc-calcite-block-h{margin-block:0.5rem}/*!@:host([open]) .header .title .heading*/[open].sc-calcite-block-h .header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{color:var(--calcite-ui-text-1)}";
|
|
9741
9748
|
|
|
9742
9749
|
/**
|
|
9743
9750
|
* @slot - A slot for adding content to the block.
|
|
@@ -9873,10 +9880,10 @@ class Block {
|
|
|
9873
9880
|
const buttonId = `${guid}-button`;
|
|
9874
9881
|
const headerNode = (hAsync("div", { class: CSS$P.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$P.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$P.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$P.controlContainer }, hAsync("slot", { name: SLOTS$n.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$p.options }, hAsync("slot", { name: SLOTS$n.headerMenuActions }))) : null));
|
|
9875
9882
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
9876
|
-
[CSS$P.
|
|
9883
|
+
[CSS$P.container]: true
|
|
9877
9884
|
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
9878
|
-
content: true,
|
|
9879
|
-
|
|
9885
|
+
[CSS$P.content]: true,
|
|
9886
|
+
[CSS$P.contentSpaced]: !this.disablePadding
|
|
9880
9887
|
}, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
9881
9888
|
}
|
|
9882
9889
|
get el() { return getElement(this); }
|
|
@@ -18224,7 +18231,7 @@ class DatePickerMonth {
|
|
|
18224
18231
|
|
|
18225
18232
|
const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
|
18226
18233
|
|
|
18227
|
-
const datePickerMonthHeaderCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-date-picker-month-header{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-date-picker-month-header{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-date-picker-month-header{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-date-picker-month-header{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-date-picker-month-header{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-date-picker-month-header-h{display:none}/*!@:host*/.sc-calcite-date-picker-month-header-h{display:block}/*!@.header*/.header.sc-calcite-date-picker-month-header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}/*!@:host([scale=s]) .text*/[scale=s].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=s]) .chevron*/[scale=s].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:2.25rem}/*!@:host([scale=m]) .text*/[scale=m].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m]) .chevron*/[scale=m].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3rem}/*!@:host([scale=l]) .text*/[scale=l].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3.5rem}/*!@.chevron*/.chevron.sc-calcite-date-picker-month-header{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}/*!@.chevron:focus*/.chevron.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.chevron:hover, .chevron:focus*/.chevron.sc-calcite-date-picker-month-header:hover,.chevron.sc-calcite-date-picker-month-header:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.chevron:active*/.chevron.sc-calcite-date-picker-month-header:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron[aria-disabled=true]*/.chevron[aria-disabled=true].sc-calcite-date-picker-month-header{pointer-events:none;opacity:0}/*!@.text*/.text.sc-calcite-date-picker-month-header{margin-block:auto;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}/*!@.text-nreverse*/.text-nreverse.sc-calcite-date-picker-month-header{flex-direction:row-reverse}/*!@.month, \n.year, \n.suffix*/.month.sc-calcite-date-picker-month-header,.year.sc-calcite-date-picker-month-header,.suffix.sc-calcite-date-picker-month-header{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}/*!@.year*/.year.sc-calcite-date-picker-month-header{position:relative;inline-size:
|
|
18234
|
+
const datePickerMonthHeaderCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-date-picker-month-header{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-date-picker-month-header{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-date-picker-month-header{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-date-picker-month-header{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-date-picker-month-header{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-date-picker-month-header-h{display:none}/*!@:host*/.sc-calcite-date-picker-month-header-h{display:block}/*!@.header*/.header.sc-calcite-date-picker-month-header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}/*!@:host([scale=s]) .text*/[scale=s].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=s]) .chevron*/[scale=s].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:2.25rem}/*!@:host([scale=m]) .text*/[scale=m].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m]) .chevron*/[scale=m].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3rem}/*!@:host([scale=l]) .text*/[scale=l].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3.5rem}/*!@.chevron*/.chevron.sc-calcite-date-picker-month-header{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}/*!@.chevron:focus*/.chevron.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.chevron:hover, .chevron:focus*/.chevron.sc-calcite-date-picker-month-header:hover,.chevron.sc-calcite-date-picker-month-header:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.chevron:active*/.chevron.sc-calcite-date-picker-month-header:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron[aria-disabled=true]*/.chevron[aria-disabled=true].sc-calcite-date-picker-month-header{pointer-events:none;opacity:0}/*!@.text*/.text.sc-calcite-date-picker-month-header{margin-block:auto;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}/*!@.text-nreverse*/.text-nreverse.sc-calcite-date-picker-month-header{flex-direction:row-reverse}/*!@.month, \n.year, \n.suffix*/.month.sc-calcite-date-picker-month-header,.year.sc-calcite-date-picker-month-header,.suffix.sc-calcite-date-picker-month-header{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}/*!@.year*/.year.sc-calcite-date-picker-month-header{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}/*!@.year:hover*/.year.sc-calcite-date-picker-month-header:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}/*!@.year:focus*/.year.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.year--suffix*/.year--suffix.sc-calcite-date-picker-month-header{text-align:start}/*!@.year-wrap*/.year-wrap.sc-calcite-date-picker-month-header{position:relative}/*!@.suffix*/.suffix.sc-calcite-date-picker-month-header{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";
|
|
18228
18235
|
|
|
18229
18236
|
class DatePickerMonthHeader {
|
|
18230
18237
|
constructor(hostRef) {
|
|
@@ -18313,7 +18320,7 @@ class DatePickerMonthHeader {
|
|
|
18313
18320
|
const activeMonth = this.activeDate.getMonth();
|
|
18314
18321
|
const { months, unitOrder } = this.localeData;
|
|
18315
18322
|
const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];
|
|
18316
|
-
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear()
|
|
18323
|
+
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear());
|
|
18317
18324
|
const iconScale = this.scale === "l" ? "m" : "s";
|
|
18318
18325
|
const order = getOrder(unitOrder);
|
|
18319
18326
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
@@ -18321,7 +18328,7 @@ class DatePickerMonthHeader {
|
|
|
18321
18328
|
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": (this.prevMonthDate.getMonth() === activeMonth).toString(), "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), hAsync("div", { class: { text: true, "text--reverse": reverse } }, hAsync(Heading, { class: "month", level: this.headingLevel }, localizedMonth), hAsync("span", { class: "year-wrap" }, hAsync("input", { "aria-label": this.intlYear, class: {
|
|
18322
18329
|
year: true,
|
|
18323
18330
|
"year--suffix": !!suffix
|
|
18324
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix &&
|
|
18331
|
+
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: "suffix" }, suffix))), hAsync("a", { "aria-disabled": (this.nextMonthDate.getMonth() === activeMonth).toString(), "aria-label": this.intlNextMonth, class: "chevron", href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
|
18325
18332
|
}
|
|
18326
18333
|
setNextPrevMonthDates() {
|
|
18327
18334
|
if (!this.activeDate) {
|
|
@@ -18334,7 +18341,7 @@ class DatePickerMonthHeader {
|
|
|
18334
18341
|
const { localeData } = this;
|
|
18335
18342
|
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
18336
18343
|
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
18337
|
-
return localizeNumber(
|
|
18344
|
+
return localizeNumber(year + yearOffset, localeData);
|
|
18338
18345
|
}
|
|
18339
18346
|
parseCalendarYear(year) {
|
|
18340
18347
|
const { localeData } = this;
|
|
@@ -18372,7 +18379,7 @@ class DatePickerMonthHeader {
|
|
|
18372
18379
|
this.calciteDatePickerSelect.emit(inRangeDate);
|
|
18373
18380
|
}
|
|
18374
18381
|
if (commit) {
|
|
18375
|
-
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear()
|
|
18382
|
+
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear());
|
|
18376
18383
|
}
|
|
18377
18384
|
}
|
|
18378
18385
|
get el() { return getElement(this); }
|
|
@@ -19653,6 +19660,9 @@ class FlowItem {
|
|
|
19653
19660
|
this.setBackRef = (node) => {
|
|
19654
19661
|
this.backButtonEl = node;
|
|
19655
19662
|
};
|
|
19663
|
+
this.setContainerRef = (node) => {
|
|
19664
|
+
this.containerEl = node;
|
|
19665
|
+
};
|
|
19656
19666
|
this.getBackLabel = () => {
|
|
19657
19667
|
return this.intlBack || TEXT$g.back;
|
|
19658
19668
|
};
|
|
@@ -19694,7 +19704,7 @@ class FlowItem {
|
|
|
19694
19704
|
*/
|
|
19695
19705
|
async scrollContentTo(options) {
|
|
19696
19706
|
var _a;
|
|
19697
|
-
(_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options);
|
|
19707
|
+
await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
|
|
19698
19708
|
}
|
|
19699
19709
|
// --------------------------------------------------------------------------
|
|
19700
19710
|
//
|
|
@@ -19712,7 +19722,7 @@ class FlowItem {
|
|
|
19712
19722
|
render() {
|
|
19713
19723
|
const { closable, closed, description, disabled, heading, headingLevel, heightScale, intlBack, intlClose, intlOptions, loading, menuOpen, widthScale, backButtonEl } = this;
|
|
19714
19724
|
const label = this.getBackLabel();
|
|
19715
|
-
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, heightScale: heightScale, intlBack: intlBack, intlClose: intlClose, intlOptions: intlOptions, loading: loading, menuOpen: menuOpen, onCalcitePanelClose: this.handlePanelClose, widthScale: widthScale }, hAsync("slot", { name: SLOTS$j.headerActionsStart, slot: SLOTS$i.headerActionsStart }), hAsync("slot", { name: SLOTS$j.headerActionsEnd, slot: SLOTS$i.headerActionsEnd }), hAsync("slot", { name: SLOTS$j.headerContent, slot: SLOTS$i.headerContent }), hAsync("slot", { name: SLOTS$j.headerMenuActions, slot: SLOTS$i.headerMenuActions }), hAsync("slot", { name: SLOTS$j.fab, slot: SLOTS$i.fab }), hAsync("slot", { name: SLOTS$j.footerActions, slot: SLOTS$i.footerActions }), hAsync("slot", { name: SLOTS$j.footer, slot: SLOTS$i.footer }), hAsync("slot", null), this.renderBackButton()), backButtonEl ? (hAsync("calcite-tooltip", { label: label, placement: "auto", referenceElement: backButtonEl }, label)) : null));
|
|
19725
|
+
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, heightScale: heightScale, intlBack: intlBack, intlClose: intlClose, intlOptions: intlOptions, loading: loading, menuOpen: menuOpen, onCalcitePanelClose: this.handlePanelClose, ref: this.setContainerRef, widthScale: widthScale }, hAsync("slot", { name: SLOTS$j.headerActionsStart, slot: SLOTS$i.headerActionsStart }), hAsync("slot", { name: SLOTS$j.headerActionsEnd, slot: SLOTS$i.headerActionsEnd }), hAsync("slot", { name: SLOTS$j.headerContent, slot: SLOTS$i.headerContent }), hAsync("slot", { name: SLOTS$j.headerMenuActions, slot: SLOTS$i.headerMenuActions }), hAsync("slot", { name: SLOTS$j.fab, slot: SLOTS$i.fab }), hAsync("slot", { name: SLOTS$j.footerActions, slot: SLOTS$i.footerActions }), hAsync("slot", { name: SLOTS$j.footer, slot: SLOTS$i.footer }), hAsync("slot", null), this.renderBackButton()), backButtonEl ? (hAsync("calcite-tooltip", { label: label, placement: "auto", referenceElement: backButtonEl }, label)) : null));
|
|
19716
19726
|
}
|
|
19717
19727
|
get el() { return getElement(this); }
|
|
19718
19728
|
static get style() { return flowItemCss; }
|
|
@@ -20456,7 +20466,7 @@ const TEXT$d = {
|
|
|
20456
20466
|
clear: "Clear value"
|
|
20457
20467
|
};
|
|
20458
20468
|
|
|
20459
|
-
const inputCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .suffix.sc-calcite-input{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{block-size:1.5rem;min-block-size:1.5rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:1.5rem}/*!@:host([scale=s]) input[type=file]*/[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .suffix.sc-calcite-input{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-block-size:2rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:2rem}/*!@:host([scale=m]) input[type=file]*/[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .suffix.sc-calcite-input{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-block-size:2.75rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:2.75rem}/*!@:host([scale=l]) input[type=file]*/[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([disabled]) textarea*/[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-h[disabled] .sc-calcite-input-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-h [calcite-hydrated][disabled].sc-calcite-input{opacity:1}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}/*!@:host input[type=search]::-webkit-search-decoration*/.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}/*!@:host input, :host textarea*/.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder, :host textarea::placeholder, :host textarea:-ms-input-placeholder, :host textarea::-ms-input-placeholder*/.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus, :host textarea:focus*/.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly], :host textarea[readonly]*/.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus, :host textarea[readonly]:focus*/.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}/*!@:host textarea, \n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{outline-color:transparent}/*!@:host textarea:focus, \n:host input:focus*/.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input, :host([status=invalid]) textarea*/[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus, :host([status=invalid]) textarea:focus*/[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input{pointer-events:none;position:absolute;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@input[type=text]::-ms-clear, \ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;block-size:0px;inline-size:0px}/*!@input[type=search]::-webkit-search-decoration, \ninput[type=search]::-webkit-search-cancel-button, \ninput[type=search]::-webkit-search-results-button, \ninput[type=search]::-webkit-search-results-decoration, \ninput[type=date]::-webkit-clear-button, \ninput[type=time]::-webkit-clear-button*/input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}/*!@.clear-button*/.clear-button.sc-calcite-input{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input,.suffix.sc-calcite-input{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) textarea, :host([alignment=start]) input*/[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:start}/*!@:host([alignment=end]) textarea, :host([alignment=end]) input*/[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:end}/*!@:host input[type=number]*/.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}/*!@:host input[type=number]::-webkit-inner-spin-button, :host input[type=number]::-webkit-outer-spin-button*/.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-h .wrapper.sc-calcite-input{flex-direction:row;display:flex}/*!@:host([number-button-type=vertical]) input, \n:host([number-button-type=vertical]) textarea*/[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{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*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input{border-block-start-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input{position:relative;display:flex;flex-direction:row;align-items:center}/*!@:host input::-webkit-calendar-picker-indicator*/.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}/*!@:host input[type=date]::-webkit-input-placeholder*/.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}/*!@:host textarea::-webkit-resizer*/.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(45deg)}/*!@:host([type=color]) input*/[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}/*!@:host([type=file]) input*/[type=file].sc-calcite-input-h input.sc-calcite-input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}/*!@:host([type=file][scale=s]) input*/[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-block:1px;padding-inline:0.5rem}/*!@:host([type=file][scale=m]) input*/[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-block:0.25rem;padding-inline:0.75rem}/*!@:host([type=file][scale=l]) input*/[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-block:0.5rem;padding-inline:1rem}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-h input.sc-calcite-input{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-h input.sc-calcite-input{border-block-start-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-h .inline-child.sc-calcite-input{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-h .inline-child.sc-calcite-input .editing-enabled.sc-calcite-input{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-h .inline-child.sc-calcite-input:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-s>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}";
|
|
20469
|
+
const inputCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .suffix.sc-calcite-input{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{block-size:1.5rem;min-block-size:1.5rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:1.5rem}/*!@:host([scale=s]) input[type=file]*/[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .suffix.sc-calcite-input{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-block-size:2rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:2rem}/*!@:host([scale=m]) input[type=file]*/[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .suffix.sc-calcite-input{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-block-size:2.75rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-h .number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{block-size:2.75rem}/*!@:host([scale=l]) input[type=file]*/[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-h .clear-button.sc-calcite-input{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-input-h textarea.sc-calcite-input{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([disabled]) textarea*/[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-h[disabled] .sc-calcite-input-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-h [calcite-hydrated][disabled].sc-calcite-input{opacity:1}/*!@:host textarea,\n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}/*!@:host input[type=search]::-webkit-search-decoration*/.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}/*!@:host input, :host textarea*/.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder, :host textarea::placeholder, :host textarea:-ms-input-placeholder, :host textarea::-ms-input-placeholder*/.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus, :host textarea:focus*/.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly], :host textarea[readonly]*/.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus, :host textarea[readonly]:focus*/.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}/*!@:host textarea, \n:host input*/.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{outline-color:transparent}/*!@:host textarea:focus, \n:host input:focus*/.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input, :host([status=invalid]) textarea*/[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus, :host([status=invalid]) textarea:focus*/[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-h .icon.sc-calcite-input{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input{pointer-events:none;position:absolute;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.icon, \n.resize-icon-wrapper*/.icon.sc-calcite-input,.resize-icon-wrapper.sc-calcite-input{z-index:1}/*!@input[type=text]::-ms-clear, \ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;block-size:0px;inline-size:0px}/*!@input[type=search]::-webkit-search-decoration, \ninput[type=search]::-webkit-search-cancel-button, \ninput[type=search]::-webkit-search-results-button, \ninput[type=search]::-webkit-search-results-decoration, \ninput[type=date]::-webkit-clear-button, \ninput[type=time]::-webkit-clear-button*/input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}/*!@.clear-button*/.clear-button.sc-calcite-input{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input,.suffix.sc-calcite-input{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) textarea, :host([alignment=start]) input*/[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:start}/*!@:host([alignment=end]) textarea, :host([alignment=end]) input*/[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:end}/*!@:host input[type=number]*/.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}/*!@:host input[type=number]::-webkit-inner-spin-button, :host input[type=number]::-webkit-outer-spin-button*/.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-h .wrapper.sc-calcite-input{flex-direction:row;display:flex}/*!@:host([number-button-type=vertical]) input, \n:host([number-button-type=vertical]) textarea*/[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{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*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input{order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-h .number-button-item[data-adjustment=down].sc-calcite-input{border-block-start-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input{position:relative;display:flex;flex-direction:row;align-items:center}/*!@:host input::-webkit-calendar-picker-indicator*/.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}/*!@:host input[type=date]::-webkit-input-placeholder*/.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}/*!@:host textarea::-webkit-resizer*/.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input .resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{transform:rotate(45deg)}/*!@:host([type=color]) input*/[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}/*!@:host([type=file]) input*/[type=file].sc-calcite-input-h input.sc-calcite-input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}/*!@:host([type=file][scale=s]) input*/[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-block:1px;padding-inline:0.5rem}/*!@:host([type=file][scale=m]) input*/[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-block:0.25rem;padding-inline:0.75rem}/*!@:host([type=file][scale=l]) input*/[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-block:0.5rem;padding-inline:1rem}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-h input.sc-calcite-input{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-h input.sc-calcite-input{border-block-start-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-h .inline-child.sc-calcite-input{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-h .inline-child.sc-calcite-input .editing-enabled.sc-calcite-input{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-h .inline-child.sc-calcite-input:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-s>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}";
|
|
20460
20470
|
|
|
20461
20471
|
/**
|
|
20462
20472
|
* @slot action - A slot for positioning a `calcite-button` next to the component.
|
|
@@ -20476,27 +20486,27 @@ class Input {
|
|
|
20476
20486
|
/** Specifies the text alignment of the component's value. */
|
|
20477
20487
|
this.alignment = "start";
|
|
20478
20488
|
/**
|
|
20479
|
-
* When true
|
|
20489
|
+
* When `true`, the component is focused on page load.
|
|
20480
20490
|
*
|
|
20481
20491
|
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
20482
20492
|
*/
|
|
20483
20493
|
this.autofocus = false;
|
|
20484
20494
|
/**
|
|
20485
|
-
* When true
|
|
20495
|
+
* When `true`, a clear button is displayed when the component has a value. The clear button shows by default for `"search"`, `"time"`, and `"date"` types, and will not display for the `"textarea"` type.
|
|
20486
20496
|
*/
|
|
20487
20497
|
this.clearable = false;
|
|
20488
20498
|
/**
|
|
20489
|
-
* When true
|
|
20499
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
20490
20500
|
*
|
|
20491
20501
|
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
20492
20502
|
*/
|
|
20493
20503
|
this.disabled = false;
|
|
20494
20504
|
/**
|
|
20495
|
-
* When true
|
|
20505
|
+
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
20496
20506
|
*/
|
|
20497
20507
|
this.groupSeparator = false;
|
|
20498
20508
|
/**
|
|
20499
|
-
* When true
|
|
20509
|
+
* When `true`, the component will not be visible.
|
|
20500
20510
|
*
|
|
20501
20511
|
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
20502
20512
|
*/
|
|
@@ -20507,12 +20517,12 @@ class Input {
|
|
|
20507
20517
|
* @default "Loading"
|
|
20508
20518
|
*/
|
|
20509
20519
|
this.intlLoading = TEXT$v.loading;
|
|
20510
|
-
/** When true
|
|
20520
|
+
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
|
20511
20521
|
this.iconFlipRtl = false;
|
|
20512
|
-
/** When true
|
|
20522
|
+
/** When `true`, a busy indicator is displayed. */
|
|
20513
20523
|
this.loading = false;
|
|
20514
20524
|
/**
|
|
20515
|
-
* When true
|
|
20525
|
+
* When `true`, uses locale formatting for numbers.
|
|
20516
20526
|
*
|
|
20517
20527
|
* @internal
|
|
20518
20528
|
*/
|
|
@@ -20520,12 +20530,12 @@ class Input {
|
|
|
20520
20530
|
/** Specifies the placement of the buttons for `type="number"`. */
|
|
20521
20531
|
this.numberButtonType = "vertical";
|
|
20522
20532
|
/**
|
|
20523
|
-
* When true
|
|
20533
|
+
* When `true`, the component's value can be read, but cannot be modified.
|
|
20524
20534
|
*
|
|
20525
20535
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
20526
20536
|
*/
|
|
20527
20537
|
this.readOnly = false;
|
|
20528
|
-
/** When true
|
|
20538
|
+
/** When `true`, the component must have a value in order for the form to submit. */
|
|
20529
20539
|
this.required = false;
|
|
20530
20540
|
/** Specifies the size of the component. */
|
|
20531
20541
|
this.scale = "m";
|
|
@@ -20621,11 +20631,11 @@ class Input {
|
|
|
20621
20631
|
return;
|
|
20622
20632
|
}
|
|
20623
20633
|
const value = nativeEvent.target.value;
|
|
20624
|
-
numberStringFormatter.
|
|
20634
|
+
numberStringFormatter.numberFormatOptions = {
|
|
20625
20635
|
locale: this.effectiveLocale,
|
|
20626
20636
|
numberingSystem: this.numberingSystem,
|
|
20627
20637
|
useGrouping: this.groupSeparator
|
|
20628
|
-
}
|
|
20638
|
+
};
|
|
20629
20639
|
const delocalizedValue = numberStringFormatter.delocalize(value);
|
|
20630
20640
|
if (nativeEvent.inputType === "insertFromPaste") {
|
|
20631
20641
|
if (!isValidNumber(delocalizedValue)) {
|
|
@@ -20680,11 +20690,11 @@ class Input {
|
|
|
20680
20690
|
}
|
|
20681
20691
|
return;
|
|
20682
20692
|
}
|
|
20683
|
-
numberStringFormatter.
|
|
20693
|
+
numberStringFormatter.numberFormatOptions = {
|
|
20684
20694
|
locale: this.effectiveLocale,
|
|
20685
20695
|
numberingSystem: this.numberingSystem,
|
|
20686
20696
|
useGrouping: this.groupSeparator
|
|
20687
|
-
}
|
|
20697
|
+
};
|
|
20688
20698
|
if (event.key === numberStringFormatter.decimal) {
|
|
20689
20699
|
if (!this.value && !this.childNumberEl.value) {
|
|
20690
20700
|
return;
|
|
@@ -20788,11 +20798,11 @@ class Input {
|
|
|
20788
20798
|
: newPreviousValue;
|
|
20789
20799
|
};
|
|
20790
20800
|
this.setValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
20791
|
-
numberStringFormatter.
|
|
20801
|
+
numberStringFormatter.numberFormatOptions = {
|
|
20792
20802
|
locale: this.effectiveLocale,
|
|
20793
20803
|
numberingSystem: this.numberingSystem,
|
|
20794
20804
|
useGrouping: this.groupSeparator
|
|
20795
|
-
}
|
|
20805
|
+
};
|
|
20796
20806
|
if (this.type === "number") {
|
|
20797
20807
|
const delocalizedValue = (this.numberingSystem && this.numberingSystem !== "latn") ||
|
|
20798
20808
|
defaultNumberingSystem !== "latn"
|
|
@@ -21730,7 +21740,7 @@ class InputMessage {
|
|
|
21730
21740
|
// Properties
|
|
21731
21741
|
//
|
|
21732
21742
|
//--------------------------------------------------------------------------
|
|
21733
|
-
/** When true
|
|
21743
|
+
/** When `true`, the component is active. */
|
|
21734
21744
|
this.active = false;
|
|
21735
21745
|
/** Specifies the size of the component. */
|
|
21736
21746
|
this.scale = "m";
|
|
@@ -21809,7 +21819,7 @@ const TEXT$c = {
|
|
|
21809
21819
|
clear: "Clear value"
|
|
21810
21820
|
};
|
|
21811
21821
|
|
|
21812
|
-
const inputNumberCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input-number:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input-number{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-number{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-number{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-number{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-number{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-number:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-number:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-number-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-number-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-number-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=s].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=m].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=l].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-number-h[disabled] .sc-calcite-input-number-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-number-h [calcite-hydrated][disabled].sc-calcite-input-number{opacity:1}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-number-h input.sc-calcite-input-number::placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-number-h calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-3)}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{outline-color:transparent}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-number{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input-number{pointer-events:none;position:absolute;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button*/.clear-button.sc-calcite-input-number{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-number:active calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-number:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-number{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-number{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-number,.suffix.sc-calcite-input-number{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input-number{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-number{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:end}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input-number{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-number-h .wrapper.sc-calcite-input-number{flex-direction:row;display:flex}/*!@:host([number-button-type=vertical]) input*/[number-button-type=vertical].sc-calcite-input-number-h input.sc-calcite-input-number{order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{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*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number{border-block-start-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input-number{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input-number calcite-icon.sc-calcite-input-number{pointer-events:none;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input-number:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input-number:focus calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input-number:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input-number{position:relative;display:flex;flex-direction:row;align-items:center}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input-number{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input-number .resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(45deg)}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-number-h input.sc-calcite-input-number{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-number-h input.sc-calcite-input-number{border-block-start-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number .editing-enabled.sc-calcite-input-number{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-number-s>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}";
|
|
21822
|
+
const inputNumberCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input-number:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input-number{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-number{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-number{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-number{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-number{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-number:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-number:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-number-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-number-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-number-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=s].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=m].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .suffix.sc-calcite-input-number{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*/[scale=l].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-number-h[disabled] .sc-calcite-input-number-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-number-h [calcite-hydrated][disabled].sc-calcite-input-number{opacity:1}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-number-h input.sc-calcite-input-number::placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-number-h calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-3)}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{outline-color:transparent}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-number-h input.sc-calcite-input-number{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-number{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input-number{pointer-events:none;position:absolute;z-index:1;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button*/.clear-button.sc-calcite-input-number{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-number:active calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-number:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-number{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-number{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-number,.suffix.sc-calcite-input-number{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input-number{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-number{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:end}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input-number{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-number-h .wrapper.sc-calcite-input-number{flex-direction:row;display:flex}/*!@:host([number-button-type=vertical]) input*/[number-button-type=vertical].sc-calcite-input-number-h input.sc-calcite-input-number{order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{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*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number{border-block-start-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input-number{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input-number calcite-icon.sc-calcite-input-number{pointer-events:none;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input-number:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input-number:focus calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input-number:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input-number{position:relative;display:flex;flex-direction:row;align-items:center}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-number-h input.sc-calcite-input-number{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-number-h input.sc-calcite-input-number{border-block-start-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number .editing-enabled.sc-calcite-input-number{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-number-s>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}";
|
|
21813
21823
|
|
|
21814
21824
|
/**
|
|
21815
21825
|
* @slot action - A slot for positioning a button next to the component.
|
|
@@ -21829,27 +21839,27 @@ class InputNumber {
|
|
|
21829
21839
|
/** Specifies the text alignment of the component's value. */
|
|
21830
21840
|
this.alignment = "start";
|
|
21831
21841
|
/**
|
|
21832
|
-
* When true
|
|
21842
|
+
* When `true`, the component is focused on page load.
|
|
21833
21843
|
*
|
|
21834
21844
|
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
21835
21845
|
*/
|
|
21836
21846
|
this.autofocus = false;
|
|
21837
21847
|
/**
|
|
21838
|
-
* When true
|
|
21848
|
+
* When `true`, a clear button is displayed when the component has a value.
|
|
21839
21849
|
*/
|
|
21840
21850
|
this.clearable = false;
|
|
21841
21851
|
/**
|
|
21842
|
-
* When true
|
|
21852
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
21843
21853
|
*
|
|
21844
21854
|
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
21845
21855
|
*/
|
|
21846
21856
|
this.disabled = false;
|
|
21847
21857
|
/**
|
|
21848
|
-
* When true
|
|
21858
|
+
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
21849
21859
|
*/
|
|
21850
21860
|
this.groupSeparator = false;
|
|
21851
21861
|
/**
|
|
21852
|
-
* When true
|
|
21862
|
+
* When `true`, the component will not be visible.
|
|
21853
21863
|
*
|
|
21854
21864
|
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
21855
21865
|
*/
|
|
@@ -21860,9 +21870,9 @@ class InputNumber {
|
|
|
21860
21870
|
* @default "Loading"
|
|
21861
21871
|
*/
|
|
21862
21872
|
this.intlLoading = TEXT$v.loading;
|
|
21863
|
-
/** When true
|
|
21873
|
+
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
|
21864
21874
|
this.iconFlipRtl = false;
|
|
21865
|
-
/** When true
|
|
21875
|
+
/** When `true`, the component is in the loading state and `calcite-progress` is displayed. */
|
|
21866
21876
|
this.loading = false;
|
|
21867
21877
|
/**
|
|
21868
21878
|
* Toggles locale formatting for numbers.
|
|
@@ -21873,12 +21883,12 @@ class InputNumber {
|
|
|
21873
21883
|
/** Specifies the placement of the buttons. */
|
|
21874
21884
|
this.numberButtonType = "vertical";
|
|
21875
21885
|
/**
|
|
21876
|
-
* When true
|
|
21886
|
+
* When `true`, the component's value can be read, but cannot be modified.
|
|
21877
21887
|
*
|
|
21878
21888
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
21879
21889
|
*/
|
|
21880
21890
|
this.readOnly = false;
|
|
21881
|
-
/** When true
|
|
21891
|
+
/** When `true`, the component must have a value in order for the form to submit. */
|
|
21882
21892
|
this.required = false;
|
|
21883
21893
|
/** Specifies the size of the component. */
|
|
21884
21894
|
this.scale = "m";
|
|
@@ -21948,11 +21958,11 @@ class InputNumber {
|
|
|
21948
21958
|
return;
|
|
21949
21959
|
}
|
|
21950
21960
|
const value = nativeEvent.target.value;
|
|
21951
|
-
numberStringFormatter.
|
|
21961
|
+
numberStringFormatter.numberFormatOptions = {
|
|
21952
21962
|
locale: this.effectiveLocale,
|
|
21953
21963
|
numberingSystem: this.numberingSystem,
|
|
21954
21964
|
useGrouping: this.groupSeparator
|
|
21955
|
-
}
|
|
21965
|
+
};
|
|
21956
21966
|
const delocalizedValue = numberStringFormatter.delocalize(value);
|
|
21957
21967
|
if (nativeEvent.inputType === "insertFromPaste") {
|
|
21958
21968
|
if (!isValidNumber(delocalizedValue)) {
|
|
@@ -22007,11 +22017,11 @@ class InputNumber {
|
|
|
22007
22017
|
}
|
|
22008
22018
|
return;
|
|
22009
22019
|
}
|
|
22010
|
-
numberStringFormatter.
|
|
22020
|
+
numberStringFormatter.numberFormatOptions = {
|
|
22011
22021
|
locale: this.effectiveLocale,
|
|
22012
22022
|
numberingSystem: this.numberingSystem,
|
|
22013
22023
|
useGrouping: this.groupSeparator
|
|
22014
|
-
}
|
|
22024
|
+
};
|
|
22015
22025
|
if (event.key === numberStringFormatter.decimal) {
|
|
22016
22026
|
if (!this.value && !this.childNumberEl.value) {
|
|
22017
22027
|
return;
|
|
@@ -22095,11 +22105,11 @@ class InputNumber {
|
|
|
22095
22105
|
this.previousValue = isValidNumber(newPreviousValue) ? newPreviousValue : "";
|
|
22096
22106
|
};
|
|
22097
22107
|
this.setNumberValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
22098
|
-
numberStringFormatter.
|
|
22108
|
+
numberStringFormatter.numberFormatOptions = {
|
|
22099
22109
|
locale: this.effectiveLocale,
|
|
22100
22110
|
numberingSystem: this.numberingSystem,
|
|
22101
22111
|
useGrouping: this.groupSeparator
|
|
22102
|
-
}
|
|
22112
|
+
};
|
|
22103
22113
|
const sanitizedValue = sanitizeNumberString((this.numberingSystem && this.numberingSystem !== "latn") || defaultNumberingSystem !== "latn"
|
|
22104
22114
|
? numberStringFormatter.delocalize(value)
|
|
22105
22115
|
: value);
|
|
@@ -22396,7 +22406,7 @@ const TEXT$b = {
|
|
|
22396
22406
|
clear: "Clear value"
|
|
22397
22407
|
};
|
|
22398
22408
|
|
|
22399
|
-
const inputTextCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input-text:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input-text{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-text{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-text{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-text{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-text{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-text:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-text:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-text-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-text-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-text-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-text-h[disabled] .sc-calcite-input-text-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-text-h [calcite-hydrated][disabled].sc-calcite-input-text{opacity:1}/*!@input*/input.sc-calcite-input-text{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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}/*!@:host input*/.sc-calcite-input-text-h input.sc-calcite-input-text{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-text-h input.sc-calcite-input-text::placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text:-ms-input-placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-text-h input.sc-calcite-input-text:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-text-h calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-3)}/*!@input*/input.sc-calcite-input-text{outline-color:transparent}/*!@input:focus*/input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-text{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input-text{pointer-events:none;position:absolute;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@input[type=text]::-ms-clear, \ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input-text::-ms-clear,input[type=text].sc-calcite-input-text::-ms-reveal{display:none;block-size:0px;inline-size:0px}/*!@.clear-button*/.clear-button.sc-calcite-input-text{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input-text:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input-text:hover calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input-text:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-text:active calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-text:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-text{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-text{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-text,.suffix.sc-calcite-input-text{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input-text{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-text{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:end}/*!@.wrapper*/.wrapper.sc-calcite-input-text{position:relative;display:flex;flex-direction:row;align-items:center}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input-text{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input-text calcite-icon.sc-calcite-input-text{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input-text .resize-icon-wrapper.sc-calcite-input-text calcite-icon.sc-calcite-input-text{transform:rotate(45deg)}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-start-color:var(--calcite-ui-border-1)}/*!@.inline-child*/.inline-child.sc-calcite-input-text{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.inline-child .editing-enabled*/.inline-child.sc-calcite-input-text .editing-enabled.sc-calcite-input-text{background-color:inherit}/*!@.inline-child:not(.editing-enabled)*/.inline-child.sc-calcite-input-text:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-text-s>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}";
|
|
22409
|
+
const inputTextCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-input-text:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input-text{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-input-text{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-text{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-text{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-text{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-input-text:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-input-text:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-text-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-input-text-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-input-text-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=s].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:1.5rem;min-inline-size:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=m].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2rem;min-inline-size:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-text-h input.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .prefix.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .suffix.sc-calcite-input-text{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text,[scale=l].sc-calcite-input-text-h .action-wrapper.sc-calcite-input-text calcite-button.sc-calcite-input-text button.sc-calcite-input-text{block-size:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-text-h .clear-button.sc-calcite-input-text{min-block-size:2.75rem;min-inline-size:2.75rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-text-h[disabled] .sc-calcite-input-text-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-text-h [calcite-hydrated][disabled].sc-calcite-input-text{opacity:1}/*!@input*/input.sc-calcite-input-text{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%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}/*!@:host input*/.sc-calcite-input-text-h input.sc-calcite-input-text{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-text-h input.sc-calcite-input-text::placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text:-ms-input-placeholder,.sc-calcite-input-text-h input.sc-calcite-input-text::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-text-h input.sc-calcite-input-text:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-text-h input[readonly].sc-calcite-input-text:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-text-h calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-3)}/*!@input*/input.sc-calcite-input-text{outline-color:transparent}/*!@input:focus*/input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-text-h input.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-text-h .icon.sc-calcite-input-text{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-text-h input.sc-calcite-input-text{padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-text{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}/*!@.icon*/.icon.sc-calcite-input-text{pointer-events:none;position:absolute;z-index:1;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@input[type=text]::-ms-clear, \ninput[type=text]::-ms-reveal*/input[type=text].sc-calcite-input-text::-ms-clear,input[type=text].sc-calcite-input-text::-ms-reveal{display:none;block-size:0px;inline-size:0px}/*!@.clear-button*/.clear-button.sc-calcite-input-text{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-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}/*!@.clear-button:hover*/.clear-button.sc-calcite-input-text:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:hover calcite-icon*/.clear-button.sc-calcite-input-text:hover calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.clear-button:active*/.clear-button.sc-calcite-input-text:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-text:active calcite-icon.sc-calcite-input-text{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-text:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-text:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-text{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-text{order:7;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-text,.suffix.sc-calcite-input-text{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-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-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}/*!@.prefix*/.prefix.sc-calcite-input-text{order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-text{order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-text-h input.sc-calcite-input-text{text-align:end}/*!@.wrapper*/.wrapper.sc-calcite-input-text{position:relative;display:flex;flex-direction:row;align-items:center}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-end-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-text-h input.sc-calcite-input-text{border-block-start-color:var(--calcite-ui-border-1)}/*!@.inline-child*/.inline-child.sc-calcite-input-text{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.inline-child .editing-enabled*/.inline-child.sc-calcite-input-text .editing-enabled.sc-calcite-input-text{background-color:inherit}/*!@.inline-child:not(.editing-enabled)*/.inline-child.sc-calcite-input-text:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-text-s>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}";
|
|
22400
22410
|
|
|
22401
22411
|
/**
|
|
22402
22412
|
* @slot action - A slot for positioning a button next to the component.
|
|
@@ -22416,23 +22426,23 @@ class InputText {
|
|
|
22416
22426
|
/** Specifies the text alignment of the component's value. */
|
|
22417
22427
|
this.alignment = "start";
|
|
22418
22428
|
/**
|
|
22419
|
-
* When true
|
|
22429
|
+
* When `true`, the component is focused on page load.
|
|
22420
22430
|
*
|
|
22421
22431
|
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
22422
22432
|
*/
|
|
22423
22433
|
this.autofocus = false;
|
|
22424
22434
|
/**
|
|
22425
|
-
* When true
|
|
22435
|
+
* When `true`, a clear button is displayed when the component has a value.
|
|
22426
22436
|
*/
|
|
22427
22437
|
this.clearable = false;
|
|
22428
22438
|
/**
|
|
22429
|
-
* When true
|
|
22439
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
22430
22440
|
*
|
|
22431
22441
|
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
22432
22442
|
*/
|
|
22433
22443
|
this.disabled = false;
|
|
22434
22444
|
/**
|
|
22435
|
-
* When true
|
|
22445
|
+
* When `true`, the component will not be visible.
|
|
22436
22446
|
*
|
|
22437
22447
|
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
22438
22448
|
*/
|
|
@@ -22443,17 +22453,17 @@ class InputText {
|
|
|
22443
22453
|
* @default "Loading"
|
|
22444
22454
|
*/
|
|
22445
22455
|
this.intlLoading = TEXT$v.loading;
|
|
22446
|
-
/** When true
|
|
22456
|
+
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
|
22447
22457
|
this.iconFlipRtl = false;
|
|
22448
|
-
/** When true
|
|
22458
|
+
/** When `true`, the component is in the loading state and `calcite-progress` is displayed. */
|
|
22449
22459
|
this.loading = false;
|
|
22450
22460
|
/**
|
|
22451
|
-
* When true
|
|
22461
|
+
* When `true`, the component's value can be read, but cannot be modified.
|
|
22452
22462
|
*
|
|
22453
22463
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
22454
22464
|
*/
|
|
22455
22465
|
this.readOnly = false;
|
|
22456
|
-
/** When true
|
|
22466
|
+
/** When `true`, the component must have a value in order for the form to submit. */
|
|
22457
22467
|
this.required = false;
|
|
22458
22468
|
/** Specifies the size of the component. */
|
|
22459
22469
|
this.scale = "m";
|
|
@@ -22739,17 +22749,18 @@ class InputText {
|
|
|
22739
22749
|
}
|
|
22740
22750
|
|
|
22741
22751
|
const maxTenthForMinuteAndSecond = 5;
|
|
22742
|
-
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
22752
|
+
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
|
|
22743
22753
|
try {
|
|
22744
22754
|
const options = {
|
|
22745
22755
|
hour: "2-digit",
|
|
22746
22756
|
minute: "2-digit",
|
|
22747
|
-
timeZone: "UTC"
|
|
22757
|
+
timeZone: "UTC",
|
|
22758
|
+
numberingSystem: getSupportedNumberingSystem(numberingSystem)
|
|
22748
22759
|
};
|
|
22749
22760
|
if (includeSeconds) {
|
|
22750
22761
|
options.second = "2-digit";
|
|
22751
22762
|
}
|
|
22752
|
-
return new Intl.DateTimeFormat(locale, options);
|
|
22763
|
+
return new Intl.DateTimeFormat(getSupportedLocale(locale), options);
|
|
22753
22764
|
}
|
|
22754
22765
|
catch (error) {
|
|
22755
22766
|
throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${locale}`);
|
|
@@ -22772,8 +22783,8 @@ function formatTimeString(value) {
|
|
|
22772
22783
|
}
|
|
22773
22784
|
return `${hour}:${minute}`;
|
|
22774
22785
|
}
|
|
22775
|
-
function getLocaleHourCycle(locale) {
|
|
22776
|
-
const formatter = createLocaleDateTimeFormatter(locale);
|
|
22786
|
+
function getLocaleHourCycle(locale, numberingSystem) {
|
|
22787
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
22777
22788
|
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
22778
22789
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
22779
22790
|
}
|
|
@@ -22842,7 +22853,7 @@ function isValidTimePart(value, part) {
|
|
|
22842
22853
|
const valueAsNumber = Number(value);
|
|
22843
22854
|
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
22844
22855
|
}
|
|
22845
|
-
function localizeTimePart(value, part, locale) {
|
|
22856
|
+
function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
22846
22857
|
if (!isValidTimePart(value, part)) {
|
|
22847
22858
|
return;
|
|
22848
22859
|
}
|
|
@@ -22851,28 +22862,27 @@ function localizeTimePart(value, part, locale) {
|
|
|
22851
22862
|
if (!date) {
|
|
22852
22863
|
return;
|
|
22853
22864
|
}
|
|
22854
|
-
const formatter = createLocaleDateTimeFormatter(locale);
|
|
22865
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
22855
22866
|
const parts = formatter.formatToParts(date);
|
|
22856
22867
|
return getLocalizedTimePart(part, parts);
|
|
22857
22868
|
}
|
|
22858
|
-
function localizeTimeString(value, locale
|
|
22869
|
+
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true }) {
|
|
22859
22870
|
if (!isValidTime(value)) {
|
|
22860
22871
|
return null;
|
|
22861
22872
|
}
|
|
22862
22873
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
22863
22874
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
22864
|
-
const formatter = createLocaleDateTimeFormatter(locale, includeSeconds);
|
|
22875
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
22865
22876
|
return (formatter === null || formatter === void 0 ? void 0 : formatter.format(dateFromTimeString)) || null;
|
|
22866
22877
|
}
|
|
22867
|
-
function localizeTimeStringToParts(value, locale) {
|
|
22878
|
+
function localizeTimeStringToParts({ value, locale, numberingSystem }) {
|
|
22868
22879
|
if (!isValidTime(value)) {
|
|
22869
22880
|
return null;
|
|
22870
22881
|
}
|
|
22871
|
-
locale = getSupportedLocale(locale);
|
|
22872
22882
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
22873
22883
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
22874
22884
|
if (dateFromTimeString) {
|
|
22875
|
-
const formatter = createLocaleDateTimeFormatter(locale);
|
|
22885
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
22876
22886
|
const parts = formatter.formatToParts(dateFromTimeString);
|
|
22877
22887
|
return {
|
|
22878
22888
|
localizedHour: getLocalizedTimePart("hour", parts),
|
|
@@ -22886,14 +22896,14 @@ function localizeTimeStringToParts(value, locale) {
|
|
|
22886
22896
|
}
|
|
22887
22897
|
return null;
|
|
22888
22898
|
}
|
|
22889
|
-
function getTimeParts(value, locale
|
|
22899
|
+
function getTimeParts({ value, locale, numberingSystem }) {
|
|
22890
22900
|
if (!isValidTime(value)) {
|
|
22891
22901
|
return null;
|
|
22892
22902
|
}
|
|
22893
22903
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
22894
22904
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
22895
22905
|
if (dateFromTimeString) {
|
|
22896
|
-
const formatter = createLocaleDateTimeFormatter(locale);
|
|
22906
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
22897
22907
|
const parts = formatter.formatToParts(dateFromTimeString);
|
|
22898
22908
|
return parts;
|
|
22899
22909
|
}
|
|
@@ -22927,17 +22937,17 @@ class InputTimePicker {
|
|
|
22927
22937
|
//
|
|
22928
22938
|
//--------------------------------------------------------------------------
|
|
22929
22939
|
/**
|
|
22930
|
-
* When true
|
|
22940
|
+
* When `true`, the component is active.
|
|
22931
22941
|
*
|
|
22932
22942
|
* @deprecated Use `open` instead.
|
|
22933
22943
|
*/
|
|
22934
22944
|
this.active = false;
|
|
22935
|
-
/** When true
|
|
22945
|
+
/** When `true`, displays the `calcite-time-picker` component. */
|
|
22936
22946
|
this.open = false;
|
|
22937
|
-
/** When true
|
|
22947
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
22938
22948
|
this.disabled = false;
|
|
22939
22949
|
/**
|
|
22940
|
-
* When true
|
|
22950
|
+
* When `true`, the component's value can be read, but controls are not accessible and the value cannot be modified.
|
|
22941
22951
|
*
|
|
22942
22952
|
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
22943
22953
|
*/
|
|
@@ -22987,9 +22997,21 @@ class InputTimePicker {
|
|
|
22987
22997
|
this.calciteInternalInputBlurHandler = () => {
|
|
22988
22998
|
this.open = false;
|
|
22989
22999
|
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
22990
|
-
const locale = this
|
|
22991
|
-
|
|
22992
|
-
|
|
23000
|
+
const { effectiveLocale: locale, numberingSystem, value, calciteInputEl } = this;
|
|
23001
|
+
numberStringFormatter.numberFormatOptions = {
|
|
23002
|
+
locale,
|
|
23003
|
+
numberingSystem,
|
|
23004
|
+
useGrouping: false
|
|
23005
|
+
};
|
|
23006
|
+
const delocalizedValue = numberStringFormatter.delocalize(calciteInputEl.value);
|
|
23007
|
+
const localizedInputValue = localizeTimeString({
|
|
23008
|
+
value: delocalizedValue,
|
|
23009
|
+
includeSeconds: shouldIncludeSeconds,
|
|
23010
|
+
locale,
|
|
23011
|
+
numberingSystem
|
|
23012
|
+
});
|
|
23013
|
+
this.setInputValue(localizedInputValue ||
|
|
23014
|
+
localizeTimeString({ value, locale, numberingSystem, includeSeconds: shouldIncludeSeconds }));
|
|
22993
23015
|
};
|
|
22994
23016
|
this.calciteInternalInputFocusHandler = (event) => {
|
|
22995
23017
|
if (!this.readOnly) {
|
|
@@ -22999,7 +23021,21 @@ class InputTimePicker {
|
|
|
22999
23021
|
};
|
|
23000
23022
|
this.calciteInputInputHandler = (event) => {
|
|
23001
23023
|
const target = event.target;
|
|
23002
|
-
|
|
23024
|
+
numberStringFormatter.numberFormatOptions = {
|
|
23025
|
+
locale: this.effectiveLocale,
|
|
23026
|
+
numberingSystem: this.numberingSystem,
|
|
23027
|
+
useGrouping: false
|
|
23028
|
+
};
|
|
23029
|
+
const delocalizedValue = numberStringFormatter.delocalize(target.value);
|
|
23030
|
+
this.setValue({ value: delocalizedValue });
|
|
23031
|
+
// only translate the numerals until blur
|
|
23032
|
+
const localizedValue = delocalizedValue
|
|
23033
|
+
.split("")
|
|
23034
|
+
.map((char) => numberKeys.includes(char)
|
|
23035
|
+
? numberStringFormatter.numberFormatter.format(Number(char))
|
|
23036
|
+
: char)
|
|
23037
|
+
.join("");
|
|
23038
|
+
this.setInputValue(localizedValue);
|
|
23003
23039
|
};
|
|
23004
23040
|
this.timePickerChangeHandler = (event) => {
|
|
23005
23041
|
event.stopPropagation();
|
|
@@ -23045,7 +23081,12 @@ class InputTimePicker {
|
|
|
23045
23081
|
this.setValue = ({ value, origin = "input" }) => {
|
|
23046
23082
|
const previousValue = this.value;
|
|
23047
23083
|
const newValue = formatTimeString(value);
|
|
23048
|
-
const newLocalizedValue = localizeTimeString(
|
|
23084
|
+
const newLocalizedValue = localizeTimeString({
|
|
23085
|
+
value: newValue,
|
|
23086
|
+
locale: this.effectiveLocale,
|
|
23087
|
+
numberingSystem: this.numberingSystem,
|
|
23088
|
+
includeSeconds: this.shouldIncludeSeconds()
|
|
23089
|
+
});
|
|
23049
23090
|
this.internalValueChange = origin !== "external" && origin !== "loading";
|
|
23050
23091
|
const shouldEmit = origin !== "loading" &&
|
|
23051
23092
|
origin !== "external" &&
|
|
@@ -23108,7 +23149,12 @@ class InputTimePicker {
|
|
|
23108
23149
|
this.internalValueChange = false;
|
|
23109
23150
|
}
|
|
23110
23151
|
effectiveLocaleWatcher() {
|
|
23111
|
-
this.setInputValue(localizeTimeString(
|
|
23152
|
+
this.setInputValue(localizeTimeString({
|
|
23153
|
+
value: this.value,
|
|
23154
|
+
locale: this.effectiveLocale,
|
|
23155
|
+
numberingSystem: this.numberingSystem,
|
|
23156
|
+
includeSeconds: this.shouldIncludeSeconds()
|
|
23157
|
+
}));
|
|
23112
23158
|
}
|
|
23113
23159
|
clickHandler(event) {
|
|
23114
23160
|
if (event.composedPath().includes(this.calciteTimePickerEl)) {
|
|
@@ -23187,7 +23233,7 @@ class InputTimePicker {
|
|
|
23187
23233
|
// --------------------------------------------------------------------------
|
|
23188
23234
|
render() {
|
|
23189
23235
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
23190
|
-
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23236
|
+
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.effectiveLocale, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23191
23237
|
}
|
|
23192
23238
|
get el() { return getElement(this); }
|
|
23193
23239
|
static get watchers() { return {
|
|
@@ -23222,6 +23268,7 @@ class InputTimePicker {
|
|
|
23222
23268
|
"intlSecondUp": [1, "intl-second-up"],
|
|
23223
23269
|
"locale": [1025],
|
|
23224
23270
|
"name": [1],
|
|
23271
|
+
"numberingSystem": [1, "numbering-system"],
|
|
23225
23272
|
"required": [516],
|
|
23226
23273
|
"scale": [513],
|
|
23227
23274
|
"overlayPositioning": [1, "overlay-positioning"],
|
|
@@ -23270,13 +23317,13 @@ class Label {
|
|
|
23270
23317
|
/** Defines the layout of the label in relation to the component. Use `"inline"` positions to wrap the label and component on the same line. */
|
|
23271
23318
|
this.layout = "default";
|
|
23272
23319
|
/**
|
|
23273
|
-
* When true
|
|
23320
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
23274
23321
|
*
|
|
23275
23322
|
* @deprecated Use the `disabled` property on the component the label is bound to instead.
|
|
23276
23323
|
*/
|
|
23277
23324
|
this.disabled = false;
|
|
23278
23325
|
/**
|
|
23279
|
-
* When true
|
|
23326
|
+
* When `true`, disables the component's spacing.
|
|
23280
23327
|
*
|
|
23281
23328
|
* @deprecated Set the `--calcite-label-margin-bottom` css variable to `0` instead.
|
|
23282
23329
|
*/
|
|
@@ -23340,7 +23387,7 @@ class Link {
|
|
|
23340
23387
|
// Properties
|
|
23341
23388
|
//
|
|
23342
23389
|
//--------------------------------------------------------------------------
|
|
23343
|
-
/** When true
|
|
23390
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
23344
23391
|
this.disabled = false;
|
|
23345
23392
|
/**
|
|
23346
23393
|
* Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
@@ -23449,7 +23496,7 @@ class List$1 {
|
|
|
23449
23496
|
//
|
|
23450
23497
|
// --------------------------------------------------------------------------
|
|
23451
23498
|
/**
|
|
23452
|
-
* When true
|
|
23499
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
23453
23500
|
*/
|
|
23454
23501
|
this.disabled = false;
|
|
23455
23502
|
}
|
|
@@ -23534,11 +23581,11 @@ class ListItem {
|
|
|
23534
23581
|
//
|
|
23535
23582
|
// --------------------------------------------------------------------------
|
|
23536
23583
|
/**
|
|
23537
|
-
* When true
|
|
23584
|
+
* When `true`, prevents the content of the component from user interaction.
|
|
23538
23585
|
*/
|
|
23539
23586
|
this.nonInteractive = false;
|
|
23540
23587
|
/**
|
|
23541
|
-
* When true
|
|
23588
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
23542
23589
|
*/
|
|
23543
23590
|
this.disabled = false;
|
|
23544
23591
|
}
|
|
@@ -23680,13 +23727,13 @@ class Loader {
|
|
|
23680
23727
|
// Properties
|
|
23681
23728
|
//
|
|
23682
23729
|
//--------------------------------------------------------------------------
|
|
23683
|
-
/** When true
|
|
23730
|
+
/** When `true`, the component is active. */
|
|
23684
23731
|
this.active = false;
|
|
23685
|
-
/** When true
|
|
23732
|
+
/** When `true`, displays smaller and appears to the left of the text. */
|
|
23686
23733
|
this.inline = false;
|
|
23687
23734
|
/** Specifies the size of the component. */
|
|
23688
23735
|
this.scale = "m";
|
|
23689
|
-
/** The component's value. Valid only for determinate indicators. Percent complete of 100. */
|
|
23736
|
+
/** The component's value. Valid only for `"determinate"` indicators. Percent complete of 100. */
|
|
23690
23737
|
this.value = 0;
|
|
23691
23738
|
/** Text that displays under the component's indicator. */
|
|
23692
23739
|
this.text = "";
|
|
@@ -23933,22 +23980,22 @@ class Modal {
|
|
|
23933
23980
|
//
|
|
23934
23981
|
//--------------------------------------------------------------------------
|
|
23935
23982
|
/**
|
|
23936
|
-
* When true
|
|
23983
|
+
* When `true`, the component is active.
|
|
23937
23984
|
*
|
|
23938
|
-
* @deprecated use open instead
|
|
23985
|
+
* @deprecated use `open` instead.
|
|
23939
23986
|
*/
|
|
23940
23987
|
this.active = false;
|
|
23941
|
-
/** When true
|
|
23988
|
+
/** When `true`, displays and positions the component. */
|
|
23942
23989
|
this.open = false;
|
|
23943
|
-
/** Passes a function to run before the
|
|
23990
|
+
/** Passes a function to run before the component closes. */
|
|
23944
23991
|
this.beforeClose = () => Promise.resolve();
|
|
23945
|
-
/** When true
|
|
23992
|
+
/** When `true`, disables the component's close button. */
|
|
23946
23993
|
this.disableCloseButton = false;
|
|
23947
|
-
/** When true
|
|
23994
|
+
/** When `true`, disables the closing of the component when clicked outside. */
|
|
23948
23995
|
this.disableOutsideClose = false;
|
|
23949
23996
|
/** Accessible name for the component's close button. */
|
|
23950
23997
|
this.intlClose = TEXT$a.close;
|
|
23951
|
-
/** When true
|
|
23998
|
+
/** When `true`, disables the default close on escape behavior. */
|
|
23952
23999
|
this.disableEscape = false;
|
|
23953
24000
|
/** Specifies the size of the component. */
|
|
23954
24001
|
this.scale = "m";
|
|
@@ -23957,7 +24004,7 @@ class Modal {
|
|
|
23957
24004
|
/** Sets the background color of the component's content. */
|
|
23958
24005
|
this.backgroundColor = "white";
|
|
23959
24006
|
/**
|
|
23960
|
-
* When true
|
|
24007
|
+
* When `true`, disables spacing to the content area slot.
|
|
23961
24008
|
*
|
|
23962
24009
|
* @deprecated Use `--calcite-modal-padding` CSS variable instead.
|
|
23963
24010
|
*/
|
|
@@ -24270,22 +24317,22 @@ class Notice {
|
|
|
24270
24317
|
//
|
|
24271
24318
|
//---------------------------------------------------------------------------
|
|
24272
24319
|
/**
|
|
24273
|
-
* When true
|
|
24320
|
+
* When `true`, the component is active.
|
|
24274
24321
|
*
|
|
24275
|
-
* @deprecated Use open instead.
|
|
24322
|
+
* @deprecated Use `open` instead.
|
|
24276
24323
|
*/
|
|
24277
24324
|
this.active = false;
|
|
24278
|
-
/** When true
|
|
24325
|
+
/** When `true`, the component is visible. */
|
|
24279
24326
|
this.open = false;
|
|
24280
24327
|
/** The color for the component's top border and icon. */
|
|
24281
24328
|
this.color = "blue";
|
|
24282
24329
|
/**
|
|
24283
|
-
* When true
|
|
24330
|
+
* When `true`, a close button is added to the component.
|
|
24284
24331
|
*
|
|
24285
|
-
* @deprecated use closable instead
|
|
24332
|
+
* @deprecated use `closable` instead.
|
|
24286
24333
|
*/
|
|
24287
24334
|
this.dismissible = false;
|
|
24288
|
-
/** When true
|
|
24335
|
+
/** When `true`, a close button is added to the component. */
|
|
24289
24336
|
this.closable = false;
|
|
24290
24337
|
/**
|
|
24291
24338
|
* Accessible name for the close button.
|
|
@@ -24414,7 +24461,7 @@ class Option {
|
|
|
24414
24461
|
//
|
|
24415
24462
|
//--------------------------------------------------------------------------
|
|
24416
24463
|
/**
|
|
24417
|
-
* When true
|
|
24464
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
24418
24465
|
*/
|
|
24419
24466
|
this.disabled = false;
|
|
24420
24467
|
this.mutationObserver = createObserver();
|
|
@@ -24506,7 +24553,7 @@ class OptionGroup {
|
|
|
24506
24553
|
//
|
|
24507
24554
|
//--------------------------------------------------------------------------
|
|
24508
24555
|
/**
|
|
24509
|
-
* When true
|
|
24556
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
24510
24557
|
*/
|
|
24511
24558
|
this.disabled = false;
|
|
24512
24559
|
}
|
|
@@ -24568,7 +24615,7 @@ class Pagination {
|
|
|
24568
24615
|
//
|
|
24569
24616
|
//--------------------------------------------------------------------------
|
|
24570
24617
|
/**
|
|
24571
|
-
* When true
|
|
24618
|
+
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
24572
24619
|
*/
|
|
24573
24620
|
this.groupSeparator = false;
|
|
24574
24621
|
/** Specifies the number of items per page. */
|
|
@@ -24611,11 +24658,11 @@ class Pagination {
|
|
|
24611
24658
|
* @param value
|
|
24612
24659
|
*/
|
|
24613
24660
|
this.determineGroupSeparator = (value) => {
|
|
24614
|
-
numberStringFormatter.
|
|
24661
|
+
numberStringFormatter.numberFormatOptions = {
|
|
24615
24662
|
locale: this.effectiveLocale,
|
|
24616
24663
|
numberingSystem: this.numberingSystem,
|
|
24617
24664
|
useGrouping: this.groupSeparator
|
|
24618
|
-
}
|
|
24665
|
+
};
|
|
24619
24666
|
return this.groupSeparator
|
|
24620
24667
|
? numberStringFormatter.localize(value.toString())
|
|
24621
24668
|
: value.toString();
|
|
@@ -24792,37 +24839,37 @@ class Panel {
|
|
|
24792
24839
|
//
|
|
24793
24840
|
// --------------------------------------------------------------------------
|
|
24794
24841
|
/**
|
|
24795
|
-
* When true
|
|
24842
|
+
* When `true`, hides the component.
|
|
24796
24843
|
*
|
|
24797
|
-
* @deprecated use closed instead
|
|
24844
|
+
* @deprecated use `closed` instead.
|
|
24798
24845
|
*/
|
|
24799
24846
|
this.dismissed = false;
|
|
24800
|
-
/** When true
|
|
24847
|
+
/** When `true`, the component will be hidden. */
|
|
24801
24848
|
this.closed = false;
|
|
24802
24849
|
/**
|
|
24803
|
-
* When true
|
|
24850
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
24804
24851
|
*/
|
|
24805
24852
|
this.disabled = false;
|
|
24806
24853
|
/**
|
|
24807
|
-
* When true
|
|
24854
|
+
* When `true`, a close button is added to the component.
|
|
24808
24855
|
*
|
|
24809
|
-
* @deprecated use closable instead
|
|
24856
|
+
* @deprecated use `closable` instead
|
|
24810
24857
|
*/
|
|
24811
24858
|
this.dismissible = false;
|
|
24812
|
-
/** When true
|
|
24859
|
+
/** When `true`, displays a close button in the trailing side of the header. */
|
|
24813
24860
|
this.closable = false;
|
|
24814
24861
|
/**
|
|
24815
|
-
* When true
|
|
24862
|
+
* When `true`, displays a back button in the header.
|
|
24816
24863
|
*
|
|
24817
24864
|
* @deprecated use `calcite-flow-item` instead.
|
|
24818
24865
|
*/
|
|
24819
24866
|
this.showBackButton = false;
|
|
24820
24867
|
/**
|
|
24821
|
-
* When true
|
|
24868
|
+
* When `true`, a busy indicator is displayed.
|
|
24822
24869
|
*/
|
|
24823
24870
|
this.loading = false;
|
|
24824
24871
|
/**
|
|
24825
|
-
* When true
|
|
24872
|
+
* When `true`, the action menu items in the `header-menu-actions` slot are open.
|
|
24826
24873
|
*/
|
|
24827
24874
|
this.menuOpen = false;
|
|
24828
24875
|
this.resizeObserver = createObserver();
|
|
@@ -25068,14 +25115,17 @@ class Panel {
|
|
|
25068
25115
|
renderFooterNode() {
|
|
25069
25116
|
const { hasFooterContent, hasFooterActions } = this;
|
|
25070
25117
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
25071
|
-
return (hAsync("footer", { class: CSS$z.footer, hidden: !showFooter
|
|
25118
|
+
return (hAsync("footer", { class: CSS$z.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$i.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$i.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
25072
25119
|
}
|
|
25073
25120
|
renderContent() {
|
|
25074
25121
|
const { hasFab } = this;
|
|
25075
25122
|
const defaultSlotNode = hAsync("slot", { key: "default-slot" });
|
|
25076
|
-
const contentWrapperKey = "content-wrapper";
|
|
25077
25123
|
const containerNode = hasFab ? (hAsync("section", { class: CSS$z.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
|
|
25078
|
-
return (hAsync("div", { class: {
|
|
25124
|
+
return (hAsync("div", { class: {
|
|
25125
|
+
[CSS$z.contentWrapper]: true,
|
|
25126
|
+
[CSS$z.contentContainer]: !hasFab,
|
|
25127
|
+
[CSS$z.contentHeight]: hasFab
|
|
25128
|
+
}, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
|
|
25079
25129
|
}
|
|
25080
25130
|
renderFab() {
|
|
25081
25131
|
return (hAsync("div", { class: CSS$z.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$i.fab, onSlotchange: this.handleFabSlotChange })));
|
|
@@ -25473,26 +25523,26 @@ class PickList {
|
|
|
25473
25523
|
//
|
|
25474
25524
|
// --------------------------------------------------------------------------
|
|
25475
25525
|
/**
|
|
25476
|
-
* When true
|
|
25526
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
25477
25527
|
*/
|
|
25478
25528
|
this.disabled = false;
|
|
25479
25529
|
/**
|
|
25480
|
-
* When true
|
|
25530
|
+
* When `true`, an input appears at the top of the list that can be used by end users to filter items in the list.
|
|
25481
25531
|
*/
|
|
25482
25532
|
this.filterEnabled = false;
|
|
25483
25533
|
/**
|
|
25484
|
-
* When true
|
|
25534
|
+
* When `true`, a busy indicator is displayed.
|
|
25485
25535
|
*/
|
|
25486
25536
|
this.loading = false;
|
|
25487
25537
|
/**
|
|
25488
25538
|
* Similar to standard radio buttons and checkboxes.
|
|
25489
|
-
* When true
|
|
25490
|
-
* When false
|
|
25539
|
+
* When `true`, a user can select multiple `calcite-pick-list-item`s at a time.
|
|
25540
|
+
* When `false`, only a single `calcite-pick-list-item` can be selected at a time,
|
|
25491
25541
|
* and a new selection will deselect previous selections.
|
|
25492
25542
|
*/
|
|
25493
25543
|
this.multiple = false;
|
|
25494
25544
|
/**
|
|
25495
|
-
* When true and single
|
|
25545
|
+
* When `true` and single selection is enabled, the selection changes when navigating `calcite-pick-list-item`s via keyboard.
|
|
25496
25546
|
*/
|
|
25497
25547
|
this.selectionFollowsFocus = false;
|
|
25498
25548
|
// --------------------------------------------------------------------------
|
|
@@ -25695,8 +25745,8 @@ const TEXT$7 = {
|
|
|
25695
25745
|
const pickListItemCss = "@charset \"UTF-8\";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-pick-list-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-pick-list-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-pick-list-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-pick-list-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-pick-list-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-pick-list-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-pick-list-item:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-pick-list-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-pick-list-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-pick-list-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-pick-list-item-h{margin:0px;margin-block-end:1px;box-sizing:border-box;display:flex;align-items:stretch;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing);animation:calcite-fade-in var(--calcite-animation-timing)}/*!@:host **/.sc-calcite-pick-list-item-h *.sc-calcite-pick-list-item{box-sizing:border-box}/*!@.label*/.label.sc-calcite-pick-list-item{display:flex;flex:1 1 auto;cursor:pointer;align-items:center;background-color:transparent;outline-color:transparent}/*!@.label:focus*/.label.sc-calcite-pick-list-item:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.label:hover*/.label.sc-calcite-pick-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([non-interactive]:hover)*/[non-interactive].sc-calcite-pick-list-item-h:hover{background-color:var(--calcite-ui-foreground-1)}/*!@:host([non-interactive]) .label, \n:host([non-interactive]) .icon*/[non-interactive].sc-calcite-pick-list-item-h .label.sc-calcite-pick-list-item,[non-interactive].sc-calcite-pick-list-item-h .icon.sc-calcite-pick-list-item{pointer-events:none}/*!@.icon*/.icon.sc-calcite-pick-list-item{margin-block:0px;display:flex;cursor:pointer;align-items:center;padding:0.25rem;color:var(--calcite-ui-brand);flex:0 0 auto;line-height:0}/*!@.icon:hover*/.icon.sc-calcite-pick-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.icon-dot*/.icon-dot.sc-calcite-pick-list-item{display:flex;inline-size:1.5rem;align-items:center;padding:0.5rem}/*!@.icon-dot:before*/.icon-dot.sc-calcite-pick-list-item:before{opacity:0;content:\"•\"}/*!@.icon calcite-icon*/.icon.sc-calcite-pick-list-item calcite-icon.sc-calcite-pick-list-item{opacity:0}/*!@:host([selected]) .icon-dot:before,\n:host([selected]) .icon calcite-icon*/[selected].sc-calcite-pick-list-item-h .icon-dot.sc-calcite-pick-list-item:before,[selected].sc-calcite-pick-list-item-h .icon.sc-calcite-pick-list-item calcite-icon.sc-calcite-pick-list-item{transition:opacity var(--calcite-animation-timing);opacity:1}/*!@.text-container*/.text-container.sc-calcite-pick-list-item{pointer-events:none;display:flex;flex-direction:column;flex-wrap:nowrap;overflow:hidden;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word}/*!@.title*/.title.sc-calcite-pick-list-item{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-pick-list-item{margin-block-start:0.125rem;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.actions*/.actions.sc-calcite-pick-list-item{margin:0px;display:flex;flex:0 1 auto;align-items:stretch;justify-content:flex-end}/*!@.actions--start ~ .label*/.actions--start.sc-calcite-pick-list-item~.label.sc-calcite-pick-list-item{padding-inline-start:0.25rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-pick-list-item-h[disabled] .sc-calcite-pick-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-pick-list-item-h [calcite-hydrated][disabled].sc-calcite-pick-list-item{opacity:1}";
|
|
25696
25746
|
|
|
25697
25747
|
/**
|
|
25698
|
-
* @slot actions-end - A slot for adding
|
|
25699
|
-
* @slot actions-start - A slot for adding
|
|
25748
|
+
* @slot actions-end - A slot for adding `calcite-action`s or content to the end side of the component.
|
|
25749
|
+
* @slot actions-start - A slot for adding `calcite-action`s or content to the start side of the component.
|
|
25700
25750
|
*/
|
|
25701
25751
|
class PickListItem {
|
|
25702
25752
|
constructor(hostRef) {
|
|
@@ -25706,11 +25756,11 @@ class PickListItem {
|
|
|
25706
25756
|
this.calciteInternalListItemPropsChange = createEvent(this, "calciteInternalListItemPropsChange", 6);
|
|
25707
25757
|
this.calciteInternalListItemValueChange = createEvent(this, "calciteInternalListItemValueChange", 6);
|
|
25708
25758
|
/**
|
|
25709
|
-
* When true
|
|
25759
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
25710
25760
|
*/
|
|
25711
25761
|
this.disabled = false;
|
|
25712
25762
|
/**
|
|
25713
|
-
* When false
|
|
25763
|
+
* When `false`, the component cannot be deselected by user interaction.
|
|
25714
25764
|
*/
|
|
25715
25765
|
this.disableDeselect = false;
|
|
25716
25766
|
/**
|
|
@@ -25718,21 +25768,21 @@ class PickListItem {
|
|
|
25718
25768
|
*/
|
|
25719
25769
|
this.nonInteractive = false;
|
|
25720
25770
|
/**
|
|
25721
|
-
* Determines the icon SVG symbol that will be shown. Options are circle
|
|
25771
|
+
* Determines the icon SVG symbol that will be shown. Options are `"circle"`, `"square"`, `"grip"` or `null`.
|
|
25722
25772
|
*
|
|
25723
25773
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
25724
25774
|
*/
|
|
25725
25775
|
this.icon = null;
|
|
25726
25776
|
/**
|
|
25727
|
-
* When true
|
|
25777
|
+
* When `true`, displays a remove action that removes the item from the list.
|
|
25728
25778
|
*/
|
|
25729
25779
|
this.removable = false;
|
|
25730
25780
|
/**
|
|
25731
|
-
* When true
|
|
25781
|
+
* When `true`, selects an item. Toggles when an item is checked/unchecked.
|
|
25732
25782
|
*/
|
|
25733
25783
|
this.selected = false;
|
|
25734
25784
|
/**
|
|
25735
|
-
*
|
|
25785
|
+
* When `removable` is `true`, the accessible name for the component's remove button.
|
|
25736
25786
|
*
|
|
25737
25787
|
* @default "Remove"
|
|
25738
25788
|
*/
|
|
@@ -25993,39 +26043,39 @@ class Popover {
|
|
|
25993
26043
|
*/
|
|
25994
26044
|
this.autoClose = false;
|
|
25995
26045
|
/**
|
|
25996
|
-
* When true
|
|
26046
|
+
* When `true`, a close button is added to the component.
|
|
25997
26047
|
*
|
|
25998
26048
|
* @deprecated use dismissible instead.
|
|
25999
26049
|
*/
|
|
26000
26050
|
this.closeButton = false;
|
|
26001
26051
|
/**
|
|
26002
|
-
* When true
|
|
26052
|
+
* When `true`, a close button is added to the component.
|
|
26003
26053
|
*
|
|
26004
|
-
* @deprecated use closable instead
|
|
26054
|
+
* @deprecated use `closable` instead.
|
|
26005
26055
|
*/
|
|
26006
26056
|
this.dismissible = false;
|
|
26007
|
-
/** When true
|
|
26057
|
+
/** When `true`, display a close button within the component. */
|
|
26008
26058
|
this.closable = false;
|
|
26009
26059
|
/**
|
|
26010
|
-
* When true
|
|
26060
|
+
* When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
|
|
26011
26061
|
*/
|
|
26012
26062
|
this.disableFlip = false;
|
|
26013
26063
|
/**
|
|
26014
|
-
* When true
|
|
26064
|
+
* When `true`, removes the caret pointer.
|
|
26015
26065
|
*/
|
|
26016
26066
|
this.disablePointer = false;
|
|
26017
26067
|
/**
|
|
26018
|
-
* Offsets the position of the
|
|
26068
|
+
* Offsets the position of the component away from the `referenceElement`.
|
|
26019
26069
|
*
|
|
26020
26070
|
* @default 6
|
|
26021
26071
|
*/
|
|
26022
26072
|
this.offsetDistance = defaultOffsetDistance;
|
|
26023
26073
|
/**
|
|
26024
|
-
* Offsets the position of the
|
|
26074
|
+
* Offsets the position of the component along the `referenceElement`.
|
|
26025
26075
|
*/
|
|
26026
26076
|
this.offsetSkidding = 0;
|
|
26027
26077
|
/**
|
|
26028
|
-
* When true
|
|
26078
|
+
* When `true`, displays and positions the component.
|
|
26029
26079
|
*/
|
|
26030
26080
|
this.open = false;
|
|
26031
26081
|
/**
|
|
@@ -26044,7 +26094,9 @@ class Popover {
|
|
|
26044
26094
|
*/
|
|
26045
26095
|
this.placement = defaultPopoverPlacement;
|
|
26046
26096
|
/**
|
|
26047
|
-
* When true
|
|
26097
|
+
* When `true`, disables automatically toggling the component when its `referenceElement` has been triggered.
|
|
26098
|
+
*
|
|
26099
|
+
* This property can be set to `true` to manage when the component is open.
|
|
26048
26100
|
*/
|
|
26049
26101
|
this.triggerDisabled = false;
|
|
26050
26102
|
/**
|
|
@@ -26404,11 +26456,16 @@ const progressCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-do
|
|
|
26404
26456
|
class Progress {
|
|
26405
26457
|
constructor(hostRef) {
|
|
26406
26458
|
registerInstance(this, hostRef);
|
|
26407
|
-
/**
|
|
26459
|
+
/**
|
|
26460
|
+
* Specifies the component type.
|
|
26461
|
+
*
|
|
26462
|
+
* Use `"indeterminate"` if finding actual progress value is impossible.
|
|
26463
|
+
*
|
|
26464
|
+
*/
|
|
26408
26465
|
this.type = "determinate";
|
|
26409
26466
|
/** The component's progress value, with a range of 0.0 - 1.0. */
|
|
26410
26467
|
this.value = 0;
|
|
26411
|
-
/** When true and for indeterminate progress bars, reverses the animation direction. */
|
|
26468
|
+
/** When `true` and for `"indeterminate"` progress bars, reverses the animation direction. */
|
|
26412
26469
|
this.reversed = false;
|
|
26413
26470
|
}
|
|
26414
26471
|
render() {
|
|
@@ -26456,9 +26513,9 @@ class RadioButton {
|
|
|
26456
26513
|
// Properties
|
|
26457
26514
|
//
|
|
26458
26515
|
//--------------------------------------------------------------------------
|
|
26459
|
-
/** When true
|
|
26516
|
+
/** When `true`, the component is checked. */
|
|
26460
26517
|
this.checked = false;
|
|
26461
|
-
/** When true
|
|
26518
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
26462
26519
|
this.disabled = false;
|
|
26463
26520
|
/**
|
|
26464
26521
|
* The focused state of the component.
|
|
@@ -26466,7 +26523,7 @@ class RadioButton {
|
|
|
26466
26523
|
* @internal
|
|
26467
26524
|
*/
|
|
26468
26525
|
this.focused = false;
|
|
26469
|
-
/** When true
|
|
26526
|
+
/** When `true`, the component is not displayed and is not focusable or checkable. */
|
|
26470
26527
|
this.hidden = false;
|
|
26471
26528
|
/**
|
|
26472
26529
|
* The hovered state of the component.
|
|
@@ -26474,7 +26531,7 @@ class RadioButton {
|
|
|
26474
26531
|
* @internal
|
|
26475
26532
|
*/
|
|
26476
26533
|
this.hovered = false;
|
|
26477
|
-
/** When true
|
|
26534
|
+
/** When `true`, the component must have a value selected from the `calcite-radio-button-group` in order for the form to submit. */
|
|
26478
26535
|
this.required = false;
|
|
26479
26536
|
/** Specifies the size of the component inherited from the `calcite-radio-button-group`. */
|
|
26480
26537
|
this.scale = "m";
|
|
@@ -26732,13 +26789,13 @@ class RadioButtonGroup {
|
|
|
26732
26789
|
// Properties
|
|
26733
26790
|
//
|
|
26734
26791
|
//--------------------------------------------------------------------------
|
|
26735
|
-
/** When true
|
|
26792
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
26736
26793
|
this.disabled = false;
|
|
26737
|
-
/** When true
|
|
26794
|
+
/** When `true`, the component is not displayed and its `calcite-radio-button`s are not focusable or checkable. */
|
|
26738
26795
|
this.hidden = false;
|
|
26739
26796
|
/** Defines the layout of the component. */
|
|
26740
26797
|
this.layout = "horizontal";
|
|
26741
|
-
/** When true
|
|
26798
|
+
/** When `true`, the component must have a value in order for the form to submit. */
|
|
26742
26799
|
this.required = false;
|
|
26743
26800
|
/** Specifies the size of the component. */
|
|
26744
26801
|
this.scale = "m";
|
|
@@ -26849,10 +26906,10 @@ class RadioGroup {
|
|
|
26849
26906
|
//--------------------------------------------------------------------------
|
|
26850
26907
|
/** Specifies the appearance style of the component. */
|
|
26851
26908
|
this.appearance = "solid";
|
|
26852
|
-
/** When true
|
|
26909
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
26853
26910
|
this.disabled = false;
|
|
26854
26911
|
/**
|
|
26855
|
-
* When true
|
|
26912
|
+
* When `true`, the component must have a value in order for the form to submit.
|
|
26856
26913
|
*
|
|
26857
26914
|
* @internal
|
|
26858
26915
|
*/
|
|
@@ -26861,7 +26918,7 @@ class RadioGroup {
|
|
|
26861
26918
|
this.layout = "horizontal";
|
|
26862
26919
|
/** Specifies the size of the component. */
|
|
26863
26920
|
this.scale = "m";
|
|
26864
|
-
/** The component's
|
|
26921
|
+
/** The component's `selectedItem` value. */
|
|
26865
26922
|
this.value = null;
|
|
26866
26923
|
/** Specifies the width of the component. */
|
|
26867
26924
|
this.width = "auto";
|
|
@@ -27066,9 +27123,9 @@ class RadioGroupItem {
|
|
|
27066
27123
|
// Properties
|
|
27067
27124
|
//
|
|
27068
27125
|
//--------------------------------------------------------------------------
|
|
27069
|
-
/** When true
|
|
27126
|
+
/** When `true`, the component is checked. */
|
|
27070
27127
|
this.checked = false;
|
|
27071
|
-
/** When true
|
|
27128
|
+
/** When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`). */
|
|
27072
27129
|
this.iconFlipRtl = false;
|
|
27073
27130
|
/**
|
|
27074
27131
|
* Specifies the placement of the icon.
|
|
@@ -27141,11 +27198,11 @@ class Rating {
|
|
|
27141
27198
|
this.scale = "m";
|
|
27142
27199
|
/** The component's value. */
|
|
27143
27200
|
this.value = 0;
|
|
27144
|
-
/** When true
|
|
27201
|
+
/** When `true`, the component's value can be read, but cannot be modified. */
|
|
27145
27202
|
this.readOnly = false;
|
|
27146
|
-
/** When true
|
|
27203
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
27147
27204
|
this.disabled = false;
|
|
27148
|
-
/** When true
|
|
27205
|
+
/** When `true`, and if available, displays the `average` and/or `count` data summary in a `calcite-chip`. */
|
|
27149
27206
|
this.showChip = false;
|
|
27150
27207
|
/**
|
|
27151
27208
|
* Accessible name for the component.
|
|
@@ -27160,7 +27217,7 @@ class Rating {
|
|
|
27160
27217
|
*/
|
|
27161
27218
|
this.intlStars = TEXT$5.stars;
|
|
27162
27219
|
/**
|
|
27163
|
-
* When true
|
|
27220
|
+
* When `true`, the component must have a value in order for the form to submit.
|
|
27164
27221
|
*
|
|
27165
27222
|
* @internal
|
|
27166
27223
|
*/
|
|
@@ -27309,7 +27366,7 @@ class Scrim {
|
|
|
27309
27366
|
*/
|
|
27310
27367
|
this.intlLoading = TEXT$4.loading;
|
|
27311
27368
|
/**
|
|
27312
|
-
* When true
|
|
27369
|
+
* When `true`, a busy indicator is displayed.
|
|
27313
27370
|
*/
|
|
27314
27371
|
this.loading = false;
|
|
27315
27372
|
}
|
|
@@ -27367,11 +27424,11 @@ class Select {
|
|
|
27367
27424
|
//
|
|
27368
27425
|
//--------------------------------------------------------------------------
|
|
27369
27426
|
/**
|
|
27370
|
-
* When true
|
|
27427
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
27371
27428
|
*/
|
|
27372
27429
|
this.disabled = false;
|
|
27373
27430
|
/**
|
|
27374
|
-
* When true
|
|
27431
|
+
* When `true`, the component must have a value in order for the form to submit.
|
|
27375
27432
|
*
|
|
27376
27433
|
* @internal
|
|
27377
27434
|
*/
|
|
@@ -27380,7 +27437,7 @@ class Select {
|
|
|
27380
27437
|
* Specifies the size of the component.
|
|
27381
27438
|
*/
|
|
27382
27439
|
this.scale = "m";
|
|
27383
|
-
/** The component's
|
|
27440
|
+
/** The component's `selectedOption` value. */
|
|
27384
27441
|
this.value = null;
|
|
27385
27442
|
/**
|
|
27386
27443
|
* Specifies the width of the component.
|
|
@@ -27701,7 +27758,7 @@ class ShellCenterRow {
|
|
|
27701
27758
|
//
|
|
27702
27759
|
// --------------------------------------------------------------------------
|
|
27703
27760
|
/**
|
|
27704
|
-
* When true
|
|
27761
|
+
* When `true`, the content area displays like a floating panel.
|
|
27705
27762
|
*/
|
|
27706
27763
|
this.detached = false;
|
|
27707
27764
|
/**
|
|
@@ -27788,15 +27845,15 @@ class ShellPanel {
|
|
|
27788
27845
|
//
|
|
27789
27846
|
// --------------------------------------------------------------------------
|
|
27790
27847
|
/**
|
|
27791
|
-
* When true
|
|
27848
|
+
* When `true`, hides the component's content area.
|
|
27792
27849
|
*/
|
|
27793
27850
|
this.collapsed = false;
|
|
27794
27851
|
/**
|
|
27795
|
-
* When true
|
|
27852
|
+
* When `true`, the content area displays like a floating panel.
|
|
27796
27853
|
*/
|
|
27797
27854
|
this.detached = false;
|
|
27798
27855
|
/**
|
|
27799
|
-
* When
|
|
27856
|
+
* When `detached`, specifies the maximum height of the component.
|
|
27800
27857
|
*/
|
|
27801
27858
|
this.detachedHeightScale = "l";
|
|
27802
27859
|
/**
|
|
@@ -27810,7 +27867,7 @@ class ShellPanel {
|
|
|
27810
27867
|
*/
|
|
27811
27868
|
this.intlResize = TEXT$3.resize;
|
|
27812
27869
|
/**
|
|
27813
|
-
* When true and not
|
|
27870
|
+
* When `true` and not `detached`, the component's content area is resizable.
|
|
27814
27871
|
*/
|
|
27815
27872
|
this.resizable = false;
|
|
27816
27873
|
this.contentWidth = null;
|
|
@@ -28035,35 +28092,35 @@ class Slider {
|
|
|
28035
28092
|
// Properties
|
|
28036
28093
|
//
|
|
28037
28094
|
//--------------------------------------------------------------------------
|
|
28038
|
-
/** When true
|
|
28095
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
28039
28096
|
this.disabled = false;
|
|
28040
28097
|
/**
|
|
28041
|
-
* When true
|
|
28098
|
+
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
28042
28099
|
*/
|
|
28043
28100
|
this.groupSeparator = false;
|
|
28044
|
-
/** When true
|
|
28101
|
+
/** When `true`, indicates a histogram is present. */
|
|
28045
28102
|
this.hasHistogram = false;
|
|
28046
|
-
/** When true
|
|
28103
|
+
/** When `true`, displays label handles with their numeric value. */
|
|
28047
28104
|
this.labelHandles = false;
|
|
28048
|
-
/** When true and
|
|
28105
|
+
/** When `true` and `ticks` is specified, displays label tick marks with their numeric value. */
|
|
28049
28106
|
this.labelTicks = false;
|
|
28050
28107
|
/** The component's maximum selectable value. */
|
|
28051
28108
|
this.max = 100;
|
|
28052
28109
|
/** The component's minimum selectable value. */
|
|
28053
28110
|
this.min = 0;
|
|
28054
28111
|
/**
|
|
28055
|
-
* When true
|
|
28112
|
+
* When `true`, the slider will display values from high to low.
|
|
28056
28113
|
*
|
|
28057
28114
|
* Note that this value will be ignored if the slider has an associated histogram.
|
|
28058
28115
|
*/
|
|
28059
28116
|
this.mirrored = false;
|
|
28060
|
-
/** When true
|
|
28117
|
+
/** When `true`, sets a finer point for handles. */
|
|
28061
28118
|
this.precise = false;
|
|
28062
28119
|
/**
|
|
28063
|
-
* When true
|
|
28120
|
+
* When `true`, the component must have a value in order for the form to submit.
|
|
28064
28121
|
*/
|
|
28065
28122
|
this.required = false;
|
|
28066
|
-
/** When true
|
|
28123
|
+
/** When `true`, enables snap selection in coordination with `step` via a mouse. */
|
|
28067
28124
|
this.snap = false;
|
|
28068
28125
|
/** Specifies the interval to move with the up, or down keys. */
|
|
28069
28126
|
this.step = 1;
|
|
@@ -28134,11 +28191,11 @@ class Slider {
|
|
|
28134
28191
|
*/
|
|
28135
28192
|
this.determineGroupSeparator = (value) => {
|
|
28136
28193
|
if (typeof value === "number") {
|
|
28137
|
-
numberStringFormatter.
|
|
28194
|
+
numberStringFormatter.numberFormatOptions = {
|
|
28138
28195
|
locale: this.effectiveLocale,
|
|
28139
28196
|
numberingSystem: this.numberingSystem,
|
|
28140
28197
|
useGrouping: this.groupSeparator
|
|
28141
|
-
}
|
|
28198
|
+
};
|
|
28142
28199
|
return numberStringFormatter.localize(value.toString());
|
|
28143
28200
|
}
|
|
28144
28201
|
};
|
|
@@ -32065,10 +32122,10 @@ class SplitButton {
|
|
|
32065
32122
|
this.appearance = "solid";
|
|
32066
32123
|
/** Specifies the color of the component. */
|
|
32067
32124
|
this.color = "blue";
|
|
32068
|
-
/** When true
|
|
32125
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
32069
32126
|
this.disabled = false;
|
|
32070
32127
|
/**
|
|
32071
|
-
* When true
|
|
32128
|
+
* When `true`, the component is active.
|
|
32072
32129
|
*
|
|
32073
32130
|
* @internal
|
|
32074
32131
|
*/
|
|
@@ -32076,7 +32133,7 @@ class SplitButton {
|
|
|
32076
32133
|
/** Specifies the icon used for the dropdown menu. */
|
|
32077
32134
|
this.dropdownIconType = "chevron";
|
|
32078
32135
|
/**
|
|
32079
|
-
When true
|
|
32136
|
+
When `true`, a busy indicator is displayed on the primary button.
|
|
32080
32137
|
*/
|
|
32081
32138
|
this.loading = false;
|
|
32082
32139
|
/**
|
|
@@ -32179,11 +32236,11 @@ class Stepper {
|
|
|
32179
32236
|
// Public Properties
|
|
32180
32237
|
//
|
|
32181
32238
|
//--------------------------------------------------------------------------
|
|
32182
|
-
/** When true
|
|
32239
|
+
/** When `true`, displays a status icon in the `calcite-stepper-item` heading. */
|
|
32183
32240
|
this.icon = false;
|
|
32184
32241
|
/** Defines the layout of the component. */
|
|
32185
32242
|
this.layout = "horizontal";
|
|
32186
|
-
/** When true
|
|
32243
|
+
/** When `true`, displays the step number in the `calcite-stepper-item` heading. */
|
|
32187
32244
|
this.numbered = false;
|
|
32188
32245
|
/** Specifies the size of the component. */
|
|
32189
32246
|
this.scale = "m";
|
|
@@ -32389,6 +32446,7 @@ class Stepper {
|
|
|
32389
32446
|
"icon": [516],
|
|
32390
32447
|
"layout": [513],
|
|
32391
32448
|
"numbered": [516],
|
|
32449
|
+
"numberingSystem": [513, "numbering-system"],
|
|
32392
32450
|
"scale": [513],
|
|
32393
32451
|
"nextStep": [64],
|
|
32394
32452
|
"prevStep": [64],
|
|
@@ -32398,7 +32456,7 @@ class Stepper {
|
|
|
32398
32456
|
},
|
|
32399
32457
|
"$listeners$": [[0, "calciteInternalStepperItemKeyEvent", "calciteInternalStepperItemKeyEvent"], [0, "calciteInternalStepperItemRegister", "registerItem"], [0, "calciteInternalStepperItemSelect", "updateItem"], [0, "calciteInternalUserRequestedStepperItemSelect", "handleUserRequestedStepperItemSelect"]],
|
|
32400
32458
|
"$lazyBundleId$": "-",
|
|
32401
|
-
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["scale", "scale"]]
|
|
32459
|
+
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["numberingSystem", "numbering-system"], ["scale", "scale"]]
|
|
32402
32460
|
}; }
|
|
32403
32461
|
}
|
|
32404
32462
|
|
|
@@ -32420,29 +32478,29 @@ class StepperItem {
|
|
|
32420
32478
|
//
|
|
32421
32479
|
//--------------------------------------------------------------------------
|
|
32422
32480
|
/**
|
|
32423
|
-
*
|
|
32481
|
+
* When `true`, the component is selected.
|
|
32424
32482
|
*
|
|
32425
|
-
* @deprecated Use selected instead.
|
|
32483
|
+
* @deprecated Use `selected` instead.
|
|
32426
32484
|
*/
|
|
32427
32485
|
this.active = false;
|
|
32428
32486
|
/**
|
|
32429
|
-
* When true
|
|
32487
|
+
* When `true`, the component is selected.
|
|
32430
32488
|
*/
|
|
32431
32489
|
this.selected = false;
|
|
32432
|
-
/**
|
|
32490
|
+
/** When `true`, the step has been completed. */
|
|
32433
32491
|
this.complete = false;
|
|
32434
|
-
/** When true
|
|
32492
|
+
/** When `true`, the component contains an error that requires resolution from the user. */
|
|
32435
32493
|
this.error = false;
|
|
32436
|
-
/** When true
|
|
32494
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
32437
32495
|
this.disabled = false;
|
|
32438
32496
|
// internal props inherited from wrapping calcite-stepper
|
|
32439
32497
|
/** Defines the layout of the component. */
|
|
32440
32498
|
/** @internal */
|
|
32441
32499
|
this.layout = "horizontal";
|
|
32442
|
-
/** When true
|
|
32500
|
+
/** When `true`, displays a status icon in the component's heading. */
|
|
32443
32501
|
/** @internal */
|
|
32444
32502
|
this.icon = false;
|
|
32445
|
-
/** When true
|
|
32503
|
+
/** When `true`, displays the step number in the component's heading. */
|
|
32446
32504
|
/** @internal */
|
|
32447
32505
|
this.numbered = false;
|
|
32448
32506
|
/** Specifies the size of the component. */
|
|
@@ -32450,6 +32508,12 @@ class StepperItem {
|
|
|
32450
32508
|
this.scale = "m";
|
|
32451
32509
|
//--------------------------------------------------------------------------
|
|
32452
32510
|
//
|
|
32511
|
+
// Internal State/Props
|
|
32512
|
+
//
|
|
32513
|
+
//--------------------------------------------------------------------------
|
|
32514
|
+
this.effectiveLocale = "";
|
|
32515
|
+
//--------------------------------------------------------------------------
|
|
32516
|
+
//
|
|
32453
32517
|
// Private Methods
|
|
32454
32518
|
//
|
|
32455
32519
|
//--------------------------------------------------------------------------
|
|
@@ -32513,12 +32577,21 @@ class StepperItem {
|
|
|
32513
32577
|
disabledWatcher() {
|
|
32514
32578
|
this.registerStepperItem();
|
|
32515
32579
|
}
|
|
32580
|
+
effectiveLocaleWatcher(locale) {
|
|
32581
|
+
var _a;
|
|
32582
|
+
numberStringFormatter.numberFormatOptions = {
|
|
32583
|
+
locale,
|
|
32584
|
+
numberingSystem: (_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.numberingSystem,
|
|
32585
|
+
useGrouping: false
|
|
32586
|
+
};
|
|
32587
|
+
}
|
|
32516
32588
|
//--------------------------------------------------------------------------
|
|
32517
32589
|
//
|
|
32518
32590
|
// Lifecycle
|
|
32519
32591
|
//
|
|
32520
32592
|
//--------------------------------------------------------------------------
|
|
32521
32593
|
connectedCallback() {
|
|
32594
|
+
connectLocalized(this);
|
|
32522
32595
|
const { selected, active } = this;
|
|
32523
32596
|
if (selected) {
|
|
32524
32597
|
this.active = selected;
|
|
@@ -32542,10 +32615,13 @@ class StepperItem {
|
|
|
32542
32615
|
componentDidRender() {
|
|
32543
32616
|
updateHostInteraction(this, true);
|
|
32544
32617
|
}
|
|
32618
|
+
disconnectedCallback() {
|
|
32619
|
+
disconnectLocalized(this);
|
|
32620
|
+
}
|
|
32545
32621
|
render() {
|
|
32546
32622
|
return (hAsync(Host, { "aria-expanded": toAriaBoolean(this.active), onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "container" }, hAsync("div", { class: "stepper-item-header", ref: (el) => (this.headerEl = el), tabIndex:
|
|
32547
32623
|
/* additional tab index logic needed because of display: contents */
|
|
32548
|
-
this.layout === "horizontal" && !this.disabled ? 0 : null }, this.icon ? this.renderIcon() : null, this.numbered ? hAsync("div", { class: "stepper-item-number" }, this.itemPosition + 1, ".") : null, hAsync("div", { class: "stepper-item-header-text" }, hAsync("span", { class: "stepper-item-heading" }, this.heading || this.itemTitle), hAsync("span", { class: "stepper-item-description" }, this.description || this.itemSubtitle))), hAsync("div", { class: "stepper-item-content" }, hAsync("slot", null)))));
|
|
32624
|
+
this.layout === "horizontal" && !this.disabled ? 0 : null }, this.icon ? this.renderIcon() : null, this.numbered ? (hAsync("div", { class: "stepper-item-number" }, numberStringFormatter.numberFormatter.format(this.itemPosition + 1), ".")) : null, hAsync("div", { class: "stepper-item-header-text" }, hAsync("span", { class: "stepper-item-heading" }, this.heading || this.itemTitle), hAsync("span", { class: "stepper-item-description" }, this.description || this.itemSubtitle))), hAsync("div", { class: "stepper-item-content" }, hAsync("slot", null)))));
|
|
32549
32625
|
}
|
|
32550
32626
|
//--------------------------------------------------------------------------
|
|
32551
32627
|
//
|
|
@@ -32594,7 +32670,8 @@ class StepperItem {
|
|
|
32594
32670
|
static get watchers() { return {
|
|
32595
32671
|
"active": ["activeHandler"],
|
|
32596
32672
|
"selected": ["selectedHandler"],
|
|
32597
|
-
"disabled": ["disabledWatcher"]
|
|
32673
|
+
"disabled": ["disabledWatcher"],
|
|
32674
|
+
"effectiveLocale": ["effectiveLocaleWatcher"]
|
|
32598
32675
|
}; }
|
|
32599
32676
|
static get style() { return stepperItemCss; }
|
|
32600
32677
|
static get cmpMeta() { return {
|
|
@@ -32614,6 +32691,7 @@ class StepperItem {
|
|
|
32614
32691
|
"icon": [1028],
|
|
32615
32692
|
"numbered": [1028],
|
|
32616
32693
|
"scale": [1537],
|
|
32694
|
+
"effectiveLocale": [32],
|
|
32617
32695
|
"setFocus": [64]
|
|
32618
32696
|
},
|
|
32619
32697
|
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
@@ -32633,17 +32711,17 @@ class Switch {
|
|
|
32633
32711
|
// Properties
|
|
32634
32712
|
//
|
|
32635
32713
|
//--------------------------------------------------------------------------
|
|
32636
|
-
/** When true
|
|
32714
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
32637
32715
|
this.disabled = false;
|
|
32638
32716
|
/** Specifies the size of the component. */
|
|
32639
32717
|
this.scale = "m";
|
|
32640
32718
|
/**
|
|
32641
|
-
* When true
|
|
32719
|
+
* When `true`, the component is checked.
|
|
32642
32720
|
*
|
|
32643
32721
|
* @deprecated use `checked` instead.
|
|
32644
32722
|
*/
|
|
32645
32723
|
this.switched = false;
|
|
32646
|
-
/** When true
|
|
32724
|
+
/** When `true`, the component is checked. */
|
|
32647
32725
|
this.checked = false;
|
|
32648
32726
|
//--------------------------------------------------------------------------
|
|
32649
32727
|
//
|
|
@@ -32750,7 +32828,7 @@ class Tab {
|
|
|
32750
32828
|
registerInstance(this, hostRef);
|
|
32751
32829
|
this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 6);
|
|
32752
32830
|
/**
|
|
32753
|
-
* When true
|
|
32831
|
+
* When `true`, the component's contents are selected.
|
|
32754
32832
|
*
|
|
32755
32833
|
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
32756
32834
|
*
|
|
@@ -32758,7 +32836,7 @@ class Tab {
|
|
|
32758
32836
|
*/
|
|
32759
32837
|
this.active = false;
|
|
32760
32838
|
/**
|
|
32761
|
-
* When true
|
|
32839
|
+
* When `true`, the component's contents are selected.
|
|
32762
32840
|
*
|
|
32763
32841
|
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
32764
32842
|
*/
|
|
@@ -33120,7 +33198,7 @@ class TabTitle {
|
|
|
33120
33198
|
//
|
|
33121
33199
|
//--------------------------------------------------------------------------
|
|
33122
33200
|
/**
|
|
33123
|
-
* When true
|
|
33201
|
+
* When `true`, the component and its respective `calcite-tab` contents are selected.
|
|
33124
33202
|
*
|
|
33125
33203
|
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
33126
33204
|
*
|
|
@@ -33128,12 +33206,12 @@ class TabTitle {
|
|
|
33128
33206
|
*/
|
|
33129
33207
|
this.active = false;
|
|
33130
33208
|
/**
|
|
33131
|
-
* When true
|
|
33209
|
+
* When `true`, the component and its respective `calcite-tab` contents are selected.
|
|
33132
33210
|
*
|
|
33133
33211
|
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
33134
33212
|
*/
|
|
33135
33213
|
this.selected = false;
|
|
33136
|
-
/** When true
|
|
33214
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
33137
33215
|
this.disabled = false;
|
|
33138
33216
|
/**
|
|
33139
33217
|
* @internal
|
|
@@ -33367,11 +33445,11 @@ class Tabs {
|
|
|
33367
33445
|
//
|
|
33368
33446
|
//--------------------------------------------------------------------------
|
|
33369
33447
|
/**
|
|
33370
|
-
* Specifies the layout of the `calcite-tab-nav`, justifying the `calcite-tab-title`s to the start ("inline"), or across and centered ("center").
|
|
33448
|
+
* Specifies the layout of the `calcite-tab-nav`, justifying the `calcite-tab-title`s to the start (`"inline"`), or across and centered (`"center"`).
|
|
33371
33449
|
*/
|
|
33372
33450
|
this.layout = "inline";
|
|
33373
33451
|
/**
|
|
33374
|
-
* Specifies the position of the component in relation to the `calcite-tab`s. The "above" and "below" values are deprecated.
|
|
33452
|
+
* Specifies the position of the component in relation to the `calcite-tab`s. The `"above"` and `"below"` values are deprecated.
|
|
33375
33453
|
*
|
|
33376
33454
|
*/
|
|
33377
33455
|
this.position = "top";
|
|
@@ -33380,7 +33458,7 @@ class Tabs {
|
|
|
33380
33458
|
*/
|
|
33381
33459
|
this.scale = "m";
|
|
33382
33460
|
/**
|
|
33383
|
-
* When true and layout is set to "inline"
|
|
33461
|
+
* When `true` and `layout` is set to `"inline"`, the component will display with a folder style menu.
|
|
33384
33462
|
*/
|
|
33385
33463
|
this.bordered = false;
|
|
33386
33464
|
//--------------------------------------------------------------------------
|
|
@@ -33544,17 +33622,17 @@ class Tile {
|
|
|
33544
33622
|
//
|
|
33545
33623
|
//--------------------------------------------------------------------------
|
|
33546
33624
|
/**
|
|
33547
|
-
* When true
|
|
33625
|
+
* When `true`, the component is active.
|
|
33548
33626
|
*/
|
|
33549
33627
|
this.active = false;
|
|
33550
33628
|
/**
|
|
33551
|
-
* When true
|
|
33629
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
33552
33630
|
*/
|
|
33553
33631
|
this.disabled = false;
|
|
33554
33632
|
/**
|
|
33555
33633
|
* The component's embed mode.
|
|
33556
33634
|
*
|
|
33557
|
-
* When true
|
|
33635
|
+
* When `true`, renders without a border and padding for use by other components.
|
|
33558
33636
|
*/
|
|
33559
33637
|
this.embed = false;
|
|
33560
33638
|
/**
|
|
@@ -33563,7 +33641,7 @@ class Tile {
|
|
|
33563
33641
|
* @internal
|
|
33564
33642
|
*/
|
|
33565
33643
|
this.focused = false;
|
|
33566
|
-
/** When true
|
|
33644
|
+
/** When `true`, the component is not displayed and is not focusable. */
|
|
33567
33645
|
this.hidden = false;
|
|
33568
33646
|
}
|
|
33569
33647
|
// --------------------------------------------------------------------------
|
|
@@ -33652,15 +33730,15 @@ class TileSelect {
|
|
|
33652
33730
|
// Properties
|
|
33653
33731
|
//
|
|
33654
33732
|
//--------------------------------------------------------------------------
|
|
33655
|
-
/** When true
|
|
33733
|
+
/** When `true`, the component is checked. */
|
|
33656
33734
|
this.checked = false;
|
|
33657
|
-
/** When true
|
|
33735
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
33658
33736
|
this.disabled = false;
|
|
33659
|
-
/** When true
|
|
33737
|
+
/** When `true`, the component is not displayed and is not focusable or checkable. */
|
|
33660
33738
|
this.hidden = false;
|
|
33661
|
-
/** When true
|
|
33739
|
+
/** When `true`, displays an interactive input based on the `type` property. */
|
|
33662
33740
|
this.inputEnabled = false;
|
|
33663
|
-
/** When inputEnabled is true
|
|
33741
|
+
/** When `inputEnabled` is `true`, specifies the placement of the interactive input on the component. */
|
|
33664
33742
|
this.inputAlignment = "start";
|
|
33665
33743
|
/**
|
|
33666
33744
|
* The selection mode of the component.
|
|
@@ -33859,7 +33937,7 @@ class TileSelectGroup {
|
|
|
33859
33937
|
// Properties
|
|
33860
33938
|
//
|
|
33861
33939
|
//--------------------------------------------------------------------------
|
|
33862
|
-
/** When true
|
|
33940
|
+
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
33863
33941
|
this.disabled = false;
|
|
33864
33942
|
/**
|
|
33865
33943
|
* Defines the layout of the component.
|
|
@@ -34028,7 +34106,7 @@ class TimePicker {
|
|
|
34028
34106
|
this.intlSecondUp = TEXT$2.secondUp;
|
|
34029
34107
|
/** Specifies the size of the component. */
|
|
34030
34108
|
this.scale = "m";
|
|
34031
|
-
/** Specifies the granularity the
|
|
34109
|
+
/** Specifies the granularity the `value` must adhere to (in seconds). */
|
|
34032
34110
|
this.step = 60;
|
|
34033
34111
|
/** The component's value in UTC (always 24-hour format). */
|
|
34034
34112
|
this.value = null;
|
|
@@ -34290,8 +34368,8 @@ class TimePicker {
|
|
|
34290
34368
|
this.setValue = (value, emit = true) => {
|
|
34291
34369
|
if (isValidTime(value)) {
|
|
34292
34370
|
const { hour, minute, second } = parseTimeString(value);
|
|
34293
|
-
const locale = this
|
|
34294
|
-
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem } = localizeTimeStringToParts(value, locale);
|
|
34371
|
+
const { effectiveLocale: locale, numberingSystem } = this;
|
|
34372
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
34295
34373
|
this.localizedHour = localizedHour;
|
|
34296
34374
|
this.localizedHourSuffix = localizedHourSuffix;
|
|
34297
34375
|
this.localizedMinute = localizedMinute;
|
|
@@ -34304,7 +34382,7 @@ class TimePicker {
|
|
|
34304
34382
|
if (localizedMeridiem) {
|
|
34305
34383
|
this.localizedMeridiem = localizedMeridiem;
|
|
34306
34384
|
this.meridiem = getMeridiem(this.hour);
|
|
34307
|
-
const formatParts = getTimeParts(value, locale);
|
|
34385
|
+
const formatParts = getTimeParts({ value, locale, numberingSystem });
|
|
34308
34386
|
this.meridiemOrder = this.getMeridiemOrder(formatParts);
|
|
34309
34387
|
}
|
|
34310
34388
|
}
|
|
@@ -34328,7 +34406,7 @@ class TimePicker {
|
|
|
34328
34406
|
};
|
|
34329
34407
|
this.setValuePart = (key, value, emit = true) => {
|
|
34330
34408
|
var _a;
|
|
34331
|
-
const locale = this
|
|
34409
|
+
const { effectiveLocale: locale, numberingSystem } = this;
|
|
34332
34410
|
if (key === "meridiem") {
|
|
34333
34411
|
this.meridiem = value;
|
|
34334
34412
|
if (isValidNumber(this.hour)) {
|
|
@@ -34345,12 +34423,22 @@ class TimePicker {
|
|
|
34345
34423
|
}
|
|
34346
34424
|
break;
|
|
34347
34425
|
}
|
|
34348
|
-
this.localizedHour = localizeTimePart(
|
|
34426
|
+
this.localizedHour = localizeTimePart({
|
|
34427
|
+
value: this.hour,
|
|
34428
|
+
part: "hour",
|
|
34429
|
+
locale,
|
|
34430
|
+
numberingSystem
|
|
34431
|
+
});
|
|
34349
34432
|
}
|
|
34350
34433
|
}
|
|
34351
34434
|
else {
|
|
34352
34435
|
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
34353
|
-
this[`localized${capitalize(key)}`] = localizeTimePart(
|
|
34436
|
+
this[`localized${capitalize(key)}`] = localizeTimePart({
|
|
34437
|
+
value: this[key],
|
|
34438
|
+
part: key,
|
|
34439
|
+
locale,
|
|
34440
|
+
numberingSystem
|
|
34441
|
+
});
|
|
34354
34442
|
}
|
|
34355
34443
|
if (this.hour && this.minute) {
|
|
34356
34444
|
const showSeconds = this.second && this.showSecond;
|
|
@@ -34360,8 +34448,8 @@ class TimePicker {
|
|
|
34360
34448
|
this.value = null;
|
|
34361
34449
|
}
|
|
34362
34450
|
this.localizedMeridiem = this.value
|
|
34363
|
-
? ((_a = localizeTimeStringToParts(this.value, locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
34364
|
-
: localizeTimePart(this.meridiem, "meridiem", locale);
|
|
34451
|
+
? ((_a = localizeTimeStringToParts({ value: this.value, locale, numberingSystem })) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
34452
|
+
: localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
|
|
34365
34453
|
if (emit) {
|
|
34366
34454
|
this.calciteInternalTimePickerChange.emit();
|
|
34367
34455
|
}
|
|
@@ -34485,7 +34573,7 @@ class TimePicker {
|
|
|
34485
34573
|
return 0;
|
|
34486
34574
|
}
|
|
34487
34575
|
updateLocale() {
|
|
34488
|
-
this.hourCycle = getLocaleHourCycle(this.effectiveLocale);
|
|
34576
|
+
this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
|
|
34489
34577
|
this.setValue(this.value, false);
|
|
34490
34578
|
}
|
|
34491
34579
|
// --------------------------------------------------------------------------
|
|
@@ -34496,7 +34584,11 @@ class TimePicker {
|
|
|
34496
34584
|
connectedCallback() {
|
|
34497
34585
|
connectLocalized(this);
|
|
34498
34586
|
this.updateLocale();
|
|
34499
|
-
this.meridiemOrder = this.getMeridiemOrder(getTimeParts(
|
|
34587
|
+
this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
|
|
34588
|
+
value: "0:00:00",
|
|
34589
|
+
locale: this.effectiveLocale,
|
|
34590
|
+
numberingSystem: this.numberingSystem
|
|
34591
|
+
}));
|
|
34500
34592
|
}
|
|
34501
34593
|
disconnectedCallback() {
|
|
34502
34594
|
disconnectLocalized(this);
|
|
@@ -34588,6 +34680,7 @@ class TimePicker {
|
|
|
34588
34680
|
"locale": [1025],
|
|
34589
34681
|
"scale": [513],
|
|
34590
34682
|
"step": [514],
|
|
34683
|
+
"numberingSystem": [1, "numbering-system"],
|
|
34591
34684
|
"value": [1025],
|
|
34592
34685
|
"effectiveLocale": [32],
|
|
34593
34686
|
"hour": [32],
|
|
@@ -34674,11 +34767,11 @@ class Tip {
|
|
|
34674
34767
|
//
|
|
34675
34768
|
// --------------------------------------------------------------------------
|
|
34676
34769
|
/**
|
|
34677
|
-
* When true
|
|
34770
|
+
* When `true`, the component does not display.
|
|
34678
34771
|
*/
|
|
34679
34772
|
this.dismissed = false;
|
|
34680
34773
|
/**
|
|
34681
|
-
* When true
|
|
34774
|
+
* When `true`, the close button is not present on the component.
|
|
34682
34775
|
*/
|
|
34683
34776
|
this.nonDismissible = false;
|
|
34684
34777
|
/**
|
|
@@ -34799,7 +34892,7 @@ class TipManager {
|
|
|
34799
34892
|
//
|
|
34800
34893
|
// --------------------------------------------------------------------------
|
|
34801
34894
|
/**
|
|
34802
|
-
* When true
|
|
34895
|
+
* When `true`, does not display or position the component.
|
|
34803
34896
|
*/
|
|
34804
34897
|
this.closed = false;
|
|
34805
34898
|
this.mutationObserver = createObserver();
|
|
@@ -35158,7 +35251,7 @@ class Tooltip {
|
|
|
35158
35251
|
*/
|
|
35159
35252
|
this.offsetSkidding = 0;
|
|
35160
35253
|
/**
|
|
35161
|
-
* When true
|
|
35254
|
+
* When `true`, the component is open.
|
|
35162
35255
|
*/
|
|
35163
35256
|
this.open = false;
|
|
35164
35257
|
/**
|
|
@@ -35331,7 +35424,7 @@ class Tooltip {
|
|
|
35331
35424
|
const tooltipManagerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-tooltip-manager:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tooltip-manager{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tooltip-manager{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tooltip-manager{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tooltip-manager{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tooltip-manager{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-tooltip-manager:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-tooltip-manager:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tooltip-manager-h{display:none}/*!@:host*/.sc-calcite-tooltip-manager-h{position:relative;display:block}";
|
|
35332
35425
|
|
|
35333
35426
|
/**
|
|
35334
|
-
* @slot - A slot for adding elements that reference a
|
|
35427
|
+
* @slot - A slot for adding elements that reference a `calcite-tooltip` by the `selector` property.
|
|
35335
35428
|
* @deprecated No longer required for tooltip usage.
|
|
35336
35429
|
*/
|
|
35337
35430
|
class TooltipManager {
|
|
@@ -35721,12 +35814,12 @@ class TreeItem {
|
|
|
35721
35814
|
//
|
|
35722
35815
|
//--------------------------------------------------------------------------
|
|
35723
35816
|
/**
|
|
35724
|
-
* When true
|
|
35817
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
35725
35818
|
*/
|
|
35726
35819
|
this.disabled = false;
|
|
35727
|
-
/** When true
|
|
35820
|
+
/** When `true`, the component is selected. */
|
|
35728
35821
|
this.selected = false;
|
|
35729
|
-
/** When true
|
|
35822
|
+
/** When `true`, the component is expanded. */
|
|
35730
35823
|
this.expanded = false;
|
|
35731
35824
|
/**
|
|
35732
35825
|
* @internal
|
|
@@ -36014,30 +36107,30 @@ class ValueList {
|
|
|
36014
36107
|
//
|
|
36015
36108
|
// --------------------------------------------------------------------------
|
|
36016
36109
|
/**
|
|
36017
|
-
* When true
|
|
36110
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
36018
36111
|
*/
|
|
36019
36112
|
this.disabled = false;
|
|
36020
36113
|
/**
|
|
36021
|
-
* When true
|
|
36114
|
+
* When `true`, `calcite-value-list-item`s are sortable via a draggable button.
|
|
36022
36115
|
*/
|
|
36023
36116
|
this.dragEnabled = false;
|
|
36024
36117
|
/**
|
|
36025
|
-
* When true
|
|
36118
|
+
* When `true`, an input appears at the top of the component that can be used by end users to filter list items.
|
|
36026
36119
|
*/
|
|
36027
36120
|
this.filterEnabled = false;
|
|
36028
36121
|
/**
|
|
36029
|
-
* When true
|
|
36122
|
+
* When `true`, a busy indicator is displayed.
|
|
36030
36123
|
*/
|
|
36031
36124
|
this.loading = false;
|
|
36032
36125
|
/**
|
|
36033
36126
|
* Similar to standard radio buttons and checkboxes.
|
|
36034
|
-
* When true
|
|
36035
|
-
* When false
|
|
36127
|
+
* When `true`, a user can select multiple `calcite-value-list-item`s at a time.
|
|
36128
|
+
* When `false`, only a single `calcite-value-list-item` can be selected at a time,
|
|
36036
36129
|
* and a new selection will deselect previous selections.
|
|
36037
36130
|
*/
|
|
36038
36131
|
this.multiple = false;
|
|
36039
36132
|
/**
|
|
36040
|
-
* When true and single-selection is enabled, the selection changes when navigating `calcite-value-list-item`s via keyboard.
|
|
36133
|
+
* When `true` and single-selection is enabled, the selection changes when navigating `calcite-value-list-item`s via keyboard.
|
|
36041
36134
|
*/
|
|
36042
36135
|
this.selectionFollowsFocus = false;
|
|
36043
36136
|
// --------------------------------------------------------------------------
|
|
@@ -36270,7 +36363,7 @@ class ValueListItem {
|
|
|
36270
36363
|
registerInstance(this, hostRef);
|
|
36271
36364
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
36272
36365
|
/**
|
|
36273
|
-
* When true
|
|
36366
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
36274
36367
|
*/
|
|
36275
36368
|
this.disabled = false;
|
|
36276
36369
|
/**
|
|
@@ -36278,7 +36371,7 @@ class ValueListItem {
|
|
|
36278
36371
|
*/
|
|
36279
36372
|
this.disableDeselect = false;
|
|
36280
36373
|
/**
|
|
36281
|
-
* When true
|
|
36374
|
+
* When `true`, prevents the content of the component from user interaction.
|
|
36282
36375
|
*/
|
|
36283
36376
|
this.nonInteractive = false;
|
|
36284
36377
|
/**
|
|
@@ -36292,11 +36385,11 @@ class ValueListItem {
|
|
|
36292
36385
|
*/
|
|
36293
36386
|
this.icon = null;
|
|
36294
36387
|
/**
|
|
36295
|
-
* When true
|
|
36388
|
+
* When `true`, adds an action to remove the component.
|
|
36296
36389
|
*/
|
|
36297
36390
|
this.removable = false;
|
|
36298
36391
|
/**
|
|
36299
|
-
* When true
|
|
36392
|
+
* When `true`, the component is selected.
|
|
36300
36393
|
*/
|
|
36301
36394
|
this.selected = false;
|
|
36302
36395
|
this.pickListItem = null;
|