@esri/calcite-components 1.0.0-next.540 → 1.0.0-next.543
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/assets/date-picker/nls/pt-PT.json +1 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-de81c890.entry.js → p-02b55f85.entry.js} +2 -2
- package/dist/calcite/{p-41cc3517.entry.js → p-044f8d03.entry.js} +2 -2
- package/dist/calcite/{p-57518b2c.entry.js → p-04bfc3db.entry.js} +2 -2
- package/dist/calcite/{p-843f32cb.system.entry.js → p-052c7ca4.system.entry.js} +2 -2
- package/dist/calcite/{p-236df5dc.system.entry.js → p-05a85116.system.entry.js} +2 -2
- package/dist/calcite/{p-796eae33.system.entry.js → p-05d0db6c.system.entry.js} +2 -2
- package/dist/calcite/{p-fed97308.system.entry.js → p-07433ca7.system.entry.js} +2 -2
- package/dist/calcite/{p-284bd0f9.entry.js → p-07a3e9ea.entry.js} +2 -2
- package/dist/calcite/p-0bf41941.system.entry.js +6 -0
- package/dist/calcite/{p-33b52921.entry.js → p-0d842738.entry.js} +2 -2
- package/dist/calcite/{p-5e059da1.system.entry.js → p-0fb0bd6e.system.entry.js} +2 -2
- package/dist/calcite/{p-2878d8ea.system.entry.js → p-10c48cac.system.entry.js} +2 -2
- package/dist/calcite/{p-7e88e90e.entry.js → p-11d898b6.entry.js} +2 -2
- package/dist/calcite/{p-6ccd08a2.entry.js → p-12282a94.entry.js} +2 -2
- package/dist/calcite/{p-bab9b04d.entry.js → p-139b20b1.entry.js} +2 -2
- package/dist/calcite/{p-97250489.entry.js → p-13d2a093.entry.js} +2 -2
- package/dist/calcite/{p-c4d6600e.system.entry.js → p-13de86fa.system.entry.js} +2 -2
- package/dist/calcite/{p-9081a999.js → p-17a3bf1b.js} +2 -2
- package/dist/calcite/p-19a8ec4a.entry.js +6 -0
- package/dist/calcite/{p-d2bee20b.system.entry.js → p-1c01b808.system.entry.js} +2 -2
- package/dist/calcite/p-1ea493af.system.entry.js +6 -0
- package/dist/calcite/{p-bed4ca2d.system.js → p-20d101a7.system.js} +1 -1
- package/dist/calcite/{p-45fad0a6.js → p-2627da2a.js} +1 -1
- package/dist/calcite/{p-455a09fa.entry.js → p-2a0225aa.entry.js} +2 -2
- package/dist/calcite/{p-282779ab.js → p-2a344d73.js} +2 -2
- package/dist/calcite/{p-83a1a1a0.system.js → p-2c0209e1.system.js} +2 -2
- package/dist/calcite/{p-21ffd209.system.entry.js → p-31bacf1e.system.entry.js} +2 -2
- package/dist/calcite/{p-1d246a53.system.entry.js → p-32921ddc.system.entry.js} +2 -2
- package/dist/calcite/{p-fa3d3f2e.js → p-3313304b.js} +1 -1
- package/dist/calcite/{p-4fa871b3.entry.js → p-353dd973.entry.js} +2 -2
- package/dist/calcite/{p-4b4d9aed.system.entry.js → p-3588b370.system.entry.js} +2 -2
- package/dist/calcite/{p-f55e50a1.js → p-3723d05c.js} +1 -1
- package/dist/calcite/{p-a4da909d.entry.js → p-3845f9d3.entry.js} +2 -2
- package/dist/calcite/{p-4120d714.entry.js → p-38a545d4.entry.js} +2 -2
- package/dist/calcite/{p-82421662.system.entry.js → p-3b1a7e3a.system.entry.js} +2 -2
- package/dist/calcite/{p-c2fcfe6e.js → p-3cbd63e6.js} +2 -2
- package/dist/calcite/{p-df7de081.js → p-3d457897.js} +2 -2
- package/dist/calcite/{p-e7557189.system.js → p-3eac44dd.system.js} +2 -2
- package/dist/calcite/{p-6c93db81.system.entry.js → p-3f35b82f.system.entry.js} +2 -2
- package/dist/calcite/{p-b8ac5258.system.js → p-42a9b7ab.system.js} +1 -1
- package/dist/calcite/{p-7e30641a.system.entry.js → p-435d9ec4.system.entry.js} +2 -2
- package/dist/calcite/{p-af6b3d2c.system.entry.js → p-43b5899f.system.entry.js} +2 -2
- package/dist/calcite/{p-968e8e9e.entry.js → p-456cfe88.entry.js} +2 -2
- package/dist/calcite/{p-1cbae146.entry.js → p-46e5af54.entry.js} +2 -2
- package/dist/calcite/{p-f3df7ed6.js → p-473ebae9.js} +1 -1
- package/dist/calcite/{p-d85a8a30.entry.js → p-49451999.entry.js} +2 -2
- package/dist/calcite/{p-0f119bf9.entry.js → p-4b5e0440.entry.js} +2 -2
- package/dist/calcite/{p-5982c91c.system.js → p-4b75a880.system.js} +1 -1
- package/dist/calcite/{p-7b352412.system.entry.js → p-4c823e2a.system.entry.js} +2 -2
- package/dist/calcite/{p-a650a5e5.system.entry.js → p-4f18b423.system.entry.js} +2 -2
- package/dist/calcite/{p-584cba98.entry.js → p-4f3bc202.entry.js} +2 -2
- package/dist/calcite/{p-5f55efba.js → p-51795827.js} +2 -2
- package/dist/calcite/{p-31537880.js → p-532bc4a9.js} +1 -1
- package/dist/calcite/{p-98389052.system.entry.js → p-54f32e44.system.entry.js} +2 -2
- package/dist/calcite/{p-8bcd756d.entry.js → p-55aabe3e.entry.js} +2 -2
- package/dist/calcite/p-5653de4a.entry.js +6 -0
- package/dist/calcite/{p-5047a1a5.system.entry.js → p-56744044.system.entry.js} +2 -2
- package/dist/calcite/{p-5b4d4cf9.entry.js → p-571d25a5.entry.js} +2 -2
- package/dist/calcite/{p-782aa3a2.entry.js → p-57816943.entry.js} +2 -2
- package/dist/calcite/{p-4cec4a18.entry.js → p-586b8e41.entry.js} +2 -2
- package/dist/calcite/{p-988abea8.system.js → p-5a589eee.system.js} +1 -1
- package/dist/calcite/{p-6243deb7.system.js → p-5d3d341b.system.js} +2 -2
- package/dist/calcite/{p-430013af.system.entry.js → p-5df2b54a.system.entry.js} +3 -3
- package/dist/calcite/{p-2ed089c9.system.entry.js → p-5e8f463c.system.entry.js} +2 -2
- package/dist/calcite/{p-7959e391.entry.js → p-5fbf34b5.entry.js} +2 -2
- package/dist/calcite/{p-e826221d.js → p-60e376e3.js} +1 -1
- package/dist/calcite/{p-96b98b6d.system.entry.js → p-61108ef4.system.entry.js} +2 -2
- package/dist/calcite/{p-6bce0861.entry.js → p-619985e8.entry.js} +2 -2
- package/dist/calcite/{p-d14f54a8.system.entry.js → p-62738405.system.entry.js} +2 -2
- package/dist/calcite/{p-181e8d7e.system.entry.js → p-63cdcb42.system.entry.js} +2 -2
- package/dist/calcite/{p-cb36c8af.system.entry.js → p-64ec63b7.system.entry.js} +2 -2
- package/dist/calcite/{p-7f16c375.entry.js → p-67a5f43a.entry.js} +2 -2
- package/dist/calcite/{p-06e61757.js → p-68fa2a3d.js} +2 -2
- package/dist/calcite/{p-0264a02d.system.entry.js → p-692272f1.system.entry.js} +2 -2
- package/dist/calcite/{p-04b8ad5f.entry.js → p-698fecd1.entry.js} +2 -2
- package/dist/calcite/{p-4766e16c.js → p-6a3a7cde.js} +2 -2
- package/dist/calcite/{p-0d9247a1.system.entry.js → p-6a692ca2.system.entry.js} +2 -2
- package/dist/calcite/{p-24c6115f.system.entry.js → p-6de47b9b.system.entry.js} +2 -2
- package/dist/calcite/p-73b9e981.system.js +6 -0
- package/dist/calcite/{p-a576ac8b.entry.js → p-73f742cb.entry.js} +2 -2
- package/dist/calcite/{p-15849a19.entry.js → p-7584d20d.entry.js} +2 -2
- package/dist/calcite/{p-c3ffab5f.system.entry.js → p-760e789e.system.entry.js} +2 -2
- package/dist/calcite/{p-139be3ba.system.js → p-79c9fdc0.system.js} +1 -1
- package/dist/calcite/{p-cb4240bf.system.entry.js → p-7e45977d.system.entry.js} +2 -2
- package/dist/calcite/{p-7f4e44dd.js → p-7e9f2464.js} +2 -2
- package/dist/calcite/{p-a7890af0.js → p-7ff206f8.js} +1 -1
- package/dist/calcite/{p-56119945.system.entry.js → p-83222866.system.entry.js} +2 -2
- package/dist/calcite/p-8497f2d0.entry.js +6 -0
- package/dist/calcite/{p-e2efbb3f.system.js → p-84e31e94.system.js} +2 -2
- package/dist/calcite/{p-8aea3e1d.js → p-868a4650.js} +1 -1
- package/dist/calcite/{p-65e42525.entry.js → p-86dd3fc3.entry.js} +2 -2
- package/dist/calcite/{p-cf694620.system.entry.js → p-872343d3.system.entry.js} +2 -2
- package/dist/calcite/{p-69bf90b4.system.entry.js → p-8ab8c580.system.entry.js} +2 -2
- package/dist/calcite/{p-4d21107f.system.entry.js → p-8bae58be.system.entry.js} +2 -2
- package/dist/calcite/{p-7723d0e4.js → p-8e5dc763.js} +1 -1
- package/dist/calcite/{p-23300b5b.system.entry.js → p-932d2dec.system.entry.js} +2 -2
- package/dist/calcite/{p-1f594421.js → p-95615797.js} +1 -1
- package/dist/calcite/{p-eb851d93.system.js → p-96509355.system.js} +2 -2
- package/dist/calcite/{p-2b81ac15.system.js → p-98432edd.system.js} +2 -2
- package/dist/calcite/{p-f6f0ef1a.entry.js → p-98461518.entry.js} +2 -2
- package/dist/calcite/p-9a1b659c.js +6 -0
- package/dist/calcite/{p-09f997de.system.entry.js → p-9abd0076.system.entry.js} +2 -2
- package/dist/calcite/{p-bf24af9f.system.js → p-9c86b0bc.system.js} +1 -1
- package/dist/calcite/{p-3aa49808.system.entry.js → p-9cdb888a.system.entry.js} +2 -2
- package/dist/calcite/{p-85433ab6.system.js → p-9d9ce173.system.js} +1 -1
- package/dist/calcite/{p-97d19a09.system.entry.js → p-9db2d5ae.system.entry.js} +2 -2
- package/dist/calcite/{p-2176944c.entry.js → p-9e401f07.entry.js} +2 -2
- package/dist/calcite/{p-06dd5021.js → p-9e72f903.js} +1 -1
- package/dist/calcite/{p-1bcde645.entry.js → p-9f46f6f0.entry.js} +2 -2
- package/dist/calcite/{p-a60e844d.entry.js → p-a031a036.entry.js} +2 -2
- package/dist/calcite/p-a26611cb.js +6 -0
- package/dist/calcite/{p-d80d6bd7.system.entry.js → p-a37c659e.system.entry.js} +2 -2
- package/dist/calcite/{p-50fbd196.entry.js → p-a8b8546b.entry.js} +2 -2
- package/dist/calcite/{p-c55e0d3d.system.entry.js → p-a8c4ad47.system.entry.js} +2 -2
- package/dist/calcite/{p-aa4ff8b3.system.entry.js → p-aa38fb8d.system.entry.js} +2 -2
- package/dist/calcite/{p-6741f1d0.system.js → p-aa64c590.system.js} +1 -1
- package/dist/calcite/{p-fcdd43d8.system.entry.js → p-af33b2fb.system.entry.js} +2 -2
- package/dist/calcite/{p-b4afd568.system.entry.js → p-af5cdbf9.system.entry.js} +3 -3
- package/dist/calcite/p-b02484e6.system.entry.js +6 -0
- package/dist/calcite/p-b549d77e.entry.js +6 -0
- package/dist/calcite/p-b7df98e7.entry.js +6 -0
- package/dist/calcite/{p-ad3541d1.system.js → p-bb686895.system.js} +1 -1
- package/dist/calcite/{p-1a483fcc.system.entry.js → p-bb6f1045.system.entry.js} +2 -2
- package/dist/calcite/{p-86e847b0.system.entry.js → p-bd9cd4a0.system.entry.js} +2 -2
- package/dist/calcite/p-c07115bb.entry.js +6 -0
- package/dist/calcite/p-c0bf1d56.system.entry.js +6 -0
- package/dist/calcite/{p-c8952d69.entry.js → p-c21838e6.entry.js} +2 -2
- package/dist/calcite/{p-5acdd99e.system.entry.js → p-c3d15e2f.system.entry.js} +2 -2
- package/dist/calcite/{p-3ea3cc27.entry.js → p-c5884c95.entry.js} +2 -2
- package/dist/calcite/{p-be057631.js → p-c5d63567.js} +1 -1
- package/dist/calcite/{p-3407f93a.entry.js → p-c61ec448.entry.js} +2 -2
- package/dist/calcite/{p-1fc4d3b7.system.entry.js → p-c61f5dc3.system.entry.js} +2 -2
- package/dist/calcite/{p-9b9ab3be.system.js → p-c9d9a61e.system.js} +2 -2
- package/dist/calcite/{p-7147160a.entry.js → p-ca62bed1.entry.js} +2 -2
- package/dist/calcite/{p-1d8cb69f.entry.js → p-cb58b1ed.entry.js} +2 -2
- package/dist/calcite/{p-9eafb72e.entry.js → p-cfb24db3.entry.js} +2 -2
- package/dist/calcite/p-cfda9102.entry.js +6 -0
- package/dist/calcite/{p-5a31353b.system.entry.js → p-d01f7bc3.system.entry.js} +2 -2
- package/dist/calcite/{p-825fe8c3.system.js → p-d03a4957.system.js} +2 -2
- package/dist/calcite/{p-152cd873.system.js → p-d1e9b864.system.js} +2 -2
- package/dist/calcite/{p-22eade13.entry.js → p-d2e102a3.entry.js} +2 -2
- package/dist/calcite/{p-892a91af.entry.js → p-d7333730.entry.js} +2 -2
- package/dist/calcite/{p-e9325ead.system.js → p-d7d26326.system.js} +1 -1
- package/dist/calcite/{p-297f9e1d.js → p-d9ad0d82.js} +2 -2
- package/dist/calcite/{p-41ece470.entry.js → p-da800aa7.entry.js} +2 -2
- package/dist/calcite/{p-1255d678.system.entry.js → p-db44c872.system.entry.js} +2 -2
- package/dist/calcite/{p-fd33a805.entry.js → p-db5bf7fa.entry.js} +2 -2
- package/dist/calcite/{p-a938cd5c.entry.js → p-db5d3424.entry.js} +2 -2
- package/dist/calcite/{p-3b051d3e.system.js → p-dfe38878.system.js} +1 -1
- package/dist/calcite/{p-668344b9.js → p-e47b720a.js} +1 -1
- package/dist/calcite/{p-b5e9d382.system.entry.js → p-e5f91ab3.system.entry.js} +2 -2
- package/dist/calcite/{p-3faf664a.entry.js → p-eaab1de4.entry.js} +2 -2
- package/dist/calcite/{p-a47affe1.system.entry.js → p-ebb335de.system.entry.js} +2 -2
- package/dist/calcite/{p-940c72de.system.entry.js → p-ebbd9f33.system.entry.js} +2 -2
- package/dist/calcite/{p-a5a20085.system.entry.js → p-ec29aa02.system.entry.js} +2 -2
- package/dist/calcite/{p-b16b6419.system.js → p-ed28e60b.system.js} +1 -1
- package/dist/calcite/{p-f2ebaed2.entry.js → p-ed329bfc.entry.js} +2 -2
- package/dist/calcite/{p-3091c9bd.entry.js → p-ee0cf44d.entry.js} +2 -2
- package/dist/calcite/{p-03a46980.system.js → p-ee7131fb.system.js} +2 -2
- package/dist/calcite/{p-8f527752.system.entry.js → p-f574d6c3.system.entry.js} +2 -2
- package/dist/calcite/{p-cbd07d72.system.js → p-f65141bc.system.js} +1 -1
- package/dist/calcite/{p-78e4cdf3.entry.js → p-f8614769.entry.js} +2 -2
- package/dist/calcite/{p-d422d2ca.entry.js → p-f9bf1673.entry.js} +2 -2
- package/dist/calcite/{p-98b5a5fb.system.entry.js → p-fbb88da9.system.entry.js} +2 -2
- package/dist/calcite/{p-a407cfff.system.js → p-fbf5744b.system.js} +3 -3
- package/dist/calcite/{p-36932349.entry.js → p-fc59b5bf.entry.js} +2 -2
- package/dist/calcite/{p-d13e65c2.entry.js → p-fd10dc0d.entry.js} +2 -2
- package/dist/calcite/{p-39888238.system.js → p-ff2d5911.system.js} +1 -1
- package/dist/cjs/{ExpandToggle-bdbadf09.js → ExpandToggle-c7d4af52.js} +5 -5
- package/dist/cjs/{Heading-69bc15ec.js → Heading-beaacc00.js} +2 -2
- package/dist/cjs/{array-4af50c1d.js → array-72fe7eec.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +31 -16
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +39 -36
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +56 -46
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-text.cjs.entry.js +330 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input.cjs.entry.js +11 -11
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +12 -12
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-61ae8128.js → conditionalSlot-b8a33b91.js} +3 -3
- package/dist/cjs/{debounce-17d75cb0.js → debounce-e4d93984.js} +1 -1
- package/dist/cjs/{dom-7a972f83.js → dom-6e56f2dc.js} +2 -2
- package/dist/cjs/{filter-c44b5955.js → filter-014c9a9e.js} +2 -2
- package/dist/cjs/{floating-ui-b254038e.js → floating-ui-5841fd96.js} +2 -2
- package/dist/cjs/{form-351a39d4.js → form-1e353995.js} +3 -3
- package/dist/cjs/{guid-44753eac.js → guid-c51c9e0a.js} +1 -1
- package/dist/cjs/{index-ddace81d.js → index-8528542e.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-7f751988.js → interactive-9f1f58c7.js} +1 -1
- package/dist/cjs/{interfaces-77d43ebc.js → interfaces-386bcae6.js} +1 -1
- package/dist/cjs/{key-c005f343.js → key-c8de60bc.js} +1 -1
- package/dist/cjs/{label-66c5161f.js → label-01c65314.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-47b632ed.js → locale-bbad01f3.js} +2 -2
- package/dist/cjs/{math-f1ed3643.js → math-91308f73.js} +1 -1
- package/dist/cjs/{observers-d1ad3104.js → observers-c5c8b954.js} +1 -1
- package/dist/cjs/{resources-5cd47627.js → resources-0e5865e4.js} +1 -1
- package/dist/cjs/{resources-7e94d682.js → resources-2ae63728.js} +1 -1
- package/dist/cjs/{resources-67b8eec0.js → resources-34d97c02.js} +3 -3
- package/dist/cjs/{resources-c9745971.js → resources-c804d2f4.js} +5 -5
- package/dist/cjs/{sortable.esm-b46da72b.js → sortable.esm-a49cb8f3.js} +1 -1
- package/dist/cjs/{utils-17889040.js → utils-60ab928d.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/interfaces.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 +5 -5
- 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.css +4 -4
- package/dist/collection/components/alert/alert.js +51 -13
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/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/interfaces.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/interfaces.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/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/interfaces.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.css +1 -1
- package/dist/collection/components/combobox/combobox.js +27 -24
- package/dist/collection/components/combobox/interfaces.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/assets/date-picker/nls/pt-PT.json +1 -0
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.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.css +2 -4
- package/dist/collection/components/dropdown/dropdown.js +51 -41
- package/dist/collection/components/dropdown/interfaces.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/interfaces.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/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.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/interfaces.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/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +400 -0
- package/dist/collection/components/input-text/input-text.js +899 -0
- package/dist/collection/components/input-text/resources.js +24 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +7 -7
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +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/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.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/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.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/interfaces.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-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.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/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +4 -4
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +28 -12
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +28 -25
- 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.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.d.ts +11 -0
- package/dist/components/calcite-input-text.js +382 -0
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +7 -7
- 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-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.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-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +50 -40
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +695 -351
- package/dist/esm/{ExpandToggle-5c167d0d.js → ExpandToggle-67645610.js} +5 -5
- package/dist/esm/{Heading-6d97deff.js → Heading-737b65aa.js} +2 -2
- package/dist/esm/{array-d68030d1.js → array-b1e2e9f6.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +10 -10
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +31 -16
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +39 -36
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +56 -46
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +11 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-text.entry.js +326 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +9 -9
- package/dist/esm/calcite-input.entry.js +11 -11
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +12 -12
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +8 -8
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +5 -5
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +11 -11
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-8f5261b8.js → conditionalSlot-a4bcb2e5.js} +3 -3
- package/dist/esm/{debounce-d9ca21e6.js → debounce-b50abb2c.js} +1 -1
- package/dist/esm/{dom-436db30d.js → dom-139271e6.js} +2 -2
- package/dist/esm/{filter-ea2019f5.js → filter-a31a2719.js} +2 -2
- package/dist/esm/{floating-ui-d35ae879.js → floating-ui-658b26b6.js} +2 -2
- package/dist/esm/{form-9e4ad205.js → form-b0de5da5.js} +3 -3
- package/dist/esm/{guid-aa232e06.js → guid-2813141a.js} +1 -1
- package/dist/esm/{index-15d8b691.js → index-be95829d.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-877546cb.js → interactive-9e0c5500.js} +1 -1
- package/dist/esm/{interfaces-4d091984.js → interfaces-9aa1c0a3.js} +1 -1
- package/dist/esm/{key-327406fd.js → key-a1781b69.js} +1 -1
- package/dist/esm/{label-0dfb8331.js → label-5ed15495.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-fdc3373c.js → locale-1edde620.js} +2 -2
- package/dist/esm/{math-614ab246.js → math-e073081a.js} +1 -1
- package/dist/esm/{observers-a928db96.js → observers-ea7a7d2a.js} +1 -1
- package/dist/esm/{resources-6ebd7149.js → resources-1af974cb.js} +3 -3
- package/dist/esm/{resources-ebbd1852.js → resources-5b37148c.js} +5 -5
- package/dist/esm/{resources-6deceede.js → resources-7f7afb1c.js} +1 -1
- package/dist/esm/{resources-e2b96c6a.js → resources-e67739c8.js} +1 -1
- package/dist/esm/{sortable.esm-0ad2680c.js → sortable.esm-2a8d0995.js} +1 -1
- package/dist/esm/{utils-4707c83f.js → utils-4c8a9955.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-5c167d0d.js → ExpandToggle-67645610.js} +2 -2
- package/dist/esm-es5/Heading-737b65aa.js +6 -0
- package/dist/esm-es5/{array-d68030d1.js → array-b1e2e9f6.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +3 -3
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +3 -3
- package/dist/esm-es5/calcite-input-text.entry.js +6 -0
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-8f5261b8.js → conditionalSlot-a4bcb2e5.js} +2 -2
- package/dist/esm-es5/{debounce-d9ca21e6.js → debounce-b50abb2c.js} +1 -1
- package/dist/esm-es5/{dom-436db30d.js → dom-139271e6.js} +2 -2
- package/dist/esm-es5/{filter-ea2019f5.js → filter-a31a2719.js} +2 -2
- package/dist/esm-es5/{floating-ui-d35ae879.js → floating-ui-658b26b6.js} +2 -2
- package/dist/esm-es5/{form-9e4ad205.js → form-b0de5da5.js} +2 -2
- package/dist/esm-es5/{guid-aa232e06.js → guid-2813141a.js} +1 -1
- package/dist/esm-es5/{index-15d8b691.js → index-be95829d.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-877546cb.js → interactive-9e0c5500.js} +1 -1
- package/dist/esm-es5/{interfaces-4d091984.js → interfaces-9aa1c0a3.js} +1 -1
- package/dist/esm-es5/{key-327406fd.js → key-a1781b69.js} +1 -1
- package/dist/esm-es5/{label-0dfb8331.js → label-5ed15495.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-fdc3373c.js → locale-1edde620.js} +2 -2
- package/dist/esm-es5/{math-614ab246.js → math-e073081a.js} +1 -1
- package/dist/esm-es5/{observers-a928db96.js → observers-ea7a7d2a.js} +1 -1
- package/dist/esm-es5/{resources-6ebd7149.js → resources-1af974cb.js} +2 -2
- package/dist/esm-es5/{resources-ebbd1852.js → resources-5b37148c.js} +2 -2
- package/dist/esm-es5/{resources-6deceede.js → resources-7f7afb1c.js} +1 -1
- package/dist/esm-es5/{resources-e2b96c6a.js → resources-e67739c8.js} +1 -1
- package/dist/esm-es5/{sortable.esm-0ad2680c.js → sortable.esm-2a8d0995.js} +1 -1
- package/dist/esm-es5/{utils-4707c83f.js → utils-4c8a9955.js} +1 -1
- package/dist/extras/docs-json.json +646 -99
- 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 +9 -2
- package/dist/types/components/combobox/combobox.d.ts +2 -1
- package/dist/types/components/dropdown/dropdown.d.ts +4 -1
- package/dist/types/components/input-text/input-text.d.ts +170 -0
- package/dist/types/components/input-text/resources.d.ts +19 -0
- package/dist/types/components.d.ts +244 -2
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +729 -350
- package/package.json +1 -1
- package/dist/calcite/p-03b347a5.system.entry.js +0 -6
- package/dist/calcite/p-111d2bdd.js +0 -6
- package/dist/calcite/p-1508458c.system.entry.js +0 -6
- package/dist/calcite/p-213e08e9.entry.js +0 -6
- package/dist/calcite/p-25c58362.entry.js +0 -6
- package/dist/calcite/p-266e1c0c.system.entry.js +0 -6
- package/dist/calcite/p-2c2e712b.entry.js +0 -6
- package/dist/calcite/p-6ad8511d.system.js +0 -6
- package/dist/calcite/p-6f19ed5c.entry.js +0 -6
- package/dist/calcite/p-71103ef1.js +0 -6
- package/dist/calcite/p-addeb3a3.entry.js +0 -6
- package/dist/calcite/p-ff06b9f4.entry.js +0 -6
- package/dist/esm-es5/Heading-6d97deff.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.543
|
|
5
5
|
*/
|
|
6
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Build, forceUpdate, Host, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -162,7 +162,7 @@ const CSS_UTILITY = {
|
|
|
162
162
|
lightTheme,
|
|
163
163
|
rtl: "calcite--rtl"
|
|
164
164
|
};
|
|
165
|
-
const TEXT$
|
|
165
|
+
const TEXT$u = {
|
|
166
166
|
loading: "Loading"
|
|
167
167
|
};
|
|
168
168
|
|
|
@@ -398,11 +398,11 @@ function processMutations$1(mutations) {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
const SLOTS$
|
|
401
|
+
const SLOTS$s = {
|
|
402
402
|
actionsStart: "actions-start",
|
|
403
403
|
actionsEnd: "actions-end"
|
|
404
404
|
};
|
|
405
|
-
const CSS$
|
|
405
|
+
const CSS$S = {
|
|
406
406
|
icon: "icon",
|
|
407
407
|
header: "header",
|
|
408
408
|
headerContent: "header-content",
|
|
@@ -484,25 +484,25 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
484
484
|
// --------------------------------------------------------------------------
|
|
485
485
|
renderActionsStart() {
|
|
486
486
|
const { el } = this;
|
|
487
|
-
return getSlotted(el, SLOTS$
|
|
487
|
+
return getSlotted(el, SLOTS$s.actionsStart) ? (h("div", { class: CSS$S.actionsStart }, h("slot", { name: SLOTS$s.actionsStart }))) : null;
|
|
488
488
|
}
|
|
489
489
|
renderActionsEnd() {
|
|
490
490
|
const { el } = this;
|
|
491
|
-
return getSlotted(el, SLOTS$
|
|
491
|
+
return getSlotted(el, SLOTS$s.actionsEnd) ? (h("div", { class: CSS$S.actionsEnd }, h("slot", { name: SLOTS$s.actionsEnd }))) : null;
|
|
492
492
|
}
|
|
493
493
|
render() {
|
|
494
494
|
const dir = getElementDir(this.el);
|
|
495
|
-
const iconEl = h("calcite-icon", { class: CSS$
|
|
495
|
+
const iconEl = h("calcite-icon", { class: CSS$S.icon, icon: this.icon, scale: "s" });
|
|
496
496
|
return (h(Host, null, h("div", { class: {
|
|
497
497
|
[`icon-position--${this.iconPosition}`]: true,
|
|
498
498
|
[`icon-type--${this.iconType}`]: true
|
|
499
|
-
} }, h("div", { class: { [CSS$
|
|
499
|
+
} }, h("div", { class: { [CSS$S.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), h("div", { "aria-expanded": toAriaBoolean(this.active || this.expanded), class: CSS$S.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, this.icon ? iconEl : null, h("div", { class: CSS$S.headerText }, h("span", { class: CSS$S.heading }, this.heading || this.itemTitle), this.itemSubtitle || this.description ? (h("span", { class: CSS$S.description }, this.description || this.itemSubtitle)) : null), h("calcite-icon", { class: CSS$S.expandIcon, icon: this.iconType === "chevron"
|
|
500
500
|
? "chevronDown"
|
|
501
501
|
: this.iconType === "caret"
|
|
502
502
|
? "caretDown"
|
|
503
503
|
: this.expanded || this.active
|
|
504
504
|
? "minus"
|
|
505
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$
|
|
505
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$S.content }, h("slot", null)))));
|
|
506
506
|
}
|
|
507
507
|
//--------------------------------------------------------------------------
|
|
508
508
|
//
|
|
@@ -575,7 +575,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
575
575
|
static get style() { return accordionItemCss; }
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
-
const CSS$
|
|
578
|
+
const CSS$R = {
|
|
579
579
|
button: "button",
|
|
580
580
|
buttonTextVisible: "button--text-visible",
|
|
581
581
|
buttonCompact: "button--compact",
|
|
@@ -585,7 +585,7 @@ const CSS$Q = {
|
|
|
585
585
|
textContainer: "text-container",
|
|
586
586
|
textContainerVisible: "text-container--visible"
|
|
587
587
|
};
|
|
588
|
-
const TEXT$
|
|
588
|
+
const TEXT$t = {
|
|
589
589
|
loading: "Loading"
|
|
590
590
|
};
|
|
591
591
|
|
|
@@ -665,7 +665,7 @@ const Action = class extends HTMLElement$1 {
|
|
|
665
665
|
*
|
|
666
666
|
* @default "Loading"
|
|
667
667
|
*/
|
|
668
|
-
this.intlLoading = TEXT$
|
|
668
|
+
this.intlLoading = TEXT$t.loading;
|
|
669
669
|
/**
|
|
670
670
|
* When true, a busy indicator is displayed.
|
|
671
671
|
*/
|
|
@@ -724,8 +724,8 @@ const Action = class extends HTMLElement$1 {
|
|
|
724
724
|
renderTextContainer() {
|
|
725
725
|
const { text, textEnabled } = this;
|
|
726
726
|
const textContainerClasses = {
|
|
727
|
-
[CSS$
|
|
728
|
-
[CSS$
|
|
727
|
+
[CSS$R.textContainer]: true,
|
|
728
|
+
[CSS$R.textContainerVisible]: textEnabled
|
|
729
729
|
};
|
|
730
730
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
731
731
|
}
|
|
@@ -739,18 +739,18 @@ const Action = class extends HTMLElement$1 {
|
|
|
739
739
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
740
740
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
741
741
|
const slotContainerNode = (h("div", { class: {
|
|
742
|
-
[CSS$
|
|
743
|
-
[CSS$
|
|
742
|
+
[CSS$R.slotContainer]: true,
|
|
743
|
+
[CSS$R.slotContainerHidden]: loading
|
|
744
744
|
} }, h("slot", null)));
|
|
745
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
745
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$R.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
746
746
|
}
|
|
747
747
|
render() {
|
|
748
748
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
749
749
|
const ariaLabel = label || text;
|
|
750
750
|
const buttonClasses = {
|
|
751
|
-
[CSS$
|
|
752
|
-
[CSS$
|
|
753
|
-
[CSS$
|
|
751
|
+
[CSS$R.button]: true,
|
|
752
|
+
[CSS$R.buttonTextVisible]: textEnabled,
|
|
753
|
+
[CSS$R.buttonCompact]: compact
|
|
754
754
|
};
|
|
755
755
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
756
756
|
}
|
|
@@ -758,11 +758,11 @@ const Action = class extends HTMLElement$1 {
|
|
|
758
758
|
static get style() { return actionCss; }
|
|
759
759
|
};
|
|
760
760
|
|
|
761
|
-
const CSS$
|
|
761
|
+
const CSS$Q = {
|
|
762
762
|
menu: "menu",
|
|
763
763
|
defaultTrigger: "default-trigger"
|
|
764
764
|
};
|
|
765
|
-
const SLOTS$
|
|
765
|
+
const SLOTS$r = {
|
|
766
766
|
tooltip: "tooltip",
|
|
767
767
|
trigger: "trigger"
|
|
768
768
|
};
|
|
@@ -770,11 +770,11 @@ const ICONS$f = {
|
|
|
770
770
|
menu: "ellipsis"
|
|
771
771
|
};
|
|
772
772
|
|
|
773
|
-
const SLOTS$
|
|
773
|
+
const SLOTS$q = {
|
|
774
774
|
menuActions: "menu-actions",
|
|
775
775
|
menuTooltip: "menu-tooltip"
|
|
776
776
|
};
|
|
777
|
-
const TEXT$
|
|
777
|
+
const TEXT$s = {
|
|
778
778
|
more: "More"
|
|
779
779
|
};
|
|
780
780
|
const ICONS$e = {
|
|
@@ -800,7 +800,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
800
800
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
801
801
|
};
|
|
802
802
|
const queryActions = (el) => {
|
|
803
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
803
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$r.trigger : true);
|
|
804
804
|
};
|
|
805
805
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
806
806
|
let needToSlotCount = overflowCount;
|
|
@@ -808,7 +808,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
808
808
|
let slottedWithinGroupCount = 0;
|
|
809
809
|
const groupActions = queryActions(group).reverse();
|
|
810
810
|
groupActions.forEach((groupAction) => {
|
|
811
|
-
if (groupAction.slot === SLOTS$
|
|
811
|
+
if (groupAction.slot === SLOTS$q.menuActions) {
|
|
812
812
|
groupAction.removeAttribute("slot");
|
|
813
813
|
groupAction.textEnabled = expanded;
|
|
814
814
|
}
|
|
@@ -818,7 +818,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
818
818
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
819
819
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
820
820
|
groupAction.textEnabled = true;
|
|
821
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
821
|
+
groupAction.setAttribute("slot", SLOTS$q.menuActions);
|
|
822
822
|
slottedWithinGroupCount++;
|
|
823
823
|
if (slottedWithinGroupCount > 1) {
|
|
824
824
|
needToSlotCount--;
|
|
@@ -841,7 +841,7 @@ function getCalcitePosition(position, el) {
|
|
|
841
841
|
}
|
|
842
842
|
function toggleChildActionText({ parent, expanded }) {
|
|
843
843
|
queryActions(parent)
|
|
844
|
-
.filter((el) => el.slot !== SLOTS$
|
|
844
|
+
.filter((el) => el.slot !== SLOTS$q.menuActions)
|
|
845
845
|
.forEach((action) => (action.textEnabled = expanded));
|
|
846
846
|
parent
|
|
847
847
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -870,14 +870,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
870
870
|
return actionNode;
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
-
const CSS$
|
|
873
|
+
const CSS$P = {
|
|
874
874
|
actionGroupBottom: "action-group--bottom"
|
|
875
875
|
};
|
|
876
|
-
const SLOTS$
|
|
876
|
+
const SLOTS$p = {
|
|
877
877
|
bottomActions: "bottom-actions",
|
|
878
878
|
expandTooltip: "expand-tooltip"
|
|
879
879
|
};
|
|
880
|
-
const TEXT$
|
|
880
|
+
const TEXT$r = {
|
|
881
881
|
expand: "Expand",
|
|
882
882
|
collapse: "Collapse"
|
|
883
883
|
};
|
|
@@ -2210,7 +2210,7 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2210
2210
|
const actions = queryActions(el);
|
|
2211
2211
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
2212
2212
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
2213
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
2213
|
+
const groupCount = getSlotted(el, SLOTS$p.bottomActions) || !expandDisabled
|
|
2214
2214
|
? actionGroups.length + 1
|
|
2215
2215
|
: actionGroups.length;
|
|
2216
2216
|
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
|
@@ -2312,11 +2312,11 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2312
2312
|
// --------------------------------------------------------------------------
|
|
2313
2313
|
renderBottomActionGroup() {
|
|
2314
2314
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2315
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2316
|
-
const expandLabel = intlExpand || TEXT$
|
|
2317
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2315
|
+
const tooltip = getSlotted(el, SLOTS$p.expandTooltip);
|
|
2316
|
+
const expandLabel = intlExpand || TEXT$r.expand;
|
|
2317
|
+
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
2318
2318
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2319
|
-
return getSlotted(el, SLOTS$
|
|
2319
|
+
return getSlotted(el, SLOTS$p.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$P.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$p.bottomActions }), h("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
2320
2320
|
}
|
|
2321
2321
|
render() {
|
|
2322
2322
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2384,13 +2384,13 @@ const ActionGroup = class extends HTMLElement$1 {
|
|
|
2384
2384
|
// --------------------------------------------------------------------------
|
|
2385
2385
|
renderTooltip() {
|
|
2386
2386
|
const { el } = this;
|
|
2387
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
2388
|
-
return hasTooltip ? h("slot", { name: SLOTS$
|
|
2387
|
+
const hasTooltip = getSlotted(el, SLOTS$q.menuTooltip);
|
|
2388
|
+
return hasTooltip ? h("slot", { name: SLOTS$q.menuTooltip, slot: SLOTS$r.tooltip }) : null;
|
|
2389
2389
|
}
|
|
2390
2390
|
renderMenu() {
|
|
2391
2391
|
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
|
2392
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
2393
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2392
|
+
const hasMenuItems = getSlotted(el, SLOTS$q.menuActions);
|
|
2393
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$s.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$r.trigger, text: intlMore || TEXT$s.more, textEnabled: expanded }), h("slot", { name: SLOTS$q.menuActions }), this.renderTooltip())) : null;
|
|
2394
2394
|
}
|
|
2395
2395
|
render() {
|
|
2396
2396
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2450,7 +2450,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2450
2450
|
// --------------------------------------------------------------------------
|
|
2451
2451
|
this.connectMenuButtonEl = () => {
|
|
2452
2452
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
2453
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
2453
|
+
const menuButtonEl = getSlotted(el, SLOTS$r.trigger) || this.defaultMenuButtonEl;
|
|
2454
2454
|
if (this.menuButtonEl === menuButtonEl) {
|
|
2455
2455
|
return;
|
|
2456
2456
|
}
|
|
@@ -2473,7 +2473,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2473
2473
|
if (!menuButtonEl.text) {
|
|
2474
2474
|
menuButtonEl.text = label;
|
|
2475
2475
|
}
|
|
2476
|
-
menuButtonEl.addEventListener("
|
|
2476
|
+
menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
|
|
2477
2477
|
menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
|
|
2478
2478
|
};
|
|
2479
2479
|
this.disconnectMenuButtonEl = () => {
|
|
@@ -2481,7 +2481,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2481
2481
|
if (!menuButtonEl) {
|
|
2482
2482
|
return;
|
|
2483
2483
|
}
|
|
2484
|
-
menuButtonEl.removeEventListener("
|
|
2484
|
+
menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
|
|
2485
2485
|
menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
|
|
2486
2486
|
};
|
|
2487
2487
|
this.setDefaultMenuButtonEl = (el) => {
|
|
@@ -2647,17 +2647,17 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2647
2647
|
}
|
|
2648
2648
|
renderMenuButton() {
|
|
2649
2649
|
const { label, scale, expanded } = this;
|
|
2650
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$
|
|
2650
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$r.trigger }, h("calcite-action", { class: CSS$Q.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
2651
2651
|
return menuButtonSlot;
|
|
2652
2652
|
}
|
|
2653
2653
|
renderMenuItems() {
|
|
2654
2654
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
2655
2655
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2656
2656
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2657
|
-
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2657
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$Q.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2658
2658
|
}
|
|
2659
2659
|
render() {
|
|
2660
|
-
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$
|
|
2660
|
+
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$r.tooltip, onSlotchange: this.updateTooltip })));
|
|
2661
2661
|
}
|
|
2662
2662
|
isValidKey(key, supportedKeys) {
|
|
2663
2663
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -2671,15 +2671,15 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2671
2671
|
static get style() { return actionMenuCss; }
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
2674
|
-
const CSS$
|
|
2674
|
+
const CSS$O = {
|
|
2675
2675
|
actionGroupBottom: "action-group--bottom",
|
|
2676
2676
|
container: "container"
|
|
2677
2677
|
};
|
|
2678
|
-
const TEXT$
|
|
2678
|
+
const TEXT$q = {
|
|
2679
2679
|
expand: "Expand",
|
|
2680
2680
|
collapse: "Collapse"
|
|
2681
2681
|
};
|
|
2682
|
-
const SLOTS$
|
|
2682
|
+
const SLOTS$o = {
|
|
2683
2683
|
expandTooltip: "expand-tooltip"
|
|
2684
2684
|
};
|
|
2685
2685
|
|
|
@@ -2774,14 +2774,14 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2774
2774
|
// --------------------------------------------------------------------------
|
|
2775
2775
|
renderBottomActionGroup() {
|
|
2776
2776
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2777
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2778
|
-
const expandLabel = intlExpand || TEXT$
|
|
2779
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2777
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
2778
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
2779
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
2780
2780
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2781
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2781
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$O.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
2782
2782
|
}
|
|
2783
2783
|
render() {
|
|
2784
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2784
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$O.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2785
2785
|
}
|
|
2786
2786
|
get el() { return this; }
|
|
2787
2787
|
static get watchers() { return {
|
|
@@ -2790,7 +2790,7 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2790
2790
|
static get style() { return actionPadCss; }
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
|
-
const TEXT$
|
|
2793
|
+
const TEXT$p = {
|
|
2794
2794
|
intlClose: "Close"
|
|
2795
2795
|
};
|
|
2796
2796
|
const DURATIONS = {
|
|
@@ -2798,7 +2798,7 @@ const DURATIONS = {
|
|
|
2798
2798
|
medium: 10000,
|
|
2799
2799
|
fast: 6000
|
|
2800
2800
|
};
|
|
2801
|
-
const SLOTS$
|
|
2801
|
+
const SLOTS$n = {
|
|
2802
2802
|
title: "title",
|
|
2803
2803
|
message: "message",
|
|
2804
2804
|
link: "link"
|
|
@@ -2812,7 +2812,7 @@ var StatusIcons;
|
|
|
2812
2812
|
StatusIcons["blue"] = "lightbulb";
|
|
2813
2813
|
})(StatusIcons || (StatusIcons = {}));
|
|
2814
2814
|
|
|
2815
|
-
const alertCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;margin-block:0px;margin-inline:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);-webkit-border-before:0px solid transparent;border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);-webkit-border-after:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([active]) .container:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([active]) .container:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}.alert-close{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:active{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;inset-inline:0px;display:block;inline-size:100%;overflow:hidden;inset-block-start:-2px;block-size:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}:host([color=blue]) .container{border-block-start-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-block-start-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
2815
|
+
const alertCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;margin-block:0px;margin-inline:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);-webkit-border-before:0px solid transparent;border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);-webkit-border-after:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([open]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([open]) .container:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}.alert-close{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:open{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;inset-inline:0px;display:block;inline-size:100%;overflow:hidden;inset-block-start:-2px;block-size:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}:host([color=blue]) .container{border-block-start-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-block-start-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
2816
2816
|
|
|
2817
2817
|
const Alert = class extends HTMLElement$1 {
|
|
2818
2818
|
constructor() {
|
|
@@ -2830,8 +2830,14 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2830
2830
|
// Properties
|
|
2831
2831
|
//
|
|
2832
2832
|
//---------------------------------------------------------------------------
|
|
2833
|
-
/**
|
|
2833
|
+
/**
|
|
2834
|
+
* When true, opens the combobox
|
|
2835
|
+
*
|
|
2836
|
+
* @deprecated use open instead
|
|
2837
|
+
*/
|
|
2834
2838
|
this.active = false;
|
|
2839
|
+
/** When true, opens the dropdown */
|
|
2840
|
+
this.open = false;
|
|
2835
2841
|
/** When true, the component closes automatically (recommended for passive, non-blocking alerts). */
|
|
2836
2842
|
this.autoDismiss = false;
|
|
2837
2843
|
/** Specifies the duration before the component automatically closes (only use with `autoDismiss`). */
|
|
@@ -2843,7 +2849,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2843
2849
|
*
|
|
2844
2850
|
* @default "Close"
|
|
2845
2851
|
*/
|
|
2846
|
-
this.intlClose = TEXT$
|
|
2852
|
+
this.intlClose = TEXT$p.intlClose;
|
|
2847
2853
|
/** Specifies the placement of the component */
|
|
2848
2854
|
this.placement = "bottom";
|
|
2849
2855
|
/** Specifies the size of the component. */
|
|
@@ -2870,29 +2876,34 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2870
2876
|
this.closeAlert = () => {
|
|
2871
2877
|
this.autoDismissTimeoutId = null;
|
|
2872
2878
|
this.queued = false;
|
|
2873
|
-
this.
|
|
2879
|
+
this.open = false;
|
|
2874
2880
|
this.queue = this.queue.filter((el) => el !== this.el);
|
|
2875
2881
|
this.determineActiveAlert();
|
|
2876
2882
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2877
2883
|
};
|
|
2878
2884
|
this.transitionStartHandler = (event) => {
|
|
2879
2885
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
2880
|
-
this.
|
|
2886
|
+
this.open ? this.onBeforeOpen() : this.onBeforeClose();
|
|
2881
2887
|
}
|
|
2882
2888
|
};
|
|
2883
2889
|
this.transitionEnd = (event) => {
|
|
2884
2890
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
2885
|
-
this.
|
|
2891
|
+
this.open ? this.onOpen() : this.onClose();
|
|
2886
2892
|
}
|
|
2887
2893
|
};
|
|
2888
2894
|
}
|
|
2889
|
-
|
|
2890
|
-
|
|
2895
|
+
activeHandler(value) {
|
|
2896
|
+
this.open = value;
|
|
2897
|
+
}
|
|
2898
|
+
openHandler(value) {
|
|
2899
|
+
if (this.open && !this.queued) {
|
|
2891
2900
|
this.calciteInternalAlertRegister.emit();
|
|
2901
|
+
this.active = value;
|
|
2892
2902
|
}
|
|
2893
|
-
if (!this.
|
|
2903
|
+
if (!this.open) {
|
|
2894
2904
|
this.queue = this.queue.filter((el) => el !== this.el);
|
|
2895
2905
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2906
|
+
this.active = false;
|
|
2896
2907
|
}
|
|
2897
2908
|
}
|
|
2898
2909
|
updateRequestedIcon() {
|
|
@@ -2910,7 +2921,10 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2910
2921
|
//
|
|
2911
2922
|
//--------------------------------------------------------------------------
|
|
2912
2923
|
connectedCallback() {
|
|
2913
|
-
|
|
2924
|
+
const open = this.open || this.active;
|
|
2925
|
+
if (open && !this.queued) {
|
|
2926
|
+
this.activeHandler(open);
|
|
2927
|
+
this.openHandler(open);
|
|
2914
2928
|
this.calciteInternalAlertRegister.emit();
|
|
2915
2929
|
}
|
|
2916
2930
|
}
|
|
@@ -2933,7 +2947,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2933
2947
|
container: true,
|
|
2934
2948
|
queued,
|
|
2935
2949
|
[placement]: true
|
|
2936
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$
|
|
2950
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$n.title }), h("slot", { name: SLOTS$n.message }), h("slot", { name: SLOTS$n.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2937
2951
|
}
|
|
2938
2952
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2939
2953
|
alertSync(event) {
|
|
@@ -2946,7 +2960,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2946
2960
|
}
|
|
2947
2961
|
// when an alert is first registered, trigger a queue sync
|
|
2948
2962
|
alertRegister() {
|
|
2949
|
-
if (this.
|
|
2963
|
+
if (this.open && !this.queue.includes(this.el)) {
|
|
2950
2964
|
this.queued = true;
|
|
2951
2965
|
this.queue.push(this.el);
|
|
2952
2966
|
}
|
|
@@ -3009,7 +3023,8 @@ const Alert = class extends HTMLElement$1 {
|
|
|
3009
3023
|
}
|
|
3010
3024
|
get el() { return this; }
|
|
3011
3025
|
static get watchers() { return {
|
|
3012
|
-
"active": ["
|
|
3026
|
+
"active": ["activeHandler"],
|
|
3027
|
+
"open": ["openHandler"],
|
|
3013
3028
|
"icon": ["updateRequestedIcon"],
|
|
3014
3029
|
"color": ["updateRequestedIcon"],
|
|
3015
3030
|
"autoDismissDuration": ["updateDuration"]
|
|
@@ -3263,7 +3278,7 @@ const Avatar = class extends HTMLElement$1 {
|
|
|
3263
3278
|
static get style() { return avatarCss; }
|
|
3264
3279
|
};
|
|
3265
3280
|
|
|
3266
|
-
const CSS$
|
|
3281
|
+
const CSS$N = {
|
|
3267
3282
|
article: "article",
|
|
3268
3283
|
content: "content",
|
|
3269
3284
|
headerContainer: "header-container",
|
|
@@ -3282,13 +3297,13 @@ const CSS$M = {
|
|
|
3282
3297
|
invalid: "invalid",
|
|
3283
3298
|
loading: "loading"
|
|
3284
3299
|
};
|
|
3285
|
-
const TEXT$
|
|
3300
|
+
const TEXT$o = {
|
|
3286
3301
|
collapse: "Collapse",
|
|
3287
3302
|
expand: "Expand",
|
|
3288
3303
|
loading: "Loading",
|
|
3289
3304
|
options: "Options"
|
|
3290
3305
|
};
|
|
3291
|
-
const SLOTS$
|
|
3306
|
+
const SLOTS$m = {
|
|
3292
3307
|
icon: "icon",
|
|
3293
3308
|
control: "control",
|
|
3294
3309
|
headerMenuActions: "header-menu-actions"
|
|
@@ -3341,25 +3356,25 @@ const Block = class extends HTMLElement$1 {
|
|
|
3341
3356
|
*
|
|
3342
3357
|
* @default "Collapse"
|
|
3343
3358
|
*/
|
|
3344
|
-
this.intlCollapse = TEXT$
|
|
3359
|
+
this.intlCollapse = TEXT$o.collapse;
|
|
3345
3360
|
/**
|
|
3346
3361
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
3347
3362
|
*
|
|
3348
3363
|
* @default "Expand"
|
|
3349
3364
|
*/
|
|
3350
|
-
this.intlExpand = TEXT$
|
|
3365
|
+
this.intlExpand = TEXT$o.expand;
|
|
3351
3366
|
/**
|
|
3352
3367
|
* string to override English loading text
|
|
3353
3368
|
*
|
|
3354
3369
|
* @default "Loading"
|
|
3355
3370
|
*/
|
|
3356
|
-
this.intlLoading = TEXT$
|
|
3371
|
+
this.intlLoading = TEXT$o.loading;
|
|
3357
3372
|
/**
|
|
3358
3373
|
* Text string used for the actions menu
|
|
3359
3374
|
*
|
|
3360
3375
|
* @default "Options"
|
|
3361
3376
|
*/
|
|
3362
|
-
this.intlOptions = TEXT$
|
|
3377
|
+
this.intlOptions = TEXT$o.options;
|
|
3363
3378
|
/**
|
|
3364
3379
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3365
3380
|
*/
|
|
@@ -3418,32 +3433,32 @@ const Block = class extends HTMLElement$1 {
|
|
|
3418
3433
|
const { el, status } = this;
|
|
3419
3434
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3420
3435
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3421
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
3422
|
-
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$
|
|
3423
|
-
[CSS$
|
|
3424
|
-
[CSS$
|
|
3425
|
-
[CSS$
|
|
3426
|
-
[CSS$
|
|
3436
|
+
const hasIcon = getSlotted(el, SLOTS$m.icon) || statusIcon;
|
|
3437
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$m.icon })) : (h("calcite-icon", { class: {
|
|
3438
|
+
[CSS$N.statusIcon]: true,
|
|
3439
|
+
[CSS$N.valid]: status == "valid",
|
|
3440
|
+
[CSS$N.invalid]: status == "invalid",
|
|
3441
|
+
[CSS$N.loading]: showingLoadingStatus
|
|
3427
3442
|
}, icon: statusIcon, scale: "m" }));
|
|
3428
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3443
|
+
return hasIcon ? h("div", { class: CSS$N.icon }, iconEl) : null;
|
|
3429
3444
|
}
|
|
3430
3445
|
renderTitle() {
|
|
3431
3446
|
const { heading, headingLevel, summary, description } = this;
|
|
3432
|
-
return heading || summary || description ? (h("div", { class: CSS$
|
|
3447
|
+
return heading || summary || description ? (h("div", { class: CSS$N.title }, h(Heading, { class: CSS$N.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (h("div", { class: CSS$N.description }, summary || description)) : null)) : null;
|
|
3433
3448
|
}
|
|
3434
3449
|
render() {
|
|
3435
3450
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3436
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3437
|
-
const headerContent = (h("header", { class: CSS$
|
|
3438
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
3439
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
3451
|
+
const toggleLabel = open ? intlCollapse || TEXT$o.collapse : intlExpand || TEXT$o.expand;
|
|
3452
|
+
const headerContent = (h("header", { class: CSS$N.header }, this.renderIcon(), this.renderTitle()));
|
|
3453
|
+
const hasControl = !!getSlotted(el, SLOTS$m.control);
|
|
3454
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$m.headerMenuActions);
|
|
3440
3455
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3441
3456
|
const { guid } = this;
|
|
3442
3457
|
const regionId = `${guid}-region`;
|
|
3443
3458
|
const buttonId = `${guid}-button`;
|
|
3444
|
-
const headerNode = (h("div", { class: CSS$
|
|
3459
|
+
const headerNode = (h("div", { class: CSS$N.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$N.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$N.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$N.controlContainer }, h("slot", { name: SLOTS$m.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$o.options }, h("slot", { name: SLOTS$m.headerMenuActions }))) : null));
|
|
3445
3460
|
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3446
|
-
[CSS$
|
|
3461
|
+
[CSS$N.article]: true
|
|
3447
3462
|
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
3448
3463
|
content: true,
|
|
3449
3464
|
"content--spaced": !this.disablePadding
|
|
@@ -3453,7 +3468,7 @@ const Block = class extends HTMLElement$1 {
|
|
|
3453
3468
|
static get style() { return blockCss; }
|
|
3454
3469
|
};
|
|
3455
3470
|
|
|
3456
|
-
const CSS$
|
|
3471
|
+
const CSS$M = {
|
|
3457
3472
|
content: "content",
|
|
3458
3473
|
invalid: "invalid",
|
|
3459
3474
|
toggle: "toggle",
|
|
@@ -3465,7 +3480,7 @@ const CSS$L = {
|
|
|
3465
3480
|
statusIcon: "status-icon",
|
|
3466
3481
|
valid: "valid"
|
|
3467
3482
|
};
|
|
3468
|
-
const TEXT$
|
|
3483
|
+
const TEXT$n = {
|
|
3469
3484
|
collapse: "Collapse",
|
|
3470
3485
|
expand: "Expand"
|
|
3471
3486
|
};
|
|
@@ -3523,9 +3538,9 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3523
3538
|
const { status } = this;
|
|
3524
3539
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3525
3540
|
const statusIconClasses = {
|
|
3526
|
-
[CSS$
|
|
3527
|
-
[CSS$
|
|
3528
|
-
[CSS$
|
|
3541
|
+
[CSS$M.statusIcon]: true,
|
|
3542
|
+
[CSS$M.valid]: status == "valid",
|
|
3543
|
+
[CSS$M.invalid]: status == "invalid"
|
|
3529
3544
|
};
|
|
3530
3545
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3531
3546
|
}
|
|
@@ -3537,18 +3552,18 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3537
3552
|
: dir === "rtl"
|
|
3538
3553
|
? ICONS$b.menuClosedLeft
|
|
3539
3554
|
: ICONS$b.menuClosedRight;
|
|
3540
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3555
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
3541
3556
|
const { guid } = this;
|
|
3542
3557
|
const regionId = `${guid}-region`;
|
|
3543
3558
|
const buttonId = `${guid}-button`;
|
|
3544
3559
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3545
|
-
[CSS$
|
|
3546
|
-
[CSS$
|
|
3547
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3548
|
-
[CSS$
|
|
3549
|
-
[CSS$
|
|
3550
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3551
|
-
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
3560
|
+
[CSS$M.toggle]: true,
|
|
3561
|
+
[CSS$M.toggleSwitch]: true
|
|
3562
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$M.toggleSwitchContent }, h("span", { class: CSS$M.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3563
|
+
[CSS$M.sectionHeader]: true,
|
|
3564
|
+
[CSS$M.toggle]: true
|
|
3565
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$M.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3566
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$M.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
3552
3567
|
}
|
|
3553
3568
|
get el() { return this; }
|
|
3554
3569
|
static get style() { return blockSectionCss; }
|
|
@@ -3582,7 +3597,7 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3582
3597
|
}
|
|
3583
3598
|
})(HTMLFormElement.prototype);
|
|
3584
3599
|
|
|
3585
|
-
const CSS$
|
|
3600
|
+
const CSS$L = {
|
|
3586
3601
|
buttonLoader: "calcite-button--loader",
|
|
3587
3602
|
content: "content",
|
|
3588
3603
|
contentSlotted: "content--slotted",
|
|
@@ -3594,7 +3609,7 @@ const CSS$K = {
|
|
|
3594
3609
|
iconStartEmpty: "icon-start-empty",
|
|
3595
3610
|
iconEndEmpty: "icon-end-empty"
|
|
3596
3611
|
};
|
|
3597
|
-
const TEXT$
|
|
3612
|
+
const TEXT$m = {
|
|
3598
3613
|
loading: "Loading"
|
|
3599
3614
|
};
|
|
3600
3615
|
|
|
@@ -3941,7 +3956,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
3941
3956
|
*
|
|
3942
3957
|
* @default "Loading"
|
|
3943
3958
|
*/
|
|
3944
|
-
this.intlLoading = TEXT$
|
|
3959
|
+
this.intlLoading = TEXT$m.loading;
|
|
3945
3960
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3946
3961
|
this.loading = false;
|
|
3947
3962
|
/** optionally add a round style to the button */
|
|
@@ -4013,14 +4028,14 @@ const Button = class extends HTMLElement$1 {
|
|
|
4013
4028
|
render() {
|
|
4014
4029
|
const childElType = this.href ? "a" : "button";
|
|
4015
4030
|
const Tag = childElType;
|
|
4016
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
4017
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
4018
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
4019
|
-
const contentEl = (h("span", { class: CSS$
|
|
4031
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$L.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$L.loadingIn : CSS$L.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
4032
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
4033
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
4034
|
+
const contentEl = (h("span", { class: CSS$L.content }, h("slot", null)));
|
|
4020
4035
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
4021
|
-
[CSS$
|
|
4022
|
-
[CSS$
|
|
4023
|
-
[CSS$
|
|
4036
|
+
[CSS$L.contentSlotted]: this.hasContent,
|
|
4037
|
+
[CSS$L.iconStartEmpty]: !this.iconStart,
|
|
4038
|
+
[CSS$L.iconEndEmpty]: !this.iconEnd
|
|
4024
4039
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
4025
4040
|
}
|
|
4026
4041
|
//--------------------------------------------------------------------------
|
|
@@ -4061,7 +4076,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
4061
4076
|
static get style() { return buttonCss; }
|
|
4062
4077
|
};
|
|
4063
4078
|
|
|
4064
|
-
const CSS$
|
|
4079
|
+
const CSS$K = {
|
|
4065
4080
|
container: "container",
|
|
4066
4081
|
header: "header",
|
|
4067
4082
|
footer: "footer",
|
|
@@ -4070,14 +4085,14 @@ const CSS$J = {
|
|
|
4070
4085
|
checkboxWrapper: "checkbox-wrapper",
|
|
4071
4086
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
4072
4087
|
};
|
|
4073
|
-
const SLOTS$
|
|
4088
|
+
const SLOTS$l = {
|
|
4074
4089
|
thumbnail: "thumbnail",
|
|
4075
4090
|
title: "title",
|
|
4076
4091
|
subtitle: "subtitle",
|
|
4077
4092
|
footerLeading: "footer-leading",
|
|
4078
4093
|
footerTrailing: "footer-trailing"
|
|
4079
4094
|
};
|
|
4080
|
-
const TEXT$
|
|
4095
|
+
const TEXT$l = {
|
|
4081
4096
|
select: "Select",
|
|
4082
4097
|
deselect: "Deselect",
|
|
4083
4098
|
loading: "Loading"
|
|
@@ -4107,19 +4122,19 @@ const Card = class extends HTMLElement$1 {
|
|
|
4107
4122
|
*
|
|
4108
4123
|
* @default "Loading"
|
|
4109
4124
|
*/
|
|
4110
|
-
this.intlLoading = TEXT$
|
|
4125
|
+
this.intlLoading = TEXT$l.loading;
|
|
4111
4126
|
/**
|
|
4112
4127
|
* string to override English select text for checkbox when selectable is true
|
|
4113
4128
|
*
|
|
4114
4129
|
* @default "Select"
|
|
4115
4130
|
*/
|
|
4116
|
-
this.intlSelect = TEXT$
|
|
4131
|
+
this.intlSelect = TEXT$l.select;
|
|
4117
4132
|
/**
|
|
4118
4133
|
* string to override English deselect text for checkbox when selectable is true
|
|
4119
4134
|
*
|
|
4120
4135
|
* @default "Deselect"
|
|
4121
4136
|
*/
|
|
4122
|
-
this.intlDeselect = TEXT$
|
|
4137
|
+
this.intlDeselect = TEXT$l.deselect;
|
|
4123
4138
|
this.thumbnailPosition = "block-start";
|
|
4124
4139
|
//--------------------------------------------------------------------------
|
|
4125
4140
|
//
|
|
@@ -4158,32 +4173,32 @@ const Card = class extends HTMLElement$1 {
|
|
|
4158
4173
|
render() {
|
|
4159
4174
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
4160
4175
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
4161
|
-
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
4176
|
+
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$K.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
4162
4177
|
}
|
|
4163
4178
|
selectCard() {
|
|
4164
4179
|
this.selected = !this.selected;
|
|
4165
4180
|
this.calciteCardSelect.emit();
|
|
4166
4181
|
}
|
|
4167
4182
|
renderThumbnail() {
|
|
4168
|
-
return getSlotted(this.el, SLOTS$
|
|
4183
|
+
return getSlotted(this.el, SLOTS$l.thumbnail) ? (h("section", { class: CSS$K.thumbnailWrapper }, h("slot", { name: SLOTS$l.thumbnail }))) : null;
|
|
4169
4184
|
}
|
|
4170
4185
|
renderCheckbox() {
|
|
4171
4186
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
4172
|
-
return (h("calcite-label", { class: CSS$
|
|
4187
|
+
return (h("calcite-label", { class: CSS$K.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
4173
4188
|
}
|
|
4174
4189
|
renderHeader() {
|
|
4175
4190
|
const { el } = this;
|
|
4176
|
-
const title = getSlotted(el, SLOTS$
|
|
4177
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
4191
|
+
const title = getSlotted(el, SLOTS$l.title);
|
|
4192
|
+
const subtitle = getSlotted(el, SLOTS$l.subtitle);
|
|
4178
4193
|
const hasHeader = title || subtitle;
|
|
4179
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
4194
|
+
return hasHeader ? (h("header", { class: CSS$K.header }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.subtitle }))) : null;
|
|
4180
4195
|
}
|
|
4181
4196
|
renderFooter() {
|
|
4182
4197
|
const { el } = this;
|
|
4183
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
4184
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
4198
|
+
const leadingFooter = getSlotted(el, SLOTS$l.footerLeading);
|
|
4199
|
+
const trailingFooter = getSlotted(el, SLOTS$l.footerTrailing);
|
|
4185
4200
|
const hasFooter = leadingFooter || trailingFooter;
|
|
4186
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
4201
|
+
return hasFooter ? (h("footer", { class: CSS$K.footer }, h("slot", { name: SLOTS$l.footerLeading }), h("slot", { name: SLOTS$l.footerTrailing }))) : null;
|
|
4187
4202
|
}
|
|
4188
4203
|
get el() { return this; }
|
|
4189
4204
|
static get style() { return cardCss; }
|
|
@@ -4312,17 +4327,17 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4312
4327
|
static get style() { return checkboxCss; }
|
|
4313
4328
|
};
|
|
4314
4329
|
|
|
4315
|
-
const CSS$
|
|
4330
|
+
const CSS$J = {
|
|
4316
4331
|
title: "title",
|
|
4317
4332
|
close: "close",
|
|
4318
4333
|
imageContainer: "image-container",
|
|
4319
4334
|
chipIcon: "chip-icon",
|
|
4320
4335
|
closeIcon: "close-icon"
|
|
4321
4336
|
};
|
|
4322
|
-
const TEXT$
|
|
4337
|
+
const TEXT$k = {
|
|
4323
4338
|
close: "Close"
|
|
4324
4339
|
};
|
|
4325
|
-
const SLOTS$
|
|
4340
|
+
const SLOTS$k = {
|
|
4326
4341
|
image: "image"
|
|
4327
4342
|
};
|
|
4328
4343
|
const ICONS$a = {
|
|
@@ -4359,7 +4374,7 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4359
4374
|
*
|
|
4360
4375
|
* @default "Close"
|
|
4361
4376
|
*/
|
|
4362
|
-
this.dismissLabel = TEXT$
|
|
4377
|
+
this.dismissLabel = TEXT$k.close;
|
|
4363
4378
|
/** flip the icon in rtl */
|
|
4364
4379
|
this.iconFlipRtl = false;
|
|
4365
4380
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4406,13 +4421,13 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4406
4421
|
//--------------------------------------------------------------------------
|
|
4407
4422
|
renderChipImage() {
|
|
4408
4423
|
const { el } = this;
|
|
4409
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
4410
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4424
|
+
const hasChipImage = getSlotted(el, SLOTS$k.image);
|
|
4425
|
+
return hasChipImage ? (h("div", { class: CSS$J.imageContainer, key: "image" }, h("slot", { name: SLOTS$k.image }))) : null;
|
|
4411
4426
|
}
|
|
4412
4427
|
render() {
|
|
4413
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4414
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4415
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4428
|
+
const iconEl = (h("calcite-icon", { class: CSS$J.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4429
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$J.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS$J.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
4430
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$J.title, id: this.guid }, h("slot", null)), this.closable || this.dismissible ? closeButton : null));
|
|
4416
4431
|
}
|
|
4417
4432
|
get el() { return this; }
|
|
4418
4433
|
static get style() { return chipCss; }
|
|
@@ -6528,7 +6543,7 @@ function zeroArray(array, length) {
|
|
|
6528
6543
|
|
|
6529
6544
|
var color = Color;
|
|
6530
6545
|
|
|
6531
|
-
const CSS$
|
|
6546
|
+
const CSS$I = {
|
|
6532
6547
|
container: "container",
|
|
6533
6548
|
controlSection: "control-section",
|
|
6534
6549
|
hexOptions: "color-hex-options",
|
|
@@ -6566,7 +6581,7 @@ const HSV_LIMITS = {
|
|
|
6566
6581
|
s: 100,
|
|
6567
6582
|
v: 100
|
|
6568
6583
|
};
|
|
6569
|
-
const TEXT$
|
|
6584
|
+
const TEXT$j = {
|
|
6570
6585
|
b: "B",
|
|
6571
6586
|
blue: "Blue",
|
|
6572
6587
|
deleteColor: "Delete color",
|
|
@@ -6696,115 +6711,115 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6696
6711
|
*
|
|
6697
6712
|
* @default "B"
|
|
6698
6713
|
*/
|
|
6699
|
-
this.intlB = TEXT$
|
|
6714
|
+
this.intlB = TEXT$j.b;
|
|
6700
6715
|
/**
|
|
6701
6716
|
* Label used for the blue channel description
|
|
6702
6717
|
*
|
|
6703
6718
|
* @default "Blue"
|
|
6704
6719
|
*/
|
|
6705
|
-
this.intlBlue = TEXT$
|
|
6720
|
+
this.intlBlue = TEXT$j.blue;
|
|
6706
6721
|
/**
|
|
6707
6722
|
* Label used for the delete color button.
|
|
6708
6723
|
*
|
|
6709
6724
|
* @default "Delete color"
|
|
6710
6725
|
*/
|
|
6711
|
-
this.intlDeleteColor = TEXT$
|
|
6726
|
+
this.intlDeleteColor = TEXT$j.deleteColor;
|
|
6712
6727
|
/**
|
|
6713
6728
|
* Label used for the green channel
|
|
6714
6729
|
*
|
|
6715
6730
|
* @default "G"
|
|
6716
6731
|
*/
|
|
6717
|
-
this.intlG = TEXT$
|
|
6732
|
+
this.intlG = TEXT$j.g;
|
|
6718
6733
|
/**
|
|
6719
6734
|
* Label used for the green channel description
|
|
6720
6735
|
*
|
|
6721
6736
|
* @default "Green"
|
|
6722
6737
|
*/
|
|
6723
|
-
this.intlGreen = TEXT$
|
|
6738
|
+
this.intlGreen = TEXT$j.green;
|
|
6724
6739
|
/**
|
|
6725
6740
|
* Label used for the hue channel
|
|
6726
6741
|
*
|
|
6727
6742
|
* @default "H"
|
|
6728
6743
|
*/
|
|
6729
|
-
this.intlH = TEXT$
|
|
6744
|
+
this.intlH = TEXT$j.h;
|
|
6730
6745
|
/**
|
|
6731
6746
|
* Label used for the HSV mode
|
|
6732
6747
|
*
|
|
6733
6748
|
* @default "HSV"
|
|
6734
6749
|
*/
|
|
6735
|
-
this.intlHsv = TEXT$
|
|
6750
|
+
this.intlHsv = TEXT$j.hsv;
|
|
6736
6751
|
/**
|
|
6737
6752
|
* Label used for the hex input
|
|
6738
6753
|
*
|
|
6739
6754
|
* @default "Hex"
|
|
6740
6755
|
*/
|
|
6741
|
-
this.intlHex = TEXT$
|
|
6756
|
+
this.intlHex = TEXT$j.hex;
|
|
6742
6757
|
/**
|
|
6743
6758
|
* Label used for the hue channel description
|
|
6744
6759
|
*
|
|
6745
6760
|
* @default "Hue"
|
|
6746
6761
|
*/
|
|
6747
|
-
this.intlHue = TEXT$
|
|
6762
|
+
this.intlHue = TEXT$j.hue;
|
|
6748
6763
|
/**
|
|
6749
6764
|
* Label used for the hex input when there is no color selected.
|
|
6750
6765
|
*
|
|
6751
6766
|
* @default "No color"
|
|
6752
6767
|
*/
|
|
6753
|
-
this.intlNoColor = TEXT$
|
|
6768
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
6754
6769
|
/**
|
|
6755
6770
|
* Label used for the red channel
|
|
6756
6771
|
*
|
|
6757
6772
|
* @default "R"
|
|
6758
6773
|
*/
|
|
6759
|
-
this.intlR = TEXT$
|
|
6774
|
+
this.intlR = TEXT$j.r;
|
|
6760
6775
|
/**
|
|
6761
6776
|
* Label used for the red channel description
|
|
6762
6777
|
*
|
|
6763
6778
|
* @default "Red"
|
|
6764
6779
|
*/
|
|
6765
|
-
this.intlRed = TEXT$
|
|
6780
|
+
this.intlRed = TEXT$j.red;
|
|
6766
6781
|
/**
|
|
6767
6782
|
* Label used for the RGB mode
|
|
6768
6783
|
*
|
|
6769
6784
|
* @default "RGB"
|
|
6770
6785
|
*/
|
|
6771
|
-
this.intlRgb = TEXT$
|
|
6786
|
+
this.intlRgb = TEXT$j.rgb;
|
|
6772
6787
|
/**
|
|
6773
6788
|
* Label used for the saturation channel
|
|
6774
6789
|
*
|
|
6775
6790
|
* @default "S"
|
|
6776
6791
|
*/
|
|
6777
|
-
this.intlS = TEXT$
|
|
6792
|
+
this.intlS = TEXT$j.s;
|
|
6778
6793
|
/**
|
|
6779
6794
|
* Label used for the saturation channel description
|
|
6780
6795
|
*
|
|
6781
6796
|
* @default "Saturation"
|
|
6782
6797
|
*/
|
|
6783
|
-
this.intlSaturation = TEXT$
|
|
6798
|
+
this.intlSaturation = TEXT$j.saturation;
|
|
6784
6799
|
/**
|
|
6785
6800
|
* Label used for the save color button.
|
|
6786
6801
|
*
|
|
6787
6802
|
* @default "Save color"
|
|
6788
6803
|
*/
|
|
6789
|
-
this.intlSaveColor = TEXT$
|
|
6804
|
+
this.intlSaveColor = TEXT$j.saveColor;
|
|
6790
6805
|
/**
|
|
6791
6806
|
* Label used for the saved colors section
|
|
6792
6807
|
*
|
|
6793
6808
|
* @default "Saved"
|
|
6794
6809
|
*/
|
|
6795
|
-
this.intlSaved = TEXT$
|
|
6810
|
+
this.intlSaved = TEXT$j.saved;
|
|
6796
6811
|
/**
|
|
6797
6812
|
* Label used for the value channel
|
|
6798
6813
|
*
|
|
6799
6814
|
* @default "V"
|
|
6800
6815
|
*/
|
|
6801
|
-
this.intlV = TEXT$
|
|
6816
|
+
this.intlV = TEXT$j.v;
|
|
6802
6817
|
/**
|
|
6803
6818
|
* Label used for the
|
|
6804
6819
|
*
|
|
6805
6820
|
* @default "Value"
|
|
6806
6821
|
*/
|
|
6807
|
-
this.intlValue = TEXT$
|
|
6822
|
+
this.intlValue = TEXT$j.value;
|
|
6808
6823
|
/**
|
|
6809
6824
|
* The scale of the color picker.
|
|
6810
6825
|
*/
|
|
@@ -7071,7 +7086,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7071
7086
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
7072
7087
|
const active = channelMode === activeChannelMode;
|
|
7073
7088
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
7074
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
7089
|
+
return (h("calcite-tab-title", { active: active, class: CSS$I.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
7075
7090
|
};
|
|
7076
7091
|
this.renderChannelsTab = (channelMode) => {
|
|
7077
7092
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -7082,11 +7097,11 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7082
7097
|
? [intlRed, intlGreen, intlBlue]
|
|
7083
7098
|
: [intlHue, intlSaturation, intlValue];
|
|
7084
7099
|
const direction = getElementDir(this.el);
|
|
7085
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
7100
|
+
return (h("calcite-tab", { active: active, class: CSS$I.control, key: channelMode }, h("div", { class: CSS$I.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
7086
7101
|
/* the channel container is ltr, so we apply the host's direction */
|
|
7087
7102
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
7088
7103
|
};
|
|
7089
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$
|
|
7104
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$I.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
7090
7105
|
this.deleteColor = () => {
|
|
7091
7106
|
const colorToDelete = this.color.hex();
|
|
7092
7107
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7189,7 +7204,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7189
7204
|
this.shiftKeyChannelAdjustment = 0;
|
|
7190
7205
|
const key = event.key;
|
|
7191
7206
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
7192
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
7207
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$I.channel); })) {
|
|
7193
7208
|
return;
|
|
7194
7209
|
}
|
|
7195
7210
|
const { shiftKey } = event;
|
|
@@ -7260,20 +7275,20 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7260
7275
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
7261
7276
|
const noColor = color === null;
|
|
7262
7277
|
const vertical = scopeOrientation === "vertical";
|
|
7263
|
-
return (h("div", { class: CSS$
|
|
7264
|
-
[CSS$
|
|
7265
|
-
[CSS$
|
|
7266
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
7267
|
-
[CSS$
|
|
7268
|
-
[CSS$
|
|
7269
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
7270
|
-
[CSS$
|
|
7271
|
-
[CSS$
|
|
7272
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
7273
|
-
[CSS$
|
|
7274
|
-
[CSS$
|
|
7275
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
7276
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
7278
|
+
return (h("div", { class: CSS$I.container }, h("div", { class: CSS$I.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
7279
|
+
[CSS$I.colorFieldAndSlider]: true,
|
|
7280
|
+
[CSS$I.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
7281
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$I.scope]: true, [CSS$I.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$I.scope]: true, [CSS$I.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
7282
|
+
[CSS$I.controlSection]: true,
|
|
7283
|
+
[CSS$I.section]: true
|
|
7284
|
+
} }, hideHex ? null : (h("div", { class: CSS$I.hexOptions }, h("span", { class: {
|
|
7285
|
+
[CSS$I.header]: true,
|
|
7286
|
+
[CSS$I.headerHex]: true
|
|
7287
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$I.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7288
|
+
[CSS$I.colorModeContainer]: true,
|
|
7289
|
+
[CSS$I.splitSection]: true
|
|
7290
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$I.savedColorsSection]: true, [CSS$I.section]: true } }, h("div", { class: CSS$I.header }, h("label", null, intlSaved), h("div", { class: CSS$I.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$I.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS$I.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS$I.savedColors }, [
|
|
7291
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$I.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
7277
7292
|
])) : null))));
|
|
7278
7293
|
}
|
|
7279
7294
|
// --------------------------------------------------------------------------
|
|
@@ -7468,7 +7483,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7468
7483
|
static get style() { return colorPickerCss; }
|
|
7469
7484
|
};
|
|
7470
7485
|
|
|
7471
|
-
const CSS$
|
|
7486
|
+
const CSS$H = {
|
|
7472
7487
|
container: "container",
|
|
7473
7488
|
preview: "preview",
|
|
7474
7489
|
input: "input"
|
|
@@ -7499,13 +7514,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7499
7514
|
*
|
|
7500
7515
|
* @default "Hex"
|
|
7501
7516
|
*/
|
|
7502
|
-
this.intlHex = TEXT$
|
|
7517
|
+
this.intlHex = TEXT$j.hex;
|
|
7503
7518
|
/**
|
|
7504
7519
|
* Label used for the hex input when there is no color selected.
|
|
7505
7520
|
*
|
|
7506
7521
|
* @default "No color"
|
|
7507
7522
|
*/
|
|
7508
|
-
this.intlNoColor = TEXT$
|
|
7523
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
7509
7524
|
/**
|
|
7510
7525
|
* The component's scale.
|
|
7511
7526
|
*/
|
|
@@ -7599,7 +7614,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7599
7614
|
render() {
|
|
7600
7615
|
const { intlHex, value } = this;
|
|
7601
7616
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7602
|
-
return (h("div", { class: CSS$
|
|
7617
|
+
return (h("div", { class: CSS$H.container }, h("calcite-input", { class: CSS$H.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$H.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7603
7618
|
}
|
|
7604
7619
|
//--------------------------------------------------------------------------
|
|
7605
7620
|
//
|
|
@@ -7658,7 +7673,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7658
7673
|
static get style() { return colorPickerHexInputCss; }
|
|
7659
7674
|
};
|
|
7660
7675
|
|
|
7661
|
-
const CSS$
|
|
7676
|
+
const CSS$G = {
|
|
7662
7677
|
swatch: "swatch",
|
|
7663
7678
|
noColorIcon: "no-color-icon"
|
|
7664
7679
|
};
|
|
@@ -7705,7 +7720,7 @@ const ColorPickerSwatch = class extends HTMLElement$1 {
|
|
|
7705
7720
|
const hex = internalColor.hex();
|
|
7706
7721
|
const theme = getThemeName(el);
|
|
7707
7722
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7708
|
-
return (h("svg", { class: CSS$
|
|
7723
|
+
return (h("svg", { class: CSS$G.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7709
7724
|
}
|
|
7710
7725
|
get el() { return this; }
|
|
7711
7726
|
static get watchers() { return {
|
|
@@ -9355,7 +9370,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
9355
9370
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
9356
9371
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9357
9372
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
9358
|
-
const TEXT$
|
|
9373
|
+
const TEXT$i = {
|
|
9359
9374
|
removeTag: "Remove tag"
|
|
9360
9375
|
};
|
|
9361
9376
|
|
|
@@ -9384,7 +9399,7 @@ function getDepth(element) {
|
|
|
9384
9399
|
return result.snapshotLength;
|
|
9385
9400
|
}
|
|
9386
9401
|
|
|
9387
|
-
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-block:0px;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{inline-size:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{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}.list-container{max-block-size:
|
|
9402
|
+
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-block:0px;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{inline-size:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{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}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{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;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9388
9403
|
|
|
9389
9404
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
9390
9405
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -9446,7 +9461,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9446
9461
|
*
|
|
9447
9462
|
* @default "Remove tag"
|
|
9448
9463
|
*/
|
|
9449
|
-
this.intlRemoveTag = TEXT$
|
|
9464
|
+
this.intlRemoveTag = TEXT$i.removeTag;
|
|
9450
9465
|
//--------------------------------------------------------------------------
|
|
9451
9466
|
//
|
|
9452
9467
|
// Private State/Props
|
|
@@ -9497,8 +9512,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9497
9512
|
this.addCustomChip(this.text, true);
|
|
9498
9513
|
event.preventDefault();
|
|
9499
9514
|
}
|
|
9500
|
-
else if (this.open
|
|
9501
|
-
this.active = false;
|
|
9515
|
+
else if (this.open) {
|
|
9502
9516
|
this.open = false;
|
|
9503
9517
|
event.preventDefault();
|
|
9504
9518
|
}
|
|
@@ -9516,9 +9530,8 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9516
9530
|
}
|
|
9517
9531
|
break;
|
|
9518
9532
|
case "ArrowDown":
|
|
9519
|
-
if (!
|
|
9533
|
+
if (!this.open) {
|
|
9520
9534
|
event.preventDefault();
|
|
9521
|
-
this.active = true;
|
|
9522
9535
|
this.open = true;
|
|
9523
9536
|
}
|
|
9524
9537
|
this.shiftActiveItemIndex(1);
|
|
@@ -9529,13 +9542,12 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9529
9542
|
case " ":
|
|
9530
9543
|
if (!this.textInput.value) {
|
|
9531
9544
|
event.preventDefault();
|
|
9532
|
-
this.active = true;
|
|
9533
9545
|
this.open = true;
|
|
9534
9546
|
this.shiftActiveItemIndex(1);
|
|
9535
9547
|
}
|
|
9536
9548
|
break;
|
|
9537
9549
|
case "Home":
|
|
9538
|
-
if (this.open
|
|
9550
|
+
if (this.open) {
|
|
9539
9551
|
event.preventDefault();
|
|
9540
9552
|
}
|
|
9541
9553
|
this.updateActiveItemIndex(0);
|
|
@@ -9545,7 +9557,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9545
9557
|
}
|
|
9546
9558
|
break;
|
|
9547
9559
|
case "End":
|
|
9548
|
-
if (this.open
|
|
9560
|
+
if (this.open) {
|
|
9549
9561
|
event.preventDefault();
|
|
9550
9562
|
}
|
|
9551
9563
|
this.updateActiveItemIndex(this.visibleItems.length - 1);
|
|
@@ -9555,7 +9567,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9555
9567
|
}
|
|
9556
9568
|
break;
|
|
9557
9569
|
case "Escape":
|
|
9558
|
-
this.active = false;
|
|
9559
9570
|
this.open = false;
|
|
9560
9571
|
break;
|
|
9561
9572
|
case "Enter":
|
|
@@ -9584,29 +9595,26 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9584
9595
|
}
|
|
9585
9596
|
};
|
|
9586
9597
|
this.toggleCloseEnd = () => {
|
|
9587
|
-
this.active = false;
|
|
9588
9598
|
this.open = false;
|
|
9589
9599
|
this.el.removeEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
|
9590
9600
|
};
|
|
9591
9601
|
this.toggleOpenEnd = () => {
|
|
9592
|
-
this.active = true;
|
|
9593
9602
|
this.open = false;
|
|
9594
9603
|
this.el.removeEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
|
9595
9604
|
};
|
|
9596
9605
|
this.transitionEnd = (event) => {
|
|
9597
9606
|
if (event.propertyName === this.activeTransitionProp && event.target === this.listContainerEl) {
|
|
9598
|
-
this.open
|
|
9607
|
+
this.open ? this.onOpen() : this.onClose();
|
|
9599
9608
|
}
|
|
9600
9609
|
};
|
|
9601
9610
|
this.transitionStartHandler = (event) => {
|
|
9602
9611
|
if (event.propertyName === this.activeTransitionProp && event.target === this.listContainerEl) {
|
|
9603
|
-
this.open
|
|
9612
|
+
this.open ? this.onBeforeOpen() : this.onBeforeClose();
|
|
9604
9613
|
}
|
|
9605
9614
|
};
|
|
9606
9615
|
this.setMaxScrollerHeight = async () => {
|
|
9607
|
-
const {
|
|
9608
|
-
|
|
9609
|
-
if (!listContainerEl || isOpen) {
|
|
9616
|
+
const { listContainerEl, open } = this;
|
|
9617
|
+
if (!listContainerEl || !open) {
|
|
9610
9618
|
return;
|
|
9611
9619
|
}
|
|
9612
9620
|
await this.reposition();
|
|
@@ -9615,7 +9623,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9615
9623
|
await this.reposition();
|
|
9616
9624
|
};
|
|
9617
9625
|
this.calciteChipDismissHandler = (event, comboboxItem) => {
|
|
9618
|
-
this.active = false;
|
|
9619
9626
|
this.open = false;
|
|
9620
9627
|
const selection = this.items.find((item) => item === comboboxItem);
|
|
9621
9628
|
if (selection) {
|
|
@@ -9627,15 +9634,13 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9627
9634
|
if (event.composedPath().some((node) => node.tagName === "CALCITE-CHIP")) {
|
|
9628
9635
|
return;
|
|
9629
9636
|
}
|
|
9630
|
-
this.active = !this.active;
|
|
9631
9637
|
this.open = !this.open;
|
|
9632
9638
|
this.updateActiveItemIndex(0);
|
|
9633
9639
|
this.setFocus();
|
|
9634
9640
|
};
|
|
9635
9641
|
this.setInactiveIfNotContained = (event) => {
|
|
9636
9642
|
const composedPath = event.composedPath();
|
|
9637
|
-
|
|
9638
|
-
if (isOpen || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
9643
|
+
if (!this.open || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
9639
9644
|
return;
|
|
9640
9645
|
}
|
|
9641
9646
|
if (this.allowCustomValues && this.text.trim().length) {
|
|
@@ -9649,7 +9654,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9649
9654
|
this.filterItems("");
|
|
9650
9655
|
this.updateActiveItemIndex(-1);
|
|
9651
9656
|
}
|
|
9652
|
-
this.active = false;
|
|
9653
9657
|
this.open = false;
|
|
9654
9658
|
};
|
|
9655
9659
|
this.setFloatingEl = (el) => {
|
|
@@ -9741,12 +9745,21 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9741
9745
|
this.setInactiveIfNotContained(event);
|
|
9742
9746
|
};
|
|
9743
9747
|
}
|
|
9744
|
-
activeHandler() {
|
|
9748
|
+
activeHandler(value) {
|
|
9749
|
+
if (this.disabled) {
|
|
9750
|
+
this.active = false;
|
|
9751
|
+
this.open = false;
|
|
9752
|
+
return;
|
|
9753
|
+
}
|
|
9754
|
+
this.open = value;
|
|
9755
|
+
}
|
|
9756
|
+
openHandler(value) {
|
|
9745
9757
|
if (this.disabled) {
|
|
9746
9758
|
this.active = false;
|
|
9747
9759
|
this.open = false;
|
|
9748
9760
|
return;
|
|
9749
9761
|
}
|
|
9762
|
+
this.active = value;
|
|
9750
9763
|
this.setMaxScrollerHeight();
|
|
9751
9764
|
}
|
|
9752
9765
|
handleDisabledChange(value) {
|
|
@@ -9834,6 +9847,12 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9834
9847
|
connectForm(this);
|
|
9835
9848
|
this.reposition();
|
|
9836
9849
|
this.setFilteredPlacements();
|
|
9850
|
+
if (this.active) {
|
|
9851
|
+
this.activeHandler(this.active);
|
|
9852
|
+
}
|
|
9853
|
+
if (this.open) {
|
|
9854
|
+
this.openHandler(this.open);
|
|
9855
|
+
}
|
|
9837
9856
|
}
|
|
9838
9857
|
componentWillLoad() {
|
|
9839
9858
|
this.updateItems();
|
|
@@ -9940,7 +9959,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9940
9959
|
if (this.textInput) {
|
|
9941
9960
|
this.textInput.value = item.textLabel;
|
|
9942
9961
|
}
|
|
9943
|
-
this.active = false;
|
|
9944
9962
|
this.open = false;
|
|
9945
9963
|
this.updateActiveItemIndex(-1);
|
|
9946
9964
|
this.resetText();
|
|
@@ -10181,7 +10199,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10181
10199
|
get el() { return this; }
|
|
10182
10200
|
static get watchers() { return {
|
|
10183
10201
|
"active": ["activeHandler"],
|
|
10184
|
-
"open": ["
|
|
10202
|
+
"open": ["openHandler"],
|
|
10185
10203
|
"disabled": ["handleDisabledChange"],
|
|
10186
10204
|
"maxItems": ["maxItemsHandler"],
|
|
10187
10205
|
"overlayPositioning": ["overlayPositioningHandler"],
|
|
@@ -10193,7 +10211,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10193
10211
|
static get style() { return comboboxCss; }
|
|
10194
10212
|
};
|
|
10195
10213
|
|
|
10196
|
-
const CSS$
|
|
10214
|
+
const CSS$F = {
|
|
10197
10215
|
icon: "icon",
|
|
10198
10216
|
iconActive: "icon--active",
|
|
10199
10217
|
custom: "icon--custom",
|
|
@@ -10284,18 +10302,18 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10284
10302
|
// --------------------------------------------------------------------------
|
|
10285
10303
|
renderIcon(isSingle) {
|
|
10286
10304
|
const { icon, disabled, selected } = this;
|
|
10287
|
-
const level = `${CSS$
|
|
10305
|
+
const level = `${CSS$F.icon}--indent`;
|
|
10288
10306
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
10289
10307
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
10290
10308
|
const showDot = isSingle && !icon && !disabled;
|
|
10291
10309
|
return showDot ? (h("span", { class: {
|
|
10292
|
-
[CSS$
|
|
10293
|
-
[CSS$
|
|
10310
|
+
[CSS$F.icon]: true,
|
|
10311
|
+
[CSS$F.dot]: true,
|
|
10294
10312
|
[level]: true
|
|
10295
10313
|
} })) : (h("calcite-icon", { class: {
|
|
10296
|
-
[CSS$
|
|
10297
|
-
[CSS$
|
|
10298
|
-
[CSS$
|
|
10314
|
+
[CSS$F.icon]: !icon,
|
|
10315
|
+
[CSS$F.custom]: !!icon,
|
|
10316
|
+
[CSS$F.iconActive]: icon && selected,
|
|
10299
10317
|
[level]: true
|
|
10300
10318
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10301
10319
|
}
|
|
@@ -10308,13 +10326,13 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10308
10326
|
render() {
|
|
10309
10327
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
10310
10328
|
const classes = {
|
|
10311
|
-
[CSS$
|
|
10312
|
-
[CSS$
|
|
10313
|
-
[CSS$
|
|
10314
|
-
[CSS$
|
|
10329
|
+
[CSS$F.label]: true,
|
|
10330
|
+
[CSS$F.selected]: this.selected,
|
|
10331
|
+
[CSS$F.active]: this.active,
|
|
10332
|
+
[CSS$F.single]: isSingleSelect
|
|
10315
10333
|
};
|
|
10316
10334
|
const depth = getDepth(this.el);
|
|
10317
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
10335
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$F.title }, this.textLabel)), this.renderChildren())));
|
|
10318
10336
|
}
|
|
10319
10337
|
get el() { return this; }
|
|
10320
10338
|
static get watchers() { return {
|
|
@@ -10323,7 +10341,7 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10323
10341
|
static get style() { return comboboxItemCss; }
|
|
10324
10342
|
};
|
|
10325
10343
|
|
|
10326
|
-
const CSS$
|
|
10344
|
+
const CSS$E = {
|
|
10327
10345
|
list: "list",
|
|
10328
10346
|
label: "label",
|
|
10329
10347
|
title: "title"
|
|
@@ -10355,8 +10373,8 @@ const ComboboxItemGroup = class extends HTMLElement$1 {
|
|
|
10355
10373
|
// --------------------------------------------------------------------------
|
|
10356
10374
|
render() {
|
|
10357
10375
|
const { el, scale } = this;
|
|
10358
|
-
const indent = `${CSS$
|
|
10359
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10376
|
+
const indent = `${CSS$E.label}--indent-${getDepth(el)}`;
|
|
10377
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$E.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$E.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$E.title }, this.label)), h("slot", null)));
|
|
10360
10378
|
}
|
|
10361
10379
|
get el() { return this; }
|
|
10362
10380
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -10861,7 +10879,7 @@ function getDaysDiff(date1, date2) {
|
|
|
10861
10879
|
}
|
|
10862
10880
|
|
|
10863
10881
|
const HEADING_LEVEL$6 = 2;
|
|
10864
|
-
const TEXT$
|
|
10882
|
+
const TEXT$h = {
|
|
10865
10883
|
nextMonth: "Next month",
|
|
10866
10884
|
prevMonth: "Previous month",
|
|
10867
10885
|
year: "Year"
|
|
@@ -10881,19 +10899,19 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
10881
10899
|
*
|
|
10882
10900
|
* @default "Previous month"
|
|
10883
10901
|
*/
|
|
10884
|
-
this.intlPrevMonth = TEXT$
|
|
10902
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
10885
10903
|
/**
|
|
10886
10904
|
* Localized string for "next month" (used for aria label)
|
|
10887
10905
|
*
|
|
10888
10906
|
* @default "Next month"
|
|
10889
10907
|
*/
|
|
10890
|
-
this.intlNextMonth = TEXT$
|
|
10908
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
10891
10909
|
/**
|
|
10892
10910
|
* Localized string for "year" (used for aria label)
|
|
10893
10911
|
*
|
|
10894
10912
|
* @default "Year"
|
|
10895
10913
|
*/
|
|
10896
|
-
this.intlYear = TEXT$
|
|
10914
|
+
this.intlYear = TEXT$h.year;
|
|
10897
10915
|
/** BCP 47 language tag for desired language and country format */
|
|
10898
10916
|
this.locale = document.documentElement.lang || "en";
|
|
10899
10917
|
/** specify the scale of the date picker */
|
|
@@ -11821,11 +11839,11 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11821
11839
|
static get style() { return datePickerMonthHeaderCss; }
|
|
11822
11840
|
};
|
|
11823
11841
|
|
|
11824
|
-
const SLOTS$
|
|
11842
|
+
const SLOTS$j = {
|
|
11825
11843
|
dropdownTrigger: "dropdown-trigger"
|
|
11826
11844
|
};
|
|
11827
11845
|
|
|
11828
|
-
const dropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([
|
|
11846
|
+
const dropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
11829
11847
|
|
|
11830
11848
|
const Dropdown = class extends HTMLElement$1 {
|
|
11831
11849
|
constructor() {
|
|
@@ -11881,6 +11899,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11881
11899
|
/** specify whether the dropdown is opened by hover or click of a trigger element */
|
|
11882
11900
|
this.type = "click";
|
|
11883
11901
|
this.items = [];
|
|
11902
|
+
this.groups = [];
|
|
11884
11903
|
this.activeTransitionProp = "visibility";
|
|
11885
11904
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
11886
11905
|
this.resizeObserver = createObserver("resize", (entries) => this.resizeObserverCallback(entries));
|
|
@@ -11910,15 +11929,19 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11910
11929
|
this.reposition();
|
|
11911
11930
|
};
|
|
11912
11931
|
this.updateItems = () => {
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
.map((el) => el.matches("calcite-dropdown-group")
|
|
11916
|
-
? Array.from(el.querySelectorAll("calcite-dropdown-item"))
|
|
11917
|
-
: [el])
|
|
11932
|
+
this.items = this.groups
|
|
11933
|
+
.map((group) => Array.from(group === null || group === void 0 ? void 0 : group.querySelectorAll("calcite-dropdown-item")))
|
|
11918
11934
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
11919
11935
|
this.updateSelectedItems();
|
|
11920
11936
|
this.reposition();
|
|
11921
11937
|
};
|
|
11938
|
+
this.updateGroups = (event) => {
|
|
11939
|
+
const groups = event.target
|
|
11940
|
+
.assignedElements({ flatten: true })
|
|
11941
|
+
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-dropdown-group"));
|
|
11942
|
+
this.groups = groups;
|
|
11943
|
+
this.updateItems();
|
|
11944
|
+
};
|
|
11922
11945
|
this.resizeObserverCallback = (entries) => {
|
|
11923
11946
|
entries.forEach((entry) => {
|
|
11924
11947
|
const { target } = entry;
|
|
@@ -11939,9 +11962,8 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11939
11962
|
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
|
11940
11963
|
};
|
|
11941
11964
|
this.setMaxScrollerHeight = () => {
|
|
11942
|
-
const {
|
|
11943
|
-
|
|
11944
|
-
if (!scrollerEl || isOpen) {
|
|
11965
|
+
const { scrollerEl, open } = this;
|
|
11966
|
+
if (!scrollerEl || !open) {
|
|
11945
11967
|
return;
|
|
11946
11968
|
}
|
|
11947
11969
|
this.reposition();
|
|
@@ -11956,12 +11978,12 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11956
11978
|
};
|
|
11957
11979
|
this.transitionEnd = (event) => {
|
|
11958
11980
|
if (event.propertyName === this.activeTransitionProp && event.target === this.scrollerEl) {
|
|
11959
|
-
this.open
|
|
11981
|
+
this.open ? this.onOpen() : this.onClose();
|
|
11960
11982
|
}
|
|
11961
11983
|
};
|
|
11962
11984
|
this.transitionStartHandler = (event) => {
|
|
11963
11985
|
if (event.propertyName === this.activeTransitionProp && event.target === this.scrollerEl) {
|
|
11964
|
-
this.open
|
|
11986
|
+
this.open ? this.onBeforeOpen() : this.onBeforeClose();
|
|
11965
11987
|
}
|
|
11966
11988
|
};
|
|
11967
11989
|
this.setReferenceEl = (el) => {
|
|
@@ -11979,7 +12001,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11979
12001
|
return;
|
|
11980
12002
|
}
|
|
11981
12003
|
const key = event.key;
|
|
11982
|
-
if (
|
|
12004
|
+
if (this.open && (key === "Escape" || (event.shiftKey && key === "Tab"))) {
|
|
11983
12005
|
this.closeCalciteDropdown();
|
|
11984
12006
|
return;
|
|
11985
12007
|
}
|
|
@@ -12001,24 +12023,25 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12001
12023
|
this.el.removeEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
12002
12024
|
};
|
|
12003
12025
|
this.openCalciteDropdown = () => {
|
|
12004
|
-
this.active = !this.active;
|
|
12005
12026
|
this.open = !this.open;
|
|
12006
|
-
if (this.
|
|
12027
|
+
if (this.open) {
|
|
12007
12028
|
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
12008
12029
|
}
|
|
12009
12030
|
};
|
|
12010
12031
|
}
|
|
12011
|
-
activeHandler() {
|
|
12032
|
+
activeHandler(value) {
|
|
12033
|
+
this.open = value;
|
|
12034
|
+
}
|
|
12035
|
+
openHandler(value) {
|
|
12012
12036
|
if (!this.disabled) {
|
|
12013
12037
|
this.reposition();
|
|
12038
|
+
this.active = value;
|
|
12014
12039
|
return;
|
|
12015
12040
|
}
|
|
12016
|
-
this.active = false;
|
|
12017
12041
|
this.open = false;
|
|
12018
12042
|
}
|
|
12019
12043
|
handleDisabledChange(value) {
|
|
12020
12044
|
if (!value) {
|
|
12021
|
-
this.active = false;
|
|
12022
12045
|
this.open = false;
|
|
12023
12046
|
}
|
|
12024
12047
|
}
|
|
@@ -12044,6 +12067,12 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12044
12067
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
12045
12068
|
this.setFilteredPlacements();
|
|
12046
12069
|
this.reposition();
|
|
12070
|
+
if (this.open) {
|
|
12071
|
+
this.openHandler(this.open);
|
|
12072
|
+
}
|
|
12073
|
+
if (this.active) {
|
|
12074
|
+
this.activeHandler(this.active);
|
|
12075
|
+
}
|
|
12047
12076
|
}
|
|
12048
12077
|
componentDidLoad() {
|
|
12049
12078
|
this.reposition();
|
|
@@ -12059,12 +12088,12 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12059
12088
|
(_c = this.scrollerEl) === null || _c === void 0 ? void 0 : _c.removeEventListener("transitionstart", this.transitionStartHandler);
|
|
12060
12089
|
}
|
|
12061
12090
|
render() {
|
|
12062
|
-
const {
|
|
12063
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(
|
|
12091
|
+
const { open, guid } = this;
|
|
12092
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$j.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper", ref: this.setFloatingEl }, h("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
12064
12093
|
["calcite-dropdown-content"]: true,
|
|
12065
12094
|
[FloatingCSS.animation]: true,
|
|
12066
|
-
[FloatingCSS.animationActive]:
|
|
12067
|
-
}, id: `${guid}-menu`, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl, role: "menu" }, h("div", { hidden: !
|
|
12095
|
+
[FloatingCSS.animationActive]: open
|
|
12096
|
+
}, id: `${guid}-menu`, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl, role: "menu" }, h("div", { hidden: !open }, h("slot", { onSlotchange: this.updateGroups }))))));
|
|
12068
12097
|
}
|
|
12069
12098
|
//--------------------------------------------------------------------------
|
|
12070
12099
|
//
|
|
@@ -12083,8 +12112,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12083
12112
|
});
|
|
12084
12113
|
}
|
|
12085
12114
|
closeCalciteDropdownOnClick(event) {
|
|
12086
|
-
|
|
12087
|
-
if (isOpen || event.composedPath().includes(this.el)) {
|
|
12115
|
+
if (!this.open || event.composedPath().includes(this.el)) {
|
|
12088
12116
|
return;
|
|
12089
12117
|
}
|
|
12090
12118
|
this.closeCalciteDropdown(false);
|
|
@@ -12097,7 +12125,6 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12097
12125
|
if (event.composedPath().includes(this.el)) {
|
|
12098
12126
|
return;
|
|
12099
12127
|
}
|
|
12100
|
-
this.active = false;
|
|
12101
12128
|
this.open = false;
|
|
12102
12129
|
}
|
|
12103
12130
|
mouseEnterHandler() {
|
|
@@ -12177,24 +12204,25 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12177
12204
|
let itemsToProcess = 0;
|
|
12178
12205
|
let maxScrollerHeight = 0;
|
|
12179
12206
|
let groupHeaderHeight;
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
if (
|
|
12184
|
-
groupHeaderHeight
|
|
12207
|
+
this.groups.forEach((group) => {
|
|
12208
|
+
if (maxItems > 0 && itemsToProcess < maxItems) {
|
|
12209
|
+
Array.from(group.children).forEach((item, index) => {
|
|
12210
|
+
if (index === 0) {
|
|
12211
|
+
if (isNaN(groupHeaderHeight)) {
|
|
12212
|
+
groupHeaderHeight = item.offsetTop;
|
|
12213
|
+
}
|
|
12214
|
+
maxScrollerHeight += groupHeaderHeight;
|
|
12185
12215
|
}
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
}
|
|
12216
|
+
if (itemsToProcess < maxItems) {
|
|
12217
|
+
maxScrollerHeight += item.offsetHeight;
|
|
12218
|
+
itemsToProcess += 1;
|
|
12219
|
+
}
|
|
12220
|
+
});
|
|
12221
|
+
}
|
|
12222
|
+
});
|
|
12194
12223
|
return maxScrollerHeight;
|
|
12195
12224
|
}
|
|
12196
12225
|
closeCalciteDropdown(focusTrigger = true) {
|
|
12197
|
-
this.active = false;
|
|
12198
12226
|
this.open = false;
|
|
12199
12227
|
if (focusTrigger) {
|
|
12200
12228
|
focusElement(this.triggers[0]);
|
|
@@ -12233,7 +12261,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12233
12261
|
get el() { return this; }
|
|
12234
12262
|
static get watchers() { return {
|
|
12235
12263
|
"active": ["activeHandler"],
|
|
12236
|
-
"open": ["
|
|
12264
|
+
"open": ["openHandler"],
|
|
12237
12265
|
"disabled": ["handleDisabledChange"],
|
|
12238
12266
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
12239
12267
|
"maxItems": ["maxItemsHandler"],
|
|
@@ -12243,7 +12271,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12243
12271
|
static get style() { return dropdownCss; }
|
|
12244
12272
|
};
|
|
12245
12273
|
|
|
12246
|
-
const CSS$
|
|
12274
|
+
const CSS$D = {
|
|
12247
12275
|
containerSmall: "container--s",
|
|
12248
12276
|
containerMedium: "container--m",
|
|
12249
12277
|
containerLarge: "container--l"
|
|
@@ -12277,9 +12305,9 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12277
12305
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
12278
12306
|
return (h(Host, { "aria-label": this.groupTitle, role: "group" }, h("div", { class: {
|
|
12279
12307
|
container: true,
|
|
12280
|
-
[CSS$
|
|
12281
|
-
[CSS$
|
|
12282
|
-
[CSS$
|
|
12308
|
+
[CSS$D.containerSmall]: scale === "s",
|
|
12309
|
+
[CSS$D.containerMedium]: scale === "m",
|
|
12310
|
+
[CSS$D.containerLarge]: scale === "l"
|
|
12283
12311
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
12284
12312
|
}
|
|
12285
12313
|
//--------------------------------------------------------------------------
|
|
@@ -12307,7 +12335,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12307
12335
|
static get style() { return dropdownGroupCss; }
|
|
12308
12336
|
};
|
|
12309
12337
|
|
|
12310
|
-
const CSS$
|
|
12338
|
+
const CSS$C = {
|
|
12311
12339
|
containerLink: "container--link",
|
|
12312
12340
|
containerSmall: "container--s",
|
|
12313
12341
|
containerMedium: "container--m",
|
|
@@ -12379,13 +12407,13 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12379
12407
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
12380
12408
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12381
12409
|
container: true,
|
|
12382
|
-
[CSS$
|
|
12383
|
-
[CSS$
|
|
12384
|
-
[CSS$
|
|
12385
|
-
[CSS$
|
|
12386
|
-
[CSS$
|
|
12387
|
-
[CSS$
|
|
12388
|
-
[CSS$
|
|
12410
|
+
[CSS$C.containerLink]: !!this.href,
|
|
12411
|
+
[CSS$C.containerSmall]: scale === "s",
|
|
12412
|
+
[CSS$C.containerMedium]: scale === "m",
|
|
12413
|
+
[CSS$C.containerLarge]: scale === "l",
|
|
12414
|
+
[CSS$C.containerMulti]: this.selectionMode === "multi",
|
|
12415
|
+
[CSS$C.containerSingle]: this.selectionMode === "single",
|
|
12416
|
+
[CSS$C.containerNone]: this.selectionMode === "none"
|
|
12389
12417
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
12390
12418
|
}
|
|
12391
12419
|
//--------------------------------------------------------------------------
|
|
@@ -12473,7 +12501,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12473
12501
|
static get style() { return dropdownItemCss; }
|
|
12474
12502
|
};
|
|
12475
12503
|
|
|
12476
|
-
const CSS$
|
|
12504
|
+
const CSS$B = {
|
|
12477
12505
|
button: "button"
|
|
12478
12506
|
};
|
|
12479
12507
|
const ICONS$9 = {
|
|
@@ -12548,7 +12576,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12548
12576
|
render() {
|
|
12549
12577
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
12550
12578
|
const title = !textEnabled ? label || text || null : null;
|
|
12551
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
12579
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$B.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
12552
12580
|
this.buttonEl = buttonEl;
|
|
12553
12581
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
12554
12582
|
}
|
|
@@ -12556,11 +12584,11 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12556
12584
|
static get style() { return fabCss; }
|
|
12557
12585
|
};
|
|
12558
12586
|
|
|
12559
|
-
const CSS$
|
|
12587
|
+
const CSS$A = {
|
|
12560
12588
|
container: "container",
|
|
12561
12589
|
searchIcon: "search-icon"
|
|
12562
12590
|
};
|
|
12563
|
-
const TEXT$
|
|
12591
|
+
const TEXT$g = {
|
|
12564
12592
|
filterLabel: "Filter",
|
|
12565
12593
|
clear: "Clear filter"
|
|
12566
12594
|
};
|
|
@@ -12676,7 +12704,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12676
12704
|
// --------------------------------------------------------------------------
|
|
12677
12705
|
render() {
|
|
12678
12706
|
const { disabled, scale } = this;
|
|
12679
|
-
return (h(Fragment, null, h("div", { class: CSS$
|
|
12707
|
+
return (h(Fragment, null, h("div", { class: CSS$A.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$g.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$g.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12680
12708
|
this.textInput = el;
|
|
12681
12709
|
}, scale: scale, type: "text", value: this.value })))));
|
|
12682
12710
|
}
|
|
@@ -12688,7 +12716,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12688
12716
|
static get style() { return filterCss; }
|
|
12689
12717
|
};
|
|
12690
12718
|
|
|
12691
|
-
const CSS$
|
|
12719
|
+
const CSS$z = {
|
|
12692
12720
|
frame: "frame",
|
|
12693
12721
|
frameAdvancing: "frame--advancing",
|
|
12694
12722
|
frameRetreating: "frame--retreating"
|
|
@@ -12789,9 +12817,9 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12789
12817
|
render() {
|
|
12790
12818
|
const { flowDirection } = this;
|
|
12791
12819
|
const frameDirectionClasses = {
|
|
12792
|
-
[CSS$
|
|
12793
|
-
[CSS$
|
|
12794
|
-
[CSS$
|
|
12820
|
+
[CSS$z.frame]: true,
|
|
12821
|
+
[CSS$z.frameAdvancing]: flowDirection === "advancing",
|
|
12822
|
+
[CSS$z.frameRetreating]: flowDirection === "retreating"
|
|
12795
12823
|
};
|
|
12796
12824
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
12797
12825
|
}
|
|
@@ -13017,7 +13045,7 @@ const Graph = class extends HTMLElement$1 {
|
|
|
13017
13045
|
static get style() { return graphCss; }
|
|
13018
13046
|
};
|
|
13019
13047
|
|
|
13020
|
-
const CSS$
|
|
13048
|
+
const CSS$y = {
|
|
13021
13049
|
handle: "handle",
|
|
13022
13050
|
handleActivated: "handle--activated"
|
|
13023
13051
|
};
|
|
@@ -13088,7 +13116,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13088
13116
|
render() {
|
|
13089
13117
|
return (
|
|
13090
13118
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
13091
|
-
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
13119
|
+
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$y.handle]: true, [CSS$y.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
13092
13120
|
this.handleButton = el;
|
|
13093
13121
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
13094
13122
|
}
|
|
@@ -13096,7 +13124,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13096
13124
|
static get style() { return handleCss; }
|
|
13097
13125
|
};
|
|
13098
13126
|
|
|
13099
|
-
const CSS$
|
|
13127
|
+
const CSS$x = {
|
|
13100
13128
|
icon: "icon",
|
|
13101
13129
|
flipRtl: "flip-rtl"
|
|
13102
13130
|
};
|
|
@@ -13216,7 +13244,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13216
13244
|
const semantic = !!textLabel;
|
|
13217
13245
|
const paths = [].concat(pathData || "");
|
|
13218
13246
|
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
13219
|
-
[CSS$
|
|
13247
|
+
[CSS$x.flipRtl]: dir === "rtl" && flipRtl,
|
|
13220
13248
|
svg: true
|
|
13221
13249
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
13222
13250
|
}
|
|
@@ -13257,7 +13285,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13257
13285
|
static get style() { return iconCss; }
|
|
13258
13286
|
};
|
|
13259
13287
|
|
|
13260
|
-
const CSS$
|
|
13288
|
+
const CSS$w = {
|
|
13261
13289
|
wrapper: "wrapper",
|
|
13262
13290
|
confirmChangesButton: "confirm-changes-button",
|
|
13263
13291
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -13266,7 +13294,7 @@ const CSS$v = {
|
|
|
13266
13294
|
enableEditingButton: "enable-editing-button",
|
|
13267
13295
|
controlsWrapper: "controls-wrapper"
|
|
13268
13296
|
};
|
|
13269
|
-
const TEXT$
|
|
13297
|
+
const TEXT$f = {
|
|
13270
13298
|
intlEnablingEditing: "Click to edit",
|
|
13271
13299
|
intlCancelEditing: "Cancel",
|
|
13272
13300
|
intlConfirmChanges: "Save"
|
|
@@ -13300,19 +13328,19 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13300
13328
|
*
|
|
13301
13329
|
* @default "Click to edit"
|
|
13302
13330
|
*/
|
|
13303
|
-
this.intlEnableEditing = TEXT$
|
|
13331
|
+
this.intlEnableEditing = TEXT$f.intlEnablingEditing;
|
|
13304
13332
|
/**
|
|
13305
13333
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13306
13334
|
*
|
|
13307
13335
|
* @default "Cancel"
|
|
13308
13336
|
*/
|
|
13309
|
-
this.intlCancelEditing = TEXT$
|
|
13337
|
+
this.intlCancelEditing = TEXT$f.intlCancelEditing;
|
|
13310
13338
|
/**
|
|
13311
13339
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13312
13340
|
*
|
|
13313
13341
|
* @default "Save"
|
|
13314
13342
|
*/
|
|
13315
|
-
this.intlConfirmChanges = TEXT$
|
|
13343
|
+
this.intlConfirmChanges = TEXT$f.intlConfirmChanges;
|
|
13316
13344
|
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
13317
13345
|
this.enableEditing = () => {
|
|
13318
13346
|
var _a, _b;
|
|
@@ -13417,12 +13445,12 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13417
13445
|
updateHostInteraction(this);
|
|
13418
13446
|
}
|
|
13419
13447
|
render() {
|
|
13420
|
-
return (h("div", { class: CSS$
|
|
13448
|
+
return (h("div", { class: CSS$w.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, h("div", { class: CSS$w.inputWrapper }, h("slot", null)), h("div", { class: CSS$w.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$w.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
13421
13449
|
opacity: this.editingEnabled ? "0" : "1",
|
|
13422
13450
|
width: this.editingEnabled ? "0" : "inherit"
|
|
13423
13451
|
}, type: "button" }), this.shouldShowControls && [
|
|
13424
|
-
h("div", { class: CSS$
|
|
13425
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
13452
|
+
h("div", { class: CSS$w.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$w.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
13453
|
+
h("calcite-button", { appearance: "solid", class: CSS$w.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, ref: (el) => (this.confirmEditingButton = el), scale: this.scale, type: "button" })
|
|
13426
13454
|
])));
|
|
13427
13455
|
}
|
|
13428
13456
|
//--------------------------------------------------------------------------
|
|
@@ -13485,7 +13513,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13485
13513
|
static get style() { return inlineEditableCss; }
|
|
13486
13514
|
};
|
|
13487
13515
|
|
|
13488
|
-
const CSS$
|
|
13516
|
+
const CSS$v = {
|
|
13489
13517
|
loader: "loader",
|
|
13490
13518
|
clearButton: "clear-button",
|
|
13491
13519
|
editingEnabled: "editing-enabled",
|
|
@@ -13509,10 +13537,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
13509
13537
|
time: "clock",
|
|
13510
13538
|
search: "search"
|
|
13511
13539
|
};
|
|
13512
|
-
const SLOTS$
|
|
13540
|
+
const SLOTS$i = {
|
|
13513
13541
|
action: "action"
|
|
13514
13542
|
};
|
|
13515
|
-
const TEXT$
|
|
13543
|
+
const TEXT$e = {
|
|
13516
13544
|
clear: "Clear value"
|
|
13517
13545
|
};
|
|
13518
13546
|
|
|
@@ -13565,7 +13593,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13565
13593
|
*
|
|
13566
13594
|
* @default "Loading"
|
|
13567
13595
|
*/
|
|
13568
|
-
this.intlLoading = TEXT$
|
|
13596
|
+
this.intlLoading = TEXT$u.loading;
|
|
13569
13597
|
/** When true, the icon is flipped in RTL. */
|
|
13570
13598
|
this.iconFlipRtl = false;
|
|
13571
13599
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -14044,34 +14072,34 @@ const Input = class extends HTMLElement$1 {
|
|
|
14044
14072
|
// --------------------------------------------------------------------------
|
|
14045
14073
|
render() {
|
|
14046
14074
|
const dir = getElementDir(this.el);
|
|
14047
|
-
const loader = (h("div", { class: CSS$
|
|
14048
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
14049
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
14075
|
+
const loader = (h("div", { class: CSS$v.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
14076
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$e.clear, class: CSS$v.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
14077
|
+
const iconEl = (h("calcite-icon", { class: CSS$v.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
14050
14078
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
14051
14079
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14052
|
-
[CSS$
|
|
14053
|
-
[CSS$
|
|
14080
|
+
[CSS$v.numberButtonItem]: true,
|
|
14081
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14054
14082
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
14055
14083
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14056
|
-
[CSS$
|
|
14057
|
-
[CSS$
|
|
14084
|
+
[CSS$v.numberButtonItem]: true,
|
|
14085
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14058
14086
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
14059
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
14060
|
-
const prefixText = h("div", { class: CSS$
|
|
14061
|
-
const suffixText = h("div", { class: CSS$
|
|
14087
|
+
const numberButtonsVertical = (h("div", { class: CSS$v.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
14088
|
+
const prefixText = h("div", { class: CSS$v.prefix }, this.prefixText);
|
|
14089
|
+
const suffixText = h("div", { class: CSS$v.suffix }, this.suffixText);
|
|
14062
14090
|
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
14063
14091
|
const childEl = this.type !== "number"
|
|
14064
14092
|
? [
|
|
14065
14093
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
14066
|
-
[CSS$
|
|
14067
|
-
[CSS$
|
|
14094
|
+
[CSS$v.editingEnabled]: this.editingEnabled,
|
|
14095
|
+
[CSS$v.inlineChild]: !!this.inlineEditableEl
|
|
14068
14096
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
14069
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
14097
|
+
this.isTextarea ? (h("div", { class: CSS$v.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
14070
14098
|
]
|
|
14071
14099
|
: null;
|
|
14072
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
14100
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$v.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14073
14101
|
? numberButtonsHorizontalDown
|
|
14074
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
14102
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$v.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$v.actionWrapper }, h("slot", { name: SLOTS$i.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
14075
14103
|
? numberButtonsVertical
|
|
14076
14104
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14077
14105
|
? numberButtonsHorizontalUp
|
|
@@ -14089,7 +14117,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
14089
14117
|
static get style() { return inputCss; }
|
|
14090
14118
|
};
|
|
14091
14119
|
|
|
14092
|
-
const CSS$
|
|
14120
|
+
const CSS$u = {
|
|
14093
14121
|
menu: "menu-container",
|
|
14094
14122
|
menuActive: "menu-container--active"
|
|
14095
14123
|
};
|
|
@@ -14136,19 +14164,19 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14136
14164
|
*
|
|
14137
14165
|
* @default "Previous month"
|
|
14138
14166
|
*/
|
|
14139
|
-
this.intlPrevMonth = TEXT$
|
|
14167
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
14140
14168
|
/**
|
|
14141
14169
|
* Localized string for "next month" (used for aria label)
|
|
14142
14170
|
*
|
|
14143
14171
|
* @default "Next month"
|
|
14144
14172
|
*/
|
|
14145
|
-
this.intlNextMonth = TEXT$
|
|
14173
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
14146
14174
|
/**
|
|
14147
14175
|
* Localized string for "year" (used for aria label)
|
|
14148
14176
|
*
|
|
14149
14177
|
* @default "Year"
|
|
14150
14178
|
*/
|
|
14151
|
-
this.intlYear = TEXT$
|
|
14179
|
+
this.intlYear = TEXT$h.year;
|
|
14152
14180
|
/** BCP 47 language tag for desired language and country format */
|
|
14153
14181
|
this.locale = document.documentElement.lang || "en";
|
|
14154
14182
|
/** specify the scale of the date picker */
|
|
@@ -14426,8 +14454,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14426
14454
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14427
14455
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14428
14456
|
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
14429
|
-
[CSS$
|
|
14430
|
-
[CSS$
|
|
14457
|
+
[CSS$u.menu]: true,
|
|
14458
|
+
[CSS$u.menuActive]: this.open
|
|
14431
14459
|
}, ref: this.setFloatingEl }, h("div", { class: {
|
|
14432
14460
|
["calendar-picker-wrapper"]: true,
|
|
14433
14461
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -14686,7 +14714,7 @@ const InputMessage = class extends HTMLElement$1 {
|
|
|
14686
14714
|
static get style() { return inputMessageCss; }
|
|
14687
14715
|
};
|
|
14688
14716
|
|
|
14689
|
-
const CSS$
|
|
14717
|
+
const CSS$t = {
|
|
14690
14718
|
loader: "loader",
|
|
14691
14719
|
clearButton: "clear-button",
|
|
14692
14720
|
editingEnabled: "editing-enabled",
|
|
@@ -14702,10 +14730,10 @@ const CSS$s = {
|
|
|
14702
14730
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
14703
14731
|
numberButtonItem: "number-button-item"
|
|
14704
14732
|
};
|
|
14705
|
-
const SLOTS$
|
|
14733
|
+
const SLOTS$h = {
|
|
14706
14734
|
action: "action"
|
|
14707
14735
|
};
|
|
14708
|
-
const TEXT$
|
|
14736
|
+
const TEXT$d = {
|
|
14709
14737
|
clear: "Clear value"
|
|
14710
14738
|
};
|
|
14711
14739
|
|
|
@@ -14758,7 +14786,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
14758
14786
|
*
|
|
14759
14787
|
* @default "Loading"
|
|
14760
14788
|
*/
|
|
14761
|
-
this.intlLoading = TEXT$
|
|
14789
|
+
this.intlLoading = TEXT$u.loading;
|
|
14762
14790
|
/** When true, the icon is flipped in RTL. */
|
|
14763
14791
|
this.iconFlipRtl = false;
|
|
14764
14792
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15159,25 +15187,25 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15159
15187
|
// --------------------------------------------------------------------------
|
|
15160
15188
|
render() {
|
|
15161
15189
|
const dir = getElementDir(this.el);
|
|
15162
|
-
const loader = (h("div", { class: CSS$
|
|
15163
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15164
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
15190
|
+
const loader = (h("div", { class: CSS$t.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15191
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$t.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15192
|
+
const iconEl = (h("calcite-icon", { class: CSS$t.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15165
15193
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
15166
15194
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
15167
|
-
[CSS$
|
|
15168
|
-
[CSS$
|
|
15195
|
+
[CSS$t.numberButtonItem]: true,
|
|
15196
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15169
15197
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
15170
15198
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
15171
|
-
[CSS$
|
|
15172
|
-
[CSS$
|
|
15199
|
+
[CSS$t.numberButtonItem]: true,
|
|
15200
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15173
15201
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
15174
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
15175
|
-
const prefixText = h("div", { class: CSS$
|
|
15176
|
-
const suffixText = h("div", { class: CSS$
|
|
15202
|
+
const numberButtonsVertical = (h("div", { class: CSS$t.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
15203
|
+
const prefixText = h("div", { class: CSS$t.prefix }, this.prefixText);
|
|
15204
|
+
const suffixText = h("div", { class: CSS$t.suffix }, this.suffixText);
|
|
15177
15205
|
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue }));
|
|
15178
|
-
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
15206
|
+
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$t.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15179
15207
|
? numberButtonsHorizontalDown
|
|
15180
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
15208
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$t.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$t.actionWrapper }, h("slot", { name: SLOTS$h.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15181
15209
|
? numberButtonsHorizontalUp
|
|
15182
15210
|
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
15183
15211
|
}
|
|
@@ -15192,6 +15220,320 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15192
15220
|
static get style() { return inputNumberCss; }
|
|
15193
15221
|
};
|
|
15194
15222
|
|
|
15223
|
+
const CSS$s = {
|
|
15224
|
+
loader: "loader",
|
|
15225
|
+
clearButton: "clear-button",
|
|
15226
|
+
editingEnabled: "editing-enabled",
|
|
15227
|
+
inlineChild: "inline-child",
|
|
15228
|
+
inputIcon: "icon",
|
|
15229
|
+
prefix: "prefix",
|
|
15230
|
+
suffix: "suffix",
|
|
15231
|
+
wrapper: "element-wrapper",
|
|
15232
|
+
inputWrapper: "wrapper",
|
|
15233
|
+
actionWrapper: "action-wrapper",
|
|
15234
|
+
resizeIconWrapper: "resize-icon-wrapper"
|
|
15235
|
+
};
|
|
15236
|
+
const SLOTS$g = {
|
|
15237
|
+
action: "action"
|
|
15238
|
+
};
|
|
15239
|
+
const TEXT$c = {
|
|
15240
|
+
clear: "Clear value"
|
|
15241
|
+
};
|
|
15242
|
+
|
|
15243
|
+
const inputTextCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 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;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}input{-webkit-transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-block-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}.inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.inline-child .editing-enabled{background-color:inherit}.inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
15244
|
+
|
|
15245
|
+
const InputText = class extends HTMLElement$1 {
|
|
15246
|
+
constructor() {
|
|
15247
|
+
super();
|
|
15248
|
+
this.__registerHost();
|
|
15249
|
+
this.__attachShadow();
|
|
15250
|
+
this.calciteInternalInputTextFocus = createEvent(this, "calciteInternalInputTextFocus", 7);
|
|
15251
|
+
this.calciteInternalInputTextBlur = createEvent(this, "calciteInternalInputTextBlur", 7);
|
|
15252
|
+
this.calciteInputTextInput = createEvent(this, "calciteInputTextInput", 7);
|
|
15253
|
+
this.calciteInputTextChange = createEvent(this, "calciteInputTextChange", 7);
|
|
15254
|
+
//--------------------------------------------------------------------------
|
|
15255
|
+
//
|
|
15256
|
+
// Properties
|
|
15257
|
+
//
|
|
15258
|
+
//--------------------------------------------------------------------------
|
|
15259
|
+
/** Specifies the text alignment of the component's value. */
|
|
15260
|
+
this.alignment = "start";
|
|
15261
|
+
/**
|
|
15262
|
+
* When true, the component is focused on page load.
|
|
15263
|
+
*
|
|
15264
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
15265
|
+
*/
|
|
15266
|
+
this.autofocus = false;
|
|
15267
|
+
/**
|
|
15268
|
+
* When true, a clear button is displayed when the component has a value.
|
|
15269
|
+
*/
|
|
15270
|
+
this.clearable = false;
|
|
15271
|
+
/**
|
|
15272
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
15273
|
+
*
|
|
15274
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
15275
|
+
*/
|
|
15276
|
+
this.disabled = false;
|
|
15277
|
+
/**
|
|
15278
|
+
* When true, the component will not be visible.
|
|
15279
|
+
*
|
|
15280
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
15281
|
+
*/
|
|
15282
|
+
this.hidden = false;
|
|
15283
|
+
/**
|
|
15284
|
+
* Accessible name that will appear while loading.
|
|
15285
|
+
*
|
|
15286
|
+
* @default "Loading"
|
|
15287
|
+
*/
|
|
15288
|
+
this.intlLoading = TEXT$u.loading;
|
|
15289
|
+
/** When true, the icon is flipped in RTL. */
|
|
15290
|
+
this.iconFlipRtl = false;
|
|
15291
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
15292
|
+
this.loading = false;
|
|
15293
|
+
/**
|
|
15294
|
+
* When true, the value cannot be modified.
|
|
15295
|
+
*
|
|
15296
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
15297
|
+
*/
|
|
15298
|
+
this.readOnly = false;
|
|
15299
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
15300
|
+
this.required = false;
|
|
15301
|
+
/** Specifies the size of the component. */
|
|
15302
|
+
this.scale = "m";
|
|
15303
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
15304
|
+
this.status = "idle";
|
|
15305
|
+
/**
|
|
15306
|
+
* @internal
|
|
15307
|
+
*/
|
|
15308
|
+
this.editingEnabled = false;
|
|
15309
|
+
/** The component's value. */
|
|
15310
|
+
this.value = "";
|
|
15311
|
+
this.previousValueOrigin = "initial";
|
|
15312
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
15313
|
+
this.userChangedValue = false;
|
|
15314
|
+
//--------------------------------------------------------------------------
|
|
15315
|
+
//
|
|
15316
|
+
// Private Methods
|
|
15317
|
+
//
|
|
15318
|
+
//--------------------------------------------------------------------------
|
|
15319
|
+
this.keyDownHandler = (event) => {
|
|
15320
|
+
if (this.readOnly || this.disabled) {
|
|
15321
|
+
return;
|
|
15322
|
+
}
|
|
15323
|
+
if (this.isClearable && event.key === "Escape") {
|
|
15324
|
+
this.clearInputTextValue(event);
|
|
15325
|
+
event.preventDefault();
|
|
15326
|
+
}
|
|
15327
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
15328
|
+
submitForm(this);
|
|
15329
|
+
}
|
|
15330
|
+
};
|
|
15331
|
+
this.clearInputTextValue = (nativeEvent) => {
|
|
15332
|
+
this.setValue({
|
|
15333
|
+
committing: true,
|
|
15334
|
+
nativeEvent,
|
|
15335
|
+
origin: "user",
|
|
15336
|
+
value: ""
|
|
15337
|
+
});
|
|
15338
|
+
};
|
|
15339
|
+
this.emitChangeIfUserModified = () => {
|
|
15340
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
15341
|
+
this.calciteInputTextChange.emit();
|
|
15342
|
+
}
|
|
15343
|
+
this.previousEmittedValue = this.value;
|
|
15344
|
+
};
|
|
15345
|
+
this.inputTextBlurHandler = () => {
|
|
15346
|
+
this.calciteInternalInputTextBlur.emit({
|
|
15347
|
+
element: this.childEl,
|
|
15348
|
+
value: this.value
|
|
15349
|
+
});
|
|
15350
|
+
this.emitChangeIfUserModified();
|
|
15351
|
+
};
|
|
15352
|
+
this.inputTextFocusHandler = (event) => {
|
|
15353
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15354
|
+
if (event.target !== slottedActionEl) {
|
|
15355
|
+
this.setFocus();
|
|
15356
|
+
}
|
|
15357
|
+
this.calciteInternalInputTextFocus.emit({
|
|
15358
|
+
element: this.childEl,
|
|
15359
|
+
value: this.value
|
|
15360
|
+
});
|
|
15361
|
+
};
|
|
15362
|
+
this.inputTextInputHandler = (nativeEvent) => {
|
|
15363
|
+
if (this.disabled || this.readOnly) {
|
|
15364
|
+
return;
|
|
15365
|
+
}
|
|
15366
|
+
this.setValue({
|
|
15367
|
+
nativeEvent,
|
|
15368
|
+
origin: "user",
|
|
15369
|
+
value: nativeEvent.target.value
|
|
15370
|
+
});
|
|
15371
|
+
};
|
|
15372
|
+
this.inputTextKeyDownHandler = (event) => {
|
|
15373
|
+
if (this.disabled || this.readOnly) {
|
|
15374
|
+
return;
|
|
15375
|
+
}
|
|
15376
|
+
if (event.key === "Enter") {
|
|
15377
|
+
this.emitChangeIfUserModified();
|
|
15378
|
+
}
|
|
15379
|
+
};
|
|
15380
|
+
this.setChildElRef = (el) => {
|
|
15381
|
+
this.childEl = el;
|
|
15382
|
+
};
|
|
15383
|
+
this.setInputValue = (newInputValue) => {
|
|
15384
|
+
if (!this.childEl) {
|
|
15385
|
+
return;
|
|
15386
|
+
}
|
|
15387
|
+
this.childEl.value = newInputValue;
|
|
15388
|
+
};
|
|
15389
|
+
this.setPreviousEmittedValue = (newPreviousEmittedValue) => {
|
|
15390
|
+
this.previousEmittedValue = newPreviousEmittedValue;
|
|
15391
|
+
};
|
|
15392
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
15393
|
+
this.previousValue = newPreviousValue;
|
|
15394
|
+
};
|
|
15395
|
+
this.setValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
15396
|
+
this.setPreviousValue(previousValue || this.value);
|
|
15397
|
+
this.previousValueOrigin = origin;
|
|
15398
|
+
this.userChangedValue = origin === "user" && value !== this.value;
|
|
15399
|
+
this.value = value;
|
|
15400
|
+
if (origin === "direct") {
|
|
15401
|
+
this.setInputValue(value);
|
|
15402
|
+
}
|
|
15403
|
+
if (nativeEvent) {
|
|
15404
|
+
const calciteInputTextInputEvent = this.calciteInputTextInput.emit({
|
|
15405
|
+
element: this.childEl,
|
|
15406
|
+
nativeEvent,
|
|
15407
|
+
value: this.value
|
|
15408
|
+
});
|
|
15409
|
+
if (calciteInputTextInputEvent.defaultPrevented) {
|
|
15410
|
+
this.value = this.previousValue;
|
|
15411
|
+
}
|
|
15412
|
+
else if (committing) {
|
|
15413
|
+
this.emitChangeIfUserModified();
|
|
15414
|
+
}
|
|
15415
|
+
}
|
|
15416
|
+
};
|
|
15417
|
+
}
|
|
15418
|
+
disabledWatcher() {
|
|
15419
|
+
this.setDisabledAction();
|
|
15420
|
+
}
|
|
15421
|
+
valueWatcher(newValue, previousValue) {
|
|
15422
|
+
if (!this.userChangedValue) {
|
|
15423
|
+
this.setValue({
|
|
15424
|
+
origin: "direct",
|
|
15425
|
+
previousValue,
|
|
15426
|
+
value: !newValue ? "" : newValue
|
|
15427
|
+
});
|
|
15428
|
+
}
|
|
15429
|
+
this.userChangedValue = false;
|
|
15430
|
+
}
|
|
15431
|
+
updateRequestedIcon() {
|
|
15432
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
15433
|
+
}
|
|
15434
|
+
get isClearable() {
|
|
15435
|
+
return this.clearable && this.value.length > 0;
|
|
15436
|
+
}
|
|
15437
|
+
//--------------------------------------------------------------------------
|
|
15438
|
+
//
|
|
15439
|
+
// Lifecycle
|
|
15440
|
+
//
|
|
15441
|
+
//--------------------------------------------------------------------------
|
|
15442
|
+
connectedCallback() {
|
|
15443
|
+
var _a;
|
|
15444
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
15445
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
15446
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
15447
|
+
if (this.inlineEditableEl) {
|
|
15448
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
15449
|
+
}
|
|
15450
|
+
this.setPreviousEmittedValue(this.value);
|
|
15451
|
+
this.setPreviousValue(this.value);
|
|
15452
|
+
connectLabel(this);
|
|
15453
|
+
connectForm(this);
|
|
15454
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
15455
|
+
this.setDisabledAction();
|
|
15456
|
+
}
|
|
15457
|
+
disconnectedCallback() {
|
|
15458
|
+
var _a;
|
|
15459
|
+
disconnectLabel(this);
|
|
15460
|
+
disconnectForm(this);
|
|
15461
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
15462
|
+
}
|
|
15463
|
+
componentWillLoad() {
|
|
15464
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
15465
|
+
}
|
|
15466
|
+
componentDidRender() {
|
|
15467
|
+
updateHostInteraction(this);
|
|
15468
|
+
}
|
|
15469
|
+
//--------------------------------------------------------------------------
|
|
15470
|
+
//
|
|
15471
|
+
// Public Methods
|
|
15472
|
+
//
|
|
15473
|
+
//--------------------------------------------------------------------------
|
|
15474
|
+
/** Sets focus on the component. */
|
|
15475
|
+
async setFocus() {
|
|
15476
|
+
var _a;
|
|
15477
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15478
|
+
}
|
|
15479
|
+
/** Selects all text of the component's `value`. */
|
|
15480
|
+
async selectText() {
|
|
15481
|
+
var _a;
|
|
15482
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
15483
|
+
}
|
|
15484
|
+
onLabelClick() {
|
|
15485
|
+
this.setFocus();
|
|
15486
|
+
}
|
|
15487
|
+
onFormReset() {
|
|
15488
|
+
this.setValue({
|
|
15489
|
+
origin: "reset",
|
|
15490
|
+
value: this.defaultValue
|
|
15491
|
+
});
|
|
15492
|
+
}
|
|
15493
|
+
syncHiddenFormInput(input) {
|
|
15494
|
+
if (this.minLength != null) {
|
|
15495
|
+
input.minLength = this.minLength;
|
|
15496
|
+
}
|
|
15497
|
+
if (this.maxLength != null) {
|
|
15498
|
+
input.maxLength = this.maxLength;
|
|
15499
|
+
}
|
|
15500
|
+
}
|
|
15501
|
+
setDisabledAction() {
|
|
15502
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15503
|
+
if (!slottedActionEl) {
|
|
15504
|
+
return;
|
|
15505
|
+
}
|
|
15506
|
+
this.disabled
|
|
15507
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
15508
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
15509
|
+
}
|
|
15510
|
+
// --------------------------------------------------------------------------
|
|
15511
|
+
//
|
|
15512
|
+
// Render Methods
|
|
15513
|
+
//
|
|
15514
|
+
// --------------------------------------------------------------------------
|
|
15515
|
+
render() {
|
|
15516
|
+
const dir = getElementDir(this.el);
|
|
15517
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15518
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15519
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15520
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
15521
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
15522
|
+
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
15523
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
15524
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
15525
|
+
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value }));
|
|
15526
|
+
return (h(Host, { onClick: this.inputTextFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.suffixText ? suffixText : null, h(HiddenFormInputSlot, { component: this }))));
|
|
15527
|
+
}
|
|
15528
|
+
get el() { return this; }
|
|
15529
|
+
static get watchers() { return {
|
|
15530
|
+
"disabled": ["disabledWatcher"],
|
|
15531
|
+
"value": ["valueWatcher"],
|
|
15532
|
+
"icon": ["updateRequestedIcon"]
|
|
15533
|
+
}; }
|
|
15534
|
+
static get style() { return inputTextCss; }
|
|
15535
|
+
};
|
|
15536
|
+
|
|
15195
15537
|
const maxTenthForMinuteAndSecond = 5;
|
|
15196
15538
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
15197
15539
|
try {
|
|
@@ -16231,12 +16573,12 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16231
16573
|
};
|
|
16232
16574
|
this.transitionStartHandler = (event) => {
|
|
16233
16575
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
16234
|
-
this.open
|
|
16576
|
+
this.open ? this.onBeforeOpen() : this.onBeforeClose();
|
|
16235
16577
|
}
|
|
16236
16578
|
};
|
|
16237
16579
|
this.transitionEnd = (event) => {
|
|
16238
16580
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
16239
|
-
this.open
|
|
16581
|
+
this.open ? this.onOpen() : this.onClose();
|
|
16240
16582
|
}
|
|
16241
16583
|
};
|
|
16242
16584
|
this.openEnd = () => {
|
|
@@ -16252,8 +16594,8 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16252
16594
|
/** Close the modal, first running the `beforeClose` method */
|
|
16253
16595
|
this.close = () => {
|
|
16254
16596
|
return this.beforeClose(this.el).then(() => {
|
|
16255
|
-
this.active = false;
|
|
16256
16597
|
this.open = false;
|
|
16598
|
+
this.active = false;
|
|
16257
16599
|
focusElement(this.previousActiveElement);
|
|
16258
16600
|
this.removeOverflowHiddenClass();
|
|
16259
16601
|
});
|
|
@@ -16281,7 +16623,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16281
16623
|
//--------------------------------------------------------------------------
|
|
16282
16624
|
componentWillLoad() {
|
|
16283
16625
|
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
|
16284
|
-
if (this.open
|
|
16626
|
+
if (this.open) {
|
|
16285
16627
|
this.openModal();
|
|
16286
16628
|
}
|
|
16287
16629
|
}
|
|
@@ -16339,7 +16681,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16339
16681
|
//
|
|
16340
16682
|
//--------------------------------------------------------------------------
|
|
16341
16683
|
handleEscape(event) {
|
|
16342
|
-
if (
|
|
16684
|
+
if (this.open && !this.disableEscape && event.key === "Escape") {
|
|
16343
16685
|
this.close();
|
|
16344
16686
|
}
|
|
16345
16687
|
}
|
|
@@ -16415,8 +16757,8 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16415
16757
|
openModal() {
|
|
16416
16758
|
this.previousActiveElement = document.activeElement;
|
|
16417
16759
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
16418
|
-
this.active = true;
|
|
16419
16760
|
this.open = true;
|
|
16761
|
+
this.active = true;
|
|
16420
16762
|
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
16421
16763
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
16422
16764
|
this.titleId = ensureId(titleEl);
|
|
@@ -17197,7 +17539,7 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17197
17539
|
renderMenu() {
|
|
17198
17540
|
const { el, intlOptions, menuOpen } = this;
|
|
17199
17541
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
17200
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$
|
|
17542
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$r.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
17201
17543
|
}
|
|
17202
17544
|
renderHeaderNode() {
|
|
17203
17545
|
const { el, showBackButton } = this;
|
|
@@ -27521,9 +27863,9 @@ const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"
|
|
|
27521
27863
|
const CalciteAction = /*@__PURE__*/proxyCustomElement(Action, [1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"indicator":[516],"intlLoading":[1,"intl-loading"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
27522
27864
|
const CalciteActionBar = /*@__PURE__*/proxyCustomElement(ActionBar, [1,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"layout":[513],"overflowActionsDisabled":[4,"overflow-actions-disabled"],"position":[513],"scale":[513]}]);
|
|
27523
27865
|
const CalciteActionGroup = /*@__PURE__*/proxyCustomElement(ActionGroup, [1,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"intlMore":[1,"intl-more"],"menuOpen":[1540,"menu-open"],"scale":[513]}]);
|
|
27524
|
-
const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"activeMenuItemIndex":[32]},[[
|
|
27866
|
+
const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"activeMenuItemIndex":[32]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]]);
|
|
27525
27867
|
const CalciteActionPad = /*@__PURE__*/proxyCustomElement(ActionPad, [1,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"position":[513],"scale":[513]}]);
|
|
27526
|
-
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
27868
|
+
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"open":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
27527
27869
|
const CalciteAvatar = /*@__PURE__*/proxyCustomElement(Avatar, [1,"calcite-avatar",{"scale":[513],"thumbnail":[1],"fullName":[1,"full-name"],"username":[1],"userId":[1,"user-id"],"error":[32]}]);
|
|
27528
27870
|
const CalciteBlock = /*@__PURE__*/proxyCustomElement(Block, [1,"calcite-block",{"collapsible":[4],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[2,"heading-level"],"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"intlLoading":[1,"intl-loading"],"intlOptions":[1,"intl-options"],"loading":[516],"open":[1540],"status":[513],"summary":[1],"description":[1],"disablePadding":[4,"disable-padding"]}]);
|
|
27529
27871
|
const CalciteBlockSection = /*@__PURE__*/proxyCustomElement(BlockSection, [1,"calcite-block-section",{"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"]}]);
|
|
@@ -27555,6 +27897,7 @@ const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{
|
|
|
27555
27897
|
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"readOnly":[4,"read-only"],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"open":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
27556
27898
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
27557
27899
|
const CalciteInputNumber = /*@__PURE__*/proxyCustomElement(InputNumber, [1,"calcite-input-number",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"numberingSystem":[1,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"localizedValue":[32]}]);
|
|
27900
|
+
const CalciteInputText = /*@__PURE__*/proxyCustomElement(InputText, [1,"calcite-input-text",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025]}]);
|
|
27558
27901
|
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"readOnly":[4,"read-only"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
27559
27902
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disabled":[516],"disableSpacing":[4,"disable-spacing"]}]);
|
|
27560
27903
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
@@ -27649,6 +27992,7 @@ const defineCustomElements = (opts) => {
|
|
|
27649
27992
|
CalciteInputDatePicker,
|
|
27650
27993
|
CalciteInputMessage,
|
|
27651
27994
|
CalciteInputNumber,
|
|
27995
|
+
CalciteInputText,
|
|
27652
27996
|
CalciteInputTimePicker,
|
|
27653
27997
|
CalciteLabel,
|
|
27654
27998
|
CalciteLink,
|
|
@@ -27709,4 +28053,4 @@ const defineCustomElements = (opts) => {
|
|
|
27709
28053
|
}
|
|
27710
28054
|
};
|
|
27711
28055
|
|
|
27712
|
-
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|
|
28056
|
+
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputText, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|