@esri/calcite-components 1.5.0-next.2 → 1.5.0-next.4
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 +2 -2
- package/dist/calcite/{p-9593e1f9.entry.js → p-0210e840.entry.js} +2 -2
- package/dist/calcite/{p-7304b129.js → p-06b82d00.js} +2 -2
- package/dist/calcite/{p-7ccb3067.js → p-07689794.js} +2 -2
- package/dist/calcite/{p-22e69f05.js → p-08cf9014.js} +2 -2
- package/dist/calcite/{p-7389b779.js → p-0c62c93a.js} +2 -2
- package/dist/calcite/{p-6bc0ee2a.entry.js → p-100d6abb.entry.js} +2 -2
- package/dist/calcite/{p-2e7c1e63.js → p-10fea07e.js} +2 -2
- package/dist/calcite/{p-90d0a4d6.entry.js → p-128c964b.entry.js} +2 -2
- package/dist/calcite/{p-752bdaea.entry.js → p-13f08df5.entry.js} +2 -2
- package/dist/calcite/{p-f2d8d3e2.js → p-145ee561.js} +2 -2
- package/dist/calcite/{p-5d509f73.js → p-1550d063.js} +1 -1
- package/dist/calcite/{p-8abceca2.js → p-171f9573.js} +2 -2
- package/dist/calcite/{p-637f18b3.js → p-175f6531.js} +2 -2
- package/dist/calcite/{p-3666329d.js → p-17f9b672.js} +2 -2
- package/dist/calcite/{p-cfd10f3e.js → p-19719f09.js} +2 -2
- package/dist/calcite/p-1b22626a.entry.js +6 -0
- package/dist/calcite/{p-7a6ff0f1.js → p-1c6cf7e8.js} +2 -2
- package/dist/calcite/{p-b534273f.entry.js → p-1ceee705.entry.js} +2 -2
- package/dist/calcite/{p-f0b9a991.entry.js → p-1de055d9.entry.js} +2 -2
- package/dist/calcite/{p-5b1df99c.entry.js → p-1eb33dae.entry.js} +2 -2
- package/dist/calcite/{p-643760cd.js → p-20cbe085.js} +1 -1
- package/dist/calcite/{p-89b3591a.entry.js → p-244d1f29.entry.js} +2 -2
- package/dist/calcite/{p-8b59f122.entry.js → p-24f0918b.entry.js} +2 -2
- package/dist/calcite/{p-2c6222ab.js → p-26c6bcf1.js} +2 -2
- package/dist/calcite/{p-a7515261.js → p-29b2baef.js} +1 -1
- package/dist/calcite/{p-248b09f3.js → p-2e1778f8.js} +1 -1
- package/dist/calcite/{p-b80948fe.entry.js → p-2f6f0f62.entry.js} +2 -2
- package/dist/calcite/{p-0b6648e5.entry.js → p-313f245b.entry.js} +2 -2
- package/dist/calcite/{p-d05e5931.js → p-3333277a.js} +1 -1
- package/dist/calcite/p-3369ede1.entry.js +6 -0
- package/dist/calcite/{p-713aa40a.js → p-34ed2168.js} +2 -2
- package/dist/calcite/p-386f62e0.js +6 -0
- package/dist/calcite/{p-56ae9ae2.entry.js → p-392e9db8.entry.js} +2 -2
- package/dist/calcite/{p-4111269d.entry.js → p-396b97c0.entry.js} +2 -2
- package/dist/calcite/{p-e84f5ea7.js → p-3a4b94d4.js} +2 -2
- package/dist/calcite/{p-b448269e.entry.js → p-3b175dde.entry.js} +2 -2
- package/dist/calcite/{p-ceb4c931.js → p-3e74b762.js} +2 -2
- package/dist/calcite/{p-710d652b.entry.js → p-41712dc0.entry.js} +2 -2
- package/dist/calcite/{p-226c147b.js → p-4230e6c9.js} +2 -2
- package/dist/calcite/p-428b49a8.js +6 -0
- package/dist/calcite/{p-04c1d8e4.entry.js → p-454b3a3a.entry.js} +2 -2
- package/dist/calcite/{p-79cf9a50.entry.js → p-48f9da5a.entry.js} +2 -2
- package/dist/calcite/{p-e8f98cad.js → p-4b72d1ed.js} +2 -2
- package/dist/calcite/{p-009b2815.js → p-4ce28e86.js} +2 -2
- package/dist/calcite/{p-2c637090.js → p-50624216.js} +3 -3
- package/dist/calcite/{p-ff1f4f2d.entry.js → p-5240eb84.entry.js} +2 -2
- package/dist/calcite/{p-1a48fe90.entry.js → p-52f813ec.entry.js} +2 -2
- package/dist/calcite/p-536af17f.entry.js +6 -0
- package/dist/calcite/{p-a7f0a1ad.entry.js → p-54973b7f.entry.js} +2 -2
- package/dist/calcite/{p-e8880b82.js → p-5515a69c.js} +2 -2
- package/dist/calcite/{p-daef4807.js → p-565e2516.js} +2 -2
- package/dist/calcite/{p-3ccb9094.js → p-5671ae2e.js} +2 -2
- package/dist/calcite/p-5671cec2.entry.js +6 -0
- package/dist/calcite/{p-4a80e813.js → p-5b4ab7c1.js} +2 -2
- package/dist/calcite/{p-85fbc80a.entry.js → p-5bb5d019.entry.js} +2 -2
- package/dist/calcite/{p-48f345ad.entry.js → p-5c6cb671.entry.js} +2 -2
- package/dist/calcite/p-6208d429.entry.js +6 -0
- package/dist/calcite/{p-e81318c0.js → p-63242d07.js} +2 -2
- package/dist/calcite/{p-2e4ccee6.entry.js → p-6397975b.entry.js} +2 -2
- package/dist/calcite/{p-1f1633a4.js → p-64176d3c.js} +2 -2
- package/dist/calcite/{p-39c78d61.entry.js → p-6511330e.entry.js} +2 -2
- package/dist/calcite/{p-f2a314c8.entry.js → p-658b35b3.entry.js} +2 -2
- package/dist/calcite/{p-9621dc3d.entry.js → p-6628066e.entry.js} +2 -2
- package/dist/calcite/p-66e56e9b.entry.js +6 -0
- package/dist/calcite/{p-c31f46f9.js → p-67356414.js} +2 -2
- package/dist/calcite/{p-8c072fe6.js → p-6a81490e.js} +2 -2
- package/dist/calcite/{p-02f2afb5.entry.js → p-6ae8ae83.entry.js} +2 -2
- package/dist/calcite/{p-1da65bff.js → p-6cc841ca.js} +1 -1
- package/dist/calcite/p-6e162845.js +6 -0
- package/dist/calcite/{p-9bb0d6a1.js → p-6eba965d.js} +2 -2
- package/dist/calcite/{p-a12e8e1b.entry.js → p-71dd3346.entry.js} +2 -2
- package/dist/calcite/{p-71a80d9c.js → p-7549eee8.js} +2 -2
- package/dist/calcite/{p-90bfb41d.entry.js → p-77298851.entry.js} +2 -2
- package/dist/calcite/{p-69c0dff0.entry.js → p-77f63499.entry.js} +2 -2
- package/dist/calcite/{p-cbf13653.entry.js → p-7824761f.entry.js} +2 -2
- package/dist/calcite/{p-806601c7.entry.js → p-785387e6.entry.js} +2 -2
- package/dist/calcite/{p-acd53a3d.entry.js → p-792eb55b.entry.js} +2 -2
- package/dist/calcite/{p-9203113d.entry.js → p-7b372a44.entry.js} +2 -2
- package/dist/calcite/{p-fc1c96b9.entry.js → p-80086780.entry.js} +2 -2
- package/dist/calcite/{p-10c1ee32.entry.js → p-815882f3.entry.js} +2 -2
- package/dist/calcite/{p-f1836535.entry.js → p-817e9691.entry.js} +2 -2
- package/dist/calcite/{p-378effaa.js → p-819d8358.js} +2 -2
- package/dist/calcite/{p-185367ec.entry.js → p-83eecff7.entry.js} +2 -2
- package/dist/calcite/{p-a486b294.js → p-8c5ad359.js} +2 -2
- package/dist/calcite/{p-4239ff60.js → p-8f0f60d4.js} +2 -2
- package/dist/calcite/{p-77dcb1b3.js → p-902b4f6e.js} +1 -1
- package/dist/calcite/{p-b0194f1c.js → p-927e46b7.js} +2 -2
- package/dist/calcite/{p-36b02daf.js → p-9759fc98.js} +1 -1
- package/dist/calcite/{p-86c4288b.js → p-97d31eac.js} +2 -2
- package/dist/calcite/{p-8365c4f2.js → p-984a8919.js} +2 -2
- package/dist/calcite/{p-ca8cc20e.entry.js → p-9a4fdac7.entry.js} +2 -2
- package/dist/calcite/{p-13464270.js → p-9bac2804.js} +2 -2
- package/dist/calcite/{p-b1d6ccfc.entry.js → p-9dbbe0f6.entry.js} +2 -2
- package/dist/calcite/{p-1b3d3a98.js → p-a53663bc.js} +1 -1
- package/dist/calcite/{p-fe334709.js → p-a56fe1f7.js} +1 -1
- package/dist/calcite/{p-fca49af0.entry.js → p-a787d09e.entry.js} +2 -2
- package/dist/calcite/{p-0a2f0d5c.entry.js → p-a7de4540.entry.js} +2 -2
- package/dist/calcite/p-a8d4c15a.js +6 -0
- package/dist/calcite/{p-f77e9d63.js → p-a9ac5c35.js} +2 -2
- package/dist/calcite/{p-ecf15ba7.js → p-aad7ec0d.js} +2 -2
- package/dist/calcite/{p-f2c059e9.entry.js → p-add2d209.entry.js} +2 -2
- package/dist/calcite/p-ae02d755.js +6 -0
- package/dist/calcite/{p-952bf2cd.js → p-b4e69c2f.js} +2 -2
- package/dist/calcite/{p-98e377a7.js → p-b696940c.js} +2 -2
- package/dist/calcite/{p-622f1ba7.js → p-b8bed9ad.js} +2 -2
- package/dist/calcite/{p-6000474d.js → p-b9d8e974.js} +2 -2
- package/dist/calcite/{p-c31511a4.js → p-bb203532.js} +2 -2
- package/dist/calcite/{p-0a4b4b69.js → p-bbb74ace.js} +2 -2
- package/dist/calcite/{p-bf1ec764.js → p-bc15a8c6.js} +2 -2
- package/dist/calcite/{p-deaa5c6e.js → p-bc26f966.js} +2 -2
- package/dist/calcite/{p-497e9490.js → p-bc98ae13.js} +1 -1
- package/dist/calcite/{p-27863f70.js → p-c121d63d.js} +2 -2
- package/dist/calcite/{p-53047265.js → p-c1848732.js} +1 -1
- package/dist/calcite/{p-b765b963.entry.js → p-c6eadbf0.entry.js} +2 -2
- package/dist/calcite/p-c8628cde.js +6 -0
- package/dist/calcite/{p-250f5f1d.js → p-c98932ac.js} +2 -2
- package/dist/calcite/{p-25939b44.entry.js → p-ca97c1d9.entry.js} +2 -2
- package/dist/calcite/{p-447792c0.js → p-ce4a5db5.js} +2 -2
- package/dist/calcite/{p-08adc2c8.entry.js → p-d4919db4.entry.js} +2 -2
- package/dist/calcite/{p-9e801922.entry.js → p-d61ff31d.entry.js} +2 -2
- package/dist/calcite/{p-0593eb33.js → p-d6775b93.js} +1 -1
- package/dist/calcite/{p-9bb8d973.js → p-d73fde02.js} +2 -2
- package/dist/calcite/{p-f0a4fb1c.entry.js → p-d93d1322.entry.js} +2 -2
- package/dist/calcite/{p-c0ecdc77.js → p-d94ce01e.js} +2 -2
- package/dist/calcite/{p-0e9eb706.entry.js → p-da0621da.entry.js} +2 -2
- package/dist/calcite/{p-ed41d7be.entry.js → p-db46880b.entry.js} +2 -2
- package/dist/calcite/p-dc56d76a.entry.js +6 -0
- package/dist/calcite/{p-d8839a42.js → p-dcdaa909.js} +2 -2
- package/dist/calcite/{p-7d88bc53.entry.js → p-df61af68.entry.js} +2 -2
- package/dist/calcite/{p-62ef726d.entry.js → p-e1dc1d19.entry.js} +2 -2
- package/dist/calcite/{p-f8da7c37.js → p-e3479c79.js} +1 -1
- package/dist/calcite/{p-60e0df72.js → p-e3aeb727.js} +2 -2
- package/dist/calcite/{p-dc9f0e2f.js → p-e51aceb3.js} +2 -2
- package/dist/calcite/p-e5f3c511.js +6 -0
- package/dist/calcite/{p-a3219c80.entry.js → p-e7606d01.entry.js} +2 -2
- package/dist/calcite/{p-72cfb910.js → p-ed298fd1.js} +2 -2
- package/dist/calcite/{p-95af4ca6.js → p-eed23d62.js} +2 -2
- package/dist/calcite/{p-c960bc96.js → p-ef244b9a.js} +2 -2
- package/dist/calcite/{p-ff5aa8ee.entry.js → p-f158e12d.entry.js} +2 -2
- package/dist/calcite/{p-87cb6caa.js → p-f175de16.js} +1 -1
- package/dist/calcite/{p-c5a09832.js → p-f28e2ecc.js} +2 -2
- package/dist/calcite/{p-9d20754b.js → p-f35fd371.js} +2 -2
- package/dist/calcite/{p-21d34f78.entry.js → p-f57f4b49.entry.js} +2 -2
- package/dist/calcite/{p-cd1ee477.js → p-f6ccfae9.js} +2 -2
- package/dist/calcite/{p-07974044.js → p-f8bfdbe4.js} +1 -1
- package/dist/calcite/{p-a18f72d9.entry.js → p-fae15c43.entry.js} +2 -2
- package/dist/calcite/p-fbba3d00.entry.js +6 -0
- package/dist/calcite/{p-ae17f167.entry.js → p-fbdb06e0.entry.js} +2 -2
- package/dist/calcite/{p-601e6686.js → p-fc6d4563.js} +2 -2
- package/dist/calcite/{p-439a5758.js → p-fda70763.js} +2 -2
- package/dist/cjs/{ExpandToggle-84b7195c.js → ExpandToggle-a02d545e.js} +5 -5
- package/dist/cjs/{FloatingArrow-92682b60.js → FloatingArrow-d01f82a5.js} +2 -2
- package/dist/cjs/{Heading-c9622c73.js → Heading-17e5f9e8.js} +2 -2
- package/dist/cjs/{app-globals-0197152b.js → app-globals-de7b2ef4.js} +2 -2
- package/dist/cjs/{ar-057d0135.js → ar-759e9322.js} +16 -16
- package/dist/cjs/{array-ac309ecc.js → array-ab3fe676.js} +1 -1
- package/dist/cjs/{bg-12b0ac46.js → bg-889c3a5b.js} +16 -16
- package/dist/cjs/{browser-13db55af.js → browser-e19cdff7.js} +1 -1
- package/dist/cjs/{bs-19741f8c.js → bs-42adb170.js} +16 -16
- package/dist/cjs/{ca-906127c4.js → ca-69438428.js} +16 -16
- 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 +13 -13
- 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 +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +23 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -19
- 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 +14 -14
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-f15b8a68.js → calcite-input-time-picker.calcite-time-picker-10b10082.js} +60 -60
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +16 -16
- 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 +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +18 -22
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +33 -14
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{composed-offset-position.esm-869d8a76.js → composed-offset-position.esm-9d74c110.js} +1 -1
- package/dist/cjs/{conditionalSlot-63b19e25.js → conditionalSlot-46364346.js} +3 -3
- package/dist/cjs/{cs-1017e11b.js → cs-913f1e61.js} +16 -16
- package/dist/cjs/{da-6f605ddd.js → da-eed634ae.js} +16 -16
- package/dist/cjs/{de-8b83b2aa.js → de-0b8518cc.js} +16 -16
- package/dist/cjs/{de-at-9b6befda.js → de-at-1b8ed8e8.js} +16 -16
- package/dist/cjs/{de-ch-89b68831.js → de-ch-13b4bab2.js} +16 -16
- package/dist/cjs/{debounce-1eb5fae2.js → debounce-4ea8fc9f.js} +1 -1
- package/dist/cjs/{dom-42dabaf2.js → dom-172e7e6c.js} +3 -3
- package/dist/cjs/{el-15bb7d34.js → el-0f583dec.js} +16 -16
- package/dist/cjs/{en-au-239a6657.js → en-au-6b0a5437.js} +16 -16
- package/dist/cjs/{en-ca-b7b30541.js → en-ca-c50f0386.js} +16 -16
- package/dist/cjs/{en-gb-a3628c92.js → en-gb-7334a92b.js} +16 -16
- package/dist/cjs/{es-c7fa206a.js → es-989c9378.js} +16 -16
- package/dist/cjs/{es-mx-84a64b47.js → es-mx-81bdfda2.js} +16 -16
- package/dist/cjs/{et-70c57f77.js → et-613a8fe6.js} +16 -16
- package/dist/cjs/{fi-b9a105df.js → fi-377558f0.js} +16 -16
- package/dist/cjs/{filter-e702266b.js → filter-daf274df.js} +2 -2
- package/dist/cjs/{floating-ui-6d60268d.js → floating-ui-166e982a.js} +111 -65
- package/dist/cjs/{focusTrapComponent-69c80ef0.js → focusTrapComponent-fc83be77.js} +2 -2
- package/dist/cjs/{form-bc18d8c5.js → form-d71f5659.js} +3 -3
- package/dist/cjs/{fr-0efb8d91.js → fr-2bebf67b.js} +16 -16
- package/dist/cjs/{fr-ch-b34ca4e1.js → fr-ch-0361effd.js} +16 -16
- package/dist/cjs/{guid-13035076.js → guid-e3b0f9c0.js} +1 -1
- package/dist/cjs/{he-5706bff2.js → he-2e3024b5.js} +16 -16
- package/dist/cjs/{hi-b1548147.js → hi-93e7a909.js} +16 -16
- package/dist/cjs/{hr-83898a11.js → hr-ce281283.js} +16 -16
- package/dist/cjs/{hu-514951a0.js → hu-c4cb11eb.js} +16 -16
- package/dist/cjs/{id-acd8a39d.js → id-0f33ccc1.js} +16 -16
- package/dist/cjs/{index-b91c10b3.js → index-76fa2411.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-7ff38ff7.js → interactive-861e900a.js} +2 -2
- package/dist/cjs/{it-cca7c760.js → it-34aeb52b.js} +16 -16
- package/dist/cjs/{it-ch-c42d7e19.js → it-ch-1323bd29.js} +16 -16
- package/dist/cjs/{ja-fe87ff1c.js → ja-353f2f63.js} +16 -16
- package/dist/cjs/{key-3fc8a11f.js → key-d666db2b.js} +1 -1
- package/dist/cjs/{ko-8f4dadd2.js → ko-4fdbc0b2.js} +16 -16
- package/dist/cjs/{label-678a4785.js → label-0199f47e.js} +2 -2
- package/dist/cjs/{loadable-99302fa8.js → loadable-f2c974fb.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-094508f4.js → locale-33de0a01.js} +4 -4
- package/dist/cjs/{lt-b0acac32.js → lt-6d530c2b.js} +16 -16
- package/dist/cjs/{lv-afa48cad.js → lv-134c2e1d.js} +16 -16
- package/dist/cjs/{math-59198773.js → math-fe0a1def.js} +1 -1
- package/dist/cjs/{mk-7a53edfe.js → mk-96865a6b.js} +16 -16
- package/dist/cjs/{nb-ffe8cba6.js → nb-9ad166a2.js} +16 -16
- package/dist/cjs/{nl-faa5db30.js → nl-1e2ad0e8.js} +16 -16
- package/dist/cjs/{observers-481d4a66.js → observers-9daeae07.js} +1 -1
- package/dist/cjs/{openCloseComponent-0bde404e.js → openCloseComponent-069372e0.js} +2 -2
- package/dist/cjs/{pl-5c002238.js → pl-08b16c3c.js} +16 -16
- package/dist/cjs/{pt-1f5e54e5.js → pt-a255d0ef.js} +16 -16
- package/dist/cjs/{pt-br-da69c115.js → pt-br-f64f01cd.js} +16 -16
- package/dist/cjs/{resources-46ce085b.js → resources-085f6812.js} +5 -5
- package/dist/cjs/{resources-588d425d.js → resources-6439c31b.js} +1 -1
- package/dist/cjs/{resources-30cab3c7.js → resources-b16e80ae.js} +1 -1
- package/dist/cjs/{resources-90dd6ceb.js → resources-bd52c31c.js} +1 -1
- package/dist/cjs/{resources-1c27e741.js → resources-ca186efb.js} +1 -1
- package/dist/cjs/{resources-1d7aaca8.js → resources-e725d8d7.js} +1 -1
- package/dist/cjs/{ro-e04fb1e6.js → ro-edf05b0f.js} +16 -16
- package/dist/cjs/{ru-e7b0e1de.js → ru-a2693a5f.js} +16 -16
- package/dist/cjs/{sk-10c4a9b8.js → sk-06b58193.js} +16 -16
- package/dist/cjs/{sl-d2b5a3d7.js → sl-9213cb1b.js} +16 -16
- package/dist/cjs/{sortableComponent-71a4da4a.js → sortableComponent-cdb2eaca.js} +2 -2
- package/dist/cjs/{sr-b98773f1.js → sr-88f291fb.js} +16 -16
- package/dist/cjs/{sv-b4369047.js → sv-7647128b.js} +16 -16
- package/dist/cjs/{t9n-ac1691f4.js → t9n-bdd24266.js} +3 -3
- package/dist/cjs/{th-6a24b050.js → th-9f7e053c.js} +16 -16
- package/dist/cjs/{throttle-7e348ba1.js → throttle-5e8e1bc3.js} +2 -2
- package/dist/cjs/{tr-178c510c.js → tr-12055864.js} +16 -16
- package/dist/cjs/{uk-7841700c.js → uk-b63f5eed.js} +16 -16
- package/dist/cjs/{utils-29a19aab.js → utils-6983361f.js} +3 -3
- package/dist/cjs/{utils-b179d25d.js → utils-698b2a78.js} +1 -1
- package/dist/cjs/{vi-db7b8657.js → vi-5ee47715.js} +16 -16
- package/dist/cjs/{zh-cn-9354886c.js → zh-cn-2bb0b7ba.js} +16 -16
- package/dist/cjs/{zh-hk-0cb1f9f8.js → zh-hk-74e7b7a8.js} +16 -16
- package/dist/cjs/{zh-tw-1128405e.js → zh-tw-54d44dd1.js} +16 -16
- 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 +18 -1
- 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/chip-group/chip-group.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/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.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/input-time-picker/resources.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 +4 -6
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +3 -5
- 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/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.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/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/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 +28 -5
- 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/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- 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/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.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/resources.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/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.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/tooltip/utils.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/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.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.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/mode.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/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.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/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.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 +13 -2
- 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-group.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 +3 -5
- package/dist/components/calcite-list.js +4 -6
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.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 +24 -5
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- 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-stack.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-text-area.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/composed-offset-position.esm.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.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/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.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/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +107 -61
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.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/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.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/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.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/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.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/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/sv.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/th.js +1 -1
- package/dist/components/throttle.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/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-eea2109c.js → ExpandToggle-b5db4e73.js} +5 -5
- package/dist/esm/{FloatingArrow-5f2a46fa.js → FloatingArrow-a2a03b2b.js} +2 -2
- package/dist/esm/{Heading-c11cdc37.js → Heading-308ae5e8.js} +2 -2
- package/dist/esm/{app-globals-e0a623b7.js → app-globals-b4e40fb5.js} +2 -2
- package/dist/esm/{ar-cef1dde5.js → ar-f1df113c.js} +16 -16
- package/dist/esm/{array-acbeed62.js → array-868bcad6.js} +1 -1
- package/dist/esm/{bg-9b44401c.js → bg-24c97057.js} +16 -16
- package/dist/esm/{browser-5b51d471.js → browser-fabb40ea.js} +1 -1
- package/dist/esm/{bs-a27c8bf0.js → bs-d5152514.js} +16 -16
- package/dist/esm/{ca-65fb7537.js → ca-85ca5d97.js} +16 -16
- 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 +13 -13
- 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 +12 -12
- package/dist/esm/calcite-alert.entry.js +23 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +13 -13
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +13 -13
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +19 -19
- package/dist/esm/calcite-date-picker_4.entry.js +14 -14
- package/dist/esm/calcite-dropdown_3.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +13 -13
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +19 -19
- 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 +14 -14
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-ad0bcf24.js → calcite-input-time-picker.calcite-time-picker-16ad32d5.js} +60 -60
- package/dist/esm/calcite-input-time-picker_2.entry.js +16 -16
- 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 +8 -8
- package/dist/esm/calcite-list_3.entry.js +18 -22
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +15 -15
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +17 -17
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +33 -14
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +10 -10
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +5 -5
- package/dist/esm/calcite-stepper_2.entry.js +11 -11
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +10 -10
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{composed-offset-position.esm-a93f1605.js → composed-offset-position.esm-e1d1c8cb.js} +1 -1
- package/dist/esm/{conditionalSlot-ecfe1ebc.js → conditionalSlot-70f9c6b9.js} +3 -3
- package/dist/esm/{cs-fceef9a7.js → cs-8464e57b.js} +16 -16
- package/dist/esm/{da-ce6e44a1.js → da-d909749b.js} +16 -16
- package/dist/esm/{de-at-8f8448b6.js → de-at-b9e1b519.js} +16 -16
- package/dist/esm/{de-ch-e612ac0d.js → de-ch-eedcdb7c.js} +16 -16
- package/dist/esm/{de-3dbd4c82.js → de-e44ba6fa.js} +16 -16
- package/dist/esm/{debounce-9571c7e8.js → debounce-2c05db70.js} +1 -1
- package/dist/esm/{dom-80fa9ebb.js → dom-46ce50e3.js} +3 -3
- package/dist/esm/{el-75cf46b3.js → el-5c207807.js} +16 -16
- package/dist/esm/{en-au-4bb2b262.js → en-au-4bc52435.js} +16 -16
- package/dist/esm/{en-ca-a1a11e06.js → en-ca-a3115fef.js} +16 -16
- package/dist/esm/{en-gb-4d8d02c8.js → en-gb-8cdd5770.js} +16 -16
- package/dist/esm/{es-fe478c8e.js → es-d69c4843.js} +16 -16
- package/dist/esm/{es-mx-d68cea08.js → es-mx-351c2321.js} +16 -16
- package/dist/esm/{et-57544106.js → et-e0ec4a8f.js} +16 -16
- package/dist/esm/{fi-3c6f37fa.js → fi-d1c0c39c.js} +16 -16
- package/dist/esm/{filter-025296b0.js → filter-d6dfba45.js} +2 -2
- package/dist/esm/{floating-ui-d44c6b7a.js → floating-ui-c6caafab.js} +111 -65
- package/dist/esm/{focusTrapComponent-a1345901.js → focusTrapComponent-9fdb270f.js} +2 -2
- package/dist/esm/{form-9c275054.js → form-455904de.js} +3 -3
- package/dist/esm/{fr-0c7ebe58.js → fr-4922faa0.js} +16 -16
- package/dist/esm/{fr-ch-235dc628.js → fr-ch-ffbacbb2.js} +16 -16
- package/dist/esm/{guid-daec2c55.js → guid-5ee19f82.js} +1 -1
- package/dist/esm/{he-61422d53.js → he-5d31ffcc.js} +16 -16
- package/dist/esm/{hi-31d7e854.js → hi-c4da825c.js} +16 -16
- package/dist/esm/{hr-bb8d02da.js → hr-ba73a61a.js} +16 -16
- package/dist/esm/{hu-40c67d8a.js → hu-9fefeda2.js} +16 -16
- package/dist/esm/{id-242878a3.js → id-fd3d895d.js} +16 -16
- package/dist/esm/{index-6e7d6f56.js → index-12e4b2be.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-8d2ae5e3.js → interactive-bfeaf984.js} +2 -2
- package/dist/esm/{it-8427791f.js → it-5f64b833.js} +16 -16
- package/dist/esm/{it-ch-05662049.js → it-ch-053a58f7.js} +16 -16
- package/dist/esm/{ja-0bd1e93f.js → ja-5f048c53.js} +16 -16
- package/dist/esm/{key-d72fcd57.js → key-7d1cd3bd.js} +1 -1
- package/dist/esm/{ko-d8f1952a.js → ko-45f6610f.js} +16 -16
- package/dist/esm/{label-be1153d7.js → label-e9150360.js} +2 -2
- package/dist/esm/{loadable-3dad5c05.js → loadable-4c99c073.js} +1 -1
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-81eea538.js → locale-5245ba39.js} +4 -4
- package/dist/esm/{lt-f843cd42.js → lt-1a912a37.js} +16 -16
- package/dist/esm/{lv-57a0c207.js → lv-931af546.js} +16 -16
- package/dist/esm/{math-7f973104.js → math-114e4229.js} +1 -1
- package/dist/esm/{mk-e25f7921.js → mk-a5ee1808.js} +16 -16
- package/dist/esm/{nb-54cfbed9.js → nb-086209bf.js} +16 -16
- package/dist/esm/{nl-0e7abdff.js → nl-ccdeee01.js} +16 -16
- package/dist/esm/{observers-eb4861d8.js → observers-291157a3.js} +1 -1
- package/dist/esm/{openCloseComponent-e378352f.js → openCloseComponent-8158490f.js} +2 -2
- package/dist/esm/{pl-a2f03b53.js → pl-7f98799f.js} +16 -16
- package/dist/esm/{pt-ed3a6ada.js → pt-8179bcd1.js} +16 -16
- package/dist/esm/{pt-br-3a63cbea.js → pt-br-2427ac92.js} +16 -16
- package/dist/esm/{resources-1dc11a69.js → resources-05cee1a1.js} +1 -1
- package/dist/esm/{resources-e0eb52e1.js → resources-4248ce57.js} +1 -1
- package/dist/esm/{resources-1447ec86.js → resources-62418c43.js} +1 -1
- package/dist/esm/{resources-555d2604.js → resources-b1020247.js} +5 -5
- package/dist/esm/{resources-2886fb44.js → resources-c8b43840.js} +1 -1
- package/dist/esm/{resources-6810cd3b.js → resources-dcff07fa.js} +1 -1
- package/dist/esm/{ro-aa2665e8.js → ro-2129b78e.js} +16 -16
- package/dist/esm/{ru-1c8d4af1.js → ru-54c8154a.js} +16 -16
- package/dist/esm/{sk-e9a35722.js → sk-678a3b80.js} +16 -16
- package/dist/esm/{sl-dcab6585.js → sl-586eff47.js} +16 -16
- package/dist/esm/{sortableComponent-affbaac7.js → sortableComponent-f2f72558.js} +2 -2
- package/dist/esm/{sr-588d2355.js → sr-536dd9f0.js} +16 -16
- package/dist/esm/{sv-28a4771c.js → sv-84df6ac5.js} +16 -16
- package/dist/esm/{t9n-e3d3c650.js → t9n-9f99cef7.js} +3 -3
- package/dist/esm/{th-951c30f1.js → th-d45eca68.js} +16 -16
- package/dist/esm/{throttle-9cb9c964.js → throttle-38e2717c.js} +2 -2
- package/dist/esm/{tr-a2e039d6.js → tr-0ca52564.js} +16 -16
- package/dist/esm/{uk-06878908.js → uk-3470243e.js} +16 -16
- package/dist/esm/{utils-732e76b1.js → utils-83780950.js} +3 -3
- package/dist/esm/{utils-4de9cdc5.js → utils-90291fdc.js} +1 -1
- package/dist/esm/{vi-06d82b31.js → vi-971040f2.js} +16 -16
- package/dist/esm/{zh-cn-45dcda14.js → zh-cn-7b676a1a.js} +16 -16
- package/dist/esm/{zh-hk-8466bd3d.js → zh-hk-2cf7e141.js} +16 -16
- package/dist/esm/{zh-tw-c0dcdc36.js → zh-tw-119b9d0f.js} +16 -16
- 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 +2 -1
- package/dist/types/components/alert/interfaces.d.ts +3 -0
- package/dist/types/components/list-item/list-item.d.ts +1 -1
- package/dist/types/components/radio-button/radio-button.d.ts +4 -1
- package/hydrate/index.js +69 -55
- package/package.json +3 -3
- package/dist/calcite/p-2356c226.entry.js +0 -6
- package/dist/calcite/p-26ff8257.js +0 -6
- package/dist/calcite/p-30c929e3.entry.js +0 -6
- package/dist/calcite/p-338db205.js +0 -6
- package/dist/calcite/p-47ebedce.entry.js +0 -6
- package/dist/calcite/p-7eef9fb3.entry.js +0 -6
- package/dist/calcite/p-b0d08631.js +0 -6
- package/dist/calcite/p-b7ab94f7.js +0 -6
- package/dist/calcite/p-b811cbfe.js +0 -6
- package/dist/calcite/p-b9438138.js +0 -6
- package/dist/calcite/p-bca7786e.entry.js +0 -6
- package/dist/calcite/p-db5d3568.entry.js +0 -6
- package/dist/calcite/p-e54830c9.entry.js +0 -6
- package/dist/calcite/p-e68678be.entry.js +0 -6
- package/dist/calcite/p-eb6ce775.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.5.0-next.
|
|
4
|
+
* v1.5.0-next.3
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -10448,6 +10448,9 @@ class Alert {
|
|
|
10448
10448
|
setComponentLoaded(this);
|
|
10449
10449
|
}
|
|
10450
10450
|
disconnectedCallback() {
|
|
10451
|
+
window.dispatchEvent(new CustomEvent("calciteInternalAlertUnregister", {
|
|
10452
|
+
detail: { alert: this.el }
|
|
10453
|
+
}));
|
|
10451
10454
|
window.clearTimeout(this.autoCloseTimeoutId);
|
|
10452
10455
|
window.clearTimeout(this.queueTimeout);
|
|
10453
10456
|
disconnectOpenCloseComponent(this);
|
|
@@ -10499,6 +10502,14 @@ class Alert {
|
|
|
10499
10502
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
10500
10503
|
this.determineActiveAlert();
|
|
10501
10504
|
}
|
|
10505
|
+
// Event is dispatched on the window because the element is not in the DOM so bubbling won't occur.
|
|
10506
|
+
alertUnregister(event) {
|
|
10507
|
+
const queue = this.queue.filter((el) => el !== event.detail.alert);
|
|
10508
|
+
this.queue = queue;
|
|
10509
|
+
window.dispatchEvent(new CustomEvent("calciteInternalAlertSync", {
|
|
10510
|
+
detail: { queue }
|
|
10511
|
+
}));
|
|
10512
|
+
}
|
|
10502
10513
|
//--------------------------------------------------------------------------
|
|
10503
10514
|
//
|
|
10504
10515
|
// Public Methods
|
|
@@ -10588,7 +10599,7 @@ class Alert {
|
|
|
10588
10599
|
"requestedIcon": [32],
|
|
10589
10600
|
"setFocus": [64]
|
|
10590
10601
|
},
|
|
10591
|
-
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"]],
|
|
10602
|
+
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"], [8, "calciteInternalAlertUnregister", "alertUnregister"]],
|
|
10592
10603
|
"$lazyBundleId$": "-",
|
|
10593
10604
|
"$attrsToReflect$": [["open", "open"], ["autoClose", "auto-close"], ["autoCloseDuration", "auto-close-duration"], ["kind", "kind"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["numberingSystem", "numbering-system"], ["placement", "placement"], ["scale", "scale"]]
|
|
10594
10605
|
}; }
|
|
@@ -17238,7 +17249,7 @@ const arrow = options => ({
|
|
|
17238
17249
|
[axis]: coords[axis] - alignmentOffset,
|
|
17239
17250
|
data: {
|
|
17240
17251
|
[axis]: offset,
|
|
17241
|
-
centerOffset: center - offset
|
|
17252
|
+
centerOffset: center - offset + alignmentOffset
|
|
17242
17253
|
}
|
|
17243
17254
|
};
|
|
17244
17255
|
}
|
|
@@ -17762,7 +17773,13 @@ function isNode(value) {
|
|
|
17762
17773
|
return value instanceof getWindow(value).Node;
|
|
17763
17774
|
}
|
|
17764
17775
|
function getNodeName(node) {
|
|
17765
|
-
|
|
17776
|
+
if (isNode(node)) {
|
|
17777
|
+
return (node.nodeName || '').toLowerCase();
|
|
17778
|
+
}
|
|
17779
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
17780
|
+
// returning `#document` an infinite loop won't occur.
|
|
17781
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
17782
|
+
return '#document';
|
|
17766
17783
|
}
|
|
17767
17784
|
|
|
17768
17785
|
function isHTMLElement(value) {
|
|
@@ -17776,8 +17793,7 @@ function isShadowRoot(node) {
|
|
|
17776
17793
|
if (typeof ShadowRoot === 'undefined') {
|
|
17777
17794
|
return false;
|
|
17778
17795
|
}
|
|
17779
|
-
|
|
17780
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
17796
|
+
return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot;
|
|
17781
17797
|
}
|
|
17782
17798
|
function isOverflowElement(element) {
|
|
17783
17799
|
const {
|
|
@@ -17809,6 +17825,10 @@ function isLastTraversableNode(node) {
|
|
|
17809
17825
|
const min = Math.min;
|
|
17810
17826
|
const max = Math.max;
|
|
17811
17827
|
const round = Math.round;
|
|
17828
|
+
const createEmptyCoords = v => ({
|
|
17829
|
+
x: v,
|
|
17830
|
+
y: v
|
|
17831
|
+
});
|
|
17812
17832
|
|
|
17813
17833
|
function getCssDimensions(element) {
|
|
17814
17834
|
const css = getComputedStyle$1(element);
|
|
@@ -17827,7 +17847,7 @@ function getCssDimensions(element) {
|
|
|
17827
17847
|
return {
|
|
17828
17848
|
width,
|
|
17829
17849
|
height,
|
|
17830
|
-
|
|
17850
|
+
$: shouldFallback
|
|
17831
17851
|
};
|
|
17832
17852
|
}
|
|
17833
17853
|
|
|
@@ -17835,23 +17855,19 @@ function unwrapElement(element) {
|
|
|
17835
17855
|
return !isElement(element) ? element.contextElement : element;
|
|
17836
17856
|
}
|
|
17837
17857
|
|
|
17838
|
-
const FALLBACK_SCALE = {
|
|
17839
|
-
x: 1,
|
|
17840
|
-
y: 1
|
|
17841
|
-
};
|
|
17842
17858
|
function getScale(element) {
|
|
17843
17859
|
const domElement = unwrapElement(element);
|
|
17844
17860
|
if (!isHTMLElement(domElement)) {
|
|
17845
|
-
return
|
|
17861
|
+
return createEmptyCoords(1);
|
|
17846
17862
|
}
|
|
17847
17863
|
const rect = domElement.getBoundingClientRect();
|
|
17848
17864
|
const {
|
|
17849
17865
|
width,
|
|
17850
17866
|
height,
|
|
17851
|
-
|
|
17867
|
+
$
|
|
17852
17868
|
} = getCssDimensions(domElement);
|
|
17853
|
-
let x = (
|
|
17854
|
-
let y = (
|
|
17869
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
17870
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
17855
17871
|
|
|
17856
17872
|
// 0, NaN, or Infinity should always fallback to 1.
|
|
17857
17873
|
|
|
@@ -17867,10 +17883,7 @@ function getScale(element) {
|
|
|
17867
17883
|
};
|
|
17868
17884
|
}
|
|
17869
17885
|
|
|
17870
|
-
const noOffsets =
|
|
17871
|
-
x: 0,
|
|
17872
|
-
y: 0
|
|
17873
|
-
};
|
|
17886
|
+
const noOffsets = /*#__PURE__*/createEmptyCoords(0);
|
|
17874
17887
|
function getVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
17875
17888
|
var _win$visualViewport, _win$visualViewport2;
|
|
17876
17889
|
if (isFixed === void 0) {
|
|
@@ -17898,7 +17911,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
17898
17911
|
}
|
|
17899
17912
|
const clientRect = element.getBoundingClientRect();
|
|
17900
17913
|
const domElement = unwrapElement(element);
|
|
17901
|
-
let scale =
|
|
17914
|
+
let scale = createEmptyCoords(1);
|
|
17902
17915
|
if (includeScale) {
|
|
17903
17916
|
if (offsetParent) {
|
|
17904
17917
|
if (isElement(offsetParent)) {
|
|
@@ -17921,14 +17934,14 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
17921
17934
|
const iframeScale = getScale(currentIFrame);
|
|
17922
17935
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
17923
17936
|
const css = getComputedStyle(currentIFrame);
|
|
17924
|
-
iframeRect.
|
|
17925
|
-
iframeRect.
|
|
17937
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
17938
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
17926
17939
|
x *= iframeScale.x;
|
|
17927
17940
|
y *= iframeScale.y;
|
|
17928
17941
|
width *= iframeScale.x;
|
|
17929
17942
|
height *= iframeScale.y;
|
|
17930
|
-
x +=
|
|
17931
|
-
y +=
|
|
17943
|
+
x += left;
|
|
17944
|
+
y += top;
|
|
17932
17945
|
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
17933
17946
|
}
|
|
17934
17947
|
}
|
|
@@ -17972,14 +17985,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
17972
17985
|
scrollLeft: 0,
|
|
17973
17986
|
scrollTop: 0
|
|
17974
17987
|
};
|
|
17975
|
-
let scale =
|
|
17976
|
-
|
|
17977
|
-
y: 1
|
|
17978
|
-
};
|
|
17979
|
-
const offsets = {
|
|
17980
|
-
x: 0,
|
|
17981
|
-
y: 0
|
|
17982
|
-
};
|
|
17988
|
+
let scale = createEmptyCoords(1);
|
|
17989
|
+
const offsets = createEmptyCoords(0);
|
|
17983
17990
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
17984
17991
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
17985
17992
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -18045,9 +18052,7 @@ function getParentNode(node) {
|
|
|
18045
18052
|
function getNearestOverflowAncestor(node) {
|
|
18046
18053
|
const parentNode = getParentNode(node);
|
|
18047
18054
|
if (isLastTraversableNode(parentNode)) {
|
|
18048
|
-
|
|
18049
|
-
// check, so it's either the <html> or <body> element.
|
|
18050
|
-
return parentNode.ownerDocument.body;
|
|
18055
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
18051
18056
|
}
|
|
18052
18057
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
18053
18058
|
return parentNode;
|
|
@@ -18099,10 +18104,7 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
18099
18104
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
18100
18105
|
const top = clientRect.top + element.clientTop;
|
|
18101
18106
|
const left = clientRect.left + element.clientLeft;
|
|
18102
|
-
const scale = isHTMLElement(element) ? getScale(element) :
|
|
18103
|
-
x: 1,
|
|
18104
|
-
y: 1
|
|
18105
|
-
};
|
|
18107
|
+
const scale = isHTMLElement(element) ? getScale(element) : createEmptyCoords(1);
|
|
18106
18108
|
const width = element.clientWidth * scale.x;
|
|
18107
18109
|
const height = element.clientHeight * scale.y;
|
|
18108
18110
|
const x = left * scale.x;
|
|
@@ -18253,10 +18255,7 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
18253
18255
|
scrollLeft: 0,
|
|
18254
18256
|
scrollTop: 0
|
|
18255
18257
|
};
|
|
18256
|
-
const offsets =
|
|
18257
|
-
x: 0,
|
|
18258
|
-
y: 0
|
|
18259
|
-
};
|
|
18258
|
+
const offsets = createEmptyCoords(0);
|
|
18260
18259
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
18261
18260
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
18262
18261
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -28496,11 +28495,9 @@ class List$1 {
|
|
|
28496
28495
|
handleCalciteInternalListItemSelect(event) {
|
|
28497
28496
|
const target = event.target;
|
|
28498
28497
|
const { listItems, selectionMode } = this;
|
|
28499
|
-
|
|
28500
|
-
|
|
28501
|
-
|
|
28502
|
-
}
|
|
28503
|
-
});
|
|
28498
|
+
if (target.selected && (selectionMode === "single" || selectionMode === "single-persist")) {
|
|
28499
|
+
listItems.forEach((listItem) => (listItem.selected = listItem === target));
|
|
28500
|
+
}
|
|
28504
28501
|
this.updateSelectedItems();
|
|
28505
28502
|
}
|
|
28506
28503
|
handleCalciteListItemClose() {
|
|
@@ -28787,10 +28784,8 @@ class ListItem {
|
|
|
28787
28784
|
this.focusCell(null, false);
|
|
28788
28785
|
}
|
|
28789
28786
|
}
|
|
28790
|
-
handleSelectedChange(
|
|
28791
|
-
|
|
28792
|
-
this.calciteInternalListItemSelect.emit();
|
|
28793
|
-
}
|
|
28787
|
+
handleSelectedChange() {
|
|
28788
|
+
this.calciteInternalListItemSelect.emit();
|
|
28794
28789
|
}
|
|
28795
28790
|
onMessagesChange() {
|
|
28796
28791
|
/* wired up by t9n util */
|
|
@@ -31587,9 +31582,11 @@ class RadioButton {
|
|
|
31587
31582
|
this.queryButtons = () => {
|
|
31588
31583
|
return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((radioButton) => radioButton.name === this.name);
|
|
31589
31584
|
};
|
|
31590
|
-
this.
|
|
31585
|
+
this.isFocusable = () => {
|
|
31591
31586
|
const radioButtons = this.queryButtons();
|
|
31592
|
-
|
|
31587
|
+
const firstFocusable = radioButtons.find((radioButton) => !radioButton.disabled);
|
|
31588
|
+
const checked = radioButtons.find((radioButton) => radioButton.checked);
|
|
31589
|
+
return firstFocusable === this.el && !checked;
|
|
31593
31590
|
};
|
|
31594
31591
|
this.check = () => {
|
|
31595
31592
|
if (this.disabled) {
|
|
@@ -31687,6 +31684,12 @@ class RadioButton {
|
|
|
31687
31684
|
}
|
|
31688
31685
|
this.calciteInternalRadioButtonCheckedChange.emit();
|
|
31689
31686
|
}
|
|
31687
|
+
disabledChanged() {
|
|
31688
|
+
this.updateTabIndexOfOtherRadioButtonsInGroup();
|
|
31689
|
+
}
|
|
31690
|
+
hiddenChanged() {
|
|
31691
|
+
this.updateTabIndexOfOtherRadioButtonsInGroup();
|
|
31692
|
+
}
|
|
31690
31693
|
nameChanged() {
|
|
31691
31694
|
this.checkLastRadioButton();
|
|
31692
31695
|
}
|
|
@@ -31766,11 +31769,18 @@ class RadioButton {
|
|
|
31766
31769
|
}
|
|
31767
31770
|
});
|
|
31768
31771
|
}
|
|
31772
|
+
updateTabIndexOfOtherRadioButtonsInGroup() {
|
|
31773
|
+
const radioButtons = this.queryButtons();
|
|
31774
|
+
const otherFocusableRadioButtons = radioButtons.filter((radioButton) => radioButton.guid !== this.guid && !radioButton.disabled);
|
|
31775
|
+
otherFocusableRadioButtons.forEach((radioButton) => {
|
|
31776
|
+
forceUpdate$1(radioButton);
|
|
31777
|
+
});
|
|
31778
|
+
}
|
|
31769
31779
|
getTabIndex() {
|
|
31770
31780
|
if (this.disabled) {
|
|
31771
31781
|
return undefined;
|
|
31772
31782
|
}
|
|
31773
|
-
return this.checked || this.
|
|
31783
|
+
return this.checked || this.isFocusable() ? 0 : -1;
|
|
31774
31784
|
}
|
|
31775
31785
|
//--------------------------------------------------------------------------
|
|
31776
31786
|
//
|
|
@@ -31803,6 +31813,7 @@ class RadioButton {
|
|
|
31803
31813
|
connectInteractive(this);
|
|
31804
31814
|
connectLabel(this);
|
|
31805
31815
|
connectForm(this);
|
|
31816
|
+
this.updateTabIndexOfOtherRadioButtonsInGroup();
|
|
31806
31817
|
}
|
|
31807
31818
|
componentWillLoad() {
|
|
31808
31819
|
setUpLoadableComponent(this);
|
|
@@ -31817,6 +31828,7 @@ class RadioButton {
|
|
|
31817
31828
|
disconnectInteractive(this);
|
|
31818
31829
|
disconnectLabel(this);
|
|
31819
31830
|
disconnectForm(this);
|
|
31831
|
+
this.updateTabIndexOfOtherRadioButtonsInGroup();
|
|
31820
31832
|
}
|
|
31821
31833
|
componentDidRender() {
|
|
31822
31834
|
updateHostInteraction(this);
|
|
@@ -31835,6 +31847,8 @@ class RadioButton {
|
|
|
31835
31847
|
get el() { return getElement(this); }
|
|
31836
31848
|
static get watchers() { return {
|
|
31837
31849
|
"checked": ["checkedChanged"],
|
|
31850
|
+
"disabled": ["disabledChanged"],
|
|
31851
|
+
"hidden": ["hiddenChanged"],
|
|
31838
31852
|
"name": ["nameChanged"]
|
|
31839
31853
|
}; }
|
|
31840
31854
|
static get style() { return radioButtonCss; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "1.5.0-next.
|
|
3
|
+
"version": "1.5.0-next.4",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"url": "git+https://github.com/Esri/calcite-components.git"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@floating-ui/dom": "1.
|
|
62
|
+
"@floating-ui/dom": "1.4.1",
|
|
63
63
|
"@stencil/core": "2.22.3",
|
|
64
64
|
"@types/color": "3.0.3",
|
|
65
65
|
"color": "4.2.3",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"volta": {
|
|
84
84
|
"extends": "../../package.json"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "2c662dc40731cf0e0c3f253e716fdb915ab7c67e"
|
|
87
87
|
}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{r as i,h as a,H as t,a as n}from"./p-77dcb1b3.js";import{e}from"./p-2c637090.js";import"./p-a7515261.js";import"./p-53047265.js";var c;!function(i){i.valid="check-circle",i.invalid="exclamation-mark-triangle",i.idle="information"}(c||(c={}));const s=class{constructor(a){i(this,a),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=e(c,this.icon,this.status)}connectedCallback(){this.requestedIcon=e(c,this.icon,this.status)}render(){return a(t,{"calcite-hydrated-hidden":this.el.hidden},this.renderIcon(this.requestedIcon),a("slot",null))}renderIcon(i){if(i)return a("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:i,scale:"s"})}get el(){return n(this)}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}};s.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([scale=m]),:host([scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);visibility:visible;block-size:auto;opacity:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([scale=m]),:host([scale=l]){margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-ui-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-ui-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-ui-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-ui-brand)}:host([status]){color:var(--calcite-ui-text-1)}:host([status][scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([status][scale=m]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([status][scale=l]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}";export{s as calcite_input_message}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{g as n}from"./p-f8da7c37.js";const t=/firefox/i.test(n()),i=t?new WeakMap:null;function o(){const{disabled:n}=this;n||HTMLElement.prototype.click.call(this)}function e(n){const o=n.target;if(t&&!i.get(o))return;const{disabled:e}=o;e&&n.preventDefault()}const c=["mousedown","mouseup","click"];function a(n){if(t&&!i.get(n.target))return;const{disabled:o}=n.target;o&&(n.stopImmediatePropagation(),n.preventDefault())}const d={capture:!0};function u(n,t=!1){if(n.disabled)return n.el.setAttribute("tabindex","-1"),n.el.setAttribute("aria-disabled","true"),n.el.contains(document.activeElement)&&document.activeElement.blur(),void s(n);f(n),"function"==typeof t?n.el.setAttribute("tabindex",t.call(n)?"0":"-1"):!0===t?n.el.setAttribute("tabindex","0"):!1===t&&n.el.removeAttribute("tabindex"),n.el.removeAttribute("aria-disabled")}function s(n){var i;n.el.click=o,(i=t?r(n):n.el)&&(i.addEventListener("pointerdown",e,d),c.forEach((n=>i.addEventListener(n,a,d))))}function r(n){return i.get(n.el)}function f(n){var i;delete n.el.click,(i=t?r(n):n.el)&&(i.removeEventListener("pointerdown",e,d),c.forEach((n=>i.removeEventListener(n,a,d))))}function l(n){n.disabled&&t&&(i.set(n.el,n.el.parentElement||n.el),s(n))}function b(n){t&&(i.delete(n.el),f(n))}export{l as c,b as d,u}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
export{I as calcite_input_time_picker,T as calcite_time_picker}from"./p-c31511a4.js";import"./p-77dcb1b3.js";import"./p-cd1ee477.js";import"./p-2c637090.js";import"./p-a7515261.js";import"./p-53047265.js";import"./p-26ff8257.js";import"./p-f8da7c37.js";import"./p-d05e5931.js";import"./p-c31f46f9.js";import"./p-fe334709.js";import"./p-a486b294.js";import"./p-07974044.js";import"./p-27863f70.js";import"./p-b9438138.js";
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{b as t}from"./p-2c637090.js";import{g as n,a as e}from"./p-f8da7c37.js";import{d as o}from"./p-5d509f73.js";function r(t){return t.split("-")[1]}function i(t){return"y"===t?"height":"width"}function a(t){return t.split("-")[0]}function l(t){return["top","bottom"].includes(a(t))?"x":"y"}function s(t,n,e){let{reference:o,floating:s}=t;const c=o.x+o.width/2-s.width/2,f=o.y+o.height/2-s.height/2,u=l(n),d=i(u),m=o[d]/2-s[d]/2,p="x"===u;let y;switch(a(n)){case"top":y={x:c,y:o.y-s.height};break;case"bottom":y={x:c,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:f};break;case"left":y={x:o.x-s.width,y:f};break;default:y={x:o.x,y:o.y}}switch(r(n)){case"start":y[u]-=m*(e&&p?-1:1);break;case"end":y[u]+=m*(e&&p?-1:1)}return y}function c(t,n){return"function"==typeof t?t(n):t}function f(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function u(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function d(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:g=0}=c(n,t),h=f(g),x=l[y?"floating"===p?"reference":"floating":p],b=u(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:m,strategy:s})),w="floating"===p?{...a.floating,x:o,y:r}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),A=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},k=u(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:v,strategy:s}):w);return{top:(b.top-k.top+h.top)/A.y,bottom:(k.bottom-b.bottom+h.bottom)/A.y,left:(b.left-k.left+h.left)/A.x,right:(k.right-b.right+h.right)/A.x}}const m=Math.min,p=Math.max;function y(t,n,e){return p(t,m(n,e))}const g=["top","right","bottom","left"],h=g.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),x={left:"right",right:"left",bottom:"top",top:"bottom"};function b(t){return t.replace(/left|right|bottom|top/g,(t=>x[t]))}function w(t,n,e){void 0===e&&(e=!1);const o=r(t),a=l(t),s=i(a);let c="x"===a?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=b(c)),{main:c,cross:b(c)}}const v={start:"end",end:"start"};function A(t){return t.replace(/start|end/g,(t=>v[t]))}const k=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:f,elements:u}=n,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:x=!0,...v}=c(t,n),k=a(o),P=a(s)===s,S=await(null==f.isRTL?void 0:f.isRTL(u.floating)),D=y||(P||!x?[b(s)]:function(t){const n=b(t);return[A(t),n,A(n)]}(s));y||"none"===h||D.push(...function(t,n,e,o){const i=r(t);let l=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(a(t),"start"===e,o);return i&&(l=l.map((t=>t+"-"+i)),n&&(l=l.concat(l.map(A)))),l}(s,x,h,S));const R=[s,...D],C=await d(n,v),F=[];let M=(null==(e=i.flip)?void 0:e.overflows)||[];if(m&&F.push(C[k]),p){const{main:t,cross:n}=w(o,l,S);F.push(C[t],C[n])}if(M=[...M,{placement:o,overflows:F}],!F.every((t=>t<=0))){var E,O;const t=((null==(E=i.flip)?void 0:E.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:M},reset:{placement:n}};let e=null==(O=M.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:O.placement;if(!e)switch(g){case"bestFit":{var j;const t=null==(j=M.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:j[0];t&&(e=t);break}case"initialPlacement":e=s}if(o!==e)return{reset:{placement:e}}}return{}}}};function P(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function S(t){return g.some((n=>t[n]>=0))}const D=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=c(t,n);switch(o){case"referenceHidden":{const t=P(await d(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:S(t)}}}case"escaped":{const t=P(await d(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:S(t)}}}default:return{}}}}},R=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:e,y:o}=n,i=await async function(t,n){const{placement:e,platform:o,elements:i}=t,s=await(null==o.isRTL?void 0:o.isRTL(i.floating)),f=a(e),u=r(e),d="x"===l(e),m=["left","top"].includes(f)?-1:1,p=s&&d?-1:1,y=c(n,t);let{mainAxis:g,crossAxis:h,alignmentAxis:x}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return u&&"number"==typeof x&&(h="end"===u?-1*x:x),d?{x:h*p,y:g*m}:{x:g*m,y:h*p}}(n,t);return{x:e+i.x,y:o+i.y,data:i}}}};function C(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function F(t){return C(t).getComputedStyle(t)}function M(t){return t instanceof C(t).Node}function E(t){return M(t)?(t.nodeName||"").toLowerCase():""}function O(t){return t instanceof C(t).HTMLElement}function j(t){return t instanceof C(t).Element}function T(t){return"undefined"!=typeof ShadowRoot&&(t instanceof C(t).ShadowRoot||t instanceof ShadowRoot)}function z(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=F(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function B(t){return["table","td","th"].includes(E(t))}function L(t){const n=$(),e=F(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function $(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function H(t){return["html","body","#document"].includes(E(t))}const N=Math.min,I=Math.max,W=Math.round;function V(t){const n=F(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=O(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=W(e)!==i||W(o)!==a;return l&&(e=i,o=a),{width:e,height:o,fallback:l}}function q(t){return j(t)?t:t.contextElement}const G={x:1,y:1};function U(t){const n=q(t);if(!O(n))return G;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=V(n);let a=(i?W(e.width):e.width)/o,l=(i?W(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const X={x:0,y:0};function Y(t,n,e){var o,r;if(void 0===n&&(n=!0),!$())return X;const i=t?C(t):window;return!e||n&&e!==i?X:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function _(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=q(t);let a=G;n&&(o?j(o)&&(a=U(o)):a=U(t));const l=Y(i,e,o);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(i){const t=C(i),n=o&&j(o)?C(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=U(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,s*=t.x,c*=t.y,f*=t.x,d*=t.y,s+=n.x,c+=n.y,e=C(e).frameElement}}return u({width:f,height:d,x:s,y:c})}function J(t){return((M(t)?t.ownerDocument:t.document)||window.document).documentElement}function K(t){return j(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Q(t){return _(J(t)).left+K(t).scrollLeft}function Z(t){if("html"===E(t))return t;const n=t.assignedSlot||t.parentNode||T(t)&&t.host||J(t);return T(n)?n.host:n}function tt(t){const n=Z(t);return H(n)?n.ownerDocument.body:O(n)&&z(n)?n:tt(n)}function nt(t,n){var e;void 0===n&&(n=[]);const o=tt(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=C(o);return r?n.concat(i,i.visualViewport||[],z(o)?o:[]):n.concat(o,nt(o))}function et(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=C(t),o=J(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=$();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,e);else if("document"===n)o=function(t){const n=J(t),e=K(t),o=t.ownerDocument.body,r=I(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=I(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Q(t);const l=-e.scrollTop;return"rtl"===F(o).direction&&(a+=I(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(J(t));else if(j(n))o=function(t,n){const e=_(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=O(t)?U(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=Y(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return u(o)}function ot(t,n){const e=Z(t);return!(e===n||!j(e)||H(e))&&("fixed"===F(e).position||ot(e,n))}function rt(t,n){return O(t)&&"fixed"!==F(t).position?n?n(t):t.offsetParent:null}function it(t,n){const e=C(t);if(!O(t))return e;let o=rt(t,n);for(;o&&B(o)&&"static"===F(o).position;)o=rt(o,n);return o&&("html"===E(o)||"body"===E(o)&&"static"===F(o).position&&!L(o))?e:o||function(t){let n=Z(t);for(;O(n)&&!H(n);){if(L(n))return n;n=Z(n)}return null}(t)||e}function at(t,n,e){const o=O(n),r=J(n),i="fixed"===e,a=_(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&!i)if(("body"!==E(n)||z(r))&&(l=K(n)),O(n)){const t=_(n,!0,i,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else r&&(s.x=Q(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}const lt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=nt(t).filter((t=>j(t)&&"body"!==E(t))),r=null;const i="fixed"===F(t).position;let a=i?Z(t):t;for(;j(a)&&!H(a);){const n=F(a),e=L(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||z(a)&&!e&&ot(t,a))?o=o.filter((t=>t!==a)):r=n,a=Z(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=et(n,e,r);return t.top=I(o.top,t.top),t.right=N(o.right,t.right),t.bottom=N(o.bottom,t.bottom),t.left=I(o.left,t.left),t}),et(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=O(e),i=J(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==E(e)||z(i))&&(a=K(e)),O(e))){const t=_(e);l=U(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+s.x,y:n.y*l.y-a.scrollTop*l.y+s.y}},isElement:j,getDimensions:function(t){return V(t)},getOffsetParent:it,getDocumentElement:J,getScale:U,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||it,i=this.getDimensions;return{reference:at(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===F(t).direction};const st={floatingUINonChromiumPositioningFix:!0,...globalThis.calciteComponentsConfig},ct=async function(){if(st.floatingUINonChromiumPositioningFix&&(/firefox|safari/i.test(n())||function(){const t=e();return t?.brands?!!t.brands.find((({brand:t,version:n})=>("Google Chrome"===t||"Chromium"===t)&&Number(n)>=109)):!!navigator.userAgent.split(" ").find((t=>{const[n,e]=t.split("/");return"Chrome"===n&&parseInt(e)>=109}))}())){const{offsetParent:t}=await import("./p-87cb6caa.js"),n=lt.getOffsetParent;lt.getOffsetParent=e=>n(e,t)}}(),ft=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],ut="bottom-start",dt={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function mt({placement:t,flipDisabled:n,flipPlacements:e,offsetDistance:o,offsetSkidding:s,arrowEl:u,type:p}){const g=[(void 0===x&&(x={}),{name:"shift",options:x,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:s={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=c(x,t),u={x:n,y:e},m=await d(t,f),p=l(a(o)),g="x"===p?"y":"x";let h=u[p],b=u[g];r&&(h=y(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),i&&(b=y(b+m["y"===g?"top":"left"],b,b-m["y"===g?"bottom":"right"]));const w=s.fn({...t,[p]:h,[g]:b});return{...w,data:{x:w.x-n,y:w.y-e}}}}),D()];var x;if("menu"===p)return[...g,k({fallbackPlacements:e||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===p||"tooltip"===p){const p=[...g,R({mainAxis:"number"==typeof o?o:0,crossAxis:"number"==typeof s?s:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?p.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,i;const{rects:l,middlewareData:s,placement:f,platform:u,elements:m}=n,{crossAxis:p=!1,alignment:y,allowedPlacements:g=h,autoAlignment:x=!0,...b}=c(t,n),v=void 0!==y||g===h?function(t,n,e){return(t?[...e.filter((n=>r(n)===t)),...e.filter((n=>r(n)!==t))]:e.filter((t=>a(t)===t))).filter((e=>!t||r(e)===t||!!n&&A(e)!==e))}(y||null,x,g):g,k=await d(n,b),P=(null==(e=s.autoPlacement)?void 0:e.index)||0,S=v[P];if(null==S)return{};const{main:D,cross:R}=w(S,l,await(null==u.isRTL?void 0:u.isRTL(m.floating)));if(f!==S)return{reset:{placement:v[0]}};const C=[k[a(S)],k[D],k[R]],F=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:S,overflows:C}],M=v[P+1];if(M)return{data:{index:P+1,overflows:F},reset:{placement:M}};const E=F.map((t=>{const n=r(t.placement);return[t.placement,n&&p?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),O=(null==(i=E.filter((t=>t[2].slice(0,r(t[0])?2:3).every((t=>t<=0))))[0])?void 0:i[0])||E[0][0];return O!==f?{data:{index:P+1,overflows:F},reset:{placement:O}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||p.push(k(e?{fallbackPlacements:e}:{})),u&&p.push((t=>({name:"arrow",options:t,async fn(n){const{x:e,y:o,placement:a,rects:s,platform:u,elements:d}=n,{element:p,padding:g=0}=c(t,n)||{};if(null==p)return{};const h=f(g),x={x:e,y:o},b=l(a),w=i(b),v=await u.getDimensions(p),A="y"===b,k=A?"top":"left",P=A?"bottom":"right",S=A?"clientHeight":"clientWidth",D=s.reference[w]+s.reference[b]-x[b]-s.floating[w],R=x[b]-s.reference[b],C=await(null==u.getOffsetParent?void 0:u.getOffsetParent(p));let F=C?C[S]:0;F&&await(null==u.isElement?void 0:u.isElement(C))||(F=d.floating[S]||s.floating[w]);const M=D/2-R/2,E=F/2-v[w]/2-1,O=m(h[k],E),j=m(h[P],E),T=O,z=F-v[w]-j,B=F/2-v[w]/2+M,L=y(T,B,z),$=null!=r(a)&&B!=L&&s.reference[w]/2-(B<T?O:j)-v[w]/2<0;return{[b]:x[b]-($?B<T?T-B:z-B:0),data:{[b]:L,centerOffset:B-L}}}}))({element:u})),p}return[]}function pt(t,n){const e=t.filter((t=>ft.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ft.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function yt(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function gt(t,n,e=!1){if(t.open)return e?ht(t,n):bt(t,n)}const ht=o(bt,100,{leading:!0,maxWait:100}),xt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"};async function bt(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:f,type:u}){if(!n||!e)return null;await ct;const{x:d,y:m,placement:p,strategy:y,middlewareData:g}=await((t,n,e)=>{const o=new Map,r={platform:lt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(n));let f=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:d}=s(f,o,c),m=o,p={},y=0;for(let e=0;e<l.length;e++){const{name:i,fn:g}=l[e],{x:h,y:x,data:b,reset:w}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:a,elements:{reference:t,floating:n}});u=null!=h?h:u,d=null!=x?x:d,p={...p,[i]:{...p[i],...b}},w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(f=!0===w.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):w.rects),({x:u,y:d}=s(f,m,c))),e=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:yt(e,r),middleware:mt({placement:r,flipDisabled:i,flipPlacements:a,offsetDistance:l,offsetSkidding:c,arrowEl:f,type:u})});if(f&&g.arrow){const{x:n,y:e}=g.arrow,o=p.split("-")[0],r=null!=n?"left":"top",i=xt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(f.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const h=g.hide?.referenceHidden,x=h?"hidden":null,b=x?"none":null;e.setAttribute("data-placement",p);const w=`translate(${Math.round(d)}px,${Math.round(m)}px)`;Object.assign(e.style,{visibility:x,pointerEvents:b,position:y,top:"0",left:"0",transform:w})}const wt=new WeakMap;function vt(t,n,e){e&&n&&(At(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),wt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=o,s=r||i?[...j(t)?nt(t):t.contextElement?nt(t.contextElement):[],...nt(n)]:[];s.forEach((t=>{const n=!j(t)&&t.toString().includes("V");!r||l&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let c,f=null;a&&(f=new ResizeObserver((()=>{e()})),j(t)&&!l&&f.observe(t),j(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(n));let u=l?_(t):null;return l&&function n(){const o=_(t);!u||o.x===u.x&&o.y===u.y&&o.width===u.width&&o.height===u.height||e(),u=o,c=requestAnimationFrame(n)}(),e(),()=>{var t;s.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(c)}}(n,e,(()=>t.reposition()))))}function At(t,n,e){if(!e||!n)return;const o=wt.get(t);o&&o(),wt.delete(t)}const kt=Math.ceil(Math.hypot(4,4));export{dt as F,At as a,kt as b,vt as c,ut as d,pt as f,gt as r}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,a as o}from"./p-77dcb1b3.js";import{g as s}from"./p-643760cd.js";import{b as n,f as r,t as c}from"./p-2c637090.js";import{c as d,d as l,H as h}from"./p-cd1ee477.js";import{g as m}from"./p-a7515261.js";import{c as u,d as p,u as f}from"./p-26ff8257.js";import{c as b,d as v,g as k}from"./p-c31f46f9.js";import{c as x,s as g,a as y}from"./p-fe334709.js";import"./p-53047265.js";import"./p-f8da7c37.js";const w=class{constructor(a){t(this,a),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((t=>t.name===this.name)),this.isDefaultSelectable=()=>{const t=this.queryButtons();return!t.some((t=>t.checked))&&t[0]===this.el},this.check=()=>{this.disabled||(this.focused=!0,this.setFocus(),this.checked||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.calciteRadioButtonChange.emit()))},this.clickHandler=()=>{this.disabled||this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const{key:i}=t,{el:a}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return this.check(),void t.preventDefault();let e=i;"rtl"===n(a)&&("ArrowRight"===i&&(e="ArrowLeft"),"ArrowLeft"===i&&(e="ArrowRight"));const o=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let r=0;const c=o.length;switch(o.some(((t,i)=>{if(t.checked)return r=i,!0})),e){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(o,s(Math.max(r-1,-1),c));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(o,s(r+1,c));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.form=void 0,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await x(this),this.disabled||r(this.containerEl)}syncHiddenFormInput(t){t.type="radio"}onLabelClick(t){if(this.disabled||this.hidden)return;const i=t.currentTarget,a=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);a&&(a.focused=!0,this.setFocus(),a.checked||(this.uncheckOtherRadioButtonsInGroup(),a.checked=!0,this.calciteRadioButtonChange.emit()))}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if(t?.length>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isDefaultSelectable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${m()}`,this.name&&this.checkLastRadioButton(),u(this),b(this),d(this)}componentWillLoad(){g(this)}componentDidLoad(){y(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){p(this),v(this),l(this)}componentDidRender(){f(this)}render(){const t=this.getTabIndex();return a(e,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},a("div",{"aria-checked":c(this.checked),"aria-label":k(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"radio",tabIndex:t,ref:this.setContainerEl},a("div",{class:"radio"})),a(h,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};w.style='@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';export{w as calcite_radio_button}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{r as i,c as t,h as a,a as n,H as c}from"./p-77dcb1b3.js";import{c as e,d as o}from"./p-b811cbfe.js";import{v as r,g as s,b as l,t as d,c as m}from"./p-2c637090.js";import{C as h}from"./p-53047265.js";import"./p-07974044.js";import"./p-a7515261.js";const p=class{constructor(a){i(this,a),this.calciteInternalAccordionChange=t(this,"calciteInternalAccordionChange",6),this.items=[],this.sorted=!1,this.sortItems=i=>i.sort(((i,t)=>i.position-t.position)).map((i=>i.item)),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}componentDidLoad(){this.sorted||(this.items=this.sortItems(this.items),this.sorted=!0)}render(){const i="transparent"===this.appearance;return a("div",{class:{"accordion--transparent":i,accordion:!i}},a("slot",null))}registerCalciteAccordionItem(i){const t={item:i.target,parent:i.detail.parent,position:i.detail.position};this.el===t.parent&&this.items.push(t),i.stopPropagation()}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem}),i.stopPropagation()}get el(){return n(this)}};p.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";const u="actions-start",f="actions-end",g=class{constructor(a){i(this,a),this.calciteInternalAccordionItemSelect=t(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=t(this,"calciteInternalAccordionItemClose",6),this.calciteInternalAccordionItemRegister=t(this,"calciteInternalAccordionItemRegister",6),this.iconPosition="end",this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.scale="m",this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0}connectedCallback(){this.parent=this.el.parentElement,this.iconType=r(this.el,"icon-type","chevron"),this.iconPosition=r(this.el,"icon-position",this.iconPosition),this.scale=r(this.el,"scale",this.scale),e(this)}componentDidLoad(){this.itemPosition=this.getItemPosition(),this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})}disconnectedCallback(){o(this)}renderActionsStart(){const{el:i}=this;return s(i,u)?a("div",{class:"actions-start"},a("slot",{name:u})):null}renderActionsEnd(){const{el:i}=this;return s(i,f)?a("div",{class:"actions-end"},a("slot",{name:f})):null}render(){const{iconFlipRtl:i}=this,t=l(this.el),n=this.iconStart?a("calcite-icon",{class:"icon--start",flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:"l"===this.scale?"m":"s"}):null,e=this.iconEnd?a("calcite-icon",{class:"icon--end",flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:"l"===this.scale?"m":"s"}):null,{description:o}=this;return a(c,null,a("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},a("div",{class:{header:!0,[h.rtl]:"rtl"===t}},this.renderActionsStart(),a("div",{"aria-expanded":d(this.expanded),class:"header-content",onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},a("div",{class:"header-container"},n,a("div",{class:"header-text"},a("span",{class:"heading"},this.heading),o?a("span",{class:"description"},o):null),e),a("calcite-icon",{class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:"l"===this.scale?"m":"s"})),this.renderActionsEnd()),a("div",{class:"content"},a("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.el.parentNode===this.requestedAccordionItem.parentNode&&(this.determineActiveItem(),i.stopPropagation())}determineActiveItem(){switch(this.selectionMode=r(this.el,"selection-mode","multiple"),this.selectionMode){case"multiple":this.el===this.requestedAccordionItem&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===this.requestedAccordionItem&&!this.expanded;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}getItemPosition(){const{el:i}=this,t=m(i,"calcite-accordion")?.querySelectorAll("calcite-accordion-item");return t?Array.from(t).indexOf(i):-1}get el(){return n(this)}};g.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:flex;align-items:stretch}:host .icon{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}:host .content{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}:host .heading,:host .description{display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:flex;align-items:center}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";export{p as calcite_accordion,g as calcite_accordion_item}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{h as t}from"./p-77dcb1b3.js";const e={width:12,height:6,strokeWidth:1},i=({floatingLayout:i,key:o,ref:r})=>{const{width:a,height:h,strokeWidth:s}=e,d=a/2,n="vertical"===i,c=`M0,0 H${a} L${a-d},${h} Q${d},${h} ${d},${h} Z`;return t("svg",{"aria-hidden":"true",class:"calcite-floating-ui-arrow",height:a,key:o,ref:r,viewBox:`0 0 ${a} ${a+(n?0:s)}`,width:a+(n?s:0)},s>0&&t("path",{class:"calcite-floating-ui-arrow__stroke",d:c,fill:"none","stroke-width":s+1}),t("path",{d:c,stroke:"none"}))};export{i as F}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{h as t}from"./p-77dcb1b3.js";function r(t){return Math.min(Math.max(Math.ceil(t),1),6)}const e=(r,e)=>{const n=r.level?`h${r.level}`:"div";return delete r.level,t(n,{...r},e)};export{e as H,r as c}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{f as t}from"./p-77dcb1b3.js";import{c as o}from"./p-07974044.js";const n=new Set;let c;const s={childList:!0};function f(t){c||(c=o("mutation",r)),c.observe(t.el,s)}function i(t){n.delete(t.el),r(c.takeRecords()),c.disconnect();for(const[t]of n.entries())c.observe(t,s)}function r(o){o.forEach((({target:o})=>{t(o)}))}export{f as c,i as d}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{g as n}from"./p-77dcb1b3.js";import{g as t}from"./p-a486b294.js";const s={};function o(){throw new Error("could not fetch component message bundle")}function c(n){n.messages={...n.defaultMessages,...n.messageOverrides}}async function a(n){n.defaultMessages=await i(n,n.effectiveLocale),c(n)}async function i(c,a){const{el:i}=c,e=i.tagName.toLowerCase().replace("calcite-","");return async function(t,c){const a=`${c}_${t}`;return s[a]||(s[a]=fetch(n(`./assets/${c}/t9n/messages_${t}.json`)).then((n=>(n.ok||o(),n.json()))).catch((()=>o()))),s[a]}(t(a,"t9n"),e)}async function e(n,t){n.defaultMessages=await i(n,t),c(n)}function u(n){n.onMessagesChange=r}function f(n){n.onMessagesChange=void 0}function r(){c(this)}export{u as c,f as d,a as s,e as u}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as e,a,H as n}from"./p-77dcb1b3.js";import{t as s,d as c,b as o}from"./p-2c637090.js";import{c as l,d as r,u as d}from"./p-26ff8257.js";import{c as h}from"./p-07974044.js";import{s as m,a as p,c as f}from"./p-fe334709.js";import{d as u}from"./p-5d509f73.js";import{c as b,d as g}from"./p-a486b294.js";import{u as y,c as v,s as w,d as x}from"./p-b9438138.js";import"./p-a7515261.js";import"./p-53047265.js";import"./p-f8da7c37.js";import"./p-d05e5931.js";const k="open-container",C="calcite-list-item";function _(t){const i=t.target.assignedElements({flatten:!0});return[...i.filter((t=>t?.matches("calcite-list-item-group"))).map((t=>Array.from(t.querySelectorAll(C)))).reduce(((t,i)=>[...t,...i]),[]),...i.filter((t=>t?.matches(C)))]}function D(t){t.forEach((i=>{i.setPosition=t.indexOf(i)+1,i.setSize=t.length}))}function E(t,i=!1){return document.evaluate(i?"ancestor::calcite-list-item | ancestor::calcite-list-item-group":"ancestor::calcite-list-item",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength}const S="calcite-list-item",L=class{constructor(e){t(this,e),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.listItems=[],this.enabledListItems=[],this.mutationObserver=h("mutation",(()=>this.updateListItems())),this.handleDefaultSlotChange=t=>{D(_(t))},this.setActiveListItem=()=>{const{enabledListItems:t}=this;t.some((t=>t.active))||t[0]&&(t[0].active=!0)},this.updateSelectedItems=(t=!1)=>{this.selectedItems=this.enabledListItems.filter((t=>t.selected)),t&&this.calciteListChange.emit()},this.updateFilteredItems=(t=!1)=>{const{listItems:i,filteredData:e,filterText:a}=this,n=e.map((t=>t.value)),s=i?.filter((t=>i.every((i=>i===t||!t.contains(i))))),c=i.filter((t=>!a||n.includes(t.value)))||[],o=new WeakSet;s.forEach((t=>this.filterElements({el:t,filteredItems:c,visibleParents:o}))),this.filteredItems=c,t&&this.calciteListFilter.emit()},this.handleFilter=t=>{t.stopPropagation();const{filteredItems:i,value:e}=t.currentTarget;this.filteredData=i,this.filterText=e,this.updateListItems(!0)},this.getItemData=()=>this.listItems.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value}))),this.updateListItems=u(((t=!1)=>{const{selectionAppearance:i,selectionMode:e}=this,a=this.queryListItems();a.forEach((t=>{t.selectionAppearance=i,t.selectionMode=e})),this.listItems=a,this.filterEnabled&&(this.dataForFilter=this.getItemData(),this.filterEl&&(this.filterEl.items=this.dataForFilter)),this.updateFilteredItems(t),this.enabledListItems=a.filter((t=>!t.disabled&&!t.closed)),this.setActiveListItem(),this.updateSelectedItems(t)}),0),this.queryListItems=()=>Array.from(this.el.querySelectorAll(S)),this.focusRow=t=>{const{enabledListItems:i}=this;t&&(i.forEach((i=>i.active=i===t)),t.setFocus())},this.isNavigable=t=>{const i=t.parentElement?.closest(S);return!i||i.open&&this.isNavigable(i)},this.handleListKeydown=t=>{if(t.defaultPrevented)return;const{key:i}=t,e=this.enabledListItems.filter((t=>this.isNavigable(t))),a=e.findIndex((t=>t.active));if("ArrowDown"===i){t.preventDefault();const i=a+1;e[i]&&this.focusRow(e[i])}else if("ArrowUp"===i){t.preventDefault();const i=a-1;e[i]&&this.focusRow(e[i])}else if("Home"===i){t.preventDefault();const i=e[0];i&&this.focusRow(i)}else if("End"===i){t.preventDefault();const i=e[e.length-1];i&&this.focusRow(i)}},this.disabled=!1,this.filterEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterPlaceholder=void 0,this.filterText=void 0,this.label=void 0,this.loading=!1,this.openable=!1,this.selectedItems=[],this.selectionMode="none",this.selectionAppearance="icon",this.dataForFilter=[]}handleFilterEnabledChange(){this.updateListItems()}handleSelectionAppearanceChange(){this.updateListItems()}handleCalciteInternalFocusPreviousItem(t){t.stopPropagation();const{enabledListItems:i}=this,e=i.findIndex((t=>t.active))-1;i[e]&&this.focusRow(i[e])}handleCalciteInternalListItemActive(t){const i=t.target,{listItems:e}=this;e.forEach((t=>{t.active=t===i}))}handleCalciteListItemSelect(){this.updateSelectedItems(!0)}handleCalciteInternalListItemSelect(t){const i=t.target,{listItems:e,selectionMode:a}=this;e.forEach((t=>{"single"!==a&&"single-persist"!==a||(t.selected=t===i)})),this.updateSelectedItems()}handleCalciteListItemClose(){this.updateListItems(!0)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateListItems(),l(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),r(this)}componentWillLoad(){m(this)}componentDidRender(){d(this)}componentDidLoad(){p(this);const{filterEl:t}=this,i=t?.filteredItems;i&&(this.filteredData=i),this.updateListItems()}async setFocus(){await f(this),this.enabledListItems.find((t=>t.active))?.setFocus()}render(){const{loading:t,label:i,disabled:a,dataForFilter:n,filterEnabled:c,filterPlaceholder:o,filterText:l}=this;return e("div",{class:"container"},t?e("calcite-scrim",{class:"scrim",loading:t}):null,e("table",{"aria-busy":s(t),"aria-label":i||"",class:"table",onKeyDown:this.handleListKeydown,role:"treegrid"},c?e("thead",null,e("tr",{class:{"sticky-pos":!0}},e("th",{colSpan:5},e("calcite-filter",{"aria-label":o,disabled:t||a,items:n,onCalciteFilterChange:this.handleFilter,placeholder:o,value:l,ref:t=>this.filterEl=t})))):null,e("tbody",{class:"table-container"},e("slot",{onSlotchange:this.handleDefaultSlotChange}))))}filterElements({el:t,filteredItems:i,visibleParents:e}){const a=!e.has(t)&&!i.includes(t);t.hidden=a;const n=t.parentElement.closest("calcite-list-item-group, calcite-list-item");n&&(a||e.add(n),this.filterElements({el:n,filteredItems:i,visibleParents:e}))}get el(){return a(this)}static get watchers(){return{filterEnabled:["handleFilterEnabledChange"],selectionMode:["handleSelectionAppearanceChange"],selectionAppearance:["handleSelectionAppearanceChange"]}}};L.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{position:relative;z-index:var(--calcite-app-z-index);box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}.sticky-pos th{padding:0px}calcite-filter{margin-block-end:1px}";const I=new Map,z=class{constructor(e){t(this,e),this.calciteListItemSelect=i(this,"calciteListItemSelect",6),this.calciteListItemClose=i(this,"calciteListItemClose",6),this.calciteInternalListItemSelect=i(this,"calciteInternalListItemSelect",6),this.calciteInternalListItemActive=i(this,"calciteInternalListItemActive",6),this.calciteInternalFocusPreviousItem=i(this,"calciteInternalFocusPreviousItem",6),this.closeClickHandler=()=>{this.closed=!0,this.calciteListItemClose.emit()},this.handleContentSlotChange=t=>{this.hasCustomContent=c(t)},this.handleActionsStartSlotChange=t=>{this.hasActionsStart=c(t)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=c(t)},this.handleContentStartSlotChange=t=>{this.hasContentStart=c(t)},this.handleContentEndSlotChange=t=>{this.hasContentEnd=c(t)},this.handleDefaultSlotChange=t=>{const{parentListEl:i}=this,e=_(t);D(e);const a=!!e.length;a&&i&&!i.openable&&(i.openable=!0),this.openable=a,a||(this.open=!1)},this.toggleOpen=()=>{this.open=!this.open},this.itemClicked=t=>{t.defaultPrevented||(this.toggleSelected(),this.calciteInternalListItemActive.emit())},this.toggleSelected=()=>{const{selectionMode:t,selected:i}=this;this.disabled||("multiple"===t||"single"===t?this.selected=!i:"single-persist"===t&&(this.selected=!0),this.calciteListItemSelect.emit())},this.handleItemKeyDown=t=>{if(t.defaultPrevented)return;const{key:i}=t,e=t.composedPath(),{containerEl:a,contentEl:n,actionsStartEl:s,actionsEndEl:c,open:o,openable:l}=this,r=[s,n,c].filter(Boolean),d=r.findIndex((t=>e.includes(t)));if("Enter"===i)t.preventDefault(),this.toggleSelected();else if("ArrowRight"===i){t.preventDefault();const i=d+1;-1===d?!o&&l?(this.open=!0,this.focusCell(null)):r[0]&&this.focusCell(r[0]):r[d]&&r[i]&&this.focusCell(r[i])}else if("ArrowLeft"===i){t.preventDefault();const i=d-1;-1===d?(this.focusCell(null),o&&l?this.open=!1:this.calciteInternalFocusPreviousItem.emit()):0===d?(this.focusCell(null),a.focus()):r[d]&&r[i]&&this.focusCell(r[i])}},this.focusCellNull=()=>{this.focusCell(null)},this.focusCell=(t,i=!0)=>{const{contentEl:e,actionsStartEl:a,actionsEndEl:n,parentListEl:s}=this;i&&I.set(s,null),[a,e,n].filter(Boolean).forEach(((e,a)=>{const n="tabindex";e===t?(e.setAttribute(n,"0"),i&&I.set(s,a)):e.removeAttribute(n)})),t?.focus()},this.active=!1,this.closable=!1,this.closed=!1,this.description=void 0,this.disabled=!1,this.label=void 0,this.metadata=void 0,this.open=!1,this.setSize=null,this.setPosition=null,this.selected=!1,this.value=void 0,this.selectionMode=null,this.selectionAppearance=null,this.messageOverrides=void 0,this.messages=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.level=null,this.visualLevel=null,this.parentListEl=void 0,this.openable=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasCustomContent=!1,this.hasContentStart=!1,this.hasContentEnd=!1}activeHandler(t){t||this.focusCell(null,!1)}handleSelectedChange(t){t&&this.calciteInternalListItemSelect.emit()}onMessagesChange(){}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){l(this),b(this),v(this);const{el:t}=this;this.parentListEl=t.closest("calcite-list"),this.level=E(t)+1,this.visualLevel=E(t,!0),this.setSelectionDefaults()}async componentWillLoad(){m(this),await w(this)}componentDidLoad(){p(this)}componentDidRender(){d(this,"managed")}disconnectedCallback(){r(this),g(this),x(this)}async setFocus(){await f(this);const{containerEl:t,contentEl:i,actionsStartEl:e,actionsEndEl:a,parentListEl:n}=this,s=I.get(n);if("number"!=typeof s)t?.focus();else{const n=[e,i,a].filter(Boolean);n[s]?this.focusCell(n[s]):t?.focus()}}renderSelected(){const{selected:t,selectionMode:i,selectionAppearance:a}=this;return"none"===i||"border"===a?null:e("td",{class:"selection-container",key:"selection-container",onClick:this.itemClicked},e("calcite-icon",{icon:t?"multiple"===i?"check-circle-f":"circle-f":"blank",scale:"s"}))}renderOpen(){const{el:t,open:i,openable:a,parentListEl:n}=this,s=o(t);return a?e("td",{class:k,key:"open-container",onClick:this.toggleOpen},e("calcite-icon",{icon:i?"caret-down":"rtl"===s?"caret-left":"caret-right",scale:"s"})):n?.openable?e("td",{class:k,key:"open-container",onClick:this.itemClicked},e("calcite-icon",{icon:"blank",scale:"s"})):null}renderActionsStart(){const{label:t,hasActionsStart:i}=this;return e("td",{"aria-label":t,class:"actions-start",hidden:!i,key:"actions-start-container",role:"gridcell",ref:t=>this.actionsStartEl=t},e("slot",{name:"actions-start",onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{label:t,hasActionsEnd:i,closable:a,messages:n}=this;return e("td",{"aria-label":t,class:"actions-end",hidden:!(i||a),key:"actions-end-container",role:"gridcell",ref:t=>this.actionsEndEl=t},e("slot",{name:"actions-end",onSlotchange:this.handleActionsEndSlotChange}),a?e("calcite-action",{appearance:"transparent",icon:"x",key:"close-action",label:n.close,onClick:this.closeClickHandler,text:n.close}):null)}renderContentStart(){const{hasContentStart:t}=this;return e("div",{class:"content-start",hidden:!t},e("slot",{name:"content-start",onSlotchange:this.handleContentStartSlotChange}))}renderCustomContent(){const{hasCustomContent:t}=this;return e("div",{class:"custom-content",hidden:!t},e("slot",{name:"content",onSlotchange:this.handleContentSlotChange}))}renderContentEnd(){const{hasContentEnd:t}=this;return e("div",{class:"content-end",hidden:!t},e("slot",{name:"content-end",onSlotchange:this.handleContentEndSlotChange}))}renderContentProperties(){const{label:t,description:i,hasCustomContent:a}=this;return a||!t&&!i?null:e("div",{class:"content",key:"content"},t?e("div",{class:"label",key:"label"},t):null,i?e("div",{class:"description",key:"description"},i):null)}renderContentContainer(){const{description:t,label:i,selectionMode:a,hasCustomContent:n}=this,s=n||!!i||!!t,c=[this.renderContentStart(),this.renderCustomContent(),this.renderContentProperties(),this.renderContentEnd()];return e("td",{"aria-label":i,class:{"content-container":!0,"content-container--selectable":"none"!==a,"content-container--has-center-content":s},key:"content-container",onClick:this.itemClicked,role:"gridcell",ref:t=>this.contentEl=t},c)}render(){const{openable:t,open:i,level:a,setPosition:c,setSize:o,active:l,label:r,selected:d,selectionAppearance:h,selectionMode:m,closed:p}=this,f="none"!==m&&"border"===h,u=f&&d,b=f&&!d;return e(n,null,e("tr",{"aria-expanded":t?s(i):null,"aria-label":r,"aria-level":a,"aria-posinset":c,"aria-selected":s(d),"aria-setsize":o,class:{container:!0,"container--border-selected":u,"container--border-unselected":b},hidden:p,onFocus:this.focusCellNull,onKeyDown:this.handleItemKeyDown,role:"row",style:{"--calcite-list-item-spacing-indent-multiplier":`${this.visualLevel}`},tabIndex:l?0:-1,ref:t=>this.containerEl=t},this.renderSelected(),this.renderOpen(),this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),e("div",{class:{"nested-container":!0,"nested-container--hidden":t&&!i}},e("slot",{onSlotchange:this.handleDefaultSlotChange})))}setSelectionDefaults(){const{parentListEl:t,selectionMode:i,selectionAppearance:e}=this;t&&(i||(this.selectionMode=t.selectionMode),e||(this.selectionAppearance=t.selectionAppearance))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],selected:["handleSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};z.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}tr,td{outline-color:transparent}tr:focus,td:focus{z-index:var(--calcite-app-z-index-sticky);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}[hidden]{display:none}";const A=class{constructor(i){t(this,i),this.disabled=!1,this.heading=void 0,this.visualLevel=null}connectedCallback(){const{el:t}=this;this.visualLevel=E(t,!0),l(this)}componentDidRender(){d(this)}disconnectedCallback(){r(this)}render(){const{heading:t,visualLevel:i}=this;return e(n,null,e("tr",{class:"container",style:{"--calcite-list-item-spacing-indent-multiplier":`${i}`}},e("td",{class:"heading",colSpan:5},t)),e("slot",null))}get el(){return a(this)}};A.style="@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.heading{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}[hidden]{display:none}";export{L as calcite_list,z as calcite_list_item,A as calcite_list_item_group}
|
|
@@ -1,6 +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.5.0-next.1
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,h as i,H as a,a as e,f as n}from"./p-77dcb1b3.js";import{t as o}from"./p-2c637090.js";import{g as r}from"./p-a7515261.js";import{c,d as s,u as l}from"./p-26ff8257.js";import{s as d,a as u,c as h}from"./p-fe334709.js";import{c as b,d as p}from"./p-a486b294.js";import{c as m}from"./p-07974044.js";import{u as f,c as v,s as g,d as x}from"./p-b9438138.js";import"./p-53047265.js";import"./p-f8da7c37.js";import"./p-d05e5931.js";const y=class{constructor(i){t(this,i),this.mutationObserver=m("mutation",(()=>n(this))),this.guid=`calcite-action-${r()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")))[0];i&&(i.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){f(this,this.effectiveLocale)}connectedCallback(){c(this),b(this),v(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){d(this),await g(this)}componentDidLoad(){u(this)}disconnectedCallback(){s(this),p(this),x(this),this.mutationObserver?.disconnect()}componentDidRender(){l(this)}async setFocus(){await h(this),this.buttonEl?.focus()}renderTextContainer(){const{text:t,textEnabled:a}=this;return t?i("div",{class:{"text-container":!0,"text-container--visible":a},key:"text-container"},t):null}renderIndicatorText(){const{indicator:t,messages:a,indicatorId:e,buttonId:n}=this;return i("div",{"aria-labelledby":n,"aria-live":"polite",class:"indicator-text",id:e,role:"region"},t?a.indicator:null)}renderIconContainer(){const{loading:t,icon:a,scale:e,el:n,iconFlipRtl:o}=this,r="l"===e?"m":"s",c=t?i("calcite-loader",{inline:!0,label:this.messages.loading,scale:"l"===e?"l":"m"}):null,s=a?i("calcite-icon",{flipRtl:o,icon:a,scale:r}):null,l=c||s,d=l||n.children?.length,u=i("div",{class:{"slot-container":!0,"slot-container--hidden":t}},i("slot",null));return d?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},l,u):null}render(){const{active:t,compact:e,disabled:n,loading:r,textEnabled:c,label:s,text:l,indicator:d,indicatorId:u,buttonId:h,messages:b}=this,p=`${s||l}${d?` (${b.indicator})`:""}`,m={button:!0,"button--text-visible":c,"button--compact":e};return i(a,null,i("button",{"aria-busy":o(r),"aria-controls":d?u:null,"aria-disabled":o(n),"aria-label":p,"aria-pressed":o(t),class:m,disabled:n,id:h,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()),i("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText())}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};y.style='@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-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 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-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1;margin-inline-end:1rem}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}';export{y as calcite_action}
|