@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
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { select, number, text } from "@storybook/addon-knobs";
|
|
2
|
+
import { boolean, storyFilters } from "../../../.storybook/helpers";
|
|
3
|
+
import { themesDarkDefault } from "../../../.storybook/utils";
|
|
4
|
+
import readme1 from "./readme.md";
|
|
5
|
+
import readme2 from "../combobox-item/readme.md";
|
|
6
|
+
import { html } from "../../../support/formatting";
|
|
7
|
+
export default {
|
|
8
|
+
title: "Components/Controls/Combobox",
|
|
9
|
+
parameters: {
|
|
10
|
+
notes: [readme1, readme2]
|
|
11
|
+
},
|
|
12
|
+
...storyFilters()
|
|
13
|
+
};
|
|
14
|
+
export const simple = () => html `
|
|
15
|
+
<div style="width:400px;max-width:100%;background-color:white;padding:100px">
|
|
16
|
+
<calcite-combobox
|
|
17
|
+
label="demo combobox"
|
|
18
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
19
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
20
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "multi")}"
|
|
21
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
22
|
+
${boolean("disabled", false)}
|
|
23
|
+
${boolean("allow-custom-values", false)}
|
|
24
|
+
max-items="${number("max-items", 0)}"
|
|
25
|
+
>
|
|
26
|
+
<calcite-combobox-item value="Trees" text-label="Trees" selected>
|
|
27
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
28
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
29
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
30
|
+
</calcite-combobox-item>
|
|
31
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers">
|
|
32
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
33
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
34
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
35
|
+
</calcite-combobox-item>
|
|
36
|
+
<calcite-combobox-item value="Animals" text-label="Animals">
|
|
37
|
+
<calcite-combobox-item value="Birds" text-label="Birds"></calcite-combobox-item>
|
|
38
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles"></calcite-combobox-item>
|
|
39
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians"></calcite-combobox-item>
|
|
40
|
+
</calcite-combobox-item>
|
|
41
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
42
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
43
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
44
|
+
</calcite-combobox>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
export const single = () => html `
|
|
48
|
+
<div style="width:150px;max-width:100%;background-color:white;padding:100px">
|
|
49
|
+
<calcite-combobox
|
|
50
|
+
label="demo combobox"
|
|
51
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "single")}"
|
|
52
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
53
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
54
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
55
|
+
${boolean("disabled", false)}
|
|
56
|
+
max-items="${number("max-items", 0)}"
|
|
57
|
+
>
|
|
58
|
+
<calcite-combobox-item icon="altitude" value="altitude" text-label="Altitude" selected></calcite-combobox-item>
|
|
59
|
+
<calcite-combobox-item icon="article" value="article" text-label="Article"></calcite-combobox-item>
|
|
60
|
+
<calcite-combobox-item icon="attachment" value="attachment" text-label="Attachment"></calcite-combobox-item>
|
|
61
|
+
<calcite-combobox-item icon="banana" value="banana" text-label="Banana"></calcite-combobox-item>
|
|
62
|
+
<calcite-combobox-item icon="battery3" value="battery" text-label="Batterycharging"></calcite-combobox-item>
|
|
63
|
+
<calcite-combobox-item icon="beaker" value="beaker" text-label="Beaker"></calcite-combobox-item>
|
|
64
|
+
<calcite-combobox-item icon="bell" value="bell" text-label="Bell"></calcite-combobox-item>
|
|
65
|
+
<calcite-combobox-item icon="bookmark" value="bookmark" text-label="Bookmark"></calcite-combobox-item>
|
|
66
|
+
<calcite-combobox-item icon="brightness" value="brightness" text-label="Brightness"></calcite-combobox-item>
|
|
67
|
+
<calcite-combobox-item icon="calendar" value="calendar" text-label="Calendar"></calcite-combobox-item>
|
|
68
|
+
<calcite-combobox-item icon="camera" value="camera" text-label="Camera"></calcite-combobox-item>
|
|
69
|
+
<calcite-combobox-item icon="car" value="car" text-label="Car"></calcite-combobox-item>
|
|
70
|
+
<calcite-combobox-item icon="clock" value="clock" text-label="Clock"></calcite-combobox-item>
|
|
71
|
+
</calcite-combobox>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
|
74
|
+
export const multiple = () => html `
|
|
75
|
+
<div style="width:400px;max-width:100%;background-color:white;padding:100px">
|
|
76
|
+
<calcite-combobox
|
|
77
|
+
label="demo combobox"
|
|
78
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
79
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
80
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "multi")}"
|
|
81
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
82
|
+
${boolean("disabled", false)}
|
|
83
|
+
${boolean("allow-custom-values", false)}
|
|
84
|
+
max-items="${number("max-items", 0)}"
|
|
85
|
+
>
|
|
86
|
+
<calcite-combobox-item value="Trees" text-label="Trees" selected></calcite-combobox-item>
|
|
87
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers" selected></calcite-combobox-item>
|
|
88
|
+
<calcite-combobox-item value="Animals" text-label="Animals"></calcite-combobox-item>
|
|
89
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
90
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
91
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
92
|
+
<calcite-combobox-item
|
|
93
|
+
value="CommercialDamageAssessment - Damage to Commercial Buildings & Damage to Commercial Buildings"
|
|
94
|
+
text-label="CommercialDamageAssessment - Damage to Commercial Buildings & Damage to Commercial Buildings"
|
|
95
|
+
selected
|
|
96
|
+
></calcite-combobox-item>
|
|
97
|
+
</calcite-combobox>
|
|
98
|
+
</div>
|
|
99
|
+
`;
|
|
100
|
+
export const nestedItems = () => html `
|
|
101
|
+
<div style="width:400px;max-width:100%;background-color:white;padding:100px">
|
|
102
|
+
<calcite-combobox
|
|
103
|
+
open
|
|
104
|
+
label="demo combobox"
|
|
105
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "multi")}"
|
|
106
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
107
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
108
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
109
|
+
${boolean("disabled", false)}
|
|
110
|
+
${boolean("allow-custom-values", false)}
|
|
111
|
+
max-items="${number("max-items", 0)}"
|
|
112
|
+
>
|
|
113
|
+
<calcite-combobox-item value="ITEM-0-0" text-label="Level 1">
|
|
114
|
+
<calcite-combobox-item value="ITEM-0-1" text-label="Level 2"></calcite-combobox-item>
|
|
115
|
+
<calcite-combobox-item value="ITEM-0-2" text-label="Level 2"></calcite-combobox-item>
|
|
116
|
+
<calcite-combobox-item value="ITEM-0-3" text-label="Level 2"></calcite-combobox-item>
|
|
117
|
+
</calcite-combobox-item>
|
|
118
|
+
<calcite-combobox-item value="ITEM-1-0" text-label="Level 1">
|
|
119
|
+
<calcite-combobox-item value="ITEM-1-1" text-label="Level 2">
|
|
120
|
+
<calcite-combobox-item value="ITEM-1-1-0" text-label="Level 3"></calcite-combobox-item>
|
|
121
|
+
<calcite-combobox-item value="ITEM-1-1-1" text-label="Level 3">
|
|
122
|
+
<calcite-combobox-item value="ITEM-1-1-1-0" text-label="Level 4"></calcite-combobox-item>
|
|
123
|
+
<calcite-combobox-item value="ITEM-1-1-1-1" text-label="Level 4"></calcite-combobox-item>
|
|
124
|
+
</calcite-combobox-item>
|
|
125
|
+
</calcite-combobox-item>
|
|
126
|
+
<calcite-combobox-item value="ITEM-1-2" text-label="Level 2"></calcite-combobox-item>
|
|
127
|
+
<calcite-combobox-item value="ITEM-1-3" text-label="Level 2"></calcite-combobox-item>
|
|
128
|
+
</calcite-combobox-item>
|
|
129
|
+
<calcite-combobox-item value="ITEM-2-0" text-label="Level 1">
|
|
130
|
+
<calcite-combobox-item value="ITEM-2-1" text-label="Level 2"></calcite-combobox-item>
|
|
131
|
+
<calcite-combobox-item value="ITEM-2-2" text-label="Level 2">
|
|
132
|
+
<calcite-combobox-item value="ITEM-2-2-0" text-label="Level 3"></calcite-combobox-item>
|
|
133
|
+
</calcite-combobox-item>
|
|
134
|
+
<calcite-combobox-item value="ITEM-2-3" text-label="Level 2"></calcite-combobox-item>
|
|
135
|
+
</calcite-combobox-item>
|
|
136
|
+
<calcite-combobox-item value="ITEM-0-4" text-label="Level 1"></calcite-combobox-item>
|
|
137
|
+
<calcite-combobox-item value="ITEM-0-5" text-label="Level 1"></calcite-combobox-item>
|
|
138
|
+
<calcite-combobox-item value="ITEM-0-6" text-label="Level 1"></calcite-combobox-item>
|
|
139
|
+
</calcite-combobox>
|
|
140
|
+
</div>
|
|
141
|
+
`;
|
|
142
|
+
export const disabled_TestOnly = () => html `<calcite-combobox disabled>
|
|
143
|
+
<calcite-combobox-item value="Trees" text-label="Trees">
|
|
144
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
145
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
146
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
147
|
+
</calcite-combobox-item>
|
|
148
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers" disabled>
|
|
149
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
150
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
151
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
152
|
+
</calcite-combobox-item>
|
|
153
|
+
</calcite-combobox>`;
|
|
154
|
+
export const flipPlacements_TestOnly = () => html `
|
|
155
|
+
<style>
|
|
156
|
+
.my-combobox {
|
|
157
|
+
position: unset;
|
|
158
|
+
margin-top: 50px;
|
|
159
|
+
}
|
|
160
|
+
</style>
|
|
161
|
+
<div style="height: 100px; overflow:scroll;">
|
|
162
|
+
<calcite-combobox class="my-combobox" placeholder="placeholder" open>
|
|
163
|
+
<calcite-combobox-item value="Trees" text-label="Trees" aria-hidden="true">
|
|
164
|
+
<calcite-combobox-item value="Pine" text-label="Pine" aria-hidden="true"></calcite-combobox-item>
|
|
165
|
+
<calcite-combobox-item
|
|
166
|
+
value="Sequoia"
|
|
167
|
+
disabled=""
|
|
168
|
+
text-label="Sequoia"
|
|
169
|
+
aria-hidden="true"
|
|
170
|
+
></calcite-combobox-item>
|
|
171
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir" aria-hidden="true"></calcite-combobox-item>
|
|
172
|
+
</calcite-combobox-item>
|
|
173
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers" aria-hidden="true">
|
|
174
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil" aria-hidden="true"></calcite-combobox-item>
|
|
175
|
+
<calcite-combobox-item
|
|
176
|
+
value="Black Eyed Susan"
|
|
177
|
+
text-label="Black Eyed Susan"
|
|
178
|
+
aria-hidden="true"
|
|
179
|
+
></calcite-combobox-item>
|
|
180
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium" aria-hidden="true"></calcite-combobox-item>
|
|
181
|
+
</calcite-combobox-item>
|
|
182
|
+
<calcite-combobox-item value="Animals" text-label="Animals" aria-hidden="true">
|
|
183
|
+
<calcite-combobox-item value="Birds" text-label="Birds" aria-hidden="true"></calcite-combobox-item>
|
|
184
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles" aria-hidden="true"></calcite-combobox-item>
|
|
185
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians" aria-hidden="true"></calcite-combobox-item>
|
|
186
|
+
</calcite-combobox-item>
|
|
187
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks" aria-hidden="true"></calcite-combobox-item>
|
|
188
|
+
<calcite-combobox-item value="Insects" text-label="Insects" aria-hidden="true"></calcite-combobox-item>
|
|
189
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers" aria-hidden="true"></calcite-combobox-item>
|
|
190
|
+
</calcite-combobox>
|
|
191
|
+
</div>
|
|
192
|
+
<script>
|
|
193
|
+
document.querySelector(".my-combobox").flipPlacements = ["right"];
|
|
194
|
+
</script>
|
|
195
|
+
`;
|
|
196
|
+
export const flipPositioning_TestOnly = () => html `
|
|
197
|
+
<div style="position: absolute; bottom: 10px; left: 10px;">
|
|
198
|
+
<calcite-combobox
|
|
199
|
+
max-items="${number("max-items", 6)}"
|
|
200
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
201
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
202
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "multi")}"
|
|
203
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
204
|
+
${boolean("disabled", false)}
|
|
205
|
+
${boolean("allow-custom-values", false)}
|
|
206
|
+
open
|
|
207
|
+
>
|
|
208
|
+
<calcite-combobox-item value="Trees" text-label="Trees">
|
|
209
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
210
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
211
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
212
|
+
</calcite-combobox-item>
|
|
213
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers">
|
|
214
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
215
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
216
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
217
|
+
</calcite-combobox-item>
|
|
218
|
+
<calcite-combobox-item value="Animals" text-label="Animals">
|
|
219
|
+
<calcite-combobox-item value="Birds" text-label="Birds"></calcite-combobox-item>
|
|
220
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles"></calcite-combobox-item>
|
|
221
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians"></calcite-combobox-item>
|
|
222
|
+
</calcite-combobox-item>
|
|
223
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
224
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
225
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
226
|
+
</calcite-combobox>
|
|
227
|
+
</div>
|
|
228
|
+
`;
|
|
229
|
+
flipPositioning_TestOnly.parameters = {
|
|
230
|
+
layout: "fullscreen"
|
|
231
|
+
};
|
|
232
|
+
export const darkThemeRTL_TestOnly = () => html `
|
|
233
|
+
<div style="width:400px;max-width:100%;padding:100px">
|
|
234
|
+
<calcite-combobox
|
|
235
|
+
label="demo combobox"
|
|
236
|
+
selection-mode="${select("selection-mode", ["multi", "single", "ancestors"], "multi")}"
|
|
237
|
+
class="calcite-theme-dark"
|
|
238
|
+
placeholder="${text("placeholder", "placeholder")}"
|
|
239
|
+
label="${text("label (for screen readers)", "demo")}"
|
|
240
|
+
scale="${select("scale", ["s", "m", "l"], "m")}"
|
|
241
|
+
${boolean("disabled", false)}
|
|
242
|
+
${boolean("allow-custom-values", false)}
|
|
243
|
+
max-items="${number("max-items", 0)}"
|
|
244
|
+
>
|
|
245
|
+
<calcite-combobox-item value="Trees" text-label="Trees">
|
|
246
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
247
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
248
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
249
|
+
</calcite-combobox-item>
|
|
250
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers">
|
|
251
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
252
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
253
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
254
|
+
</calcite-combobox-item>
|
|
255
|
+
<calcite-combobox-item value="Animals" text-label="Animals">
|
|
256
|
+
<calcite-combobox-item value="Birds" text-label="Birds"></calcite-combobox-item>
|
|
257
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles"></calcite-combobox-item>
|
|
258
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians"></calcite-combobox-item>
|
|
259
|
+
</calcite-combobox-item>
|
|
260
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
261
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
262
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
263
|
+
</calcite-combobox>
|
|
264
|
+
</div>
|
|
265
|
+
`;
|
|
266
|
+
darkThemeRTL_TestOnly.parameters = { themes: themesDarkDefault };
|
|
267
|
+
export const singleLongLabel_TestOnly = () => html `
|
|
268
|
+
<calcite-combobox open selection-mode="single" allow-custom-values>
|
|
269
|
+
<calcite-combobox-item value="Trees" text-label="Trees">
|
|
270
|
+
<calcite-combobox-item
|
|
271
|
+
value="CommercialDamageAssessment - Damage to Commercial Buildings"
|
|
272
|
+
text-label="CommercialDamageAssessment - Damage to Commercial Buildings & Damage to Residential Buildings "
|
|
273
|
+
></calcite-combobox-item>
|
|
274
|
+
<calcite-combobox-item value="Sequoia" text-label="Sequoia"></calcite-combobox-item>
|
|
275
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
276
|
+
</calcite-combobox-item>
|
|
277
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
278
|
+
</calcite-combobox>
|
|
279
|
+
`;
|
|
280
|
+
export const withPlaceholderIcon_TestOnly = () => html ` <calcite-combobox
|
|
281
|
+
id="labelFour"
|
|
282
|
+
label="test"
|
|
283
|
+
placeholder="${text("placeholder", "select folder")}"
|
|
284
|
+
placeholder-icon="${text("placeholder-icon", "select")}"
|
|
285
|
+
max-items="6"
|
|
286
|
+
selection-mode="single"
|
|
287
|
+
scale="s"
|
|
288
|
+
>
|
|
289
|
+
<calcite-combobox-item value="root" text-label="username" icon="home"></calcite-combobox-item>
|
|
290
|
+
<calcite-combobox-item value="1" text-label="Folder 1" icon="folder"></calcite-combobox-item>
|
|
291
|
+
<calcite-combobox-item value="2" text-label="Folder 2" icon="folder"></calcite-combobox-item>
|
|
292
|
+
</calcite-combobox>`;
|
|
293
|
+
export const withoutPlaceholderIcon_TestOnly = () => html ` <div
|
|
294
|
+
style="width:400px;max-width:100%;background-color:white;padding:100px"
|
|
295
|
+
>
|
|
296
|
+
<calcite-combobox placeholder="${text("placeholder", "select folder")}" selection-mode="multi" open>
|
|
297
|
+
<calcite-combobox-item value="root" text-label="username" icon="home" selected></calcite-combobox-item>
|
|
298
|
+
<calcite-combobox-item value="1" text-label="Folder 1" icon="folder"></calcite-combobox-item>
|
|
299
|
+
<calcite-combobox-item value="2" text-label="Folder 2" icon="folder"></calcite-combobox-item>
|
|
300
|
+
</calcite-combobox>
|
|
301
|
+
</div>`;
|
|
302
|
+
export const scrollingWithoutMaxItems_TestOnly = () => html `
|
|
303
|
+
<div style="width:400px;max-width:100%;background-color:white;padding:100px">
|
|
304
|
+
<calcite-combobox label="demo combobox" open>
|
|
305
|
+
<calcite-combobox-item value="Trees" text-label="Trees" selected>
|
|
306
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
307
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
308
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
309
|
+
</calcite-combobox-item>
|
|
310
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers">
|
|
311
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
312
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
313
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
314
|
+
</calcite-combobox-item>
|
|
315
|
+
<calcite-combobox-item value="Animals" text-label="Animals">
|
|
316
|
+
<calcite-combobox-item value="Birds" text-label="Birds"></calcite-combobox-item>
|
|
317
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles"></calcite-combobox-item>
|
|
318
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians"></calcite-combobox-item>
|
|
319
|
+
</calcite-combobox-item>
|
|
320
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
321
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
322
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
323
|
+
<calcite-combobox-item value="Trees" text-label="Trees" selected>
|
|
324
|
+
<calcite-combobox-item value="Pine" text-label="Pine"></calcite-combobox-item>
|
|
325
|
+
<calcite-combobox-item value="Sequoia" disabled text-label="Sequoia"></calcite-combobox-item>
|
|
326
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir"></calcite-combobox-item>
|
|
327
|
+
</calcite-combobox-item>
|
|
328
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers">
|
|
329
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil"></calcite-combobox-item>
|
|
330
|
+
<calcite-combobox-item value="Black Eyed Susan" text-label="Black Eyed Susan"></calcite-combobox-item>
|
|
331
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium"></calcite-combobox-item>
|
|
332
|
+
</calcite-combobox-item>
|
|
333
|
+
<calcite-combobox-item value="Animals" text-label="Animals">
|
|
334
|
+
<calcite-combobox-item value="Birds" text-label="Birds"></calcite-combobox-item>
|
|
335
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles"></calcite-combobox-item>
|
|
336
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians"></calcite-combobox-item>
|
|
337
|
+
</calcite-combobox-item>
|
|
338
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks"></calcite-combobox-item>
|
|
339
|
+
<calcite-combobox-item value="Insects" text-label="Insects"></calcite-combobox-item>
|
|
340
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers"></calcite-combobox-item>
|
|
341
|
+
</calcite-combobox>
|
|
342
|
+
</div>
|
|
343
|
+
`;
|
|
344
|
+
export const optionListMinWidthMatchesInputWhenOverlayPositioningIsFixed_TestOnly = () => html `
|
|
345
|
+
<style>
|
|
346
|
+
.wrapper {
|
|
347
|
+
display: flex;
|
|
348
|
+
width: 100%;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
calcite-combobox {
|
|
352
|
+
width: 400px;
|
|
353
|
+
margin: 0 auto;
|
|
354
|
+
}
|
|
355
|
+
</style>
|
|
356
|
+
<div class="wrapper">
|
|
357
|
+
<calcite-combobox placeholder="placeholder" overlay-positioning="fixed" placement="bottom" open>
|
|
358
|
+
<calcite-combobox-item value="Trees" text-label="Trees" aria-hidden="true">
|
|
359
|
+
<calcite-combobox-item value="Pine" text-label="Pine" aria-hidden="true"></calcite-combobox-item>
|
|
360
|
+
<calcite-combobox-item
|
|
361
|
+
value="Sequoia"
|
|
362
|
+
disabled=""
|
|
363
|
+
text-label="Sequoia"
|
|
364
|
+
aria-hidden="true"
|
|
365
|
+
></calcite-combobox-item>
|
|
366
|
+
<calcite-combobox-item value="Douglas Fir" text-label="Douglas Fir" aria-hidden="true"></calcite-combobox-item>
|
|
367
|
+
</calcite-combobox-item>
|
|
368
|
+
<calcite-combobox-item value="Flowers" text-label="Flowers" aria-hidden="true">
|
|
369
|
+
<calcite-combobox-item value="Daffodil" text-label="Daffodil" aria-hidden="true"></calcite-combobox-item>
|
|
370
|
+
<calcite-combobox-item
|
|
371
|
+
value="Black Eyed Susan"
|
|
372
|
+
text-label="Black Eyed Susan"
|
|
373
|
+
aria-hidden="true"
|
|
374
|
+
></calcite-combobox-item>
|
|
375
|
+
<calcite-combobox-item value="Nasturtium" text-label="Nasturtium" aria-hidden="true"></calcite-combobox-item>
|
|
376
|
+
</calcite-combobox-item>
|
|
377
|
+
<calcite-combobox-item value="Animals" text-label="Animals" aria-hidden="true">
|
|
378
|
+
<calcite-combobox-item value="Birds" text-label="Birds" aria-hidden="true"></calcite-combobox-item>
|
|
379
|
+
<calcite-combobox-item value="Reptiles" text-label="Reptiles" aria-hidden="true"></calcite-combobox-item>
|
|
380
|
+
<calcite-combobox-item value="Amphibians" text-label="Amphibians" aria-hidden="true"></calcite-combobox-item>
|
|
381
|
+
</calcite-combobox-item>
|
|
382
|
+
<calcite-combobox-item value="Rocks" text-label="Rocks" aria-hidden="true"></calcite-combobox-item>
|
|
383
|
+
<calcite-combobox-item value="Insects" text-label="Insects" aria-hidden="true"></calcite-combobox-item>
|
|
384
|
+
<calcite-combobox-item value="Rivers" text-label="Rivers" aria-hidden="true"></calcite-combobox-item>
|
|
385
|
+
</calcite-combobox>
|
|
386
|
+
</div>
|
|
387
|
+
`;
|
|
@@ -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
|
export const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
7
7
|
export const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
@@ -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
|
import { nodeListToArray } from "../../utils/dom";
|
|
7
7
|
import { ComboboxChildSelector } from "./resources";
|
|
@@ -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
|
import { Host, h } from "@stencil/core";
|
|
7
7
|
import { getElementProp, getSlotted } from "../../utils/dom";
|
|
@@ -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
|
import { h } from "@stencil/core";
|
|
7
7
|
import { CSS } from "./resources";
|
|
@@ -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
|
import { h, Host, Build } from "@stencil/core";
|
|
7
7
|
import { getLocaleData, getValueAsDateRange } from "./utils";
|
|
@@ -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
|
export const HEADING_LEVEL = 2;
|
|
7
7
|
export const TEXT = {
|
|
@@ -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
|
import { getAssetPath } from "@stencil/core";
|
|
7
7
|
import { getSupportedLocale } from "../../utils/locale";
|
|
@@ -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
|
import { Host, h } from "@stencil/core";
|
|
7
7
|
import { getElementDir } from "../../utils/dom";
|
|
@@ -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
|
import { Host, h } from "@stencil/core";
|
|
7
7
|
import { inRange, sameDate, dateFromRange } from "../../utils/date";
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
|
|
186
186
|
.year {
|
|
187
187
|
position: relative;
|
|
188
|
-
inline-size:
|
|
188
|
+
inline-size: 2.5rem;
|
|
189
189
|
border-style: none;
|
|
190
190
|
background-color: transparent;
|
|
191
191
|
text-align: center;
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.year--suffix {
|
|
208
|
-
inline-size: 4rem;
|
|
209
208
|
text-align: start;
|
|
210
209
|
}
|
|
211
210
|
|
|
@@ -214,14 +213,8 @@
|
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
.suffix {
|
|
217
|
-
position: absolute;
|
|
218
216
|
inset-block-start: 0px;
|
|
219
|
-
inline-size: 4rem;
|
|
220
217
|
white-space: nowrap;
|
|
221
218
|
text-align: start;
|
|
222
219
|
inset-inline-start: 0;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.suffix__invisible {
|
|
226
|
-
visibility: hidden;
|
|
227
220
|
}
|
|
@@ -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
|
import { h, Fragment } from "@stencil/core";
|
|
7
7
|
import { dateFromRange, nextMonth, prevMonth, localizeNumber, parseNumber, getOrder } from "../../utils/date";
|
|
@@ -93,7 +93,7 @@ export class DatePickerMonthHeader {
|
|
|
93
93
|
const activeMonth = this.activeDate.getMonth();
|
|
94
94
|
const { months, unitOrder } = this.localeData;
|
|
95
95
|
const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];
|
|
96
|
-
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear()
|
|
96
|
+
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear());
|
|
97
97
|
const iconScale = this.scale === "l" ? "m" : "s";
|
|
98
98
|
const order = getOrder(unitOrder);
|
|
99
99
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
@@ -101,7 +101,7 @@ export class DatePickerMonthHeader {
|
|
|
101
101
|
return (h(Fragment, null, h("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 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), h("div", { class: { text: true, "text--reverse": reverse } }, h(Heading, { class: "month", level: this.headingLevel }, localizedMonth), h("span", { class: "year-wrap" }, h("input", { "aria-label": this.intlYear, class: {
|
|
102
102
|
year: true,
|
|
103
103
|
"year--suffix": !!suffix
|
|
104
|
-
}, 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 &&
|
|
104
|
+
}, 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 && h("span", { class: "suffix" }, suffix))), h("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 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
|
105
105
|
}
|
|
106
106
|
setNextPrevMonthDates() {
|
|
107
107
|
if (!this.activeDate) {
|
|
@@ -114,7 +114,7 @@ export class DatePickerMonthHeader {
|
|
|
114
114
|
const { localeData } = this;
|
|
115
115
|
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
116
116
|
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
117
|
-
return localizeNumber(
|
|
117
|
+
return localizeNumber(year + yearOffset, localeData);
|
|
118
118
|
}
|
|
119
119
|
parseCalendarYear(year) {
|
|
120
120
|
const { localeData } = this;
|
|
@@ -152,7 +152,7 @@ export class DatePickerMonthHeader {
|
|
|
152
152
|
this.calciteDatePickerSelect.emit(inRangeDate);
|
|
153
153
|
}
|
|
154
154
|
if (commit) {
|
|
155
|
-
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear()
|
|
155
|
+
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear());
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "calcite-date-picker-month-header"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
export const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
|
@@ -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
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { focusElement, toAriaBoolean } from "../../utils/dom";
|