@esri/calcite-components 1.0.0-next.707 → 1.0.0-next.709
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-6d82a672.js → p-09f17290.js} +1 -1
- package/dist/calcite/{p-5b7a5517.entry.js → p-0a41694c.entry.js} +2 -2
- package/dist/calcite/{p-cc7d42bc.entry.js → p-0ae4a886.entry.js} +2 -2
- package/dist/calcite/{p-9eef4898.entry.js → p-0bad4ffb.entry.js} +2 -2
- package/dist/calcite/{p-e8d79a2f.entry.js → p-0dca079b.entry.js} +2 -2
- package/dist/calcite/{p-d2910631.js → p-0e9f154f.js} +1 -1
- package/dist/calcite/{p-c137d405.entry.js → p-0f14f764.entry.js} +2 -2
- package/dist/calcite/{p-dda89bed.js → p-10f677cc.js} +1 -1
- package/dist/calcite/{p-68158c67.entry.js → p-111c92b5.entry.js} +2 -2
- package/dist/calcite/{p-1ef6dc3c.js → p-131b4072.js} +2 -2
- package/dist/calcite/{p-501e899b.js → p-133572e4.js} +1 -1
- package/dist/calcite/{p-42ba6d7c.js → p-13cdf056.js} +2 -2
- package/dist/calcite/{p-9e288275.js → p-1d24b599.js} +2 -2
- package/dist/calcite/{p-8980e570.entry.js → p-24200b10.entry.js} +2 -2
- package/dist/calcite/{p-2dfe6cae.js → p-2c46a7d5.js} +1 -1
- package/dist/calcite/{p-edc6b827.entry.js → p-2e8676af.entry.js} +2 -2
- package/dist/calcite/{p-f4e428e1.entry.js → p-321ab326.entry.js} +2 -2
- package/dist/calcite/{p-3cf5d146.entry.js → p-32945ed7.entry.js} +2 -2
- package/dist/calcite/{p-9b21d596.entry.js → p-351842ee.entry.js} +2 -2
- package/dist/calcite/p-37698355.js +6 -0
- package/dist/calcite/{p-ea5ab068.entry.js → p-3f4157b9.entry.js} +2 -2
- package/dist/calcite/{p-4b2c043f.entry.js → p-3fb06d5b.entry.js} +2 -2
- package/dist/calcite/{p-cc6ddebb.entry.js → p-49c1884f.entry.js} +2 -2
- package/dist/calcite/{p-edf43f90.js → p-4e03461a.js} +2 -2
- package/dist/calcite/{p-65bba2ae.entry.js → p-52702c11.entry.js} +2 -2
- package/dist/calcite/{p-cc0e2f69.entry.js → p-5387b7d1.entry.js} +2 -2
- package/dist/calcite/{p-935e924c.js → p-538b842e.js} +2 -2
- package/dist/calcite/{p-273e28d5.entry.js → p-5a77ae68.entry.js} +2 -2
- package/dist/calcite/{p-f2cd5800.entry.js → p-5c5936c6.entry.js} +2 -2
- package/dist/calcite/{p-44a9aa2e.entry.js → p-60dcc46f.entry.js} +2 -2
- package/dist/calcite/{p-6a68941f.entry.js → p-61064f2c.entry.js} +2 -2
- package/dist/calcite/{p-4a61bba0.js → p-61c2822f.js} +1 -1
- package/dist/calcite/{p-f350538b.entry.js → p-6280b018.entry.js} +2 -2
- package/dist/calcite/{p-281d2636.js → p-6f1e6688.js} +1 -1
- package/dist/calcite/{p-d5aeac53.entry.js → p-72462b76.entry.js} +2 -2
- package/dist/calcite/{p-aae56fcf.entry.js → p-73149d56.entry.js} +2 -2
- package/dist/calcite/{p-e3df92c5.entry.js → p-764f124c.entry.js} +2 -2
- package/dist/calcite/{p-1f5dd11c.entry.js → p-76d4fd06.entry.js} +2 -2
- package/dist/calcite/{p-825e8bf2.entry.js → p-7787bad0.entry.js} +2 -2
- package/dist/calcite/{p-c714460a.js → p-77f42189.js} +1 -1
- package/dist/calcite/{p-ec0f06d0.js → p-7a98ba92.js} +3 -3
- package/dist/calcite/{p-206d07b3.entry.js → p-7b7a9c59.entry.js} +2 -2
- package/dist/calcite/{p-ff0c6529.entry.js → p-7c4a6c12.entry.js} +2 -2
- package/dist/calcite/{p-aa0305c8.js → p-7f20d35f.js} +2 -2
- package/dist/calcite/{p-70e53cb3.entry.js → p-85c35ccf.entry.js} +2 -2
- package/dist/calcite/{p-99debd13.entry.js → p-87acf365.entry.js} +2 -2
- package/dist/calcite/{p-d2696010.js → p-894d19eb.js} +1 -1
- package/dist/calcite/{p-697ff50f.entry.js → p-9143df4b.entry.js} +2 -2
- package/dist/calcite/{p-3230b314.entry.js → p-93d5edf2.entry.js} +2 -2
- package/dist/calcite/{p-9b466074.entry.js → p-9ee0bdde.entry.js} +2 -2
- package/dist/calcite/{p-cc1f8d42.entry.js → p-a3c281d3.entry.js} +2 -2
- package/dist/calcite/{p-25d3977d.entry.js → p-a49c6ef0.entry.js} +2 -2
- package/dist/calcite/{p-612d79e0.js → p-a8077838.js} +1 -1
- package/dist/calcite/{p-323f68e4.entry.js → p-a9a365c2.entry.js} +2 -2
- package/dist/calcite/{p-925cb53e.js → p-acb11f63.js} +1 -1
- package/dist/calcite/{p-4c73b655.entry.js → p-ad4da819.entry.js} +2 -2
- package/dist/calcite/{p-3bb761f4.entry.js → p-ae5ac452.entry.js} +2 -2
- package/dist/calcite/{p-6bae5902.entry.js → p-b2625c56.entry.js} +2 -2
- package/dist/calcite/{p-f121829d.entry.js → p-b3df0deb.entry.js} +2 -2
- package/dist/calcite/{p-35d477dd.entry.js → p-b48be950.entry.js} +2 -2
- package/dist/calcite/{p-eec8c346.entry.js → p-b5ebb6b5.entry.js} +2 -2
- package/dist/calcite/{p-43a73e10.entry.js → p-b6b847c7.entry.js} +2 -2
- package/dist/calcite/{p-14914a07.entry.js → p-b7a1646d.entry.js} +2 -2
- package/dist/calcite/{p-ebe32207.js → p-b9115c4d.js} +2 -2
- package/dist/calcite/{p-1411814d.js → p-ba481a43.js} +1 -1
- package/dist/calcite/{p-b48fb7f7.js → p-bf3f29ee.js} +1 -1
- package/dist/calcite/{p-10f82c39.entry.js → p-c0bedef7.entry.js} +2 -2
- package/dist/calcite/{p-3691ab64.entry.js → p-c0d62ac9.entry.js} +2 -2
- package/dist/calcite/{p-7f615cf6.js → p-c1449102.js} +1 -1
- package/dist/calcite/{p-61eb2c58.entry.js → p-c3e67f92.entry.js} +2 -2
- package/dist/calcite/p-c50da4ed.js +6 -0
- package/dist/calcite/{p-e9979102.entry.js → p-c758804c.entry.js} +2 -2
- package/dist/calcite/{p-bfdb100d.js → p-ce1de894.js} +1 -1
- package/dist/calcite/{p-71593910.entry.js → p-d4257be0.entry.js} +2 -2
- package/dist/calcite/p-d49311bc.entry.js +6 -0
- package/dist/calcite/{p-2fe4811f.js → p-d59f9a71.js} +3 -3
- package/dist/calcite/{p-1f0823cb.entry.js → p-d5ed9296.entry.js} +2 -2
- package/dist/calcite/{p-1fbae1bf.entry.js → p-d7412295.entry.js} +2 -2
- package/dist/calcite/p-dbc3714f.entry.js +6 -0
- package/dist/calcite/{p-1f40e870.entry.js → p-deda9b89.entry.js} +2 -2
- package/dist/calcite/p-e3eb2000.js +6 -0
- package/dist/calcite/{p-82f3eafa.entry.js → p-e588ce42.entry.js} +2 -2
- package/dist/calcite/{p-5aa11ebf.js → p-ea7a8cb3.js} +2 -2
- package/dist/calcite/{p-8db74693.js → p-eccd6058.js} +2 -2
- package/dist/calcite/{p-c634da51.entry.js → p-ee20805c.entry.js} +2 -2
- package/dist/calcite/{p-94fd7317.js → p-f2457be1.js} +1 -1
- package/dist/calcite/{p-e91a2c81.entry.js → p-f28f50ff.entry.js} +2 -2
- package/dist/calcite/{p-b9454465.entry.js → p-f45cc9b3.entry.js} +2 -2
- package/dist/calcite/{p-6c3e9267.entry.js → p-f4f39fe1.entry.js} +2 -2
- package/dist/calcite/{p-6bad7ea8.js → p-f7d4ac46.js} +2 -2
- package/dist/calcite/{p-ce221fbc.js → p-fa47a01b.js} +2 -2
- package/dist/calcite/{p-98b14d64.entry.js → p-ffd3cd3e.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-bd92b972.js → ExpandToggle-557575d4.js} +5 -5
- package/dist/cjs/{Heading-8f748d0c.js → Heading-a5e1d69e.js} +2 -2
- package/dist/cjs/{app-globals-b2e895c7.js → app-globals-eb86c646.js} +2 -2
- package/dist/cjs/{array-882a5570.js → array-e1eb25be.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +23 -18
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +249 -0
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-bf4c130d.js → conditionalSlot-a7fabe90.js} +3 -3
- package/dist/cjs/{debounce-19c24006.js → debounce-cde5ce59.js} +1 -1
- package/dist/cjs/{dom-e921f58f.js → dom-a00dc7f7.js} +3 -3
- package/dist/cjs/{filter-9957d1b0.js → filter-47559f8a.js} +2 -2
- package/dist/cjs/{floating-ui-06cfdafd.js → floating-ui-0d4a7af0.js} +4 -4
- package/dist/cjs/{focusTrapComponent-10d6a107.js → focusTrapComponent-2c8bee1b.js} +2 -2
- package/dist/cjs/{form-34c0f76c.js → form-2d13fb9a.js} +3 -3
- package/dist/cjs/{guid-9abd42c1.js → guid-41e71308.js} +1 -1
- package/dist/cjs/{index-96dafefe.js → index-40520ccf.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-c286fc56.js → interactive-fb903def.js} +1 -1
- package/dist/cjs/{key-0b2b0508.js → key-7ec4755f.js} +1 -1
- package/dist/cjs/{label-c4fc6c6b.js → label-0e8fbc61.js} +2 -2
- package/dist/cjs/{loadable-ed8acf0e.js → loadable-814cbbb7.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-e139e37c.js → locale-27bfa39f.js} +4 -4
- package/dist/cjs/{math-f7f24c9d.js → math-b8682a27.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-1d5fdb03.js → nonChromiumPlatformUtils-4b831cbb.js} +6 -6
- package/dist/cjs/{observers-f285eb90.js → observers-ca16dc71.js} +1 -1
- package/dist/cjs/{openCloseComponent-eac5be44.js → openCloseComponent-80d41ff4.js} +2 -2
- package/dist/cjs/{resources-5dece82f.js → resources-1ed4d4b2.js} +1 -1
- package/dist/cjs/{resources-81507271.js → resources-36c4751d.js} +1 -1
- package/dist/cjs/{resources-de629a07.js → resources-3b5067a6.js} +5 -5
- package/dist/cjs/{resources-5d387142.js → resources-64fab12b.js} +1 -1
- package/dist/cjs/{resources-2631d03c.js → resources-892b0a28.js} +1 -1
- package/dist/cjs/{resources-fd62c85b.js → resources-bcc575fb.js} +1 -1
- package/dist/cjs/{sortable.esm-264a7f0e.js → sortable.esm-77689fb0.js} +1 -1
- package/dist/cjs/{t9n-396fa247.js → t9n-992f3831.js} +3 -3
- package/dist/cjs/{utils-e0ad0007.js → utils-83916e68.js} +3 -3
- package/dist/cjs/{utils-70d991a2.js → utils-fe2e008b.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +12 -7
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- 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/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- 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/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/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.js +1 -1
- 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/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/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/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- 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/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/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/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- 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/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.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.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/{radio-group/radio-group.css → segmented-control/segmented-control.css} +2 -2
- package/dist/collection/components/{radio-group/radio-group.js → segmented-control/segmented-control.js} +10 -10
- package/dist/collection/components/{radio-group-item → segmented-control-item}/resources.js +2 -2
- package/dist/collection/components/{radio-group-item/radio-group-item.css → segmented-control-item/segmented-control-item.css} +8 -8
- package/dist/collection/components/{radio-group-item/radio-group-item.js → segmented-control-item/segmented-control-item.js} +6 -6
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- 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 +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.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/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.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/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- 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 +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +12 -7
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- 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 +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 +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.d.ts +11 -0
- package/dist/components/calcite-segmented-control-item.js +85 -0
- package/dist/components/calcite-segmented-control.d.ts +11 -0
- package/dist/components/{calcite-radio-group.js → calcite-segmented-control.js} +10 -10
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- 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 +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- 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/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-8553d8e2.js → ExpandToggle-e569fba8.js} +5 -5
- package/dist/esm/{Heading-059bbfeb.js → Heading-56380019.js} +2 -2
- package/dist/esm/{app-globals-73a5da0b.js → app-globals-b0a69c0f.js} +2 -2
- package/dist/esm/{array-f0c14e96.js → array-cd94b122.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +23 -18
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +11 -11
- package/dist/esm/calcite-color-picker_3.entry.js +14 -14
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +12 -12
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +16 -16
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +13 -13
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +9 -9
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +15 -15
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +244 -0
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-2fee6412.js → conditionalSlot-fe357346.js} +3 -3
- package/dist/esm/{debounce-57085448.js → debounce-ecad8deb.js} +1 -1
- package/dist/esm/{dom-1a45e61d.js → dom-564c6481.js} +3 -3
- package/dist/esm/{filter-a708b637.js → filter-870b9127.js} +2 -2
- package/dist/esm/{floating-ui-751e21e2.js → floating-ui-0ebd9208.js} +4 -4
- package/dist/esm/{focusTrapComponent-a8b846f6.js → focusTrapComponent-9050d5c0.js} +2 -2
- package/dist/esm/{form-312f1ecf.js → form-b227de71.js} +3 -3
- package/dist/esm/{guid-de7642be.js → guid-a89114ee.js} +1 -1
- package/dist/esm/{index-4986f9b1.js → index-8eddbc96.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-980075b5.js → interactive-f3e0adf6.js} +1 -1
- package/dist/esm/{key-3004d646.js → key-d9a72c6f.js} +1 -1
- package/dist/esm/{label-bd2f5afa.js → label-dedd91c3.js} +2 -2
- package/dist/esm/{loadable-1f576c3b.js → loadable-699a8a37.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-0f4922fa.js → locale-47e09c1f.js} +4 -4
- package/dist/esm/{math-522e25cf.js → math-715cfb68.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-17ab2bd8.js → nonChromiumPlatformUtils-f69b5540.js} +6 -6
- package/dist/esm/{observers-878e5367.js → observers-870bca6c.js} +1 -1
- package/dist/esm/{openCloseComponent-59b3d69b.js → openCloseComponent-80f8724c.js} +2 -2
- package/dist/esm/{resources-f549ed29.js → resources-56032925.js} +1 -1
- package/dist/esm/{resources-65dbd311.js → resources-739d0fe6.js} +1 -1
- package/dist/esm/{resources-09b266ad.js → resources-7ac314be.js} +1 -1
- package/dist/esm/{resources-66a27250.js → resources-ad8ef2aa.js} +1 -1
- package/dist/esm/{resources-1f31b69a.js → resources-b01be6d9.js} +1 -1
- package/dist/esm/{resources-2e85082a.js → resources-ddd4d2ea.js} +5 -5
- package/dist/esm/{sortable.esm-4726f22a.js → sortable.esm-b2fb1d7f.js} +1 -1
- package/dist/esm/{t9n-8916d125.js → t9n-f0fe37aa.js} +3 -3
- package/dist/esm/{utils-27220e23.js → utils-2f64b0d0.js} +1 -1
- package/dist/esm/{utils-4546487c.js → utils-c146d858.js} +3 -3
- package/dist/extras/docs-json.json +315 -315
- package/dist/extras/vscode-data.json +67 -67
- 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/alert/alert.d.ts +4 -2
- package/dist/types/components/{radio-group/radio-group.d.ts → segmented-control/segmented-control.d.ts} +4 -4
- package/dist/types/components/{radio-group-item → segmented-control-item}/resources.d.ts +1 -1
- package/dist/types/components/{radio-group-item/radio-group-item.d.ts → segmented-control-item/segmented-control-item.d.ts} +1 -1
- package/dist/types/components.d.ts +137 -137
- package/dist/types/preact.d.ts +8 -8
- package/hydrate/index.js +24 -19
- package/package.json +1 -1
- package/dist/calcite/p-11bdff04.entry.js +0 -6
- package/dist/calcite/p-3fbb77b6.js +0 -6
- package/dist/calcite/p-41977fd5.entry.js +0 -6
- package/dist/calcite/p-a3d2fcc2.js +0 -6
- package/dist/calcite/p-bc4f253a.js +0 -6
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +0 -249
- package/dist/components/calcite-radio-group-item.d.ts +0 -11
- package/dist/components/calcite-radio-group-item.js +0 -85
- package/dist/components/calcite-radio-group.d.ts +0 -11
- package/dist/esm/calcite-radio-group_2.entry.js +0 -244
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.707
|
|
5
|
-
*/
|
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
|
|
7
|
-
import { g as getElementProp, t as toAriaBoolean } from './dom.js';
|
|
8
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
|
9
|
-
|
|
10
|
-
const SLOTS = {
|
|
11
|
-
input: "input"
|
|
12
|
-
};
|
|
13
|
-
const CSS = {
|
|
14
|
-
radioGroupItemIcon: "radio-group-item-icon"
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const radioGroupItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([checked]) .label--outline{background-color:transparent}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{margin-inline-start:1rem}";
|
|
18
|
-
|
|
19
|
-
const RadioGroupItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
this.__registerHost();
|
|
23
|
-
this.__attachShadow();
|
|
24
|
-
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 6);
|
|
25
|
-
this.checked = false;
|
|
26
|
-
this.iconFlipRtl = false;
|
|
27
|
-
this.iconStart = undefined;
|
|
28
|
-
this.iconEnd = undefined;
|
|
29
|
-
this.value = undefined;
|
|
30
|
-
}
|
|
31
|
-
handleCheckedChange() {
|
|
32
|
-
this.calciteInternalRadioGroupItemChange.emit();
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
const { checked, value } = this;
|
|
36
|
-
const scale = getElementProp(this.el, "scale", "m");
|
|
37
|
-
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
38
|
-
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
39
|
-
const iconStartEl = this.iconStart ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
40
|
-
const iconEndEl = this.iconEnd ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
41
|
-
return (h(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, h("label", { class: {
|
|
42
|
-
"label--scale-s": scale === "s",
|
|
43
|
-
"label--scale-m": scale === "m",
|
|
44
|
-
"label--scale-l": scale === "l",
|
|
45
|
-
"label--horizontal": layout === "horizontal",
|
|
46
|
-
"label--outline": appearance === "outline",
|
|
47
|
-
"label--outline-fill": appearance === "outline-fill"
|
|
48
|
-
} }, this.iconStart ? iconStartEl : null, h("slot", null, value), h("slot", { name: SLOTS.input }), this.iconEnd ? iconEndEl : null)));
|
|
49
|
-
}
|
|
50
|
-
get el() { return this; }
|
|
51
|
-
static get watchers() { return {
|
|
52
|
-
"checked": ["handleCheckedChange"]
|
|
53
|
-
}; }
|
|
54
|
-
static get style() { return radioGroupItemCss; }
|
|
55
|
-
}, [1, "calcite-radio-group-item", {
|
|
56
|
-
"checked": [1540],
|
|
57
|
-
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
58
|
-
"iconStart": [513, "icon-start"],
|
|
59
|
-
"iconEnd": [513, "icon-end"],
|
|
60
|
-
"value": [1032]
|
|
61
|
-
}]);
|
|
62
|
-
function defineCustomElement$1() {
|
|
63
|
-
if (typeof customElements === "undefined") {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const components = ["calcite-radio-group-item", "calcite-icon"];
|
|
67
|
-
components.forEach(tagName => { switch (tagName) {
|
|
68
|
-
case "calcite-radio-group-item":
|
|
69
|
-
if (!customElements.get(tagName)) {
|
|
70
|
-
customElements.define(tagName, RadioGroupItem);
|
|
71
|
-
}
|
|
72
|
-
break;
|
|
73
|
-
case "calcite-icon":
|
|
74
|
-
if (!customElements.get(tagName)) {
|
|
75
|
-
defineCustomElement$2();
|
|
76
|
-
}
|
|
77
|
-
break;
|
|
78
|
-
} });
|
|
79
|
-
}
|
|
80
|
-
defineCustomElement$1();
|
|
81
|
-
|
|
82
|
-
const CalciteRadioGroupItem = RadioGroupItem;
|
|
83
|
-
const defineCustomElement = defineCustomElement$1;
|
|
84
|
-
|
|
85
|
-
export { CalciteRadioGroupItem, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CalciteRadioGroup extends Components.CalciteRadioGroup, HTMLElement {}
|
|
4
|
-
export const CalciteRadioGroup: {
|
|
5
|
-
prototype: CalciteRadioGroup;
|
|
6
|
-
new (): CalciteRadioGroup;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.707
|
|
5
|
-
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4986f9b1.js';
|
|
7
|
-
import { b as getElementDir, h as getElementProp, t as toAriaBoolean } from './dom-1a45e61d.js';
|
|
8
|
-
import { c as connectLabel, d as disconnectLabel } from './label-bd2f5afa.js';
|
|
9
|
-
import { a as afterConnectDefaultValueSet, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-312f1ecf.js';
|
|
10
|
-
import { u as updateHostInteraction } from './interactive-980075b5.js';
|
|
11
|
-
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentLoaded } from './loadable-1f576c3b.js';
|
|
12
|
-
import './resources-65dbd311.js';
|
|
13
|
-
import './guid-de7642be.js';
|
|
14
|
-
|
|
15
|
-
const radioGroupCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([appearance=outline]){background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16
|
-
|
|
17
|
-
const RadioGroup = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
registerInstance(this, hostRef);
|
|
20
|
-
this.calciteRadioGroupChange = createEvent(this, "calciteRadioGroupChange", 6);
|
|
21
|
-
//--------------------------------------------------------------------------
|
|
22
|
-
//
|
|
23
|
-
// Event Listeners
|
|
24
|
-
//
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
this.handleClick = (event) => {
|
|
27
|
-
if (event.target.localName === "calcite-radio-group-item") {
|
|
28
|
-
this.selectItem(event.target, true);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
this.appearance = "solid";
|
|
32
|
-
this.disabled = false;
|
|
33
|
-
this.required = false;
|
|
34
|
-
this.layout = "horizontal";
|
|
35
|
-
this.name = undefined;
|
|
36
|
-
this.scale = "m";
|
|
37
|
-
this.value = null;
|
|
38
|
-
this.selectedItem = undefined;
|
|
39
|
-
this.width = "auto";
|
|
40
|
-
}
|
|
41
|
-
valueHandler(value) {
|
|
42
|
-
const items = this.getItems();
|
|
43
|
-
items.forEach((item) => (item.checked = item.value === value));
|
|
44
|
-
}
|
|
45
|
-
handleSelectedItemChange(newItem, oldItem) {
|
|
46
|
-
this.value = newItem?.value;
|
|
47
|
-
if (newItem === oldItem) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
const items = this.getItems();
|
|
51
|
-
const match = Array.from(items)
|
|
52
|
-
.filter((item) => item === newItem)
|
|
53
|
-
.pop();
|
|
54
|
-
if (match) {
|
|
55
|
-
this.selectItem(match);
|
|
56
|
-
}
|
|
57
|
-
else if (items[0]) {
|
|
58
|
-
items[0].tabIndex = 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//--------------------------------------------------------------------------
|
|
62
|
-
//
|
|
63
|
-
// Lifecycle
|
|
64
|
-
//
|
|
65
|
-
//--------------------------------------------------------------------------
|
|
66
|
-
componentWillLoad() {
|
|
67
|
-
setUpLoadableComponent(this);
|
|
68
|
-
const items = this.getItems();
|
|
69
|
-
const lastChecked = Array.from(items)
|
|
70
|
-
.filter((item) => item.checked)
|
|
71
|
-
.pop();
|
|
72
|
-
if (lastChecked) {
|
|
73
|
-
this.selectItem(lastChecked);
|
|
74
|
-
}
|
|
75
|
-
else if (items[0]) {
|
|
76
|
-
items[0].tabIndex = 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
componentDidLoad() {
|
|
80
|
-
afterConnectDefaultValueSet(this, this.value);
|
|
81
|
-
setComponentLoaded(this);
|
|
82
|
-
}
|
|
83
|
-
connectedCallback() {
|
|
84
|
-
connectLabel(this);
|
|
85
|
-
connectForm(this);
|
|
86
|
-
}
|
|
87
|
-
disconnectedCallback() {
|
|
88
|
-
disconnectLabel(this);
|
|
89
|
-
disconnectForm(this);
|
|
90
|
-
}
|
|
91
|
-
componentDidRender() {
|
|
92
|
-
updateHostInteraction(this);
|
|
93
|
-
}
|
|
94
|
-
render() {
|
|
95
|
-
return (h(Host, { onClick: this.handleClick, role: "radiogroup" }, h("slot", null), h(HiddenFormInputSlot, { component: this })));
|
|
96
|
-
}
|
|
97
|
-
handleSelected(event) {
|
|
98
|
-
event.preventDefault();
|
|
99
|
-
this.selectItem(event.target);
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
}
|
|
102
|
-
handleKeyDown(event) {
|
|
103
|
-
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
104
|
-
const { key } = event;
|
|
105
|
-
const { el, selectedItem } = this;
|
|
106
|
-
if (keys.indexOf(key) === -1) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
let adjustedKey = key;
|
|
110
|
-
if (getElementDir(el) === "rtl") {
|
|
111
|
-
if (key === "ArrowRight") {
|
|
112
|
-
adjustedKey = "ArrowLeft";
|
|
113
|
-
}
|
|
114
|
-
if (key === "ArrowLeft") {
|
|
115
|
-
adjustedKey = "ArrowRight";
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const items = this.getItems();
|
|
119
|
-
let selectedIndex = -1;
|
|
120
|
-
items.forEach((item, index) => {
|
|
121
|
-
if (item === selectedItem) {
|
|
122
|
-
selectedIndex = index;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
switch (adjustedKey) {
|
|
126
|
-
case "ArrowLeft":
|
|
127
|
-
case "ArrowUp":
|
|
128
|
-
event.preventDefault();
|
|
129
|
-
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
130
|
-
this.selectItem(previous, true);
|
|
131
|
-
return;
|
|
132
|
-
case "ArrowRight":
|
|
133
|
-
case "ArrowDown":
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
136
|
-
this.selectItem(next, true);
|
|
137
|
-
return;
|
|
138
|
-
case " ":
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
this.selectItem(event.target, true);
|
|
141
|
-
return;
|
|
142
|
-
default:
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
// --------------------------------------------------------------------------
|
|
147
|
-
//
|
|
148
|
-
// Methods
|
|
149
|
-
//
|
|
150
|
-
// --------------------------------------------------------------------------
|
|
151
|
-
/** Sets focus on the component. */
|
|
152
|
-
async setFocus() {
|
|
153
|
-
await componentLoaded(this);
|
|
154
|
-
(this.selectedItem || this.getItems()[0])?.focus();
|
|
155
|
-
}
|
|
156
|
-
//--------------------------------------------------------------------------
|
|
157
|
-
//
|
|
158
|
-
// Private Methods
|
|
159
|
-
//
|
|
160
|
-
//--------------------------------------------------------------------------
|
|
161
|
-
onLabelClick() {
|
|
162
|
-
this.setFocus();
|
|
163
|
-
}
|
|
164
|
-
getItems() {
|
|
165
|
-
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
166
|
-
}
|
|
167
|
-
selectItem(selected, emit = false) {
|
|
168
|
-
if (selected === this.selectedItem) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
const items = this.getItems();
|
|
172
|
-
let match = null;
|
|
173
|
-
items.forEach((item) => {
|
|
174
|
-
const matches = item.value === selected.value;
|
|
175
|
-
if ((matches && !item.checked) || (!matches && item.checked)) {
|
|
176
|
-
item.checked = matches;
|
|
177
|
-
}
|
|
178
|
-
item.tabIndex = matches ? 0 : -1;
|
|
179
|
-
if (matches) {
|
|
180
|
-
match = item;
|
|
181
|
-
if (emit) {
|
|
182
|
-
this.calciteRadioGroupChange.emit();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
this.selectedItem = match;
|
|
187
|
-
if (match) {
|
|
188
|
-
match.focus();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
get el() { return getElement(this); }
|
|
192
|
-
static get watchers() { return {
|
|
193
|
-
"value": ["valueHandler"],
|
|
194
|
-
"selectedItem": ["handleSelectedItemChange"]
|
|
195
|
-
}; }
|
|
196
|
-
};
|
|
197
|
-
RadioGroup.style = radioGroupCss;
|
|
198
|
-
|
|
199
|
-
const SLOTS = {
|
|
200
|
-
input: "input"
|
|
201
|
-
};
|
|
202
|
-
const CSS = {
|
|
203
|
-
radioGroupItemIcon: "radio-group-item-icon"
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
const radioGroupItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([checked]) .label--outline{background-color:transparent}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{margin-inline-start:1rem}";
|
|
207
|
-
|
|
208
|
-
const RadioGroupItem = class {
|
|
209
|
-
constructor(hostRef) {
|
|
210
|
-
registerInstance(this, hostRef);
|
|
211
|
-
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 6);
|
|
212
|
-
this.checked = false;
|
|
213
|
-
this.iconFlipRtl = false;
|
|
214
|
-
this.iconStart = undefined;
|
|
215
|
-
this.iconEnd = undefined;
|
|
216
|
-
this.value = undefined;
|
|
217
|
-
}
|
|
218
|
-
handleCheckedChange() {
|
|
219
|
-
this.calciteInternalRadioGroupItemChange.emit();
|
|
220
|
-
}
|
|
221
|
-
render() {
|
|
222
|
-
const { checked, value } = this;
|
|
223
|
-
const scale = getElementProp(this.el, "scale", "m");
|
|
224
|
-
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
225
|
-
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
226
|
-
const iconStartEl = this.iconStart ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
227
|
-
const iconEndEl = this.iconEnd ? (h("calcite-icon", { class: CSS.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
228
|
-
return (h(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, h("label", { class: {
|
|
229
|
-
"label--scale-s": scale === "s",
|
|
230
|
-
"label--scale-m": scale === "m",
|
|
231
|
-
"label--scale-l": scale === "l",
|
|
232
|
-
"label--horizontal": layout === "horizontal",
|
|
233
|
-
"label--outline": appearance === "outline",
|
|
234
|
-
"label--outline-fill": appearance === "outline-fill"
|
|
235
|
-
} }, this.iconStart ? iconStartEl : null, h("slot", null, value), h("slot", { name: SLOTS.input }), this.iconEnd ? iconEndEl : null)));
|
|
236
|
-
}
|
|
237
|
-
get el() { return getElement(this); }
|
|
238
|
-
static get watchers() { return {
|
|
239
|
-
"checked": ["handleCheckedChange"]
|
|
240
|
-
}; }
|
|
241
|
-
};
|
|
242
|
-
RadioGroupItem.style = radioGroupItemCss;
|
|
243
|
-
|
|
244
|
-
export { RadioGroup as calcite_radio_group, RadioGroupItem as calcite_radio_group_item };
|