@esri/calcite-components 1.0.0-next.520 → 1.0.0-next.523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.css +1 -1
- 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-d208b406.system.js → p-004352e0.system.js} +2 -2
- package/dist/calcite/{p-b3a335d4.system.js → p-05c7d561.system.js} +2 -2
- package/dist/calcite/{p-ffbb4b30.system.entry.js → p-0643d361.system.entry.js} +2 -2
- package/dist/calcite/{p-43413fbc.system.entry.js → p-073444a7.system.entry.js} +2 -2
- package/dist/calcite/{p-e604ab6b.system.entry.js → p-07362122.system.entry.js} +2 -2
- package/dist/calcite/{p-cdc700be.system.entry.js → p-079b7d7d.system.entry.js} +2 -2
- package/dist/calcite/p-0ef93269.entry.js +6 -0
- package/dist/calcite/{p-c2d033d5.system.js → p-0fa206b4.system.js} +1 -1
- package/dist/calcite/{p-6dfca84e.entry.js → p-0ff59619.entry.js} +2 -2
- package/dist/calcite/{p-e4a3783d.system.entry.js → p-10ef1d9d.system.entry.js} +3 -3
- package/dist/calcite/{p-3a9aaecf.js → p-1129672f.js} +1 -1
- package/dist/calcite/{p-73f440bb.entry.js → p-11830700.entry.js} +2 -2
- package/dist/calcite/{p-a3507dfe.system.entry.js → p-1195e8b0.system.entry.js} +2 -2
- package/dist/calcite/{p-0e23ec86.system.js → p-13037d93.system.js} +1 -1
- package/dist/calcite/{p-9b239dcc.system.js → p-1552d0c0.system.js} +1 -1
- package/dist/calcite/{p-8cadf826.system.js → p-15d4fb17.system.js} +2 -2
- package/dist/calcite/{p-13088d74.system.entry.js → p-17c4e392.system.entry.js} +2 -2
- package/dist/calcite/{p-d019cd3c.js → p-17d62e32.js} +1 -1
- package/dist/calcite/{p-1920a94e.system.js → p-1aab9ecb.system.js} +1 -1
- package/dist/calcite/{p-eef651a2.system.entry.js → p-1caab2c1.system.entry.js} +2 -2
- package/dist/calcite/{p-decb56ab.entry.js → p-1d6a87fa.entry.js} +2 -2
- package/dist/calcite/{p-1fcf4389.js → p-1d8f336e.js} +1 -1
- package/dist/calcite/{p-7b1075db.system.js → p-204e44ba.system.js} +2 -2
- package/dist/calcite/{p-7add7125.entry.js → p-20705469.entry.js} +2 -2
- package/dist/calcite/{p-d4c5c673.entry.js → p-24c2d2bc.entry.js} +2 -2
- package/dist/calcite/{p-adf0ece2.system.entry.js → p-27ff1873.system.entry.js} +2 -2
- package/dist/calcite/{p-a161f860.system.entry.js → p-28d03e64.system.entry.js} +2 -2
- package/dist/calcite/{p-9b38c931.entry.js → p-2d4b5d19.entry.js} +2 -2
- package/dist/calcite/{p-14bc0533.entry.js → p-2ee49902.entry.js} +2 -2
- package/dist/calcite/{p-06c14b86.system.entry.js → p-2f049da3.system.entry.js} +3 -3
- package/dist/calcite/{p-6d2ba11e.entry.js → p-31eb7bef.entry.js} +2 -2
- package/dist/calcite/{p-abaae4a0.entry.js → p-33e6aeb9.entry.js} +2 -2
- package/dist/calcite/{p-3b3d8fda.system.entry.js → p-33f73519.system.entry.js} +2 -2
- package/dist/calcite/{p-7842b132.entry.js → p-377cc6dd.entry.js} +2 -2
- package/dist/calcite/{p-4668d36a.js → p-37bee3ae.js} +1 -1
- package/dist/calcite/p-3815e8c6.system.entry.js +6 -0
- package/dist/calcite/{p-16f227fc.system.entry.js → p-38227861.system.entry.js} +2 -2
- package/dist/calcite/{p-f2cbad46.system.entry.js → p-3c195b35.system.entry.js} +2 -2
- package/dist/calcite/{p-917106dd.system.entry.js → p-3d1bcc02.system.entry.js} +2 -2
- package/dist/calcite/{p-78274269.system.js → p-3e23417f.system.js} +1 -1
- package/dist/calcite/{p-f4742511.js → p-3ec5ae8d.js} +1 -1
- package/dist/calcite/{p-98ac7b27.entry.js → p-3fc2bb4b.entry.js} +2 -2
- package/dist/calcite/{p-aff0389a.system.js → p-4161a0f7.system.js} +2 -2
- package/dist/calcite/{p-9398bb6c.js → p-41ea7209.js} +2 -2
- package/dist/calcite/{p-0444a89a.js → p-4353401a.js} +2 -2
- package/dist/calcite/{p-973fa781.entry.js → p-449f39b5.entry.js} +2 -2
- package/dist/calcite/p-44f24a20.system.js +6 -0
- package/dist/calcite/{p-772f4a3f.system.entry.js → p-45fa414b.system.entry.js} +2 -2
- package/dist/calcite/{p-a1621fa7.entry.js → p-4606f83e.entry.js} +2 -2
- package/dist/calcite/{p-51586eee.system.entry.js → p-4c26abc4.system.entry.js} +2 -2
- package/dist/calcite/{p-7d329d08.js → p-4c67afa7.js} +2 -2
- package/dist/calcite/{p-007035f4.system.entry.js → p-4cc03417.system.entry.js} +2 -2
- package/dist/calcite/{p-58661475.system.entry.js → p-4d5b7af9.system.entry.js} +2 -2
- package/dist/calcite/{p-abca805d.system.entry.js → p-4dc3dfc3.system.entry.js} +2 -2
- package/dist/calcite/{p-39d3e8e7.entry.js → p-4e86247d.entry.js} +2 -2
- package/dist/calcite/{p-8bf55d55.entry.js → p-52564764.entry.js} +2 -2
- package/dist/calcite/{p-78f47358.system.entry.js → p-525691e4.system.entry.js} +2 -2
- package/dist/calcite/{p-b659cdbb.entry.js → p-53d6bc33.entry.js} +2 -2
- package/dist/calcite/{p-4d71f62d.system.js → p-5493c5e8.system.js} +3 -3
- package/dist/calcite/{p-9781070e.system.js → p-54b2adec.system.js} +1 -1
- package/dist/calcite/{p-ca265c09.system.js → p-55fe6e64.system.js} +1 -1
- package/dist/calcite/{p-cafdc1c6.system.entry.js → p-56d9a456.system.entry.js} +2 -2
- package/dist/calcite/{p-d05ce5f8.entry.js → p-59c3a1c7.entry.js} +2 -2
- package/dist/calcite/{p-c2deb2ce.system.entry.js → p-5a1fb73e.system.entry.js} +2 -2
- package/dist/calcite/{p-534a7ca5.entry.js → p-5b7ee3ae.entry.js} +2 -2
- package/dist/calcite/{p-2df6116d.entry.js → p-5be0d6f7.entry.js} +2 -2
- package/dist/calcite/{p-dbae690a.system.entry.js → p-5bec3378.system.entry.js} +2 -2
- package/dist/calcite/{p-82e2b61e.js → p-6321f252.js} +1 -1
- package/dist/calcite/{p-7157eb29.system.js → p-642a2880.system.js} +1 -1
- package/dist/calcite/p-6798948e.entry.js +6 -0
- package/dist/calcite/{p-75e8e02e.entry.js → p-680a8b94.entry.js} +2 -2
- package/dist/calcite/{p-dc40dde4.system.entry.js → p-6bd57878.system.entry.js} +2 -2
- package/dist/calcite/p-6bddf1ea.system.entry.js +6 -0
- package/dist/calcite/p-6d27fcac.entry.js +6 -0
- package/dist/calcite/{p-7e57e47c.system.entry.js → p-6d8cd80e.system.entry.js} +2 -2
- package/dist/calcite/{p-3191b270.entry.js → p-6d96d095.entry.js} +2 -2
- package/dist/calcite/{p-02362c11.entry.js → p-6e1159f6.entry.js} +2 -2
- package/dist/calcite/{p-e6f77179.js → p-7437f875.js} +2 -2
- package/dist/calcite/{p-75a33e5a.system.entry.js → p-761df8f8.system.entry.js} +2 -2
- package/dist/calcite/p-778c65d2.system.entry.js +6 -0
- package/dist/calcite/p-783e3ab9.entry.js +6 -0
- package/dist/calcite/{p-c8a0343c.system.entry.js → p-78fc4d93.system.entry.js} +2 -2
- package/dist/calcite/{p-2be5f5e4.system.entry.js → p-7d10d214.system.entry.js} +2 -2
- package/dist/calcite/{p-a64bd767.system.entry.js → p-7e09d072.system.entry.js} +2 -2
- package/dist/calcite/{p-f7fd201f.js → p-7f276264.js} +1 -1
- package/dist/calcite/{p-3340e3fb.entry.js → p-7f39e1f9.entry.js} +2 -2
- package/dist/calcite/p-7faeee8c.entry.js +6 -0
- package/dist/calcite/{p-f6cbe0ab.system.js → p-831aba9f.system.js} +2 -2
- package/dist/calcite/{p-1ab88ba3.system.entry.js → p-83263713.system.entry.js} +2 -2
- package/dist/calcite/{p-dd699884.entry.js → p-85a6d514.entry.js} +2 -2
- package/dist/calcite/{p-ee37ffbc.system.entry.js → p-899a9e2a.system.entry.js} +2 -2
- package/dist/calcite/{p-8e1b9b65.js → p-8a2e3c90.js} +1 -1
- package/dist/calcite/{p-da3ed14f.system.js → p-8c79d825.system.js} +1 -1
- package/dist/calcite/p-8cad2d35.system.entry.js +6 -0
- package/dist/calcite/{p-13fe270d.entry.js → p-8d975b20.entry.js} +2 -2
- package/dist/calcite/{p-bb6ff111.system.entry.js → p-8f94d8cc.system.entry.js} +2 -2
- package/dist/calcite/{p-d78d8570.system.entry.js → p-90509e41.system.entry.js} +2 -2
- package/dist/calcite/{p-368f2f77.system.entry.js → p-90af023c.system.entry.js} +2 -2
- package/dist/calcite/{p-d178a247.entry.js → p-91951236.entry.js} +2 -2
- package/dist/calcite/{p-5ff3fb7e.entry.js → p-92d7b2cb.entry.js} +2 -2
- package/dist/calcite/{p-72977808.system.entry.js → p-93d27bf2.system.entry.js} +2 -2
- package/dist/calcite/{p-0c58bda7.entry.js → p-950fdeca.entry.js} +2 -2
- package/dist/calcite/{p-f8c872a2.system.js → p-9606efc1.system.js} +2 -2
- package/dist/calcite/p-990d623d.system.js +6 -0
- package/dist/calcite/{p-c4972e72.system.entry.js → p-9d3d7220.system.entry.js} +2 -2
- package/dist/calcite/{p-8277926c.entry.js → p-9d9bd4a3.entry.js} +2 -2
- package/dist/calcite/{p-b8d25736.entry.js → p-9e12a9c6.entry.js} +2 -2
- package/dist/calcite/{p-815189c6.system.js → p-9f7515c4.system.js} +1 -1
- package/dist/calcite/{p-1ae60c44.entry.js → p-a8f7c29e.entry.js} +2 -2
- package/dist/calcite/{p-29dbb7c3.system.entry.js → p-aaf53c68.system.entry.js} +2 -2
- package/dist/calcite/{p-fce697b5.entry.js → p-ab826c72.entry.js} +2 -2
- package/dist/calcite/{p-96b8ffc2.entry.js → p-abd48562.entry.js} +2 -2
- package/dist/calcite/{p-d25efce4.entry.js → p-ac2b7534.entry.js} +2 -2
- package/dist/calcite/{p-5cd95bda.entry.js → p-adf4922e.entry.js} +2 -2
- package/dist/calcite/p-b00be007.js +6 -0
- package/dist/calcite/{p-f4b079fd.entry.js → p-b060fb39.entry.js} +2 -2
- package/dist/calcite/{p-a081753e.entry.js → p-b0ac5faf.entry.js} +2 -2
- package/dist/calcite/{p-76b6b612.system.entry.js → p-b0b5339f.system.entry.js} +2 -2
- package/dist/calcite/{p-14ea0159.system.js → p-b0bf3474.system.js} +2 -2
- package/dist/calcite/{p-73577e93.system.js → p-b2b07f5b.system.js} +1 -1
- package/dist/calcite/{p-1a04dc2a.entry.js → p-b2c199aa.entry.js} +2 -2
- package/dist/calcite/{p-10f66af0.entry.js → p-b465ee91.entry.js} +2 -2
- package/dist/calcite/{p-9da42c36.js → p-b4f504e3.js} +2 -2
- package/dist/calcite/{p-f2bd3b8f.system.entry.js → p-b614bb85.system.entry.js} +2 -2
- package/dist/calcite/{p-1f3485fd.js → p-b7661f62.js} +2 -2
- package/dist/calcite/{p-73f3b6cd.system.entry.js → p-b775ea70.system.entry.js} +2 -2
- package/dist/calcite/p-b871a2ec.entry.js +6 -0
- package/dist/calcite/{p-d3130f3f.entry.js → p-bb03fd42.entry.js} +2 -2
- package/dist/calcite/{p-7fd5a8a3.js → p-bbce0456.js} +1 -1
- package/dist/calcite/{p-0a3ac5b7.entry.js → p-c6cea668.entry.js} +2 -2
- package/dist/calcite/{p-59b0561b.system.entry.js → p-cbdc4057.system.entry.js} +2 -2
- package/dist/calcite/p-cc25ada3.entry.js +6 -0
- package/dist/calcite/{p-e17c874d.system.entry.js → p-ccd71715.system.entry.js} +2 -2
- package/dist/calcite/{p-d6b6d5a1.entry.js → p-cce748e7.entry.js} +2 -2
- package/dist/calcite/{p-083b105d.js → p-cfa56b79.js} +2 -2
- package/dist/calcite/{p-b3bf4e2b.js → p-d355ad4f.js} +2 -2
- package/dist/calcite/{p-74d1af1c.js → p-d5b606c0.js} +1 -1
- package/dist/calcite/{p-d601ac5d.entry.js → p-d75c12e6.entry.js} +2 -2
- package/dist/calcite/{p-09e283e8.system.entry.js → p-d7f3b711.system.entry.js} +2 -2
- package/dist/calcite/{p-4eee040b.system.entry.js → p-d90f0c15.system.entry.js} +2 -2
- package/dist/calcite/p-d9572c12.system.entry.js +6 -0
- package/dist/calcite/{p-6b844ad2.system.entry.js → p-d9662bea.system.entry.js} +2 -2
- package/dist/calcite/{p-6fb2dac3.js → p-dbd68af0.js} +2 -2
- package/dist/calcite/{p-6fa4fd93.entry.js → p-dc1ca779.entry.js} +2 -2
- package/dist/calcite/{p-f9e32dc5.system.entry.js → p-dc6f46c8.system.entry.js} +2 -2
- package/dist/calcite/{p-9946dd96.system.js → p-ddc38b93.system.js} +1 -1
- package/dist/calcite/{p-6c2b78c1.system.entry.js → p-e0b4f38a.system.entry.js} +3 -3
- package/dist/calcite/{p-ff6b1162.system.js → p-e1e12b8c.system.js} +1 -1
- package/dist/calcite/{p-48b6f6f7.system.js → p-e33bcd83.system.js} +1 -1
- package/dist/calcite/{p-f633dc67.entry.js → p-e4d0deb8.entry.js} +2 -2
- package/dist/calcite/{p-937f4763.js → p-e8c06888.js} +1 -1
- package/dist/calcite/{p-2758b523.entry.js → p-ea6f7dbf.entry.js} +2 -2
- package/dist/calcite/{p-e70390dc.system.entry.js → p-ea7835cb.system.entry.js} +2 -2
- package/dist/calcite/{p-28292cd2.entry.js → p-ecc6eceb.entry.js} +2 -2
- package/dist/calcite/{p-a9945df6.entry.js → p-ed90619e.entry.js} +2 -2
- package/dist/calcite/{p-795b0aa3.system.entry.js → p-f0957544.system.entry.js} +2 -2
- package/dist/calcite/{p-ad6accf2.js → p-f18ea10d.js} +1 -1
- package/dist/calcite/{p-383c5cdf.system.entry.js → p-f5b978d1.system.entry.js} +3 -3
- package/dist/calcite/{p-c2f18e0d.entry.js → p-f6b1db4a.entry.js} +2 -2
- package/dist/calcite/{p-213f3a0c.system.js → p-f70b488e.system.js} +2 -2
- package/dist/calcite/p-f90bf867.entry.js +6 -0
- package/dist/calcite/{p-5f40009c.entry.js → p-f924863b.entry.js} +2 -2
- package/dist/calcite/{p-9a4b8d19.js → p-fb94e654.js} +2 -2
- package/dist/calcite/{p-85ea5712.system.entry.js → p-fc3bd1a3.system.entry.js} +2 -2
- package/dist/calcite/{p-e8b7db23.js → p-fc91c0f8.js} +1 -1
- package/dist/calcite/{p-677f24bf.system.entry.js → p-fdd02185.system.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-99f3781c.js → ExpandToggle-9507d3ca.js} +5 -5
- package/dist/cjs/{Heading-4337cacd.js → Heading-7e253e8e.js} +2 -2
- package/dist/cjs/{array-2b95adc7.js → array-a57073d5.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +17 -8
- 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 +8 -8
- 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 +5 -5
- 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 +54 -33
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +37 -21
- 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 +531 -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 +12 -6
- 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 +25 -16
- 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 +4 -4
- package/dist/cjs/{conditionalSlot-a86a0d93.js → conditionalSlot-d41127a4.js} +3 -3
- package/dist/cjs/{debounce-d2b703d9.js → debounce-a35c1810.js} +1 -1
- package/dist/cjs/{dom-276aaf99.js → dom-58235738.js} +2 -2
- package/dist/cjs/{forIn-89a77d46.js → forIn-3ba66b3b.js} +2 -2
- package/dist/cjs/{form-90809048.js → form-1abc7765.js} +3 -3
- package/dist/cjs/{guid-05de8683.js → guid-93c89ea3.js} +1 -1
- package/dist/cjs/{index-92b04246.js → index-f1d0c484.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-8f9c108d.js → interactive-5dd9b2a6.js} +1 -1
- package/dist/cjs/{interfaces-1432ba48.js → interfaces-efc36733.js} +1 -1
- package/dist/cjs/{key-14b78e13.js → key-d3ad4863.js} +1 -1
- package/dist/cjs/{label-b7e1da52.js → label-9a7ce420.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-30f27f51.js → locale-89a7456a.js} +2 -2
- package/dist/cjs/{math-c4db1901.js → math-e75ae285.js} +1 -1
- package/dist/cjs/{observers-46d26c87.js → observers-4419aca1.js} +1 -1
- package/dist/cjs/{popper-56aa0819.js → popper-fab63b23.js} +2 -2
- package/dist/cjs/{resources-f9d89ecd.js → resources-12d06a91.js} +1 -1
- package/dist/cjs/{resources-d9fd225b.js → resources-235699e9.js} +3 -3
- package/dist/cjs/{resources-5906f91a.js → resources-7be0bfba.js} +5 -5
- package/dist/cjs/{resources-7afa5ac3.js → resources-a96e38c2.js} +1 -1
- package/dist/cjs/{sortable.esm-d2f57c8a.js → sortable.esm-3196d6bf.js} +1 -1
- package/dist/cjs/{utils-d09ab03a.js → utils-c2ffca01.js} +1 -1
- package/dist/collection/collection-manifest.json +7 -1
- 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.css +18 -9
- package/dist/collection/components/accordion-item/accordion-item.js +35 -5
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- 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.js +69 -25
- 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/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 -1
- package/dist/collection/components/dropdown/dropdown.js +55 -16
- 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-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +509 -0
- package/dist/collection/components/input-number/input-number.js +1251 -0
- package/dist/collection/components/input-number/interfaces.js +6 -0
- package/dist/collection/components/input-number/resources.js +27 -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.css +15 -10
- package/dist/collection/components/label/label.js +28 -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.css +10 -5
- package/dist/collection/components/modal/modal.js +44 -12
- 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/resources.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/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/popper.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 +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +3 -3
- package/dist/components/calcite-accordion-item.js +15 -5
- 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 +1 -1
- 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 +2 -2
- 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 +46 -24
- 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 +2 -2
- package/dist/components/calcite-input-date-picker.js +4 -4
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.d.ts +11 -0
- package/dist/components/calcite-input-number.js +592 -0
- package/dist/components/calcite-input-time-picker.js +2 -2
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +2 -2
- 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 +22 -12
- 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 +2 -2
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +2 -2
- package/dist/components/calcite-rating.js +2 -2
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/components/calcite-tree-item.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +2 -2
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +33 -16
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +5 -90
- package/dist/components/index.js +1 -91
- package/dist/components/input.js +2 -2
- 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 +112 -80
- package/dist/components/label2.js +87 -112
- 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 +2 -2
- package/dist/components/popper.js +2 -2
- 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 +2 -2
- package/dist/components/tab-nav.js +2 -2
- 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 +980 -405
- package/dist/esm/{ExpandToggle-d4acd022.js → ExpandToggle-ff0312ae.js} +5 -5
- package/dist/esm/{Heading-252785eb.js → Heading-2dd01e0b.js} +2 -2
- package/dist/esm/{array-bded6ddd.js → array-1a396234.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +17 -8
- 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 +8 -8
- 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 +5 -5
- 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 +54 -33
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +37 -21
- 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 +527 -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 +12 -6
- 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 +25 -16
- 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 +4 -4
- package/dist/esm/{conditionalSlot-8a611e76.js → conditionalSlot-dde7a1b0.js} +3 -3
- package/dist/esm/{debounce-17713200.js → debounce-063fdfaf.js} +1 -1
- package/dist/esm/{dom-3bc3e6f2.js → dom-fc734eee.js} +2 -2
- package/dist/esm/{forIn-3302954f.js → forIn-e2ab159c.js} +2 -2
- package/dist/esm/{form-cb292ed6.js → form-3cbdbe57.js} +3 -3
- package/dist/esm/{guid-5aa84743.js → guid-c8a2a54f.js} +1 -1
- package/dist/esm/{index-3ec30bad.js → index-a3bb1052.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-21921578.js → interactive-439f09f8.js} +1 -1
- package/dist/esm/{interfaces-3c2efb02.js → interfaces-04bb2845.js} +1 -1
- package/dist/esm/{key-02ae0e60.js → key-258681fb.js} +1 -1
- package/dist/esm/{label-3a519eed.js → label-0f5ad8c6.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-1e310e6f.js → locale-671abfd4.js} +2 -2
- package/dist/esm/{math-9da1254c.js → math-c1681dd0.js} +1 -1
- package/dist/esm/{observers-f302dd59.js → observers-d616c25a.js} +1 -1
- package/dist/esm/{popper-00afea1c.js → popper-a34dd610.js} +2 -2
- package/dist/esm/{resources-790145ca.js → resources-0f593b6f.js} +3 -3
- package/dist/esm/{resources-21dc5137.js → resources-1e228a4b.js} +1 -1
- package/dist/esm/{resources-3f5a19f3.js → resources-933857c3.js} +1 -1
- package/dist/esm/{resources-2eb35342.js → resources-a194ae6b.js} +5 -5
- package/dist/esm/{sortable.esm-86b33659.js → sortable.esm-f2b5f05a.js} +1 -1
- package/dist/esm/{utils-3bf99050.js → utils-2c4c9ab8.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-d4acd022.js → ExpandToggle-ff0312ae.js} +2 -2
- package/dist/esm-es5/{Heading-252785eb.js → Heading-2dd01e0b.js} +2 -2
- package/dist/esm-es5/{array-bded6ddd.js → array-1a396234.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 +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.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 +3 -3
- 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-8a611e76.js → conditionalSlot-dde7a1b0.js} +2 -2
- package/dist/esm-es5/{debounce-17713200.js → debounce-063fdfaf.js} +1 -1
- package/dist/esm-es5/{dom-3bc3e6f2.js → dom-fc734eee.js} +2 -2
- package/dist/esm-es5/{forIn-3302954f.js → forIn-e2ab159c.js} +2 -2
- package/dist/esm-es5/{form-cb292ed6.js → form-3cbdbe57.js} +2 -2
- package/dist/esm-es5/{guid-5aa84743.js → guid-c8a2a54f.js} +1 -1
- package/dist/esm-es5/{index-3ec30bad.js → index-a3bb1052.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-21921578.js → interactive-439f09f8.js} +1 -1
- package/dist/esm-es5/{interfaces-3c2efb02.js → interfaces-04bb2845.js} +1 -1
- package/dist/esm-es5/{key-02ae0e60.js → key-258681fb.js} +1 -1
- package/dist/esm-es5/{label-3a519eed.js → label-0f5ad8c6.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-1e310e6f.js → locale-671abfd4.js} +2 -2
- package/dist/esm-es5/{math-9da1254c.js → math-c1681dd0.js} +1 -1
- package/dist/esm-es5/{observers-f302dd59.js → observers-d616c25a.js} +1 -1
- package/dist/esm-es5/{popper-00afea1c.js → popper-a34dd610.js} +2 -2
- package/dist/esm-es5/{resources-790145ca.js → resources-0f593b6f.js} +2 -2
- package/dist/esm-es5/{resources-21dc5137.js → resources-1e228a4b.js} +1 -1
- package/dist/esm-es5/{resources-3f5a19f3.js → resources-933857c3.js} +1 -1
- package/dist/esm-es5/{resources-2eb35342.js → resources-a194ae6b.js} +2 -2
- package/dist/esm-es5/{sortable.esm-86b33659.js → sortable.esm-f2b5f05a.js} +1 -1
- package/dist/esm-es5/{utils-3bf99050.js → utils-2c4c9ab8.js} +1 -1
- package/dist/extras/docs-json.json +858 -71
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion-item/accordion-item.d.ts +7 -1
- package/dist/types/components/combobox/combobox.d.ts +7 -1
- package/dist/types/components/dropdown/dropdown.d.ts +7 -1
- package/dist/types/components/input-number/input-number.d.ts +216 -0
- package/dist/types/components/input-number/interfaces.d.ts +1 -0
- package/dist/types/components/input-number/resources.d.ts +22 -0
- package/dist/types/components/label/label.d.ts +6 -0
- package/dist/types/components/modal/modal.d.ts +9 -3
- package/dist/types/components.d.ts +353 -6
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +932 -444
- package/package.json +2 -2
- package/readme.md +2 -2
- package/dist/calcite/p-024eb16b.system.entry.js +0 -6
- package/dist/calcite/p-138c88a6.system.entry.js +0 -6
- package/dist/calcite/p-23441fd3.system.entry.js +0 -6
- package/dist/calcite/p-298f8c90.system.js +0 -6
- package/dist/calcite/p-428d25b3.entry.js +0 -6
- package/dist/calcite/p-9ad3c3f4.system.entry.js +0 -6
- package/dist/calcite/p-a1d2b979.entry.js +0 -6
- package/dist/calcite/p-a3f5192b.entry.js +0 -6
- package/dist/calcite/p-aad4f6d0.entry.js +0 -6
- package/dist/calcite/p-e8e9da27.entry.js +0 -6
- package/dist/calcite/p-ef130fda.js +0 -6
- package/dist/calcite/p-ef2be757.entry.js +0 -6
- package/dist/calcite/p-f382a06e.entry.js +0 -6
- package/dist/calcite/p-f388b1ee.system.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.523
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
/*!
|
|
11
|
-
Stencil Mock Doc v2.
|
|
11
|
+
Stencil Mock Doc v2.16.1 | MIT Licensed | https://stenciljs.com
|
|
12
12
|
*/
|
|
13
13
|
const CONTENT_REF_ID = 'r';
|
|
14
14
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -1607,9 +1607,6 @@ class MockElement extends MockNode {
|
|
|
1607
1607
|
this.shadowRoot = shadowRoot;
|
|
1608
1608
|
return shadowRoot;
|
|
1609
1609
|
}
|
|
1610
|
-
blur() {
|
|
1611
|
-
/**/
|
|
1612
|
-
}
|
|
1613
1610
|
get shadowRoot() {
|
|
1614
1611
|
return this.__shadowRoot || null;
|
|
1615
1612
|
}
|
|
@@ -1678,7 +1675,6 @@ class MockElement extends MockNode {
|
|
|
1678
1675
|
get firstElementChild() {
|
|
1679
1676
|
return this.children[0] || null;
|
|
1680
1677
|
}
|
|
1681
|
-
focus(_options) { }
|
|
1682
1678
|
getAttribute(attrName) {
|
|
1683
1679
|
if (attrName === 'style') {
|
|
1684
1680
|
if (this.__style != null && this.__style.length > 0) {
|
|
@@ -2582,28 +2578,7 @@ function createElementNS(ownerDocument, namespaceURI, tagName) {
|
|
|
2582
2578
|
return createElement(ownerDocument, tagName);
|
|
2583
2579
|
}
|
|
2584
2580
|
else if (namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
2585
|
-
|
|
2586
|
-
case 'text':
|
|
2587
|
-
case 'tspan':
|
|
2588
|
-
case 'tref':
|
|
2589
|
-
case 'altglyph':
|
|
2590
|
-
case 'textpath':
|
|
2591
|
-
return new MockSVGTextContentElement(ownerDocument, tagName);
|
|
2592
|
-
case 'circle':
|
|
2593
|
-
case 'ellipse':
|
|
2594
|
-
case 'image':
|
|
2595
|
-
case 'line':
|
|
2596
|
-
case 'path':
|
|
2597
|
-
case 'polygon':
|
|
2598
|
-
case 'polyline':
|
|
2599
|
-
case 'rect':
|
|
2600
|
-
case 'use':
|
|
2601
|
-
return new MockSVGGraphicsElement(ownerDocument, tagName);
|
|
2602
|
-
case 'svg':
|
|
2603
|
-
return new MockSVGSVGElement(ownerDocument, tagName);
|
|
2604
|
-
default:
|
|
2605
|
-
return new MockSVGElement(ownerDocument, tagName);
|
|
2606
|
-
}
|
|
2581
|
+
return new MockSVGElement(ownerDocument, tagName);
|
|
2607
2582
|
}
|
|
2608
2583
|
else {
|
|
2609
2584
|
return new MockElement(ownerDocument, tagName);
|
|
@@ -2750,98 +2725,6 @@ class MockScriptElement extends MockHTMLElement {
|
|
|
2750
2725
|
patchPropAttributes(MockScriptElement.prototype, {
|
|
2751
2726
|
type: String,
|
|
2752
2727
|
});
|
|
2753
|
-
class MockDOMMatrix {
|
|
2754
|
-
constructor() {
|
|
2755
|
-
this.a = 1;
|
|
2756
|
-
this.b = 0;
|
|
2757
|
-
this.c = 0;
|
|
2758
|
-
this.d = 1;
|
|
2759
|
-
this.e = 0;
|
|
2760
|
-
this.f = 0;
|
|
2761
|
-
this.m11 = 1;
|
|
2762
|
-
this.m12 = 0;
|
|
2763
|
-
this.m13 = 0;
|
|
2764
|
-
this.m14 = 0;
|
|
2765
|
-
this.m21 = 0;
|
|
2766
|
-
this.m22 = 1;
|
|
2767
|
-
this.m23 = 0;
|
|
2768
|
-
this.m24 = 0;
|
|
2769
|
-
this.m31 = 0;
|
|
2770
|
-
this.m32 = 0;
|
|
2771
|
-
this.m33 = 1;
|
|
2772
|
-
this.m34 = 0;
|
|
2773
|
-
this.m41 = 0;
|
|
2774
|
-
this.m42 = 0;
|
|
2775
|
-
this.m43 = 0;
|
|
2776
|
-
this.m44 = 1;
|
|
2777
|
-
this.is2D = true;
|
|
2778
|
-
this.isIdentity = true;
|
|
2779
|
-
}
|
|
2780
|
-
static fromMatrix() {
|
|
2781
|
-
return new MockDOMMatrix();
|
|
2782
|
-
}
|
|
2783
|
-
inverse() {
|
|
2784
|
-
return new MockDOMMatrix();
|
|
2785
|
-
}
|
|
2786
|
-
flipX() {
|
|
2787
|
-
return new MockDOMMatrix();
|
|
2788
|
-
}
|
|
2789
|
-
flipY() {
|
|
2790
|
-
return new MockDOMMatrix();
|
|
2791
|
-
}
|
|
2792
|
-
multiply() {
|
|
2793
|
-
return new MockDOMMatrix();
|
|
2794
|
-
}
|
|
2795
|
-
rotate() {
|
|
2796
|
-
return new MockDOMMatrix();
|
|
2797
|
-
}
|
|
2798
|
-
rotateAxisAngle() {
|
|
2799
|
-
return new MockDOMMatrix();
|
|
2800
|
-
}
|
|
2801
|
-
rotateFromVector() {
|
|
2802
|
-
return new MockDOMMatrix();
|
|
2803
|
-
}
|
|
2804
|
-
scale() {
|
|
2805
|
-
return new MockDOMMatrix();
|
|
2806
|
-
}
|
|
2807
|
-
scaleNonUniform() {
|
|
2808
|
-
return new MockDOMMatrix();
|
|
2809
|
-
}
|
|
2810
|
-
skewX() {
|
|
2811
|
-
return new MockDOMMatrix();
|
|
2812
|
-
}
|
|
2813
|
-
skewY() {
|
|
2814
|
-
return new MockDOMMatrix();
|
|
2815
|
-
}
|
|
2816
|
-
toJSON() { }
|
|
2817
|
-
toString() { }
|
|
2818
|
-
transformPoint() {
|
|
2819
|
-
return new MockDOMPoint();
|
|
2820
|
-
}
|
|
2821
|
-
translate() {
|
|
2822
|
-
return new MockDOMMatrix();
|
|
2823
|
-
}
|
|
2824
|
-
}
|
|
2825
|
-
class MockDOMPoint {
|
|
2826
|
-
constructor() {
|
|
2827
|
-
this.w = 1;
|
|
2828
|
-
this.x = 0;
|
|
2829
|
-
this.y = 0;
|
|
2830
|
-
this.z = 0;
|
|
2831
|
-
}
|
|
2832
|
-
toJSON() { }
|
|
2833
|
-
matrixTransform() {
|
|
2834
|
-
return new MockDOMMatrix();
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
class MockSVGRect {
|
|
2838
|
-
constructor() {
|
|
2839
|
-
this.height = 10;
|
|
2840
|
-
this.width = 10;
|
|
2841
|
-
this.x = 0;
|
|
2842
|
-
this.y = 0;
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2845
2728
|
class MockStyleElement extends MockHTMLElement {
|
|
2846
2729
|
constructor(ownerDocument) {
|
|
2847
2730
|
super(ownerDocument, 'style');
|
|
@@ -2874,6 +2757,9 @@ class MockSVGElement extends MockElement {
|
|
|
2874
2757
|
get viewportElement() {
|
|
2875
2758
|
return null;
|
|
2876
2759
|
}
|
|
2760
|
+
focus() {
|
|
2761
|
+
/**/
|
|
2762
|
+
}
|
|
2877
2763
|
onunload() {
|
|
2878
2764
|
/**/
|
|
2879
2765
|
}
|
|
@@ -2891,27 +2777,6 @@ class MockSVGElement extends MockElement {
|
|
|
2891
2777
|
return 0;
|
|
2892
2778
|
}
|
|
2893
2779
|
}
|
|
2894
|
-
class MockSVGGraphicsElement extends MockSVGElement {
|
|
2895
|
-
getBBox(_options) {
|
|
2896
|
-
return new MockSVGRect();
|
|
2897
|
-
}
|
|
2898
|
-
getCTM() {
|
|
2899
|
-
return new MockDOMMatrix();
|
|
2900
|
-
}
|
|
2901
|
-
getScreenCTM() {
|
|
2902
|
-
return new MockDOMMatrix();
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
class MockSVGSVGElement extends MockSVGGraphicsElement {
|
|
2906
|
-
createSVGPoint() {
|
|
2907
|
-
return new MockDOMPoint();
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
class MockSVGTextContentElement extends MockSVGGraphicsElement {
|
|
2911
|
-
getComputedTextLength() {
|
|
2912
|
-
return 0;
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
2780
|
class MockBaseElement extends MockHTMLElement {
|
|
2916
2781
|
constructor(ownerDocument) {
|
|
2917
2782
|
super(ownerDocument, 'base');
|
|
@@ -5869,7 +5734,7 @@ const CSS_UTILITY = {
|
|
|
5869
5734
|
lightTheme,
|
|
5870
5735
|
rtl: "calcite--rtl"
|
|
5871
5736
|
};
|
|
5872
|
-
const TEXT$
|
|
5737
|
+
const TEXT$t = {
|
|
5873
5738
|
loading: "Loading"
|
|
5874
5739
|
};
|
|
5875
5740
|
|
|
@@ -6050,7 +5915,7 @@ function toAriaBoolean(value) {
|
|
|
6050
5915
|
return Boolean(value).toString();
|
|
6051
5916
|
}
|
|
6052
5917
|
|
|
6053
|
-
const accordionItemCss = "@-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*/.sc-calcite-accordion-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-accordion-item{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*/.calcite-animate__in.sc-calcite-accordion-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-accordion-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-accordion-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-accordion-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-accordion-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-accordion-item-h{display:none}/*!@.icon-position--end, .icon-position--start*/.icon-position--end.sc-calcite-accordion-item,.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}/*!@.icon-position--start*/.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}/*!@.icon-position--end*/.icon-position--end.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}/*!@.icon-position--end:not(.icon-type--plus-minus)*/.icon-position--end.sc-calcite-accordion-item:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}/*!@:host*/.sc-calcite-accordion-item-h{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}/*!@:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{outline-color:transparent}/*!@:host(:focus) .accordion-item-header*/.sc-calcite-accordion-item-h:focus .accordion-item-header.sc-calcite-accordion-item{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([active])*/[active].sc-calcite-accordion-item-h{color:var(--calcite-ui-text-1)}/*!@:host([active]) .accordion-item-content*/[active].sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item{display:block;color:var(--calcite-ui-text-1)}/*!@:host([active]) .accordion-item-header*/[active].sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{border-bottom-color:transparent}/*!@:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}/*!@:host .accordion-item-icon*/.sc-calcite-accordion-item-h .accordion-item-icon.sc-calcite-accordion-item{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}/*!@:host .accordion-item-content,\n:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}/*!@:host .accordion-item-header **/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item *.sc-calcite-accordion-item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .accordion-item-content*/.sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}/*!@:host .accordion-item-expand-icon*/.sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}/*!@.calcite--rtl .accordion-item-expand-icon*/.calcite--rtl.sc-calcite-accordion-item .accordion-item-expand-icon.sc-calcite-accordion-item{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}/*!@:host([active]) .accordion-item-expand-icon*/[active].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}/*!@:host([active]) .calcite--rtl .accordion-item-expand-icon*/[active].sc-calcite-accordion-item-h .calcite--rtl.sc-calcite-accordion-item .accordion-item-expand-icon.sc-calcite-accordion-item{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}/*!@:host .accordion-item-header-text*/.sc-calcite-accordion-item-h .accordion-item-header-text.sc-calcite-accordion-item{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}/*!@:host .accordion-item-heading, \n:host .accordion-item-description*/.sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{display:-ms-flexbox;display:flex;width:100%}/*!@:host .accordion-item-heading*/.sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .accordion-item-description*/.sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{margin-top:0.25rem;color:var(--calcite-ui-text-3)}/*!@:host(:focus) .accordion-item-heading, \n:host(:hover) .accordion-item-heading*/.sc-calcite-accordion-item-h:focus .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-icon, \n:host(:hover) .accordion-item-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-expand-icon, \n:host(:hover) .accordion-item-expand-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-description, \n:host(:hover) .accordion-item-description*/.sc-calcite-accordion-item-h:focus .accordion-item-description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}/*!@:host(:focus) .accordion-item-heading, \n:host(:active) .accordion-item-heading, \n:host([active]) .accordion-item-heading*/.sc-calcite-accordion-item-h:focus .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-heading.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-icon, \n:host(:active) .accordion-item-icon, \n:host([active]) .accordion-item-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-icon.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-expand-icon, \n:host(:active) .accordion-item-expand-icon, \n:host([active]) .accordion-item-expand-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-expand-icon.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-description, \n:host(:active) .accordion-item-description, \n:host([active]) .accordion-item-description*/.sc-calcite-accordion-item-h:focus .accordion-item-description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-description.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}";
|
|
5918
|
+
const accordionItemCss = "@-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*/.sc-calcite-accordion-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-accordion-item{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*/.calcite-animate__in.sc-calcite-accordion-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-accordion-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-accordion-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-accordion-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-accordion-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-accordion-item-h{display:none}/*!@.icon-position--end, .icon-position--start*/.icon-position--end.sc-calcite-accordion-item,.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}/*!@.icon-position--start*/.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}/*!@.icon-position--end*/.icon-position--end.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}/*!@.icon-position--end:not(.icon-type--plus-minus)*/.icon-position--end.sc-calcite-accordion-item:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}/*!@:host*/.sc-calcite-accordion-item-h{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}/*!@:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{outline-color:transparent}/*!@:host(:focus) .accordion-item-header*/.sc-calcite-accordion-item-h:focus .accordion-item-header.sc-calcite-accordion-item{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([active]), \n:host([expanded])*/[active].sc-calcite-accordion-item-h,[expanded].sc-calcite-accordion-item-h{color:var(--calcite-ui-text-1)}/*!@:host([active]) .accordion-item-content, \n:host([expanded]) .accordion-item-content*/[active].sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item{display:block;color:var(--calcite-ui-text-1)}/*!@:host([active]) .accordion-item-header,\n:host([expanded]) .accordion-item-header*/[active].sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{border-bottom-color:transparent}/*!@:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}/*!@:host .accordion-item-icon*/.sc-calcite-accordion-item-h .accordion-item-icon.sc-calcite-accordion-item{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}/*!@:host .accordion-item-content,\n:host .accordion-item-header*/.sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}/*!@:host .accordion-item-header **/.sc-calcite-accordion-item-h .accordion-item-header.sc-calcite-accordion-item *.sc-calcite-accordion-item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .accordion-item-content*/.sc-calcite-accordion-item-h .accordion-item-content.sc-calcite-accordion-item{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}/*!@:host .accordion-item-expand-icon*/.sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}/*!@.calcite--rtl .accordion-item-expand-icon*/.calcite--rtl.sc-calcite-accordion-item .accordion-item-expand-icon.sc-calcite-accordion-item{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}/*!@:host([active]) .accordion-item-expand-icon, \n:host([expanded]) .accordion-item-expand-icon*/[active].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}/*!@:host([active]) .calcite--rtl .accordion-item-expand-icon,\n:host([expanded]) .calcite--rtl .accordion-item-expand-icon*/[active].sc-calcite-accordion-item-h .calcite--rtl.sc-calcite-accordion-item .accordion-item-expand-icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .calcite--rtl.sc-calcite-accordion-item .accordion-item-expand-icon.sc-calcite-accordion-item{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}/*!@:host .accordion-item-header-text*/.sc-calcite-accordion-item-h .accordion-item-header-text.sc-calcite-accordion-item{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}/*!@:host .accordion-item-heading, \n:host .accordion-item-description*/.sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{display:-ms-flexbox;display:flex;width:100%}/*!@:host .accordion-item-heading*/.sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .accordion-item-description*/.sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{margin-top:0.25rem;color:var(--calcite-ui-text-3)}/*!@:host(:focus) .accordion-item-heading, \n:host(:hover) .accordion-item-heading*/.sc-calcite-accordion-item-h:focus .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-icon, \n:host(:hover) .accordion-item-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-expand-icon, \n:host(:hover) .accordion-item-expand-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-description, \n:host(:hover) .accordion-item-description*/.sc-calcite-accordion-item-h:focus .accordion-item-description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .accordion-item-description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}/*!@:host(:focus) .accordion-item-heading, \n:host(:active) .accordion-item-heading, \n:host([active]) .accordion-item-heading, \n:host([expanded]) .accordion-item-heading*/.sc-calcite-accordion-item-h:focus .accordion-item-heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-heading.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-icon, \n:host(:active) .accordion-item-icon, \n:host([active]) .accordion-item-icon, \n:host([expanded]) .accordion-item-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-icon.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-expand-icon, \n:host(:active) .accordion-item-expand-icon, \n:host([active]) .accordion-item-expand-icon, \n:host([expanded]) .accordion-item-expand-icon*/.sc-calcite-accordion-item-h:focus .accordion-item-expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-expand-icon.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .accordion-item-description, \n:host(:active) .accordion-item-description, \n:host([active]) .accordion-item-description, \n:host([expanded]) .accordion-item-description*/.sc-calcite-accordion-item-h:focus .accordion-item-description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .accordion-item-description.sc-calcite-accordion-item,[active].sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .accordion-item-description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}";
|
|
6054
5919
|
|
|
6055
5920
|
/**
|
|
6056
5921
|
* @slot - A slot for adding custom content, including nested `calcite-accordion-item`s.
|
|
@@ -6067,8 +5932,14 @@ class AccordionItem {
|
|
|
6067
5932
|
// Public Properties
|
|
6068
5933
|
//
|
|
6069
5934
|
//--------------------------------------------------------------------------
|
|
6070
|
-
/**
|
|
5935
|
+
/**
|
|
5936
|
+
* When true, the component is active.
|
|
5937
|
+
*
|
|
5938
|
+
* @deprecated use expanded instead
|
|
5939
|
+
*/
|
|
6071
5940
|
this.active = false;
|
|
5941
|
+
/** When true, item is expanded */
|
|
5942
|
+
this.expanded = false;
|
|
6072
5943
|
//--------------------------------------------------------------------------
|
|
6073
5944
|
//
|
|
6074
5945
|
// Private State/Props
|
|
@@ -6111,9 +5982,9 @@ class AccordionItem {
|
|
|
6111
5982
|
? "chevronDown"
|
|
6112
5983
|
: this.iconType === "caret"
|
|
6113
5984
|
? "caretDown"
|
|
6114
|
-
: this.active
|
|
5985
|
+
: this.expanded || this.active
|
|
6115
5986
|
? "minus"
|
|
6116
|
-
: "plus", scale: "s" })), hAsync("div", { "aria-expanded": toAriaBoolean(this.active), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, hAsync("slot", null)))));
|
|
5987
|
+
: "plus", scale: "s" })), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded || this.active), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, hAsync("slot", null)))));
|
|
6117
5988
|
}
|
|
6118
5989
|
//--------------------------------------------------------------------------
|
|
6119
5990
|
//
|
|
@@ -6160,13 +6031,16 @@ class AccordionItem {
|
|
|
6160
6031
|
case "multi":
|
|
6161
6032
|
if (this.el === this.requestedAccordionItem) {
|
|
6162
6033
|
this.active = !this.active;
|
|
6034
|
+
this.expanded = !this.expanded;
|
|
6163
6035
|
}
|
|
6164
6036
|
break;
|
|
6165
6037
|
case "single":
|
|
6166
6038
|
this.active = this.el === this.requestedAccordionItem ? !this.active : false;
|
|
6039
|
+
this.expanded = this.el === this.requestedAccordionItem ? !this.expanded : false;
|
|
6167
6040
|
break;
|
|
6168
6041
|
case "single-persist":
|
|
6169
6042
|
this.active = this.el === this.requestedAccordionItem;
|
|
6043
|
+
this.expanded = this.el === this.requestedAccordionItem;
|
|
6170
6044
|
break;
|
|
6171
6045
|
}
|
|
6172
6046
|
}
|
|
@@ -6185,6 +6059,7 @@ class AccordionItem {
|
|
|
6185
6059
|
"$tagName$": "calcite-accordion-item",
|
|
6186
6060
|
"$members$": {
|
|
6187
6061
|
"active": [1540],
|
|
6062
|
+
"expanded": [1540],
|
|
6188
6063
|
"itemTitle": [1, "item-title"],
|
|
6189
6064
|
"itemSubtitle": [1, "item-subtitle"],
|
|
6190
6065
|
"heading": [1],
|
|
@@ -6193,11 +6068,11 @@ class AccordionItem {
|
|
|
6193
6068
|
},
|
|
6194
6069
|
"$listeners$": [[0, "keydown", "keyDownHandler"], [16, "calciteInternalAccordionChange", "updateActiveItemOnChange"]],
|
|
6195
6070
|
"$lazyBundleId$": "-",
|
|
6196
|
-
"$attrsToReflect$": [["active", "active"], ["icon", "icon"]]
|
|
6071
|
+
"$attrsToReflect$": [["active", "active"], ["expanded", "expanded"], ["icon", "icon"]]
|
|
6197
6072
|
}; }
|
|
6198
6073
|
}
|
|
6199
6074
|
|
|
6200
|
-
const CSS$
|
|
6075
|
+
const CSS$Q = {
|
|
6201
6076
|
button: "button",
|
|
6202
6077
|
buttonTextVisible: "button--text-visible",
|
|
6203
6078
|
buttonCompact: "button--compact",
|
|
@@ -6207,7 +6082,7 @@ const CSS$P = {
|
|
|
6207
6082
|
textContainer: "text-container",
|
|
6208
6083
|
textContainerVisible: "text-container--visible"
|
|
6209
6084
|
};
|
|
6210
|
-
const TEXT$
|
|
6085
|
+
const TEXT$s = {
|
|
6211
6086
|
loading: "Loading"
|
|
6212
6087
|
};
|
|
6213
6088
|
|
|
@@ -6299,7 +6174,7 @@ class Action {
|
|
|
6299
6174
|
*
|
|
6300
6175
|
* @default "Loading"
|
|
6301
6176
|
*/
|
|
6302
|
-
this.intlLoading = TEXT$
|
|
6177
|
+
this.intlLoading = TEXT$s.loading;
|
|
6303
6178
|
/**
|
|
6304
6179
|
* When true, a busy indicator is displayed.
|
|
6305
6180
|
*/
|
|
@@ -6358,8 +6233,8 @@ class Action {
|
|
|
6358
6233
|
renderTextContainer() {
|
|
6359
6234
|
const { text, textEnabled } = this;
|
|
6360
6235
|
const textContainerClasses = {
|
|
6361
|
-
[CSS$
|
|
6362
|
-
[CSS$
|
|
6236
|
+
[CSS$Q.textContainer]: true,
|
|
6237
|
+
[CSS$Q.textContainerVisible]: textEnabled
|
|
6363
6238
|
};
|
|
6364
6239
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6365
6240
|
}
|
|
@@ -6373,18 +6248,18 @@ class Action {
|
|
|
6373
6248
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6374
6249
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6375
6250
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6376
|
-
[CSS$
|
|
6377
|
-
[CSS$
|
|
6251
|
+
[CSS$Q.slotContainer]: true,
|
|
6252
|
+
[CSS$Q.slotContainerHidden]: loading
|
|
6378
6253
|
} }, hAsync("slot", null)));
|
|
6379
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6254
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$Q.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6380
6255
|
}
|
|
6381
6256
|
render() {
|
|
6382
6257
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6383
6258
|
const ariaLabel = label || text;
|
|
6384
6259
|
const buttonClasses = {
|
|
6385
|
-
[CSS$
|
|
6386
|
-
[CSS$
|
|
6387
|
-
[CSS$
|
|
6260
|
+
[CSS$Q.button]: true,
|
|
6261
|
+
[CSS$Q.buttonTextVisible]: textEnabled,
|
|
6262
|
+
[CSS$Q.buttonCompact]: compact
|
|
6388
6263
|
};
|
|
6389
6264
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, hAsync("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())));
|
|
6390
6265
|
}
|
|
@@ -6415,11 +6290,11 @@ class Action {
|
|
|
6415
6290
|
}; }
|
|
6416
6291
|
}
|
|
6417
6292
|
|
|
6418
|
-
const CSS$
|
|
6293
|
+
const CSS$P = {
|
|
6419
6294
|
menu: "menu",
|
|
6420
6295
|
defaultTrigger: "default-trigger"
|
|
6421
6296
|
};
|
|
6422
|
-
const SLOTS$
|
|
6297
|
+
const SLOTS$q = {
|
|
6423
6298
|
tooltip: "tooltip",
|
|
6424
6299
|
trigger: "trigger"
|
|
6425
6300
|
};
|
|
@@ -6427,11 +6302,11 @@ const ICONS$f = {
|
|
|
6427
6302
|
menu: "ellipsis"
|
|
6428
6303
|
};
|
|
6429
6304
|
|
|
6430
|
-
const SLOTS$
|
|
6305
|
+
const SLOTS$p = {
|
|
6431
6306
|
menuActions: "menu-actions",
|
|
6432
6307
|
menuTooltip: "menu-tooltip"
|
|
6433
6308
|
};
|
|
6434
|
-
const TEXT$
|
|
6309
|
+
const TEXT$r = {
|
|
6435
6310
|
more: "More"
|
|
6436
6311
|
};
|
|
6437
6312
|
const ICONS$e = {
|
|
@@ -6447,7 +6322,7 @@ const getOverflowCount = ({ actionCount, actionHeight, height, groupCount }) =>
|
|
|
6447
6322
|
return Math.max(actionCount - getMaxActionCount({ height, actionHeight, groupCount }), 0);
|
|
6448
6323
|
};
|
|
6449
6324
|
const queryActions = (el) => {
|
|
6450
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
6325
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$q.trigger : true);
|
|
6451
6326
|
};
|
|
6452
6327
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
6453
6328
|
let needToSlotCount = overflowCount;
|
|
@@ -6455,7 +6330,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6455
6330
|
let slottedWithinGroupCount = 0;
|
|
6456
6331
|
const groupActions = queryActions(group).reverse();
|
|
6457
6332
|
groupActions.forEach((groupAction) => {
|
|
6458
|
-
if (groupAction.slot === SLOTS$
|
|
6333
|
+
if (groupAction.slot === SLOTS$p.menuActions) {
|
|
6459
6334
|
groupAction.removeAttribute("slot");
|
|
6460
6335
|
groupAction.textEnabled = expanded;
|
|
6461
6336
|
}
|
|
@@ -6465,7 +6340,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6465
6340
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
6466
6341
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
6467
6342
|
groupAction.textEnabled = true;
|
|
6468
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
6343
|
+
groupAction.setAttribute("slot", SLOTS$p.menuActions);
|
|
6469
6344
|
slottedWithinGroupCount++;
|
|
6470
6345
|
if (slottedWithinGroupCount > 1) {
|
|
6471
6346
|
needToSlotCount--;
|
|
@@ -6488,7 +6363,7 @@ function getCalcitePosition(position, el) {
|
|
|
6488
6363
|
}
|
|
6489
6364
|
function toggleChildActionText({ parent, expanded }) {
|
|
6490
6365
|
queryActions(parent)
|
|
6491
|
-
.filter((el) => el.slot !== SLOTS$
|
|
6366
|
+
.filter((el) => el.slot !== SLOTS$p.menuActions)
|
|
6492
6367
|
.forEach((action) => (action.textEnabled = expanded));
|
|
6493
6368
|
parent
|
|
6494
6369
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -6517,14 +6392,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
6517
6392
|
return actionNode;
|
|
6518
6393
|
};
|
|
6519
6394
|
|
|
6520
|
-
const CSS$
|
|
6395
|
+
const CSS$O = {
|
|
6521
6396
|
actionGroupBottom: "action-group--bottom"
|
|
6522
6397
|
};
|
|
6523
|
-
const SLOTS$
|
|
6398
|
+
const SLOTS$o = {
|
|
6524
6399
|
bottomActions: "bottom-actions",
|
|
6525
6400
|
expandTooltip: "expand-tooltip"
|
|
6526
6401
|
};
|
|
6527
|
-
const TEXT$
|
|
6402
|
+
const TEXT$q = {
|
|
6528
6403
|
expand: "Expand",
|
|
6529
6404
|
collapse: "Collapse"
|
|
6530
6405
|
};
|
|
@@ -7889,7 +7764,7 @@ class ActionBar {
|
|
|
7889
7764
|
const actions = queryActions(el);
|
|
7890
7765
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
7891
7766
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
7892
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
7767
|
+
const groupCount = getSlotted(el, SLOTS$o.bottomActions) || !expandDisabled
|
|
7893
7768
|
? actionGroups.length + 1
|
|
7894
7769
|
: actionGroups.length;
|
|
7895
7770
|
const overflowCount = getOverflowCount({
|
|
@@ -7986,11 +7861,11 @@ class ActionBar {
|
|
|
7986
7861
|
// --------------------------------------------------------------------------
|
|
7987
7862
|
renderBottomActionGroup() {
|
|
7988
7863
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7989
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
7990
|
-
const expandLabel = intlExpand || TEXT$
|
|
7991
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7864
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
7865
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
7866
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
7992
7867
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7993
|
-
return getSlotted(el, SLOTS$
|
|
7868
|
+
return getSlotted(el, SLOTS$o.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$O.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$o.bottomActions }), hAsync("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
7994
7869
|
}
|
|
7995
7870
|
render() {
|
|
7996
7871
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8079,13 +7954,13 @@ class ActionGroup {
|
|
|
8079
7954
|
// --------------------------------------------------------------------------
|
|
8080
7955
|
renderTooltip() {
|
|
8081
7956
|
const { el } = this;
|
|
8082
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
8083
|
-
return hasTooltip ? hAsync("slot", { name: SLOTS$
|
|
7957
|
+
const hasTooltip = getSlotted(el, SLOTS$p.menuTooltip);
|
|
7958
|
+
return hasTooltip ? hAsync("slot", { name: SLOTS$p.menuTooltip, slot: SLOTS$q.tooltip }) : null;
|
|
8084
7959
|
}
|
|
8085
7960
|
renderMenu() {
|
|
8086
7961
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
8087
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
8088
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7962
|
+
const hasMenuItems = getSlotted(el, SLOTS$p.menuActions);
|
|
7963
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$r.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$q.trigger, text: intlMore || TEXT$r.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$p.menuActions }), this.renderTooltip())) : null;
|
|
8089
7964
|
}
|
|
8090
7965
|
render() {
|
|
8091
7966
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8163,7 +8038,7 @@ class ActionMenu {
|
|
|
8163
8038
|
// --------------------------------------------------------------------------
|
|
8164
8039
|
this.connectMenuButtonEl = () => {
|
|
8165
8040
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
8166
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
8041
|
+
const menuButtonEl = getSlotted(el, SLOTS$q.trigger) || this.defaultMenuButtonEl;
|
|
8167
8042
|
if (this.menuButtonEl === menuButtonEl) {
|
|
8168
8043
|
return;
|
|
8169
8044
|
}
|
|
@@ -8377,17 +8252,17 @@ class ActionMenu {
|
|
|
8377
8252
|
}
|
|
8378
8253
|
renderMenuButton() {
|
|
8379
8254
|
const { label, scale, expanded } = this;
|
|
8380
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
8255
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$q.trigger }, hAsync("calcite-action", { class: CSS$P.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
8381
8256
|
return menuButtonSlot;
|
|
8382
8257
|
}
|
|
8383
8258
|
renderMenuItems() {
|
|
8384
8259
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
8385
8260
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8386
8261
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8387
|
-
return (hAsync("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8262
|
+
return (hAsync("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$P.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, hAsync("slot", null))));
|
|
8388
8263
|
}
|
|
8389
8264
|
render() {
|
|
8390
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
8265
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$q.tooltip, onSlotchange: this.updateTooltip })));
|
|
8391
8266
|
}
|
|
8392
8267
|
isValidKey(key, supportedKeys) {
|
|
8393
8268
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -8419,15 +8294,15 @@ class ActionMenu {
|
|
|
8419
8294
|
}; }
|
|
8420
8295
|
}
|
|
8421
8296
|
|
|
8422
|
-
const CSS$
|
|
8297
|
+
const CSS$N = {
|
|
8423
8298
|
actionGroupBottom: "action-group--bottom",
|
|
8424
8299
|
container: "container"
|
|
8425
8300
|
};
|
|
8426
|
-
const TEXT$
|
|
8301
|
+
const TEXT$p = {
|
|
8427
8302
|
expand: "Expand",
|
|
8428
8303
|
collapse: "Collapse"
|
|
8429
8304
|
};
|
|
8430
|
-
const SLOTS$
|
|
8305
|
+
const SLOTS$n = {
|
|
8431
8306
|
expandTooltip: "expand-tooltip"
|
|
8432
8307
|
};
|
|
8433
8308
|
|
|
@@ -8524,14 +8399,14 @@ class ActionPad {
|
|
|
8524
8399
|
// --------------------------------------------------------------------------
|
|
8525
8400
|
renderBottomActionGroup() {
|
|
8526
8401
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8527
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
8528
|
-
const expandLabel = intlExpand || TEXT$
|
|
8529
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8402
|
+
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
8403
|
+
const expandLabel = intlExpand || TEXT$p.expand;
|
|
8404
|
+
const collapseLabel = intlCollapse || TEXT$p.collapse;
|
|
8530
8405
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8531
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8406
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
8532
8407
|
}
|
|
8533
8408
|
render() {
|
|
8534
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8409
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$N.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8535
8410
|
}
|
|
8536
8411
|
get el() { return getElement(this); }
|
|
8537
8412
|
static get watchers() { return {
|
|
@@ -8557,7 +8432,7 @@ class ActionPad {
|
|
|
8557
8432
|
}; }
|
|
8558
8433
|
}
|
|
8559
8434
|
|
|
8560
|
-
const TEXT$
|
|
8435
|
+
const TEXT$o = {
|
|
8561
8436
|
intlClose: "Close"
|
|
8562
8437
|
};
|
|
8563
8438
|
const DURATIONS = {
|
|
@@ -8565,7 +8440,7 @@ const DURATIONS = {
|
|
|
8565
8440
|
medium: 10000,
|
|
8566
8441
|
fast: 6000
|
|
8567
8442
|
};
|
|
8568
|
-
const SLOTS$
|
|
8443
|
+
const SLOTS$m = {
|
|
8569
8444
|
title: "title",
|
|
8570
8445
|
message: "message",
|
|
8571
8446
|
link: "link"
|
|
@@ -8617,7 +8492,7 @@ class Alert {
|
|
|
8617
8492
|
*
|
|
8618
8493
|
* @default "Close"
|
|
8619
8494
|
*/
|
|
8620
|
-
this.intlClose = TEXT$
|
|
8495
|
+
this.intlClose = TEXT$o.intlClose;
|
|
8621
8496
|
/** Specifies the placement of the component */
|
|
8622
8497
|
this.placement = "bottom";
|
|
8623
8498
|
/** Specifies the size of the component. */
|
|
@@ -8712,7 +8587,7 @@ class Alert {
|
|
|
8712
8587
|
container: true,
|
|
8713
8588
|
queued,
|
|
8714
8589
|
[placement]: true
|
|
8715
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$
|
|
8590
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$m.title }), hAsync("slot", { name: SLOTS$m.message }), hAsync("slot", { name: SLOTS$m.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8716
8591
|
}
|
|
8717
8592
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8718
8593
|
alertSync(event) {
|
|
@@ -9080,7 +8955,7 @@ class Avatar {
|
|
|
9080
8955
|
}; }
|
|
9081
8956
|
}
|
|
9082
8957
|
|
|
9083
|
-
const CSS$
|
|
8958
|
+
const CSS$M = {
|
|
9084
8959
|
article: "article",
|
|
9085
8960
|
content: "content",
|
|
9086
8961
|
headerContainer: "header-container",
|
|
@@ -9099,13 +8974,13 @@ const CSS$L = {
|
|
|
9099
8974
|
invalid: "invalid",
|
|
9100
8975
|
loading: "loading"
|
|
9101
8976
|
};
|
|
9102
|
-
const TEXT$
|
|
8977
|
+
const TEXT$n = {
|
|
9103
8978
|
collapse: "Collapse",
|
|
9104
8979
|
expand: "Expand",
|
|
9105
8980
|
loading: "Loading",
|
|
9106
8981
|
options: "Options"
|
|
9107
8982
|
};
|
|
9108
|
-
const SLOTS$
|
|
8983
|
+
const SLOTS$l = {
|
|
9109
8984
|
icon: "icon",
|
|
9110
8985
|
control: "control",
|
|
9111
8986
|
headerMenuActions: "header-menu-actions"
|
|
@@ -9162,25 +9037,25 @@ class Block {
|
|
|
9162
9037
|
*
|
|
9163
9038
|
* @default "Collapse"
|
|
9164
9039
|
*/
|
|
9165
|
-
this.intlCollapse = TEXT$
|
|
9040
|
+
this.intlCollapse = TEXT$n.collapse;
|
|
9166
9041
|
/**
|
|
9167
9042
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
9168
9043
|
*
|
|
9169
9044
|
* @default "Expand"
|
|
9170
9045
|
*/
|
|
9171
|
-
this.intlExpand = TEXT$
|
|
9046
|
+
this.intlExpand = TEXT$n.expand;
|
|
9172
9047
|
/**
|
|
9173
9048
|
* string to override English loading text
|
|
9174
9049
|
*
|
|
9175
9050
|
* @default "Loading"
|
|
9176
9051
|
*/
|
|
9177
|
-
this.intlLoading = TEXT$
|
|
9052
|
+
this.intlLoading = TEXT$n.loading;
|
|
9178
9053
|
/**
|
|
9179
9054
|
* Text string used for the actions menu
|
|
9180
9055
|
*
|
|
9181
9056
|
* @default "Options"
|
|
9182
9057
|
*/
|
|
9183
|
-
this.intlOptions = TEXT$
|
|
9058
|
+
this.intlOptions = TEXT$n.options;
|
|
9184
9059
|
/**
|
|
9185
9060
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
9186
9061
|
*/
|
|
@@ -9235,32 +9110,32 @@ class Block {
|
|
|
9235
9110
|
const { el, status } = this;
|
|
9236
9111
|
const showingLoadingStatus = this.loading && !this.open;
|
|
9237
9112
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
9238
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
9239
|
-
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$
|
|
9240
|
-
[CSS$
|
|
9241
|
-
[CSS$
|
|
9242
|
-
[CSS$
|
|
9243
|
-
[CSS$
|
|
9113
|
+
const hasIcon = getSlotted(el, SLOTS$l.icon) || statusIcon;
|
|
9114
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$l.icon })) : (hAsync("calcite-icon", { class: {
|
|
9115
|
+
[CSS$M.statusIcon]: true,
|
|
9116
|
+
[CSS$M.valid]: status == "valid",
|
|
9117
|
+
[CSS$M.invalid]: status == "invalid",
|
|
9118
|
+
[CSS$M.loading]: showingLoadingStatus
|
|
9244
9119
|
}, icon: statusIcon, scale: "m" }));
|
|
9245
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
9120
|
+
return hasIcon ? hAsync("div", { class: CSS$M.icon }, iconEl) : null;
|
|
9246
9121
|
}
|
|
9247
9122
|
renderTitle() {
|
|
9248
9123
|
const { heading, headingLevel, summary, description } = this;
|
|
9249
|
-
return heading || summary || description ? (hAsync("div", { class: CSS$
|
|
9124
|
+
return heading || summary || description ? (hAsync("div", { class: CSS$M.title }, hAsync(Heading, { class: CSS$M.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (hAsync("div", { class: CSS$M.description }, summary || description)) : null)) : null;
|
|
9250
9125
|
}
|
|
9251
9126
|
render() {
|
|
9252
9127
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
9253
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9254
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
9255
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
9256
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
9128
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
9129
|
+
const headerContent = (hAsync("header", { class: CSS$M.header }, this.renderIcon(), this.renderTitle()));
|
|
9130
|
+
const hasControl = !!getSlotted(el, SLOTS$l.control);
|
|
9131
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$l.headerMenuActions);
|
|
9257
9132
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
9258
9133
|
const { guid } = this;
|
|
9259
9134
|
const regionId = `${guid}-region`;
|
|
9260
9135
|
const buttonId = `${guid}-button`;
|
|
9261
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
9136
|
+
const headerNode = (hAsync("div", { class: CSS$M.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$M.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$M.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$M.controlContainer }, hAsync("slot", { name: SLOTS$l.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$n.options }, hAsync("slot", { name: SLOTS$l.headerMenuActions }))) : null));
|
|
9262
9137
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
9263
|
-
[CSS$
|
|
9138
|
+
[CSS$M.article]: true
|
|
9264
9139
|
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
9265
9140
|
content: true,
|
|
9266
9141
|
"content--spaced": !this.disablePadding
|
|
@@ -9294,7 +9169,7 @@ class Block {
|
|
|
9294
9169
|
}; }
|
|
9295
9170
|
}
|
|
9296
9171
|
|
|
9297
|
-
const CSS$
|
|
9172
|
+
const CSS$L = {
|
|
9298
9173
|
content: "content",
|
|
9299
9174
|
invalid: "invalid",
|
|
9300
9175
|
toggle: "toggle",
|
|
@@ -9306,7 +9181,7 @@ const CSS$K = {
|
|
|
9306
9181
|
statusIcon: "status-icon",
|
|
9307
9182
|
valid: "valid"
|
|
9308
9183
|
};
|
|
9309
|
-
const TEXT$
|
|
9184
|
+
const TEXT$m = {
|
|
9310
9185
|
collapse: "Collapse",
|
|
9311
9186
|
expand: "Expand"
|
|
9312
9187
|
};
|
|
@@ -9365,9 +9240,9 @@ class BlockSection {
|
|
|
9365
9240
|
const { status } = this;
|
|
9366
9241
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
9367
9242
|
const statusIconClasses = {
|
|
9368
|
-
[CSS$
|
|
9369
|
-
[CSS$
|
|
9370
|
-
[CSS$
|
|
9243
|
+
[CSS$L.statusIcon]: true,
|
|
9244
|
+
[CSS$L.valid]: status == "valid",
|
|
9245
|
+
[CSS$L.invalid]: status == "invalid"
|
|
9371
9246
|
};
|
|
9372
9247
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
9373
9248
|
}
|
|
@@ -9379,18 +9254,18 @@ class BlockSection {
|
|
|
9379
9254
|
: dir === "rtl"
|
|
9380
9255
|
? ICONS$b.menuClosedLeft
|
|
9381
9256
|
: ICONS$b.menuClosedRight;
|
|
9382
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9257
|
+
const toggleLabel = open ? intlCollapse || TEXT$m.collapse : intlExpand || TEXT$m.expand;
|
|
9383
9258
|
const { guid } = this;
|
|
9384
9259
|
const regionId = `${guid}-region`;
|
|
9385
9260
|
const buttonId = `${guid}-button`;
|
|
9386
9261
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9387
|
-
[CSS$
|
|
9388
|
-
[CSS$
|
|
9389
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
9390
|
-
[CSS$
|
|
9391
|
-
[CSS$
|
|
9392
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
9393
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
9262
|
+
[CSS$L.toggle]: true,
|
|
9263
|
+
[CSS$L.toggleSwitch]: true
|
|
9264
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$L.toggleSwitchContent }, hAsync("span", { class: CSS$L.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9265
|
+
[CSS$L.sectionHeader]: true,
|
|
9266
|
+
[CSS$L.toggle]: true
|
|
9267
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$L.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
9268
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$L.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
9394
9269
|
}
|
|
9395
9270
|
get el() { return getElement(this); }
|
|
9396
9271
|
static get style() { return blockSectionCss; }
|
|
@@ -9439,7 +9314,7 @@ class BlockSection {
|
|
|
9439
9314
|
}
|
|
9440
9315
|
})(HTMLFormElement.prototype);
|
|
9441
9316
|
|
|
9442
|
-
const CSS$
|
|
9317
|
+
const CSS$K = {
|
|
9443
9318
|
buttonLoader: "calcite-button--loader",
|
|
9444
9319
|
content: "content",
|
|
9445
9320
|
contentSlotted: "content--slotted",
|
|
@@ -9451,7 +9326,7 @@ const CSS$J = {
|
|
|
9451
9326
|
iconStartEmpty: "icon-start-empty",
|
|
9452
9327
|
iconEndEmpty: "icon-end-empty"
|
|
9453
9328
|
};
|
|
9454
|
-
const TEXT$
|
|
9329
|
+
const TEXT$l = {
|
|
9455
9330
|
loading: "Loading"
|
|
9456
9331
|
};
|
|
9457
9332
|
|
|
@@ -9799,7 +9674,7 @@ class Button {
|
|
|
9799
9674
|
*
|
|
9800
9675
|
* @default "Loading"
|
|
9801
9676
|
*/
|
|
9802
|
-
this.intlLoading = TEXT$
|
|
9677
|
+
this.intlLoading = TEXT$l.loading;
|
|
9803
9678
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9804
9679
|
this.loading = false;
|
|
9805
9680
|
/** optionally add a round style to the button */
|
|
@@ -9868,14 +9743,14 @@ class Button {
|
|
|
9868
9743
|
render() {
|
|
9869
9744
|
const childElType = this.href ? "a" : "button";
|
|
9870
9745
|
const Tag = childElType;
|
|
9871
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9872
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9873
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9874
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9746
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$K.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$K.loadingIn : CSS$K.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9747
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$K.icon]: true, [CSS$K.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9748
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$K.icon]: true, [CSS$K.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9749
|
+
const contentEl = (hAsync("span", { class: CSS$K.content }, hAsync("slot", null)));
|
|
9875
9750
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9876
|
-
[CSS$
|
|
9877
|
-
[CSS$
|
|
9878
|
-
[CSS$
|
|
9751
|
+
[CSS$K.contentSlotted]: this.hasContent,
|
|
9752
|
+
[CSS$K.iconStartEmpty]: !this.iconStart,
|
|
9753
|
+
[CSS$K.iconEndEmpty]: !this.iconEnd
|
|
9879
9754
|
}, 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));
|
|
9880
9755
|
}
|
|
9881
9756
|
//--------------------------------------------------------------------------
|
|
@@ -9948,7 +9823,7 @@ class Button {
|
|
|
9948
9823
|
}; }
|
|
9949
9824
|
}
|
|
9950
9825
|
|
|
9951
|
-
const CSS$
|
|
9826
|
+
const CSS$J = {
|
|
9952
9827
|
container: "container",
|
|
9953
9828
|
header: "header",
|
|
9954
9829
|
footer: "footer",
|
|
@@ -9957,14 +9832,14 @@ const CSS$I = {
|
|
|
9957
9832
|
checkboxWrapper: "checkbox-wrapper",
|
|
9958
9833
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
9959
9834
|
};
|
|
9960
|
-
const SLOTS$
|
|
9835
|
+
const SLOTS$k = {
|
|
9961
9836
|
thumbnail: "thumbnail",
|
|
9962
9837
|
title: "title",
|
|
9963
9838
|
subtitle: "subtitle",
|
|
9964
9839
|
footerLeading: "footer-leading",
|
|
9965
9840
|
footerTrailing: "footer-trailing"
|
|
9966
9841
|
};
|
|
9967
|
-
const TEXT$
|
|
9842
|
+
const TEXT$k = {
|
|
9968
9843
|
select: "Select",
|
|
9969
9844
|
deselect: "Deselect",
|
|
9970
9845
|
loading: "Loading"
|
|
@@ -10004,19 +9879,19 @@ class Card {
|
|
|
10004
9879
|
*
|
|
10005
9880
|
* @default "Loading"
|
|
10006
9881
|
*/
|
|
10007
|
-
this.intlLoading = TEXT$
|
|
9882
|
+
this.intlLoading = TEXT$k.loading;
|
|
10008
9883
|
/**
|
|
10009
9884
|
* string to override English select text for checkbox when selectable is true
|
|
10010
9885
|
*
|
|
10011
9886
|
* @default "Select"
|
|
10012
9887
|
*/
|
|
10013
|
-
this.intlSelect = TEXT$
|
|
9888
|
+
this.intlSelect = TEXT$k.select;
|
|
10014
9889
|
/**
|
|
10015
9890
|
* string to override English deselect text for checkbox when selectable is true
|
|
10016
9891
|
*
|
|
10017
9892
|
* @default "Deselect"
|
|
10018
9893
|
*/
|
|
10019
|
-
this.intlDeselect = TEXT$
|
|
9894
|
+
this.intlDeselect = TEXT$k.deselect;
|
|
10020
9895
|
this.thumbnailPosition = "block-start";
|
|
10021
9896
|
//--------------------------------------------------------------------------
|
|
10022
9897
|
//
|
|
@@ -10055,32 +9930,32 @@ class Card {
|
|
|
10055
9930
|
render() {
|
|
10056
9931
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
10057
9932
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
10058
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
9933
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$J.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
10059
9934
|
}
|
|
10060
9935
|
selectCard() {
|
|
10061
9936
|
this.selected = !this.selected;
|
|
10062
9937
|
this.calciteCardSelect.emit();
|
|
10063
9938
|
}
|
|
10064
9939
|
renderThumbnail() {
|
|
10065
|
-
return getSlotted(this.el, SLOTS$
|
|
9940
|
+
return getSlotted(this.el, SLOTS$k.thumbnail) ? (hAsync("section", { class: CSS$J.thumbnailWrapper }, hAsync("slot", { name: SLOTS$k.thumbnail }))) : null;
|
|
10066
9941
|
}
|
|
10067
9942
|
renderCheckbox() {
|
|
10068
9943
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
10069
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9944
|
+
return (hAsync("calcite-label", { class: CSS$J.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
10070
9945
|
}
|
|
10071
9946
|
renderHeader() {
|
|
10072
9947
|
const { el } = this;
|
|
10073
|
-
const title = getSlotted(el, SLOTS$
|
|
10074
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
9948
|
+
const title = getSlotted(el, SLOTS$k.title);
|
|
9949
|
+
const subtitle = getSlotted(el, SLOTS$k.subtitle);
|
|
10075
9950
|
const hasHeader = title || subtitle;
|
|
10076
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
9951
|
+
return hasHeader ? (hAsync("header", { class: CSS$J.header }, hAsync("slot", { name: SLOTS$k.title }), hAsync("slot", { name: SLOTS$k.subtitle }))) : null;
|
|
10077
9952
|
}
|
|
10078
9953
|
renderFooter() {
|
|
10079
9954
|
const { el } = this;
|
|
10080
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
10081
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
9955
|
+
const leadingFooter = getSlotted(el, SLOTS$k.footerLeading);
|
|
9956
|
+
const trailingFooter = getSlotted(el, SLOTS$k.footerTrailing);
|
|
10082
9957
|
const hasFooter = leadingFooter || trailingFooter;
|
|
10083
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
9958
|
+
return hasFooter ? (hAsync("footer", { class: CSS$J.footer }, hAsync("slot", { name: SLOTS$k.footerLeading }), hAsync("slot", { name: SLOTS$k.footerTrailing }))) : null;
|
|
10084
9959
|
}
|
|
10085
9960
|
get el() { return getElement(this); }
|
|
10086
9961
|
static get style() { return cardCss; }
|
|
@@ -10243,17 +10118,17 @@ class Checkbox {
|
|
|
10243
10118
|
}; }
|
|
10244
10119
|
}
|
|
10245
10120
|
|
|
10246
|
-
const CSS$
|
|
10121
|
+
const CSS$I = {
|
|
10247
10122
|
title: "title",
|
|
10248
10123
|
close: "close",
|
|
10249
10124
|
imageContainer: "image-container",
|
|
10250
10125
|
chipIcon: "chip-icon",
|
|
10251
10126
|
closeIcon: "close-icon"
|
|
10252
10127
|
};
|
|
10253
|
-
const TEXT$
|
|
10128
|
+
const TEXT$j = {
|
|
10254
10129
|
close: "Close"
|
|
10255
10130
|
};
|
|
10256
|
-
const SLOTS$
|
|
10131
|
+
const SLOTS$j = {
|
|
10257
10132
|
image: "image"
|
|
10258
10133
|
};
|
|
10259
10134
|
const ICONS$a = {
|
|
@@ -10286,7 +10161,7 @@ class Chip {
|
|
|
10286
10161
|
*
|
|
10287
10162
|
* @default "Close"
|
|
10288
10163
|
*/
|
|
10289
|
-
this.dismissLabel = TEXT$
|
|
10164
|
+
this.dismissLabel = TEXT$j.close;
|
|
10290
10165
|
/** flip the icon in rtl */
|
|
10291
10166
|
this.iconFlipRtl = false;
|
|
10292
10167
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -10333,13 +10208,13 @@ class Chip {
|
|
|
10333
10208
|
//--------------------------------------------------------------------------
|
|
10334
10209
|
renderChipImage() {
|
|
10335
10210
|
const { el } = this;
|
|
10336
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
10337
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
10211
|
+
const hasChipImage = getSlotted(el, SLOTS$j.image);
|
|
10212
|
+
return hasChipImage ? (hAsync("div", { class: CSS$I.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$j.image }))) : null;
|
|
10338
10213
|
}
|
|
10339
10214
|
render() {
|
|
10340
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
10341
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
10342
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
10215
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$I.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
10216
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$I.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$I.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
10217
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$I.title, id: this.guid }, hAsync("slot", null)), this.dismissible ? closeButton : null));
|
|
10343
10218
|
}
|
|
10344
10219
|
get el() { return getElement(this); }
|
|
10345
10220
|
static get style() { return chipCss; }
|
|
@@ -12474,7 +12349,7 @@ function zeroArray(array, length) {
|
|
|
12474
12349
|
|
|
12475
12350
|
var color = Color;
|
|
12476
12351
|
|
|
12477
|
-
const CSS$
|
|
12352
|
+
const CSS$H = {
|
|
12478
12353
|
container: "container",
|
|
12479
12354
|
controlSection: "control-section",
|
|
12480
12355
|
hexOptions: "color-hex-options",
|
|
@@ -12512,7 +12387,7 @@ const HSV_LIMITS = {
|
|
|
12512
12387
|
s: 100,
|
|
12513
12388
|
v: 100
|
|
12514
12389
|
};
|
|
12515
|
-
const TEXT$
|
|
12390
|
+
const TEXT$i = {
|
|
12516
12391
|
b: "B",
|
|
12517
12392
|
blue: "Blue",
|
|
12518
12393
|
deleteColor: "Delete color",
|
|
@@ -12640,115 +12515,115 @@ class ColorPicker {
|
|
|
12640
12515
|
*
|
|
12641
12516
|
* @default "B"
|
|
12642
12517
|
*/
|
|
12643
|
-
this.intlB = TEXT$
|
|
12518
|
+
this.intlB = TEXT$i.b;
|
|
12644
12519
|
/**
|
|
12645
12520
|
* Label used for the blue channel description
|
|
12646
12521
|
*
|
|
12647
12522
|
* @default "Blue"
|
|
12648
12523
|
*/
|
|
12649
|
-
this.intlBlue = TEXT$
|
|
12524
|
+
this.intlBlue = TEXT$i.blue;
|
|
12650
12525
|
/**
|
|
12651
12526
|
* Label used for the delete color button.
|
|
12652
12527
|
*
|
|
12653
12528
|
* @default "Delete color"
|
|
12654
12529
|
*/
|
|
12655
|
-
this.intlDeleteColor = TEXT$
|
|
12530
|
+
this.intlDeleteColor = TEXT$i.deleteColor;
|
|
12656
12531
|
/**
|
|
12657
12532
|
* Label used for the green channel
|
|
12658
12533
|
*
|
|
12659
12534
|
* @default "G"
|
|
12660
12535
|
*/
|
|
12661
|
-
this.intlG = TEXT$
|
|
12536
|
+
this.intlG = TEXT$i.g;
|
|
12662
12537
|
/**
|
|
12663
12538
|
* Label used for the green channel description
|
|
12664
12539
|
*
|
|
12665
12540
|
* @default "Green"
|
|
12666
12541
|
*/
|
|
12667
|
-
this.intlGreen = TEXT$
|
|
12542
|
+
this.intlGreen = TEXT$i.green;
|
|
12668
12543
|
/**
|
|
12669
12544
|
* Label used for the hue channel
|
|
12670
12545
|
*
|
|
12671
12546
|
* @default "H"
|
|
12672
12547
|
*/
|
|
12673
|
-
this.intlH = TEXT$
|
|
12548
|
+
this.intlH = TEXT$i.h;
|
|
12674
12549
|
/**
|
|
12675
12550
|
* Label used for the HSV mode
|
|
12676
12551
|
*
|
|
12677
12552
|
* @default "HSV"
|
|
12678
12553
|
*/
|
|
12679
|
-
this.intlHsv = TEXT$
|
|
12554
|
+
this.intlHsv = TEXT$i.hsv;
|
|
12680
12555
|
/**
|
|
12681
12556
|
* Label used for the hex input
|
|
12682
12557
|
*
|
|
12683
12558
|
* @default "Hex"
|
|
12684
12559
|
*/
|
|
12685
|
-
this.intlHex = TEXT$
|
|
12560
|
+
this.intlHex = TEXT$i.hex;
|
|
12686
12561
|
/**
|
|
12687
12562
|
* Label used for the hue channel description
|
|
12688
12563
|
*
|
|
12689
12564
|
* @default "Hue"
|
|
12690
12565
|
*/
|
|
12691
|
-
this.intlHue = TEXT$
|
|
12566
|
+
this.intlHue = TEXT$i.hue;
|
|
12692
12567
|
/**
|
|
12693
12568
|
* Label used for the hex input when there is no color selected.
|
|
12694
12569
|
*
|
|
12695
12570
|
* @default "No color"
|
|
12696
12571
|
*/
|
|
12697
|
-
this.intlNoColor = TEXT$
|
|
12572
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
12698
12573
|
/**
|
|
12699
12574
|
* Label used for the red channel
|
|
12700
12575
|
*
|
|
12701
12576
|
* @default "R"
|
|
12702
12577
|
*/
|
|
12703
|
-
this.intlR = TEXT$
|
|
12578
|
+
this.intlR = TEXT$i.r;
|
|
12704
12579
|
/**
|
|
12705
12580
|
* Label used for the red channel description
|
|
12706
12581
|
*
|
|
12707
12582
|
* @default "Red"
|
|
12708
12583
|
*/
|
|
12709
|
-
this.intlRed = TEXT$
|
|
12584
|
+
this.intlRed = TEXT$i.red;
|
|
12710
12585
|
/**
|
|
12711
12586
|
* Label used for the RGB mode
|
|
12712
12587
|
*
|
|
12713
12588
|
* @default "RGB"
|
|
12714
12589
|
*/
|
|
12715
|
-
this.intlRgb = TEXT$
|
|
12590
|
+
this.intlRgb = TEXT$i.rgb;
|
|
12716
12591
|
/**
|
|
12717
12592
|
* Label used for the saturation channel
|
|
12718
12593
|
*
|
|
12719
12594
|
* @default "S"
|
|
12720
12595
|
*/
|
|
12721
|
-
this.intlS = TEXT$
|
|
12596
|
+
this.intlS = TEXT$i.s;
|
|
12722
12597
|
/**
|
|
12723
12598
|
* Label used for the saturation channel description
|
|
12724
12599
|
*
|
|
12725
12600
|
* @default "Saturation"
|
|
12726
12601
|
*/
|
|
12727
|
-
this.intlSaturation = TEXT$
|
|
12602
|
+
this.intlSaturation = TEXT$i.saturation;
|
|
12728
12603
|
/**
|
|
12729
12604
|
* Label used for the save color button.
|
|
12730
12605
|
*
|
|
12731
12606
|
* @default "Save color"
|
|
12732
12607
|
*/
|
|
12733
|
-
this.intlSaveColor = TEXT$
|
|
12608
|
+
this.intlSaveColor = TEXT$i.saveColor;
|
|
12734
12609
|
/**
|
|
12735
12610
|
* Label used for the saved colors section
|
|
12736
12611
|
*
|
|
12737
12612
|
* @default "Saved"
|
|
12738
12613
|
*/
|
|
12739
|
-
this.intlSaved = TEXT$
|
|
12614
|
+
this.intlSaved = TEXT$i.saved;
|
|
12740
12615
|
/**
|
|
12741
12616
|
* Label used for the value channel
|
|
12742
12617
|
*
|
|
12743
12618
|
* @default "V"
|
|
12744
12619
|
*/
|
|
12745
|
-
this.intlV = TEXT$
|
|
12620
|
+
this.intlV = TEXT$i.v;
|
|
12746
12621
|
/**
|
|
12747
12622
|
* Label used for the
|
|
12748
12623
|
*
|
|
12749
12624
|
* @default "Value"
|
|
12750
12625
|
*/
|
|
12751
|
-
this.intlValue = TEXT$
|
|
12626
|
+
this.intlValue = TEXT$i.value;
|
|
12752
12627
|
/**
|
|
12753
12628
|
* The scale of the color picker.
|
|
12754
12629
|
*/
|
|
@@ -13015,7 +12890,7 @@ class ColorPicker {
|
|
|
13015
12890
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
13016
12891
|
const active = channelMode === activeChannelMode;
|
|
13017
12892
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
13018
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12893
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$H.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
13019
12894
|
};
|
|
13020
12895
|
this.renderChannelsTab = (channelMode) => {
|
|
13021
12896
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -13026,11 +12901,11 @@ class ColorPicker {
|
|
|
13026
12901
|
? [intlRed, intlGreen, intlBlue]
|
|
13027
12902
|
: [intlHue, intlSaturation, intlValue];
|
|
13028
12903
|
const direction = getElementDir(this.el);
|
|
13029
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12904
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$H.control, key: channelMode }, hAsync("div", { class: CSS$H.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
13030
12905
|
/* the channel container is ltr, so we apply the host's direction */
|
|
13031
12906
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
13032
12907
|
};
|
|
13033
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$
|
|
12908
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$H.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() }));
|
|
13034
12909
|
this.deleteColor = () => {
|
|
13035
12910
|
const colorToDelete = this.color.hex();
|
|
13036
12911
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -13133,7 +13008,7 @@ class ColorPicker {
|
|
|
13133
13008
|
this.shiftKeyChannelAdjustment = 0;
|
|
13134
13009
|
const key = event.key;
|
|
13135
13010
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
13136
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
13011
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$H.channel); })) {
|
|
13137
13012
|
return;
|
|
13138
13013
|
}
|
|
13139
13014
|
const { shiftKey } = event;
|
|
@@ -13204,20 +13079,20 @@ class ColorPicker {
|
|
|
13204
13079
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
13205
13080
|
const noColor = color === null;
|
|
13206
13081
|
const vertical = scopeOrientation === "vertical";
|
|
13207
|
-
return (hAsync("div", { class: CSS$
|
|
13208
|
-
[CSS$
|
|
13209
|
-
[CSS$
|
|
13210
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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$
|
|
13211
|
-
[CSS$
|
|
13212
|
-
[CSS$
|
|
13213
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
13214
|
-
[CSS$
|
|
13215
|
-
[CSS$
|
|
13216
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
13217
|
-
[CSS$
|
|
13218
|
-
[CSS$
|
|
13219
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
13220
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
13082
|
+
return (hAsync("div", { class: CSS$H.container }, hAsync("div", { class: CSS$H.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
13083
|
+
[CSS$H.colorFieldAndSlider]: true,
|
|
13084
|
+
[CSS$H.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
13085
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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$H.scope]: true, [CSS$H.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("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$H.scope]: true, [CSS$H.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
|
|
13086
|
+
[CSS$H.controlSection]: true,
|
|
13087
|
+
[CSS$H.section]: true
|
|
13088
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$H.hexOptions }, hAsync("span", { class: {
|
|
13089
|
+
[CSS$H.header]: true,
|
|
13090
|
+
[CSS$H.headerHex]: true
|
|
13091
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$H.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
13092
|
+
[CSS$H.colorModeContainer]: true,
|
|
13093
|
+
[CSS$H.splitSection]: true
|
|
13094
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$H.savedColorsSection]: true, [CSS$H.section]: true } }, hAsync("div", { class: CSS$H.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$H.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$H.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$H.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$H.savedColors }, [
|
|
13095
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$H.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
13221
13096
|
])) : null))));
|
|
13222
13097
|
}
|
|
13223
13098
|
// --------------------------------------------------------------------------
|
|
@@ -13463,7 +13338,7 @@ class ColorPicker {
|
|
|
13463
13338
|
}; }
|
|
13464
13339
|
}
|
|
13465
13340
|
|
|
13466
|
-
const CSS$
|
|
13341
|
+
const CSS$G = {
|
|
13467
13342
|
container: "container",
|
|
13468
13343
|
preview: "preview",
|
|
13469
13344
|
input: "input"
|
|
@@ -13492,13 +13367,13 @@ class ColorPickerHexInput {
|
|
|
13492
13367
|
*
|
|
13493
13368
|
* @default "Hex"
|
|
13494
13369
|
*/
|
|
13495
|
-
this.intlHex = TEXT$
|
|
13370
|
+
this.intlHex = TEXT$i.hex;
|
|
13496
13371
|
/**
|
|
13497
13372
|
* Label used for the hex input when there is no color selected.
|
|
13498
13373
|
*
|
|
13499
13374
|
* @default "No color"
|
|
13500
13375
|
*/
|
|
13501
|
-
this.intlNoColor = TEXT$
|
|
13376
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
13502
13377
|
/**
|
|
13503
13378
|
* The component's scale.
|
|
13504
13379
|
*/
|
|
@@ -13592,7 +13467,7 @@ class ColorPickerHexInput {
|
|
|
13592
13467
|
render() {
|
|
13593
13468
|
const { intlHex, value } = this;
|
|
13594
13469
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13595
|
-
return (hAsync("div", { class: CSS$
|
|
13470
|
+
return (hAsync("div", { class: CSS$G.container }, hAsync("calcite-input", { class: CSS$G.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 ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$G.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13596
13471
|
}
|
|
13597
13472
|
//--------------------------------------------------------------------------
|
|
13598
13473
|
//
|
|
@@ -13668,7 +13543,7 @@ class ColorPickerHexInput {
|
|
|
13668
13543
|
}; }
|
|
13669
13544
|
}
|
|
13670
13545
|
|
|
13671
|
-
const CSS$
|
|
13546
|
+
const CSS$F = {
|
|
13672
13547
|
swatch: "swatch",
|
|
13673
13548
|
noColorIcon: "no-color-icon"
|
|
13674
13549
|
};
|
|
@@ -13713,7 +13588,7 @@ class ColorPickerSwatch {
|
|
|
13713
13588
|
const hex = internalColor.hex();
|
|
13714
13589
|
const theme = getThemeName(el);
|
|
13715
13590
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13716
|
-
return (hAsync("svg", { class: CSS$
|
|
13591
|
+
return (hAsync("svg", { class: CSS$F.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
13717
13592
|
}
|
|
13718
13593
|
get el() { return getElement(this); }
|
|
13719
13594
|
static get watchers() { return {
|
|
@@ -15578,7 +15453,7 @@ const popperMenuComputedPlacements = [
|
|
|
15578
15453
|
"bottom",
|
|
15579
15454
|
"bottom-end"
|
|
15580
15455
|
];
|
|
15581
|
-
const CSS$
|
|
15456
|
+
const CSS$E = {
|
|
15582
15457
|
animation: "calcite-popper-anim",
|
|
15583
15458
|
animationActive: "calcite-popper-anim--active"
|
|
15584
15459
|
};
|
|
@@ -15631,7 +15506,7 @@ const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePo
|
|
|
15631
15506
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
15632
15507
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
15633
15508
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
15634
|
-
const TEXT$
|
|
15509
|
+
const TEXT$h = {
|
|
15635
15510
|
removeTag: "Remove tag"
|
|
15636
15511
|
};
|
|
15637
15512
|
|
|
@@ -15685,8 +15560,14 @@ class Combobox {
|
|
|
15685
15560
|
// Public Properties
|
|
15686
15561
|
//
|
|
15687
15562
|
//--------------------------------------------------------------------------
|
|
15688
|
-
/**
|
|
15563
|
+
/**
|
|
15564
|
+
* When true, opens the combobox
|
|
15565
|
+
*
|
|
15566
|
+
* @deprecated use open instead
|
|
15567
|
+
*/
|
|
15689
15568
|
this.active = false;
|
|
15569
|
+
/**When true, opens the combobox */
|
|
15570
|
+
this.open = false;
|
|
15690
15571
|
/** Disable combobox input */
|
|
15691
15572
|
this.disabled = false;
|
|
15692
15573
|
/** Specify the maximum number of combobox items (including nested children) to display before showing the scroller */
|
|
@@ -15715,7 +15596,7 @@ class Combobox {
|
|
|
15715
15596
|
*
|
|
15716
15597
|
* @default "Remove tag"
|
|
15717
15598
|
*/
|
|
15718
|
-
this.intlRemoveTag = TEXT$
|
|
15599
|
+
this.intlRemoveTag = TEXT$h.removeTag;
|
|
15719
15600
|
this.internalValueChangeFlag = false;
|
|
15720
15601
|
this.items = [];
|
|
15721
15602
|
this.groupItems = [];
|
|
@@ -15760,8 +15641,9 @@ class Combobox {
|
|
|
15760
15641
|
this.addCustomChip(this.text, true);
|
|
15761
15642
|
event.preventDefault();
|
|
15762
15643
|
}
|
|
15763
|
-
else if (this.active) {
|
|
15644
|
+
else if (this.open || this.active) {
|
|
15764
15645
|
this.active = false;
|
|
15646
|
+
this.open = false;
|
|
15765
15647
|
event.preventDefault();
|
|
15766
15648
|
}
|
|
15767
15649
|
break;
|
|
@@ -15778,9 +15660,10 @@ class Combobox {
|
|
|
15778
15660
|
}
|
|
15779
15661
|
break;
|
|
15780
15662
|
case "ArrowDown":
|
|
15781
|
-
if (!this.active) {
|
|
15663
|
+
if (!(this.open || this.active)) {
|
|
15782
15664
|
event.preventDefault();
|
|
15783
15665
|
this.active = true;
|
|
15666
|
+
this.open = true;
|
|
15784
15667
|
}
|
|
15785
15668
|
this.shiftActiveItemIndex(1);
|
|
15786
15669
|
if (!this.comboboxInViewport()) {
|
|
@@ -15791,11 +15674,12 @@ class Combobox {
|
|
|
15791
15674
|
if (!this.textInput.value) {
|
|
15792
15675
|
event.preventDefault();
|
|
15793
15676
|
this.active = true;
|
|
15677
|
+
this.open = true;
|
|
15794
15678
|
this.shiftActiveItemIndex(1);
|
|
15795
15679
|
}
|
|
15796
15680
|
break;
|
|
15797
15681
|
case "Home":
|
|
15798
|
-
if (this.active) {
|
|
15682
|
+
if (this.open || this.active) {
|
|
15799
15683
|
event.preventDefault();
|
|
15800
15684
|
}
|
|
15801
15685
|
this.updateActiveItemIndex(0);
|
|
@@ -15805,7 +15689,7 @@ class Combobox {
|
|
|
15805
15689
|
}
|
|
15806
15690
|
break;
|
|
15807
15691
|
case "End":
|
|
15808
|
-
if (this.active) {
|
|
15692
|
+
if (this.open || this.active) {
|
|
15809
15693
|
event.preventDefault();
|
|
15810
15694
|
}
|
|
15811
15695
|
this.updateActiveItemIndex(this.visibleItems.length - 1);
|
|
@@ -15816,6 +15700,7 @@ class Combobox {
|
|
|
15816
15700
|
break;
|
|
15817
15701
|
case "Escape":
|
|
15818
15702
|
this.active = false;
|
|
15703
|
+
this.open = false;
|
|
15819
15704
|
break;
|
|
15820
15705
|
case "Enter":
|
|
15821
15706
|
if (this.activeItemIndex > -1) {
|
|
@@ -15844,15 +15729,17 @@ class Combobox {
|
|
|
15844
15729
|
};
|
|
15845
15730
|
this.toggleCloseEnd = () => {
|
|
15846
15731
|
this.active = false;
|
|
15732
|
+
this.open = false;
|
|
15847
15733
|
this.el.removeEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
|
15848
15734
|
};
|
|
15849
15735
|
this.toggleOpenEnd = () => {
|
|
15850
15736
|
this.active = true;
|
|
15737
|
+
this.open = false;
|
|
15851
15738
|
this.el.removeEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
|
15852
15739
|
};
|
|
15853
15740
|
this.transitionEnd = (event) => {
|
|
15854
15741
|
if (event.propertyName === this.activeTransitionProp) {
|
|
15855
|
-
this.active ? this.onOpen() : this.onClose();
|
|
15742
|
+
this.open || this.active ? this.onOpen() : this.onClose();
|
|
15856
15743
|
}
|
|
15857
15744
|
};
|
|
15858
15745
|
/* *
|
|
@@ -15861,12 +15748,13 @@ class Combobox {
|
|
|
15861
15748
|
*/
|
|
15862
15749
|
this.transitionRunHandler = (event) => {
|
|
15863
15750
|
if (event.propertyName === this.activeTransitionProp) {
|
|
15864
|
-
this.active ? this.onBeforeOpen() : this.onBeforeClose();
|
|
15751
|
+
this.open || this.active ? this.onBeforeOpen() : this.onBeforeClose();
|
|
15865
15752
|
}
|
|
15866
15753
|
};
|
|
15867
15754
|
this.setMaxScrollerHeight = async () => {
|
|
15868
|
-
const { active, listContainerEl } = this;
|
|
15869
|
-
|
|
15755
|
+
const { active, listContainerEl, open } = this;
|
|
15756
|
+
const isOpen = !(active || open);
|
|
15757
|
+
if (!listContainerEl || isOpen) {
|
|
15870
15758
|
return;
|
|
15871
15759
|
}
|
|
15872
15760
|
await this.reposition();
|
|
@@ -15876,6 +15764,7 @@ class Combobox {
|
|
|
15876
15764
|
};
|
|
15877
15765
|
this.calciteChipDismissHandler = (event, comboboxItem) => {
|
|
15878
15766
|
this.active = false;
|
|
15767
|
+
this.open = false;
|
|
15879
15768
|
const selection = this.items.find((item) => item === comboboxItem);
|
|
15880
15769
|
if (selection) {
|
|
15881
15770
|
this.toggleSelection(selection, false);
|
|
@@ -15887,12 +15776,14 @@ class Combobox {
|
|
|
15887
15776
|
return;
|
|
15888
15777
|
}
|
|
15889
15778
|
this.active = !this.active;
|
|
15779
|
+
this.open = !this.open;
|
|
15890
15780
|
this.updateActiveItemIndex(0);
|
|
15891
15781
|
this.setFocus();
|
|
15892
15782
|
};
|
|
15893
15783
|
this.setInactiveIfNotContained = (event) => {
|
|
15894
15784
|
const composedPath = event.composedPath();
|
|
15895
|
-
|
|
15785
|
+
const isOpen = !(this.open || this.active);
|
|
15786
|
+
if (isOpen || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
15896
15787
|
return;
|
|
15897
15788
|
}
|
|
15898
15789
|
if (this.allowCustomValues && this.text.trim().length) {
|
|
@@ -15907,6 +15798,7 @@ class Combobox {
|
|
|
15907
15798
|
this.updateActiveItemIndex(-1);
|
|
15908
15799
|
}
|
|
15909
15800
|
this.active = false;
|
|
15801
|
+
this.open = false;
|
|
15910
15802
|
};
|
|
15911
15803
|
this.setMenuEl = (el) => {
|
|
15912
15804
|
this.menuEl = el;
|
|
@@ -15998,6 +15890,7 @@ class Combobox {
|
|
|
15998
15890
|
activeHandler() {
|
|
15999
15891
|
if (this.disabled) {
|
|
16000
15892
|
this.active = false;
|
|
15893
|
+
this.open = false;
|
|
16001
15894
|
return;
|
|
16002
15895
|
}
|
|
16003
15896
|
this.setMaxScrollerHeight();
|
|
@@ -16005,6 +15898,7 @@ class Combobox {
|
|
|
16005
15898
|
handleDisabledChange(value) {
|
|
16006
15899
|
if (!value) {
|
|
16007
15900
|
this.active = false;
|
|
15901
|
+
this.open = false;
|
|
16008
15902
|
}
|
|
16009
15903
|
}
|
|
16010
15904
|
maxItemsHandler() {
|
|
@@ -16148,7 +16042,7 @@ class Combobox {
|
|
|
16148
16042
|
};
|
|
16149
16043
|
const eventListenerModifier = {
|
|
16150
16044
|
name: "eventListeners",
|
|
16151
|
-
enabled: this.active
|
|
16045
|
+
enabled: this.open || this.active
|
|
16152
16046
|
};
|
|
16153
16047
|
return [flipModifier, eventListenerModifier];
|
|
16154
16048
|
}
|
|
@@ -16226,6 +16120,7 @@ class Combobox {
|
|
|
16226
16120
|
this.textInput.value = item.textLabel;
|
|
16227
16121
|
}
|
|
16228
16122
|
this.active = false;
|
|
16123
|
+
this.open = false;
|
|
16229
16124
|
this.updateActiveItemIndex(-1);
|
|
16230
16125
|
this.resetText();
|
|
16231
16126
|
this.filterItems("");
|
|
@@ -16408,10 +16303,10 @@ class Combobox {
|
|
|
16408
16303
|
});
|
|
16409
16304
|
}
|
|
16410
16305
|
renderInput() {
|
|
16411
|
-
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
16306
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems, open } = this;
|
|
16412
16307
|
const single = selectionMode === "single";
|
|
16413
16308
|
const selectedItem = selectedItems[0];
|
|
16414
|
-
const showLabel = !active && single && !!selectedItem;
|
|
16309
|
+
const showLabel = !(open || active) && single && !!selectedItem;
|
|
16415
16310
|
return (hAsync("span", { class: {
|
|
16416
16311
|
"input-wrap": true,
|
|
16417
16312
|
"input-wrap--single": single
|
|
@@ -16430,13 +16325,13 @@ class Combobox {
|
|
|
16430
16325
|
return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": toAriaBoolean(item.selected), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
16431
16326
|
}
|
|
16432
16327
|
renderPopperContainer() {
|
|
16433
|
-
const { active, setMenuEl, setListContainerEl } = this;
|
|
16328
|
+
const { active, setMenuEl, setListContainerEl, open } = this;
|
|
16434
16329
|
const classes = {
|
|
16435
16330
|
"list-container": true,
|
|
16436
|
-
[CSS$
|
|
16437
|
-
[CSS$
|
|
16331
|
+
[CSS$E.animation]: true,
|
|
16332
|
+
[CSS$E.animationActive]: open || active
|
|
16438
16333
|
};
|
|
16439
|
-
return (hAsync("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": active }, ref: setMenuEl }, hAsync("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, hAsync("ul", { class: { list: true, "list--hide": !active } }, hAsync("slot", null)))));
|
|
16334
|
+
return (hAsync("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": open || active }, ref: setMenuEl }, hAsync("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, hAsync("ul", { class: { list: true, "list--hide": !(open || active) } }, hAsync("slot", null)))));
|
|
16440
16335
|
}
|
|
16441
16336
|
renderIconStart() {
|
|
16442
16337
|
var _a;
|
|
@@ -16447,21 +16342,22 @@ class Combobox {
|
|
|
16447
16342
|
((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) || placeholderIcon) && (hAsync("span", { class: "icon-start" }, hAsync("calcite-icon", { class: "selected-icon", icon: (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) !== null && _a !== void 0 ? _a : placeholderIcon, scale: "s" }))));
|
|
16448
16343
|
}
|
|
16449
16344
|
renderIconEnd() {
|
|
16450
|
-
const { active } = this;
|
|
16451
|
-
return (hAsync("span", { class: "icon-end" }, hAsync("calcite-icon", { icon: active ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
16345
|
+
const { active, open } = this;
|
|
16346
|
+
return (hAsync("span", { class: "icon-end" }, hAsync("calcite-icon", { icon: active || open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
16452
16347
|
}
|
|
16453
16348
|
render() {
|
|
16454
|
-
const { active, guid, label } = this;
|
|
16349
|
+
const { active, guid, label, open } = this;
|
|
16455
16350
|
const single = this.selectionMode === "single";
|
|
16456
|
-
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": toAriaBoolean(active), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
16351
|
+
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": toAriaBoolean(open || active), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
16457
16352
|
wrapper: true,
|
|
16458
16353
|
"wrapper--single": single || !this.selectedItems.length,
|
|
16459
|
-
"wrapper--active": active
|
|
16354
|
+
"wrapper--active": open || active
|
|
16460
16355
|
}, onClick: this.clickHandler, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
16461
16356
|
}
|
|
16462
16357
|
get el() { return getElement(this); }
|
|
16463
16358
|
static get watchers() { return {
|
|
16464
16359
|
"active": ["activeHandler"],
|
|
16360
|
+
"open": ["activeHandler"],
|
|
16465
16361
|
"disabled": ["handleDisabledChange"],
|
|
16466
16362
|
"maxItems": ["maxItemsHandler"],
|
|
16467
16363
|
"value": ["valueHandler"],
|
|
@@ -16475,6 +16371,7 @@ class Combobox {
|
|
|
16475
16371
|
"$tagName$": "calcite-combobox",
|
|
16476
16372
|
"$members$": {
|
|
16477
16373
|
"active": [1540],
|
|
16374
|
+
"open": [1540],
|
|
16478
16375
|
"disabled": [516],
|
|
16479
16376
|
"label": [1],
|
|
16480
16377
|
"placeholder": [1],
|
|
@@ -16503,11 +16400,11 @@ class Combobox {
|
|
|
16503
16400
|
},
|
|
16504
16401
|
"$listeners$": [[4, "click", "documentClickHandler"], [0, "calciteComboboxItemChange", "calciteComboboxItemChangeHandler"]],
|
|
16505
16402
|
"$lazyBundleId$": "-",
|
|
16506
|
-
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["name", "name"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
16403
|
+
"$attrsToReflect$": [["active", "active"], ["open", "open"], ["disabled", "disabled"], ["name", "name"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
16507
16404
|
}; }
|
|
16508
16405
|
}
|
|
16509
16406
|
|
|
16510
|
-
const CSS$
|
|
16407
|
+
const CSS$D = {
|
|
16511
16408
|
icon: "icon",
|
|
16512
16409
|
iconActive: "icon--active",
|
|
16513
16410
|
custom: "icon--custom",
|
|
@@ -16599,18 +16496,18 @@ class ComboboxItem {
|
|
|
16599
16496
|
// --------------------------------------------------------------------------
|
|
16600
16497
|
renderIcon(isSingle) {
|
|
16601
16498
|
const { icon, disabled, selected } = this;
|
|
16602
|
-
const level = `${CSS$
|
|
16499
|
+
const level = `${CSS$D.icon}--indent`;
|
|
16603
16500
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
16604
16501
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
16605
16502
|
const showDot = isSingle && !icon && !disabled;
|
|
16606
16503
|
return showDot ? (hAsync("span", { class: {
|
|
16607
|
-
[CSS$
|
|
16608
|
-
[CSS$
|
|
16504
|
+
[CSS$D.icon]: true,
|
|
16505
|
+
[CSS$D.dot]: true,
|
|
16609
16506
|
[level]: true
|
|
16610
16507
|
} })) : (hAsync("calcite-icon", { class: {
|
|
16611
|
-
[CSS$
|
|
16612
|
-
[CSS$
|
|
16613
|
-
[CSS$
|
|
16508
|
+
[CSS$D.icon]: !icon,
|
|
16509
|
+
[CSS$D.custom]: !!icon,
|
|
16510
|
+
[CSS$D.iconActive]: icon && selected,
|
|
16614
16511
|
[level]: true
|
|
16615
16512
|
}, icon: icon || iconPath, scale: "s" }));
|
|
16616
16513
|
}
|
|
@@ -16623,13 +16520,13 @@ class ComboboxItem {
|
|
|
16623
16520
|
render() {
|
|
16624
16521
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
16625
16522
|
const classes = {
|
|
16626
|
-
[CSS$
|
|
16627
|
-
[CSS$
|
|
16628
|
-
[CSS$
|
|
16629
|
-
[CSS$
|
|
16523
|
+
[CSS$D.label]: true,
|
|
16524
|
+
[CSS$D.selected]: this.selected,
|
|
16525
|
+
[CSS$D.active]: this.active,
|
|
16526
|
+
[CSS$D.single]: isSingleSelect
|
|
16630
16527
|
};
|
|
16631
16528
|
const depth = getDepth();
|
|
16632
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
16529
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$D.title }, this.textLabel)), this.renderChildren())));
|
|
16633
16530
|
}
|
|
16634
16531
|
get el() { return getElement(this); }
|
|
16635
16532
|
static get watchers() { return {
|
|
@@ -16658,7 +16555,7 @@ class ComboboxItem {
|
|
|
16658
16555
|
}; }
|
|
16659
16556
|
}
|
|
16660
16557
|
|
|
16661
|
-
const CSS$
|
|
16558
|
+
const CSS$C = {
|
|
16662
16559
|
list: "list",
|
|
16663
16560
|
label: "label",
|
|
16664
16561
|
title: "title"
|
|
@@ -16691,8 +16588,8 @@ class ComboboxItemGroup {
|
|
|
16691
16588
|
// --------------------------------------------------------------------------
|
|
16692
16589
|
render() {
|
|
16693
16590
|
const { el, scale } = this;
|
|
16694
|
-
const indent = `${CSS$
|
|
16695
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
16591
|
+
const indent = `${CSS$C.label}--indent-${getDepth()}`;
|
|
16592
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$C.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$C.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$C.title }, this.label)), hAsync("slot", null)));
|
|
16696
16593
|
}
|
|
16697
16594
|
get el() { return getElement(this); }
|
|
16698
16595
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -17099,7 +16996,7 @@ function getDaysDiff(date1, date2) {
|
|
|
17099
16996
|
}
|
|
17100
16997
|
|
|
17101
16998
|
const HEADING_LEVEL$6 = 2;
|
|
17102
|
-
const TEXT$
|
|
16999
|
+
const TEXT$g = {
|
|
17103
17000
|
nextMonth: "Next month",
|
|
17104
17001
|
prevMonth: "Previous month",
|
|
17105
17002
|
year: "Year"
|
|
@@ -17117,19 +17014,19 @@ class DatePicker {
|
|
|
17117
17014
|
*
|
|
17118
17015
|
* @default "Previous month"
|
|
17119
17016
|
*/
|
|
17120
|
-
this.intlPrevMonth = TEXT$
|
|
17017
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
17121
17018
|
/**
|
|
17122
17019
|
* Localized string for "next month" (used for aria label)
|
|
17123
17020
|
*
|
|
17124
17021
|
* @default "Next month"
|
|
17125
17022
|
*/
|
|
17126
|
-
this.intlNextMonth = TEXT$
|
|
17023
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
17127
17024
|
/**
|
|
17128
17025
|
* Localized string for "year" (used for aria label)
|
|
17129
17026
|
*
|
|
17130
17027
|
* @default "Year"
|
|
17131
17028
|
*/
|
|
17132
|
-
this.intlYear = TEXT$
|
|
17029
|
+
this.intlYear = TEXT$g.year;
|
|
17133
17030
|
/** BCP 47 language tag for desired language and country format */
|
|
17134
17031
|
this.locale = document.documentElement.lang || "en";
|
|
17135
17032
|
/** specify the scale of the date picker */
|
|
@@ -18146,11 +18043,11 @@ class DatePickerMonthHeader {
|
|
|
18146
18043
|
}; }
|
|
18147
18044
|
}
|
|
18148
18045
|
|
|
18149
|
-
const SLOTS$
|
|
18046
|
+
const SLOTS$i = {
|
|
18150
18047
|
dropdownTrigger: "dropdown-trigger"
|
|
18151
18048
|
};
|
|
18152
18049
|
|
|
18153
|
-
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*/.sc-calcite-dropdown:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown{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*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{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([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-dropdown-h[disabled] .sc-calcite-dropdown-s>[calcite-hydrated][disabled],[disabled].sc-calcite-dropdown-h [calcite-hydrated][disabled].sc-calcite-dropdown{opacity:1}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}/*!@.calcite-dropdown-wrapper .calcite-popper-anim*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-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-popper-placement^=bottom] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}/*!@.calcite-dropdown-trigger-container*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
|
|
18050
|
+
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*/.sc-calcite-dropdown:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown{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*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{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([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-dropdown-h[disabled] .sc-calcite-dropdown-s>[calcite-hydrated][disabled],[disabled].sc-calcite-dropdown-h [calcite-hydrated][disabled].sc-calcite-dropdown{opacity:1}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}/*!@.calcite-dropdown-wrapper .calcite-popper-anim*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-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-popper-placement^=bottom] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper,\n:host([open]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown,[open].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}/*!@.calcite-dropdown-trigger-container*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
|
|
18154
18051
|
|
|
18155
18052
|
/**
|
|
18156
18053
|
* @slot - A slot for adding `calcite-dropdown-group`s or `calcite-dropdown-item`s.
|
|
@@ -18169,8 +18066,14 @@ class Dropdown {
|
|
|
18169
18066
|
// Public Properties
|
|
18170
18067
|
//
|
|
18171
18068
|
//--------------------------------------------------------------------------
|
|
18172
|
-
/**
|
|
18069
|
+
/**
|
|
18070
|
+
* Opens or closes the dropdown
|
|
18071
|
+
*
|
|
18072
|
+
* @deprecated use open instead.
|
|
18073
|
+
*/
|
|
18173
18074
|
this.active = false;
|
|
18075
|
+
/** When true, opens the dropdown */
|
|
18076
|
+
this.open = false;
|
|
18174
18077
|
/**
|
|
18175
18078
|
allow the dropdown to remain open after a selection is made
|
|
18176
18079
|
if the selection-mode of the selected item's containing group is "none", the dropdown will always close
|
|
@@ -18257,8 +18160,9 @@ class Dropdown {
|
|
|
18257
18160
|
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
|
18258
18161
|
};
|
|
18259
18162
|
this.setMaxScrollerHeight = () => {
|
|
18260
|
-
const { active, scrollerEl } = this;
|
|
18261
|
-
|
|
18163
|
+
const { active, scrollerEl, open } = this;
|
|
18164
|
+
const isOpen = !(active || open);
|
|
18165
|
+
if (!scrollerEl || isOpen) {
|
|
18262
18166
|
return;
|
|
18263
18167
|
}
|
|
18264
18168
|
this.reposition();
|
|
@@ -18273,12 +18177,14 @@ class Dropdown {
|
|
|
18273
18177
|
};
|
|
18274
18178
|
this.transitionEnd = (event) => {
|
|
18275
18179
|
if (event.propertyName === this.activeTransitionProp) {
|
|
18276
|
-
this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
18180
|
+
this.open || this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
18277
18181
|
}
|
|
18278
18182
|
};
|
|
18279
18183
|
this.transitionRunHandler = (event) => {
|
|
18280
18184
|
if (event.propertyName === this.activeTransitionProp) {
|
|
18281
|
-
this.active
|
|
18185
|
+
this.active || this.open
|
|
18186
|
+
? this.emitOpenCloseEvent("beforeOpen")
|
|
18187
|
+
: this.emitOpenCloseEvent("beforeClose");
|
|
18282
18188
|
}
|
|
18283
18189
|
};
|
|
18284
18190
|
this.setReferenceEl = (el) => {
|
|
@@ -18294,7 +18200,7 @@ class Dropdown {
|
|
|
18294
18200
|
return;
|
|
18295
18201
|
}
|
|
18296
18202
|
const key = e.key;
|
|
18297
|
-
if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
18203
|
+
if ((this.open || this.active) && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
18298
18204
|
this.closeCalciteDropdown();
|
|
18299
18205
|
return;
|
|
18300
18206
|
}
|
|
@@ -18317,7 +18223,8 @@ class Dropdown {
|
|
|
18317
18223
|
};
|
|
18318
18224
|
this.openCalciteDropdown = () => {
|
|
18319
18225
|
this.active = !this.active;
|
|
18320
|
-
|
|
18226
|
+
this.open = !this.open;
|
|
18227
|
+
if (this.active || this.open) {
|
|
18321
18228
|
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
18322
18229
|
}
|
|
18323
18230
|
};
|
|
@@ -18328,10 +18235,12 @@ class Dropdown {
|
|
|
18328
18235
|
return;
|
|
18329
18236
|
}
|
|
18330
18237
|
this.active = false;
|
|
18238
|
+
this.open = false;
|
|
18331
18239
|
}
|
|
18332
18240
|
handleDisabledChange(value) {
|
|
18333
18241
|
if (!value) {
|
|
18334
18242
|
this.active = false;
|
|
18243
|
+
this.open = false;
|
|
18335
18244
|
}
|
|
18336
18245
|
}
|
|
18337
18246
|
flipPlacementsHandler() {
|
|
@@ -18370,12 +18279,12 @@ class Dropdown {
|
|
|
18370
18279
|
}
|
|
18371
18280
|
}
|
|
18372
18281
|
render() {
|
|
18373
|
-
const { active } = this;
|
|
18374
|
-
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": toAriaBoolean(active), "aria-haspopup": "true", name: SLOTS$
|
|
18282
|
+
const { active, open } = this;
|
|
18283
|
+
return (hAsync(Host, null, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$i.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!(active || open)), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
18375
18284
|
["calcite-dropdown-content"]: true,
|
|
18376
|
-
[CSS$
|
|
18377
|
-
[CSS$
|
|
18378
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("div", { hidden: !
|
|
18285
|
+
[CSS$E.animation]: true,
|
|
18286
|
+
[CSS$E.animationActive]: active || open
|
|
18287
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("div", { hidden: !(open || active) }, hAsync("slot", { onSlotchange: this.updateGroups }))))));
|
|
18379
18288
|
}
|
|
18380
18289
|
//--------------------------------------------------------------------------
|
|
18381
18290
|
//
|
|
@@ -18396,7 +18305,8 @@ class Dropdown {
|
|
|
18396
18305
|
: this.createPopper();
|
|
18397
18306
|
}
|
|
18398
18307
|
closeCalciteDropdownOnClick(e) {
|
|
18399
|
-
|
|
18308
|
+
const isOpen = !(this.open || this.active);
|
|
18309
|
+
if (isOpen || e.composedPath().includes(this.el)) {
|
|
18400
18310
|
return;
|
|
18401
18311
|
}
|
|
18402
18312
|
this.closeCalciteDropdown(false);
|
|
@@ -18410,6 +18320,7 @@ class Dropdown {
|
|
|
18410
18320
|
return;
|
|
18411
18321
|
}
|
|
18412
18322
|
this.active = false;
|
|
18323
|
+
this.open = false;
|
|
18413
18324
|
}
|
|
18414
18325
|
mouseEnterHandler() {
|
|
18415
18326
|
if (this.type === "hover") {
|
|
@@ -18491,7 +18402,7 @@ class Dropdown {
|
|
|
18491
18402
|
};
|
|
18492
18403
|
const eventListenerModifier = {
|
|
18493
18404
|
name: "eventListeners",
|
|
18494
|
-
enabled: this.active
|
|
18405
|
+
enabled: this.open || this.active
|
|
18495
18406
|
};
|
|
18496
18407
|
return [flipModifier, eventListenerModifier];
|
|
18497
18408
|
}
|
|
@@ -18542,6 +18453,7 @@ class Dropdown {
|
|
|
18542
18453
|
}
|
|
18543
18454
|
closeCalciteDropdown(focusTrigger = true) {
|
|
18544
18455
|
this.active = false;
|
|
18456
|
+
this.open = false;
|
|
18545
18457
|
if (focusTrigger) {
|
|
18546
18458
|
focusElement(this.triggers[0]);
|
|
18547
18459
|
}
|
|
@@ -18579,6 +18491,7 @@ class Dropdown {
|
|
|
18579
18491
|
get el() { return getElement(this); }
|
|
18580
18492
|
static get watchers() { return {
|
|
18581
18493
|
"active": ["activeHandler"],
|
|
18494
|
+
"open": ["activeHandler"],
|
|
18582
18495
|
"disabled": ["handleDisabledChange"],
|
|
18583
18496
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
18584
18497
|
"maxItems": ["maxItemsHandler"],
|
|
@@ -18590,6 +18503,7 @@ class Dropdown {
|
|
|
18590
18503
|
"$tagName$": "calcite-dropdown",
|
|
18591
18504
|
"$members$": {
|
|
18592
18505
|
"active": [1540],
|
|
18506
|
+
"open": [1540],
|
|
18593
18507
|
"disableCloseOnSelect": [516, "disable-close-on-select"],
|
|
18594
18508
|
"disabled": [516],
|
|
18595
18509
|
"flipPlacements": [16],
|
|
@@ -18604,11 +18518,11 @@ class Dropdown {
|
|
|
18604
18518
|
},
|
|
18605
18519
|
"$listeners$": [[8, "click", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "mouseenter", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
18606
18520
|
"$lazyBundleId$": "-",
|
|
18607
|
-
"$attrsToReflect$": [["active", "active"], ["disableCloseOnSelect", "disable-close-on-select"], ["disabled", "disabled"], ["placement", "placement"], ["scale", "scale"], ["type", "type"], ["width", "width"]]
|
|
18521
|
+
"$attrsToReflect$": [["active", "active"], ["open", "open"], ["disableCloseOnSelect", "disable-close-on-select"], ["disabled", "disabled"], ["placement", "placement"], ["scale", "scale"], ["type", "type"], ["width", "width"]]
|
|
18608
18522
|
}; }
|
|
18609
18523
|
}
|
|
18610
18524
|
|
|
18611
|
-
const CSS$
|
|
18525
|
+
const CSS$B = {
|
|
18612
18526
|
containerSmall: "container--s",
|
|
18613
18527
|
containerMedium: "container--m",
|
|
18614
18528
|
containerLarge: "container--l"
|
|
@@ -18643,9 +18557,9 @@ class DropdownGroup {
|
|
|
18643
18557
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
18644
18558
|
return (hAsync(Host, { role: "menu" }, hAsync("div", { class: {
|
|
18645
18559
|
container: true,
|
|
18646
|
-
[CSS$
|
|
18647
|
-
[CSS$
|
|
18648
|
-
[CSS$
|
|
18560
|
+
[CSS$B.containerSmall]: scale === "s",
|
|
18561
|
+
[CSS$B.containerMedium]: scale === "m",
|
|
18562
|
+
[CSS$B.containerLarge]: scale === "l"
|
|
18649
18563
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
18650
18564
|
}
|
|
18651
18565
|
//--------------------------------------------------------------------------
|
|
@@ -18685,7 +18599,7 @@ class DropdownGroup {
|
|
|
18685
18599
|
}; }
|
|
18686
18600
|
}
|
|
18687
18601
|
|
|
18688
|
-
const CSS$
|
|
18602
|
+
const CSS$A = {
|
|
18689
18603
|
containerLink: "container--link",
|
|
18690
18604
|
containerSmall: "container--s",
|
|
18691
18605
|
containerMedium: "container--m",
|
|
@@ -18758,13 +18672,13 @@ class DropdownItem {
|
|
|
18758
18672
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
18759
18673
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
18760
18674
|
container: true,
|
|
18761
|
-
[CSS$
|
|
18762
|
-
[CSS$
|
|
18763
|
-
[CSS$
|
|
18764
|
-
[CSS$
|
|
18765
|
-
[CSS$
|
|
18766
|
-
[CSS$
|
|
18767
|
-
[CSS$
|
|
18675
|
+
[CSS$A.containerLink]: !!this.href,
|
|
18676
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
18677
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
18678
|
+
[CSS$A.containerLarge]: scale === "l",
|
|
18679
|
+
[CSS$A.containerMulti]: this.selectionMode === "multi",
|
|
18680
|
+
[CSS$A.containerSingle]: this.selectionMode === "single",
|
|
18681
|
+
[CSS$A.containerNone]: this.selectionMode === "none"
|
|
18768
18682
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
18769
18683
|
}
|
|
18770
18684
|
//--------------------------------------------------------------------------
|
|
@@ -18870,7 +18784,7 @@ class DropdownItem {
|
|
|
18870
18784
|
}; }
|
|
18871
18785
|
}
|
|
18872
18786
|
|
|
18873
|
-
const CSS$
|
|
18787
|
+
const CSS$z = {
|
|
18874
18788
|
button: "button"
|
|
18875
18789
|
};
|
|
18876
18790
|
const ICONS$9 = {
|
|
@@ -18943,7 +18857,7 @@ class Fab {
|
|
|
18943
18857
|
render() {
|
|
18944
18858
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
18945
18859
|
const title = !textEnabled ? label || text || null : null;
|
|
18946
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
18860
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$z.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
18947
18861
|
this.buttonEl = buttonEl;
|
|
18948
18862
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
18949
18863
|
}
|
|
@@ -18970,11 +18884,11 @@ class Fab {
|
|
|
18970
18884
|
}; }
|
|
18971
18885
|
}
|
|
18972
18886
|
|
|
18973
|
-
const CSS$
|
|
18887
|
+
const CSS$y = {
|
|
18974
18888
|
container: "container",
|
|
18975
18889
|
searchIcon: "search-icon"
|
|
18976
18890
|
};
|
|
18977
|
-
const TEXT$
|
|
18891
|
+
const TEXT$f = {
|
|
18978
18892
|
filterLabel: "Filter",
|
|
18979
18893
|
clear: "Clear filter"
|
|
18980
18894
|
};
|
|
@@ -19115,7 +19029,7 @@ class Filter {
|
|
|
19115
19029
|
// --------------------------------------------------------------------------
|
|
19116
19030
|
render() {
|
|
19117
19031
|
const { disabled, scale } = this;
|
|
19118
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
19032
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$y.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$f.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$f.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
19119
19033
|
this.textInput = el;
|
|
19120
19034
|
}, scale: scale, type: "text", value: this.value })))));
|
|
19121
19035
|
}
|
|
@@ -19145,7 +19059,7 @@ class Filter {
|
|
|
19145
19059
|
}; }
|
|
19146
19060
|
}
|
|
19147
19061
|
|
|
19148
|
-
const CSS$
|
|
19062
|
+
const CSS$x = {
|
|
19149
19063
|
frame: "frame",
|
|
19150
19064
|
frameAdvancing: "frame--advancing",
|
|
19151
19065
|
frameRetreating: "frame--retreating"
|
|
@@ -19247,9 +19161,9 @@ class Flow {
|
|
|
19247
19161
|
render() {
|
|
19248
19162
|
const { flowDirection } = this;
|
|
19249
19163
|
const frameDirectionClasses = {
|
|
19250
|
-
[CSS$
|
|
19251
|
-
[CSS$
|
|
19252
|
-
[CSS$
|
|
19164
|
+
[CSS$x.frame]: true,
|
|
19165
|
+
[CSS$x.frameAdvancing]: flowDirection === "advancing",
|
|
19166
|
+
[CSS$x.frameRetreating]: flowDirection === "retreating"
|
|
19253
19167
|
};
|
|
19254
19168
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
19255
19169
|
}
|
|
@@ -19501,7 +19415,7 @@ class Graph {
|
|
|
19501
19415
|
}; }
|
|
19502
19416
|
}
|
|
19503
19417
|
|
|
19504
|
-
const CSS$
|
|
19418
|
+
const CSS$w = {
|
|
19505
19419
|
handle: "handle",
|
|
19506
19420
|
handleActivated: "handle--activated"
|
|
19507
19421
|
};
|
|
@@ -19570,7 +19484,7 @@ class Handle {
|
|
|
19570
19484
|
render() {
|
|
19571
19485
|
return (
|
|
19572
19486
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
19573
|
-
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
19487
|
+
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$w.handle]: true, [CSS$w.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
19574
19488
|
this.handleButton = el;
|
|
19575
19489
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
19576
19490
|
}
|
|
@@ -19590,7 +19504,7 @@ class Handle {
|
|
|
19590
19504
|
}; }
|
|
19591
19505
|
}
|
|
19592
19506
|
|
|
19593
|
-
const CSS$
|
|
19507
|
+
const CSS$v = {
|
|
19594
19508
|
icon: "icon",
|
|
19595
19509
|
flipRtl: "flip-rtl"
|
|
19596
19510
|
};
|
|
@@ -19651,7 +19565,7 @@ class Icon {
|
|
|
19651
19565
|
const semantic = !!textLabel;
|
|
19652
19566
|
const paths = [].concat(pathData || "");
|
|
19653
19567
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
19654
|
-
[CSS$
|
|
19568
|
+
[CSS$v.flipRtl]: dir === "rtl" && flipRtl,
|
|
19655
19569
|
svg: true
|
|
19656
19570
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
19657
19571
|
}
|
|
@@ -19697,7 +19611,7 @@ class Icon {
|
|
|
19697
19611
|
}; }
|
|
19698
19612
|
}
|
|
19699
19613
|
|
|
19700
|
-
const CSS$
|
|
19614
|
+
const CSS$u = {
|
|
19701
19615
|
wrapper: "wrapper",
|
|
19702
19616
|
confirmChangesButton: "confirm-changes-button",
|
|
19703
19617
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -19706,7 +19620,7 @@ const CSS$t = {
|
|
|
19706
19620
|
enableEditingButton: "enable-editing-button",
|
|
19707
19621
|
controlsWrapper: "controls-wrapper"
|
|
19708
19622
|
};
|
|
19709
|
-
const TEXT$
|
|
19623
|
+
const TEXT$e = {
|
|
19710
19624
|
intlEnablingEditing: "Click to edit",
|
|
19711
19625
|
intlCancelEditing: "Cancel",
|
|
19712
19626
|
intlConfirmChanges: "Save"
|
|
@@ -19741,19 +19655,19 @@ class InlineEditable {
|
|
|
19741
19655
|
*
|
|
19742
19656
|
* @default "Click to edit"
|
|
19743
19657
|
*/
|
|
19744
|
-
this.intlEnableEditing = TEXT$
|
|
19658
|
+
this.intlEnableEditing = TEXT$e.intlEnablingEditing;
|
|
19745
19659
|
/**
|
|
19746
19660
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
19747
19661
|
*
|
|
19748
19662
|
* @default "Cancel"
|
|
19749
19663
|
*/
|
|
19750
|
-
this.intlCancelEditing = TEXT$
|
|
19664
|
+
this.intlCancelEditing = TEXT$e.intlCancelEditing;
|
|
19751
19665
|
/**
|
|
19752
19666
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
19753
19667
|
*
|
|
19754
19668
|
* @default "Save"
|
|
19755
19669
|
*/
|
|
19756
|
-
this.intlConfirmChanges = TEXT$
|
|
19670
|
+
this.intlConfirmChanges = TEXT$e.intlConfirmChanges;
|
|
19757
19671
|
this.mutationObserver = createObserver();
|
|
19758
19672
|
this.enableEditing = () => {
|
|
19759
19673
|
var _a, _b;
|
|
@@ -19858,12 +19772,12 @@ class InlineEditable {
|
|
|
19858
19772
|
updateHostInteraction(this);
|
|
19859
19773
|
}
|
|
19860
19774
|
render() {
|
|
19861
|
-
return (hAsync("div", { class: CSS$
|
|
19775
|
+
return (hAsync("div", { class: CSS$u.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$u.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$u.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$u.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
19862
19776
|
opacity: this.editingEnabled ? "0" : "1",
|
|
19863
19777
|
width: this.editingEnabled ? "0" : "inherit"
|
|
19864
19778
|
}, type: "button" }), this.shouldShowControls && [
|
|
19865
|
-
hAsync("div", { class: CSS$
|
|
19866
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
19779
|
+
hAsync("div", { class: CSS$u.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$u.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
19780
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$u.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" })
|
|
19867
19781
|
])));
|
|
19868
19782
|
}
|
|
19869
19783
|
//--------------------------------------------------------------------------
|
|
@@ -19945,7 +19859,7 @@ class InlineEditable {
|
|
|
19945
19859
|
}; }
|
|
19946
19860
|
}
|
|
19947
19861
|
|
|
19948
|
-
const CSS$
|
|
19862
|
+
const CSS$t = {
|
|
19949
19863
|
loader: "loader",
|
|
19950
19864
|
clearButton: "clear-button",
|
|
19951
19865
|
editingEnabled: "editing-enabled",
|
|
@@ -19969,10 +19883,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
19969
19883
|
time: "clock",
|
|
19970
19884
|
search: "search"
|
|
19971
19885
|
};
|
|
19972
|
-
const SLOTS$
|
|
19886
|
+
const SLOTS$h = {
|
|
19973
19887
|
action: "action"
|
|
19974
19888
|
};
|
|
19975
|
-
const TEXT$
|
|
19889
|
+
const TEXT$d = {
|
|
19976
19890
|
clear: "Clear value"
|
|
19977
19891
|
};
|
|
19978
19892
|
|
|
@@ -20026,7 +19940,7 @@ class Input {
|
|
|
20026
19940
|
*
|
|
20027
19941
|
* @default "Loading"
|
|
20028
19942
|
*/
|
|
20029
|
-
this.intlLoading = TEXT$
|
|
19943
|
+
this.intlLoading = TEXT$t.loading;
|
|
20030
19944
|
/** When true, the icon is flipped in RTL. */
|
|
20031
19945
|
this.iconFlipRtl = false;
|
|
20032
19946
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -20511,34 +20425,34 @@ class Input {
|
|
|
20511
20425
|
// --------------------------------------------------------------------------
|
|
20512
20426
|
render() {
|
|
20513
20427
|
const dir = getElementDir(this.el);
|
|
20514
|
-
const loader = (hAsync("div", { class: CSS$
|
|
20515
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
20516
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
20428
|
+
const loader = (hAsync("div", { class: CSS$t.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
20429
|
+
const inputClearButton = (hAsync("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" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
20430
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$t.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
20517
20431
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
20518
20432
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
20519
|
-
[CSS$
|
|
20520
|
-
[CSS$
|
|
20433
|
+
[CSS$t.numberButtonItem]: true,
|
|
20434
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20521
20435
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
20522
20436
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
20523
|
-
[CSS$
|
|
20524
|
-
[CSS$
|
|
20437
|
+
[CSS$t.numberButtonItem]: true,
|
|
20438
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
20525
20439
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
20526
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
20527
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
20528
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
20440
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$t.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
20441
|
+
const prefixText = hAsync("div", { class: CSS$t.prefix }, this.prefixText);
|
|
20442
|
+
const suffixText = hAsync("div", { class: CSS$t.suffix }, this.suffixText);
|
|
20529
20443
|
const localeNumberInput = this.type === "number" ? (hAsync("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;
|
|
20530
20444
|
const childEl = this.type !== "number"
|
|
20531
20445
|
? [
|
|
20532
20446
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
20533
|
-
[CSS$
|
|
20534
|
-
[CSS$
|
|
20447
|
+
[CSS$t.editingEnabled]: this.editingEnabled,
|
|
20448
|
+
[CSS$t.inlineChild]: !!this.inlineEditableEl
|
|
20535
20449
|
}, 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 }),
|
|
20536
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
20450
|
+
this.isTextarea ? (hAsync("div", { class: CSS$t.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
20537
20451
|
]
|
|
20538
20452
|
: null;
|
|
20539
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
20453
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$t.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20540
20454
|
? numberButtonsHorizontalDown
|
|
20541
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
20455
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$t.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$t.actionWrapper }, hAsync("slot", { name: SLOTS$h.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
20542
20456
|
? numberButtonsVertical
|
|
20543
20457
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
20544
20458
|
? numberButtonsHorizontalUp
|
|
@@ -20627,19 +20541,19 @@ class InputDatePicker {
|
|
|
20627
20541
|
*
|
|
20628
20542
|
* @default "Previous month"
|
|
20629
20543
|
*/
|
|
20630
|
-
this.intlPrevMonth = TEXT$
|
|
20544
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
20631
20545
|
/**
|
|
20632
20546
|
* Localized string for "next month" (used for aria label)
|
|
20633
20547
|
*
|
|
20634
20548
|
* @default "Next month"
|
|
20635
20549
|
*/
|
|
20636
|
-
this.intlNextMonth = TEXT$
|
|
20550
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
20637
20551
|
/**
|
|
20638
20552
|
* Localized string for "year" (used for aria label)
|
|
20639
20553
|
*
|
|
20640
20554
|
* @default "Year"
|
|
20641
20555
|
*/
|
|
20642
|
-
this.intlYear = TEXT$
|
|
20556
|
+
this.intlYear = TEXT$g.year;
|
|
20643
20557
|
/** BCP 47 language tag for desired language and country format */
|
|
20644
20558
|
this.locale = document.documentElement.lang || "en";
|
|
20645
20559
|
/** specify the scale of the date picker */
|
|
@@ -20899,8 +20813,8 @@ class InputDatePicker {
|
|
|
20899
20813
|
}, ref: this.setMenuEl }, hAsync("div", { class: {
|
|
20900
20814
|
["calendar-picker-wrapper"]: true,
|
|
20901
20815
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
20902
|
-
[CSS$
|
|
20903
|
-
[CSS$
|
|
20816
|
+
[CSS$E.animation]: true,
|
|
20817
|
+
[CSS$E.animationActive]: this.active
|
|
20904
20818
|
}, onTransitionEnd: this.transitionEnd }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
20905
20819
|
input: true,
|
|
20906
20820
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -21227,6 +21141,562 @@ class InputMessage {
|
|
|
21227
21141
|
}; }
|
|
21228
21142
|
}
|
|
21229
21143
|
|
|
21144
|
+
const CSS$s = {
|
|
21145
|
+
loader: "loader",
|
|
21146
|
+
clearButton: "clear-button",
|
|
21147
|
+
editingEnabled: "editing-enabled",
|
|
21148
|
+
inlineChild: "inline-child",
|
|
21149
|
+
inputIcon: "icon",
|
|
21150
|
+
prefix: "prefix",
|
|
21151
|
+
suffix: "suffix",
|
|
21152
|
+
numberButtonWrapper: "number-button-wrapper",
|
|
21153
|
+
buttonItemHorizontal: "number-button-item--horizontal",
|
|
21154
|
+
wrapper: "element-wrapper",
|
|
21155
|
+
inputWrapper: "wrapper",
|
|
21156
|
+
actionWrapper: "action-wrapper",
|
|
21157
|
+
resizeIconWrapper: "resize-icon-wrapper",
|
|
21158
|
+
numberButtonItem: "number-button-item"
|
|
21159
|
+
};
|
|
21160
|
+
const SLOTS$g = {
|
|
21161
|
+
action: "action"
|
|
21162
|
+
};
|
|
21163
|
+
const TEXT$c = {
|
|
21164
|
+
clear: "Clear value"
|
|
21165
|
+
};
|
|
21166
|
+
|
|
21167
|
+
const inputNumberCss = "@-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*/.sc-calcite-input-number:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-input-number{opacity:0;-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*/.calcite-animate__in.sc-calcite-input-number{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-input-number{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-input-number{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-input-number{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-input-number:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-number-h{display:none}/*!@:host*/.sc-calcite-input-number-h{display:block}/*!@:host([scale=s]) input, :host([scale=s]) .prefix, :host([scale=s]) .suffix*/[scale=s].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .number-button-wrapper, :host([scale=s]) .action-wrapper calcite-button, :host([scale=s]) .action-wrapper calcite-button button*/[scale=s].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=s].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:1.5rem}/*!@:host([scale=s]) .clear-button*/[scale=s].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:1.5rem;min-width:1.5rem}/*!@:host([scale=m]) input, :host([scale=m]) .prefix, :host([scale=m]) .suffix*/[scale=m].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .number-button-wrapper, :host([scale=m]) .action-wrapper calcite-button, :host([scale=m]) .action-wrapper calcite-button button*/[scale=m].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=m].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:2rem}/*!@:host([scale=m]) .clear-button*/[scale=m].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:2rem;min-width:2rem}/*!@:host([scale=l]) input, :host([scale=l]) .prefix, :host([scale=l]) .suffix*/[scale=l].sc-calcite-input-number-h input.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .prefix.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .suffix.sc-calcite-input-number{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .number-button-wrapper, :host([scale=l]) .action-wrapper calcite-button, :host([scale=l]) .action-wrapper calcite-button button*/[scale=l].sc-calcite-input-number-h .number-button-wrapper.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number,[scale=l].sc-calcite-input-number-h .action-wrapper.sc-calcite-input-number calcite-button.sc-calcite-input-number button.sc-calcite-input-number{height:2.75rem}/*!@:host([scale=l]) .clear-button*/[scale=l].sc-calcite-input-number-h .clear-button.sc-calcite-input-number{min-height:2.75rem;min-width:2.75rem}/*!@:host([disabled])*/[disabled].sc-calcite-input-number-h{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([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-number-h[disabled] .sc-calcite-input-number-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-number-h [calcite-hydrated][disabled].sc-calcite-input-number{opacity:1}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 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-height:100%;width:100%;max-width: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);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}/*!@:host input::placeholder, :host input:-ms-input-placeholder, :host input::-ms-input-placeholder*/.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.sc-calcite-input-number-h input.sc-calcite-input-number::placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number:-ms-input-placeholder,.sc-calcite-input-number-h input.sc-calcite-input-number::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}/*!@:host input[readonly]*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host input[readonly]:focus*/.sc-calcite-input-number-h input[readonly].sc-calcite-input-number:focus{color:var(--calcite-ui-text-1)}/*!@:host calcite-icon*/.sc-calcite-input-number-h calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-3)}/*!@:host input*/.sc-calcite-input-number-h input.sc-calcite-input-number{outline-color:transparent}/*!@:host input:focus*/.sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([status=invalid]) input*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number{border-color:var(--calcite-ui-danger)}/*!@:host([status=invalid]) input:focus*/[status=invalid].sc-calcite-input-number-h input.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@:host([scale=s]) .icon*/[scale=s].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.5rem}/*!@:host([scale=m]) .icon*/[scale=m].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:0.75rem}/*!@:host([scale=l]) .icon*/[scale=l].sc-calcite-input-number-h .icon.sc-calcite-input-number{inset-inline-start:1rem}/*!@:host([icon][scale=s]) input*/[icon][scale=s].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:2rem;padding-inline-start:2rem}/*!@:host([icon][scale=m]) input*/[icon][scale=m].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}/*!@:host([icon][scale=l]) input*/[icon][scale=l].sc-calcite-input-number-h input.sc-calcite-input-number{-webkit-padding-start:3rem;padding-inline-start:3rem}/*!@.element-wrapper*/.element-wrapper.sc-calcite-input-number{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*/.icon.sc-calcite-input-number{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}/*!@.clear-button*/.clear-button.sc-calcite-input-number{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-height: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*/.clear-button.sc-calcite-input-number: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*/.clear-button.sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{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*/.clear-button.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.clear-button:active calcite-icon*/.clear-button.sc-calcite-input-number:active calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.clear-button:focus*/.clear-button.sc-calcite-input-number:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.clear-button:disabled*/.clear-button.sc-calcite-input-number:disabled{opacity:var(--calcite-ui-opacity-disabled)}/*!@.loader*/.loader.sc-calcite-input-number{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}/*!@.action-wrapper*/.action-wrapper.sc-calcite-input-number{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}/*!@.prefix, \n.suffix*/.prefix.sc-calcite-input-number,.suffix.sc-calcite-input-number{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height: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*/.prefix.sc-calcite-input-number{-ms-flex-order:2;order:2;border-inline-end-width:0px}/*!@.suffix*/.suffix.sc-calcite-input-number{-ms-flex-order:5;order:5;border-inline-start-width:0px}/*!@:host([alignment=start]) input*/[alignment=start].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:start}/*!@:host([alignment=end]) input*/[alignment=end].sc-calcite-input-number-h input.sc-calcite-input-number{text-align:end}/*!@.number-button-wrapper*/.number-button-wrapper.sc-calcite-input-number{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-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}/*!@:host([number-button-type=vertical]) .wrapper*/[number-button-type=vertical].sc-calcite-input-number-h .wrapper.sc-calcite-input-number{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}/*!@:host([number-button-type=vertical]) input*/[number-button-type=vertical].sc-calcite-input-number-h input.sc-calcite-input-number{-ms-flex-order:2;order:2}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon*/[number-button-type=horizontal].sc-calcite-input-number-h .calcite--rtl.sc-calcite-input-number .number-button-item[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down], .number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon, .number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number calcite-icon.sc-calcite-input-number,.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(90deg);transform:rotate(90deg)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number{-ms-flex-order:5;order:5}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon*/.number-button-item.number-button-item--horizontal[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover{background-color:var(--calcite-ui-foreground-2)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=up].sc-calcite-input-number:hover calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]*/[number-button-type=vertical].sc-calcite-input-number-h .number-button-item[data-adjustment=down].sc-calcite-input-number{border-top-width:0px}/*!@.number-button-item*/.number-button-item.sc-calcite-input-number{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-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-start-width:0px}/*!@.number-button-item calcite-icon*/.number-button-item.sc-calcite-input-number calcite-icon.sc-calcite-input-number{pointer-events:none;-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}/*!@.number-button-item:focus*/.number-button-item.sc-calcite-input-number:focus{background-color:var(--calcite-ui-foreground-2)}/*!@.number-button-item:focus calcite-icon*/.number-button-item.sc-calcite-input-number:focus calcite-icon.sc-calcite-input-number{color:var(--calcite-ui-text-1)}/*!@.number-button-item:active*/.number-button-item.sc-calcite-input-number:active{background-color:var(--calcite-ui-foreground-3)}/*!@.number-button-item:disabled*/.number-button-item.sc-calcite-input-number:disabled{pointer-events:none}/*!@.wrapper*/.wrapper.sc-calcite-input-number{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}/*!@.resize-icon-wrapper*/.resize-icon-wrapper.sc-calcite-input-number{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}/*!@.resize-icon-wrapper calcite-icon*/.resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}/*!@.calcite--rtl .resize-icon-wrapper calcite-icon*/.calcite--rtl.sc-calcite-input-number .resize-icon-wrapper.sc-calcite-input-number calcite-icon.sc-calcite-input-number{-webkit-transform:rotate(45deg);transform:rotate(45deg)}/*!@:host(.no-bottom-border) input*/.no-bottom-border.sc-calcite-input-number-h input.sc-calcite-input-number{border-bottom-width:0px}/*!@:host(.border-top-color-one) input*/.border-top-color-one.sc-calcite-input-number-h input.sc-calcite-input-number{border-top-color:var(--calcite-ui-border-1)}/*!@:host .inline-child*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number{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}/*!@:host .inline-child .editing-enabled*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number .editing-enabled.sc-calcite-input-number{background-color:inherit}/*!@:host .inline-child:not(.editing-enabled)*/.sc-calcite-input-number-h .inline-child.sc-calcite-input-number:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-number-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
21168
|
+
|
|
21169
|
+
/**
|
|
21170
|
+
* @slot action - A slot for positioning a button next to the component.
|
|
21171
|
+
*/
|
|
21172
|
+
class InputNumber {
|
|
21173
|
+
constructor(hostRef) {
|
|
21174
|
+
registerInstance(this, hostRef);
|
|
21175
|
+
this.calciteInternalInputNumberFocus = createEvent(this, "calciteInternalInputNumberFocus", 7);
|
|
21176
|
+
this.calciteInternalInputNumberBlur = createEvent(this, "calciteInternalInputNumberBlur", 7);
|
|
21177
|
+
this.calciteInputNumberInput = createEvent(this, "calciteInputNumberInput", 7);
|
|
21178
|
+
this.calciteInputNumberChange = createEvent(this, "calciteInputNumberChange", 7);
|
|
21179
|
+
//--------------------------------------------------------------------------
|
|
21180
|
+
//
|
|
21181
|
+
// Properties
|
|
21182
|
+
//
|
|
21183
|
+
//--------------------------------------------------------------------------
|
|
21184
|
+
/** Specifies the text alignment of the component's value. */
|
|
21185
|
+
this.alignment = "start";
|
|
21186
|
+
/**
|
|
21187
|
+
* When true, the component is focused on page load.
|
|
21188
|
+
*
|
|
21189
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
21190
|
+
*/
|
|
21191
|
+
this.autofocus = false;
|
|
21192
|
+
/**
|
|
21193
|
+
* When true, a clear button is displayed when the component has a value.
|
|
21194
|
+
*/
|
|
21195
|
+
this.clearable = false;
|
|
21196
|
+
/**
|
|
21197
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
21198
|
+
*
|
|
21199
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
21200
|
+
*/
|
|
21201
|
+
this.disabled = false;
|
|
21202
|
+
/**
|
|
21203
|
+
* When true, number values are displayed with the locale's group separator.
|
|
21204
|
+
*/
|
|
21205
|
+
this.groupSeparator = false;
|
|
21206
|
+
/**
|
|
21207
|
+
* When true, the component will not be visible.
|
|
21208
|
+
*
|
|
21209
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
21210
|
+
*/
|
|
21211
|
+
this.hidden = false;
|
|
21212
|
+
/**
|
|
21213
|
+
* Accessible name that will appear while loading.
|
|
21214
|
+
*
|
|
21215
|
+
* @default "Loading"
|
|
21216
|
+
*/
|
|
21217
|
+
this.intlLoading = TEXT$t.loading;
|
|
21218
|
+
/** When true, the icon is flipped in RTL. */
|
|
21219
|
+
this.iconFlipRtl = false;
|
|
21220
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
21221
|
+
this.loading = false;
|
|
21222
|
+
/** Specifies the BCP 47 language tag for the desired language and country format. */
|
|
21223
|
+
this.locale = document.documentElement.lang || "en";
|
|
21224
|
+
/**
|
|
21225
|
+
* Toggles locale formatting for numbers.
|
|
21226
|
+
*
|
|
21227
|
+
* @internal
|
|
21228
|
+
*/
|
|
21229
|
+
this.localeFormat = false;
|
|
21230
|
+
/** Specifies the placement of the buttons. */
|
|
21231
|
+
this.numberButtonType = "vertical";
|
|
21232
|
+
/**
|
|
21233
|
+
* When true, the value cannot be modified.
|
|
21234
|
+
*
|
|
21235
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
21236
|
+
*/
|
|
21237
|
+
this.readOnly = false;
|
|
21238
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
21239
|
+
this.required = false;
|
|
21240
|
+
/** Specifies the size of the component. */
|
|
21241
|
+
this.scale = "m";
|
|
21242
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
21243
|
+
this.status = "idle";
|
|
21244
|
+
/**
|
|
21245
|
+
* @internal
|
|
21246
|
+
*/
|
|
21247
|
+
this.editingEnabled = false;
|
|
21248
|
+
/** The component's value. */
|
|
21249
|
+
this.value = "";
|
|
21250
|
+
this.previousValueOrigin = "initial";
|
|
21251
|
+
this.mutationObserver = createObserver();
|
|
21252
|
+
this.userChangedValue = false;
|
|
21253
|
+
//--------------------------------------------------------------------------
|
|
21254
|
+
//
|
|
21255
|
+
// Private Methods
|
|
21256
|
+
//
|
|
21257
|
+
//--------------------------------------------------------------------------
|
|
21258
|
+
this.keyDownHandler = (event) => {
|
|
21259
|
+
if (this.readOnly || this.disabled) {
|
|
21260
|
+
return;
|
|
21261
|
+
}
|
|
21262
|
+
if (this.isClearable && event.key === "Escape") {
|
|
21263
|
+
this.clearInputValue(event);
|
|
21264
|
+
event.preventDefault();
|
|
21265
|
+
}
|
|
21266
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
21267
|
+
submitForm(this);
|
|
21268
|
+
}
|
|
21269
|
+
};
|
|
21270
|
+
this.clearInputValue = (nativeEvent) => {
|
|
21271
|
+
this.setNumberValue({
|
|
21272
|
+
committing: true,
|
|
21273
|
+
nativeEvent,
|
|
21274
|
+
origin: "user",
|
|
21275
|
+
value: ""
|
|
21276
|
+
});
|
|
21277
|
+
};
|
|
21278
|
+
this.emitChangeIfUserModified = () => {
|
|
21279
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
21280
|
+
this.calciteInputNumberChange.emit();
|
|
21281
|
+
}
|
|
21282
|
+
this.previousEmittedValue = this.value;
|
|
21283
|
+
};
|
|
21284
|
+
this.inputNumberBlurHandler = () => {
|
|
21285
|
+
this.calciteInternalInputNumberBlur.emit({
|
|
21286
|
+
element: this.childNumberEl,
|
|
21287
|
+
value: this.value
|
|
21288
|
+
});
|
|
21289
|
+
this.emitChangeIfUserModified();
|
|
21290
|
+
};
|
|
21291
|
+
this.inputNumberFocusHandler = (event) => {
|
|
21292
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21293
|
+
if (event.target !== slottedActionEl) {
|
|
21294
|
+
this.setFocus();
|
|
21295
|
+
}
|
|
21296
|
+
this.calciteInternalInputNumberFocus.emit({
|
|
21297
|
+
element: this.childNumberEl,
|
|
21298
|
+
value: this.value
|
|
21299
|
+
});
|
|
21300
|
+
};
|
|
21301
|
+
this.inputNumberInputHandler = (nativeEvent) => {
|
|
21302
|
+
if (this.disabled || this.readOnly) {
|
|
21303
|
+
return;
|
|
21304
|
+
}
|
|
21305
|
+
const value = nativeEvent.target.value;
|
|
21306
|
+
const delocalizedValue = delocalizeNumberString(value, this.locale);
|
|
21307
|
+
if (nativeEvent.inputType === "insertFromPaste") {
|
|
21308
|
+
if (!isValidNumber(delocalizedValue)) {
|
|
21309
|
+
nativeEvent.preventDefault();
|
|
21310
|
+
}
|
|
21311
|
+
this.setNumberValue({
|
|
21312
|
+
nativeEvent,
|
|
21313
|
+
origin: "user",
|
|
21314
|
+
value: parseNumberString(delocalizedValue)
|
|
21315
|
+
});
|
|
21316
|
+
this.childNumberEl.value = this.localizedValue;
|
|
21317
|
+
}
|
|
21318
|
+
else {
|
|
21319
|
+
this.setNumberValue({
|
|
21320
|
+
nativeEvent,
|
|
21321
|
+
origin: "user",
|
|
21322
|
+
value: delocalizedValue
|
|
21323
|
+
});
|
|
21324
|
+
}
|
|
21325
|
+
};
|
|
21326
|
+
this.inputNumberKeyDownHandler = (event) => {
|
|
21327
|
+
if (this.disabled || this.readOnly) {
|
|
21328
|
+
return;
|
|
21329
|
+
}
|
|
21330
|
+
if (event.key === "ArrowUp") {
|
|
21331
|
+
/* prevent default behavior of moving cursor to the beginning of the input when holding down ArrowUp */
|
|
21332
|
+
event.preventDefault();
|
|
21333
|
+
this.nudgeNumberValue("up", event);
|
|
21334
|
+
return;
|
|
21335
|
+
}
|
|
21336
|
+
if (event.key === "ArrowDown") {
|
|
21337
|
+
this.nudgeNumberValue("down", event);
|
|
21338
|
+
return;
|
|
21339
|
+
}
|
|
21340
|
+
const supportedKeys = [
|
|
21341
|
+
...numberKeys,
|
|
21342
|
+
"ArrowLeft",
|
|
21343
|
+
"ArrowRight",
|
|
21344
|
+
"Backspace",
|
|
21345
|
+
"Delete",
|
|
21346
|
+
"Enter",
|
|
21347
|
+
"Escape",
|
|
21348
|
+
"Tab"
|
|
21349
|
+
];
|
|
21350
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
21351
|
+
return;
|
|
21352
|
+
}
|
|
21353
|
+
const isShiftTabEvent = event.shiftKey && event.key === "Tab";
|
|
21354
|
+
if (supportedKeys.includes(event.key) && (!event.shiftKey || isShiftTabEvent)) {
|
|
21355
|
+
if (event.key === "Enter") {
|
|
21356
|
+
this.emitChangeIfUserModified();
|
|
21357
|
+
}
|
|
21358
|
+
return;
|
|
21359
|
+
}
|
|
21360
|
+
const decimalSeparator = getDecimalSeparator(this.locale);
|
|
21361
|
+
if (event.key === decimalSeparator) {
|
|
21362
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21363
|
+
return;
|
|
21364
|
+
}
|
|
21365
|
+
if (this.value && this.childNumberEl.value.indexOf(decimalSeparator) === -1) {
|
|
21366
|
+
return;
|
|
21367
|
+
}
|
|
21368
|
+
}
|
|
21369
|
+
if (/[eE]/.test(event.key)) {
|
|
21370
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21371
|
+
return;
|
|
21372
|
+
}
|
|
21373
|
+
if (this.value && !/[eE]/.test(this.childNumberEl.value)) {
|
|
21374
|
+
return;
|
|
21375
|
+
}
|
|
21376
|
+
}
|
|
21377
|
+
if (event.key === "-") {
|
|
21378
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
21379
|
+
return;
|
|
21380
|
+
}
|
|
21381
|
+
if (this.value && this.childNumberEl.value.split("-").length <= 2) {
|
|
21382
|
+
return;
|
|
21383
|
+
}
|
|
21384
|
+
}
|
|
21385
|
+
event.preventDefault();
|
|
21386
|
+
};
|
|
21387
|
+
this.nudgeNumberValue = (direction, nativeEvent) => {
|
|
21388
|
+
if (nativeEvent instanceof KeyboardEvent && nativeEvent.repeat) {
|
|
21389
|
+
return;
|
|
21390
|
+
}
|
|
21391
|
+
const inputMax = this.maxString ? parseFloat(this.maxString) : null;
|
|
21392
|
+
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
21393
|
+
const valueNudgeDelayInMs = 100;
|
|
21394
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
21395
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
21396
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21397
|
+
}
|
|
21398
|
+
let firstValueNudge = true;
|
|
21399
|
+
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
21400
|
+
if (firstValueNudge) {
|
|
21401
|
+
firstValueNudge = false;
|
|
21402
|
+
return;
|
|
21403
|
+
}
|
|
21404
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
21405
|
+
}, valueNudgeDelayInMs);
|
|
21406
|
+
};
|
|
21407
|
+
this.nudgeButtonPointerUpAndOutHandler = () => {
|
|
21408
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21409
|
+
};
|
|
21410
|
+
this.nudgeButtonPointerDownHandler = (event) => {
|
|
21411
|
+
event.preventDefault();
|
|
21412
|
+
const direction = event.target.dataset.adjustment;
|
|
21413
|
+
if (!this.disabled) {
|
|
21414
|
+
this.nudgeNumberValue(direction, event);
|
|
21415
|
+
}
|
|
21416
|
+
};
|
|
21417
|
+
this.setChildNumberElRef = (el) => {
|
|
21418
|
+
this.childNumberEl = el;
|
|
21419
|
+
};
|
|
21420
|
+
this.setInputNumberValue = (newInputValue) => {
|
|
21421
|
+
if (!this.childNumberEl) {
|
|
21422
|
+
return;
|
|
21423
|
+
}
|
|
21424
|
+
this.childNumberEl.value = newInputValue;
|
|
21425
|
+
};
|
|
21426
|
+
this.setPreviousEmittedNumberValue = (newPreviousEmittedValue) => {
|
|
21427
|
+
this.previousEmittedValue = isValidNumber(newPreviousEmittedValue)
|
|
21428
|
+
? newPreviousEmittedValue
|
|
21429
|
+
: "";
|
|
21430
|
+
};
|
|
21431
|
+
this.setPreviousNumberValue = (newPreviousValue) => {
|
|
21432
|
+
this.previousValue = isValidNumber(newPreviousValue) ? newPreviousValue : "";
|
|
21433
|
+
};
|
|
21434
|
+
this.setNumberValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
21435
|
+
const previousLocalizedValue = localizeNumberString(this.previousValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
21436
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
21437
|
+
const newValue = value && !sanitizedValue
|
|
21438
|
+
? isValidNumber(this.previousValue)
|
|
21439
|
+
? this.previousValue
|
|
21440
|
+
: ""
|
|
21441
|
+
: sanitizedValue;
|
|
21442
|
+
const newLocalizedValue = localizeNumberString(newValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
21443
|
+
this.setPreviousNumberValue(previousValue || this.value);
|
|
21444
|
+
this.previousValueOrigin = origin;
|
|
21445
|
+
this.userChangedValue = origin === "user" && this.value !== newValue;
|
|
21446
|
+
this.value = newValue;
|
|
21447
|
+
this.localizedValue = newLocalizedValue;
|
|
21448
|
+
if (origin === "direct") {
|
|
21449
|
+
this.setInputNumberValue(newLocalizedValue);
|
|
21450
|
+
}
|
|
21451
|
+
if (nativeEvent) {
|
|
21452
|
+
const calciteInputNumberInputEvent = this.calciteInputNumberInput.emit({
|
|
21453
|
+
element: this.childNumberEl,
|
|
21454
|
+
nativeEvent,
|
|
21455
|
+
value: this.value
|
|
21456
|
+
});
|
|
21457
|
+
if (calciteInputNumberInputEvent.defaultPrevented) {
|
|
21458
|
+
this.value = this.previousValue;
|
|
21459
|
+
this.localizedValue = previousLocalizedValue;
|
|
21460
|
+
}
|
|
21461
|
+
else if (committing) {
|
|
21462
|
+
this.emitChangeIfUserModified();
|
|
21463
|
+
}
|
|
21464
|
+
}
|
|
21465
|
+
};
|
|
21466
|
+
this.inputNumberKeyUpHandler = () => {
|
|
21467
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
21468
|
+
};
|
|
21469
|
+
}
|
|
21470
|
+
disabledWatcher() {
|
|
21471
|
+
this.setDisabledAction();
|
|
21472
|
+
}
|
|
21473
|
+
/** watcher to update number-to-string for max */
|
|
21474
|
+
maxWatcher() {
|
|
21475
|
+
var _a;
|
|
21476
|
+
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21477
|
+
}
|
|
21478
|
+
/** watcher to update number-to-string for min */
|
|
21479
|
+
minWatcher() {
|
|
21480
|
+
var _a;
|
|
21481
|
+
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21482
|
+
}
|
|
21483
|
+
valueWatcher(newValue, previousValue) {
|
|
21484
|
+
if (!this.userChangedValue) {
|
|
21485
|
+
this.setNumberValue({
|
|
21486
|
+
origin: "direct",
|
|
21487
|
+
previousValue,
|
|
21488
|
+
value: newValue == null || newValue == ""
|
|
21489
|
+
? ""
|
|
21490
|
+
: isValidNumber(newValue)
|
|
21491
|
+
? newValue
|
|
21492
|
+
: this.previousValue || ""
|
|
21493
|
+
});
|
|
21494
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
21495
|
+
}
|
|
21496
|
+
this.userChangedValue = false;
|
|
21497
|
+
}
|
|
21498
|
+
updateRequestedIcon() {
|
|
21499
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21500
|
+
}
|
|
21501
|
+
get isClearable() {
|
|
21502
|
+
return this.clearable && this.value.length > 0;
|
|
21503
|
+
}
|
|
21504
|
+
//--------------------------------------------------------------------------
|
|
21505
|
+
//
|
|
21506
|
+
// Lifecycle
|
|
21507
|
+
//
|
|
21508
|
+
//--------------------------------------------------------------------------
|
|
21509
|
+
connectedCallback() {
|
|
21510
|
+
var _a;
|
|
21511
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
21512
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
21513
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
21514
|
+
if (this.inlineEditableEl) {
|
|
21515
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
21516
|
+
}
|
|
21517
|
+
this.setPreviousEmittedNumberValue(this.value);
|
|
21518
|
+
this.setPreviousNumberValue(this.value);
|
|
21519
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
21520
|
+
this.setNumberValue({
|
|
21521
|
+
origin: "connected",
|
|
21522
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
21523
|
+
});
|
|
21524
|
+
connectLabel(this);
|
|
21525
|
+
connectForm(this);
|
|
21526
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
21527
|
+
this.setDisabledAction();
|
|
21528
|
+
}
|
|
21529
|
+
disconnectedCallback() {
|
|
21530
|
+
var _a;
|
|
21531
|
+
disconnectLabel(this);
|
|
21532
|
+
disconnectForm(this);
|
|
21533
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21534
|
+
}
|
|
21535
|
+
componentWillLoad() {
|
|
21536
|
+
var _a, _b;
|
|
21537
|
+
this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
|
|
21538
|
+
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
21539
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21540
|
+
}
|
|
21541
|
+
componentShouldUpdate(newValue, oldValue, property) {
|
|
21542
|
+
if (property === "value" && newValue && !isValidNumber(newValue)) {
|
|
21543
|
+
this.setNumberValue({
|
|
21544
|
+
origin: "reset",
|
|
21545
|
+
value: oldValue
|
|
21546
|
+
});
|
|
21547
|
+
return false;
|
|
21548
|
+
}
|
|
21549
|
+
return true;
|
|
21550
|
+
}
|
|
21551
|
+
componentDidRender() {
|
|
21552
|
+
updateHostInteraction(this);
|
|
21553
|
+
}
|
|
21554
|
+
//--------------------------------------------------------------------------
|
|
21555
|
+
//
|
|
21556
|
+
// Public Methods
|
|
21557
|
+
//
|
|
21558
|
+
//--------------------------------------------------------------------------
|
|
21559
|
+
/** Sets focus on the component. */
|
|
21560
|
+
async setFocus() {
|
|
21561
|
+
var _a;
|
|
21562
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21563
|
+
}
|
|
21564
|
+
/** Selects all text of the component's `value`. */
|
|
21565
|
+
async selectText() {
|
|
21566
|
+
var _a;
|
|
21567
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
21568
|
+
}
|
|
21569
|
+
onLabelClick() {
|
|
21570
|
+
this.setFocus();
|
|
21571
|
+
}
|
|
21572
|
+
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
21573
|
+
const { value } = this;
|
|
21574
|
+
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
21575
|
+
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
21576
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
21577
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
21578
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
21579
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
21580
|
+
? inputVal
|
|
21581
|
+
: nudgedValue;
|
|
21582
|
+
const inputValPlaces = decimalPlaces(inputVal);
|
|
21583
|
+
const inputStepPlaces = decimalPlaces(inputStep);
|
|
21584
|
+
this.setNumberValue({
|
|
21585
|
+
committing: true,
|
|
21586
|
+
nativeEvent,
|
|
21587
|
+
origin: "user",
|
|
21588
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
21589
|
+
});
|
|
21590
|
+
}
|
|
21591
|
+
onFormReset() {
|
|
21592
|
+
this.setNumberValue({
|
|
21593
|
+
origin: "reset",
|
|
21594
|
+
value: this.defaultValue
|
|
21595
|
+
});
|
|
21596
|
+
}
|
|
21597
|
+
syncHiddenFormInput(input) {
|
|
21598
|
+
var _a, _b, _c, _d;
|
|
21599
|
+
input.type = "number";
|
|
21600
|
+
input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
|
|
21601
|
+
input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
|
|
21602
|
+
}
|
|
21603
|
+
setDisabledAction() {
|
|
21604
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
21605
|
+
if (!slottedActionEl) {
|
|
21606
|
+
return;
|
|
21607
|
+
}
|
|
21608
|
+
this.disabled
|
|
21609
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
21610
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
21611
|
+
}
|
|
21612
|
+
warnAboutInvalidNumberValue(value) {
|
|
21613
|
+
if (value && !isValidNumber(value)) {
|
|
21614
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
21615
|
+
}
|
|
21616
|
+
}
|
|
21617
|
+
// --------------------------------------------------------------------------
|
|
21618
|
+
//
|
|
21619
|
+
// Render Methods
|
|
21620
|
+
//
|
|
21621
|
+
// --------------------------------------------------------------------------
|
|
21622
|
+
render() {
|
|
21623
|
+
const dir = getElementDir(this.el);
|
|
21624
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
21625
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
21626
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
21627
|
+
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
21628
|
+
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
21629
|
+
[CSS$s.numberButtonItem]: true,
|
|
21630
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21631
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
21632
|
+
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
21633
|
+
[CSS$s.numberButtonItem]: true,
|
|
21634
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21635
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
21636
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
21637
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
21638
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
21639
|
+
const childEl = (hAsync("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 }));
|
|
21640
|
+
return (hAsync(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21641
|
+
? numberButtonsHorizontalDown
|
|
21642
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$s.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
21643
|
+
? numberButtonsHorizontalUp
|
|
21644
|
+
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
21645
|
+
}
|
|
21646
|
+
get el() { return getElement(this); }
|
|
21647
|
+
static get watchers() { return {
|
|
21648
|
+
"disabled": ["disabledWatcher"],
|
|
21649
|
+
"max": ["maxWatcher"],
|
|
21650
|
+
"min": ["minWatcher"],
|
|
21651
|
+
"value": ["valueWatcher"],
|
|
21652
|
+
"icon": ["updateRequestedIcon"]
|
|
21653
|
+
}; }
|
|
21654
|
+
static get style() { return inputNumberCss; }
|
|
21655
|
+
static get cmpMeta() { return {
|
|
21656
|
+
"$flags$": 9,
|
|
21657
|
+
"$tagName$": "calcite-input-number",
|
|
21658
|
+
"$members$": {
|
|
21659
|
+
"alignment": [513],
|
|
21660
|
+
"autofocus": [4],
|
|
21661
|
+
"clearable": [516],
|
|
21662
|
+
"disabled": [516],
|
|
21663
|
+
"groupSeparator": [4, "group-separator"],
|
|
21664
|
+
"hidden": [4],
|
|
21665
|
+
"icon": [520],
|
|
21666
|
+
"intlClear": [1, "intl-clear"],
|
|
21667
|
+
"intlLoading": [1, "intl-loading"],
|
|
21668
|
+
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
21669
|
+
"label": [1],
|
|
21670
|
+
"loading": [516],
|
|
21671
|
+
"locale": [1],
|
|
21672
|
+
"numberingSystem": [1, "numbering-system"],
|
|
21673
|
+
"localeFormat": [4, "locale-format"],
|
|
21674
|
+
"max": [514],
|
|
21675
|
+
"min": [514],
|
|
21676
|
+
"maxLength": [514, "max-length"],
|
|
21677
|
+
"minLength": [514, "min-length"],
|
|
21678
|
+
"name": [513],
|
|
21679
|
+
"numberButtonType": [513, "number-button-type"],
|
|
21680
|
+
"placeholder": [1],
|
|
21681
|
+
"prefixText": [1, "prefix-text"],
|
|
21682
|
+
"readOnly": [4, "read-only"],
|
|
21683
|
+
"required": [4],
|
|
21684
|
+
"scale": [1537],
|
|
21685
|
+
"status": [1537],
|
|
21686
|
+
"step": [520],
|
|
21687
|
+
"suffixText": [1, "suffix-text"],
|
|
21688
|
+
"editingEnabled": [1540, "editing-enabled"],
|
|
21689
|
+
"value": [1025],
|
|
21690
|
+
"localizedValue": [32],
|
|
21691
|
+
"setFocus": [64],
|
|
21692
|
+
"selectText": [64]
|
|
21693
|
+
},
|
|
21694
|
+
"$listeners$": undefined,
|
|
21695
|
+
"$lazyBundleId$": "-",
|
|
21696
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["clearable", "clearable"], ["disabled", "disabled"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"]]
|
|
21697
|
+
}; }
|
|
21698
|
+
}
|
|
21699
|
+
|
|
21230
21700
|
const maxTenthForMinuteAndSecond = 5;
|
|
21231
21701
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
21232
21702
|
try {
|
|
@@ -21678,7 +22148,7 @@ const CSS$r = {
|
|
|
21678
22148
|
container: "container"
|
|
21679
22149
|
};
|
|
21680
22150
|
|
|
21681
|
-
const labelCss = "@-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*/.sc-calcite-label:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-label{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*/.calcite-animate__in.sc-calcite-label{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-label{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-label{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-label{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-label:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-label-h{display:none}/*!@:host*/.sc-calcite-label-h{display:inline}/*!@:host([alignment=start])*/[alignment=start].sc-calcite-label-h{text-align:start}/*!@:host([alignment=end])*/[alignment=end].sc-calcite-label-h{text-align:end}/*!@:host([alignment=center])*/[alignment=center].sc-calcite-label-h{text-align:center}/*!@:host([scale=s])
|
|
22151
|
+
const labelCss = "@-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*/.sc-calcite-label:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-label{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*/.calcite-animate__in.sc-calcite-label{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-label{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-label{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-label{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-label:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-label-h{display:none}/*!@:host*/.sc-calcite-label-h{display:inline}/*!@:host([alignment=start])*/[alignment=start].sc-calcite-label-h{text-align:start}/*!@:host([alignment=end])*/[alignment=end].sc-calcite-label-h{text-align:end}/*!@:host([alignment=center])*/[alignment=center].sc-calcite-label-h{text-align:center}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-label-h .container.sc-calcite-label{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host(:not([disable-spacing])[scale=s]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=s] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 0.5rem)}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-label-h .container.sc-calcite-label{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host(:not([disable-spacing])[scale=m]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=m] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 0.75rem)}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-label-h .container.sc-calcite-label{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:not([disable-spacing])[scale=l]) .container*/.sc-calcite-label-h:not([disable-spacing])[scale=l] .container.sc-calcite-label{margin-bottom:var(--calcite-label-margin-bottom, 1rem)}/*!@:host .container*/.sc-calcite-label-h .container.sc-calcite-label{margin-left:0px;margin-right:0px;margin-top:0px;width:100%;line-height:1.375;color:var(--calcite-ui-text-1)}/*!@:host([layout=default]) .container*/[layout=default].sc-calcite-label-h .container.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([layout=inline]) .container, \n:host([layout=inline-space-between]) .container*/[layout=inline].sc-calcite-label-h .container.sc-calcite-label,[layout=inline-space-between].sc-calcite-label-h .container.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:0.5rem}/*!@:host([layout=inline][scale=l]) .container*/[layout=inline][scale=l].sc-calcite-label-h .container.sc-calcite-label{gap:0.75rem}/*!@:host([layout=inline-space-between]) .container*/[layout=inline-space-between].sc-calcite-label-h .container.sc-calcite-label{-ms-flex-pack:justify;justify-content:space-between}/*!@:host([disabled])*/[disabled].sc-calcite-label-h{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([disabled]) > .container*/[disabled].sc-calcite-label-h>.container.sc-calcite-label{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted(*)*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>*{pointer-events:none}/*!@:host([disabled]) ::slotted(*[disabled]), \n:host([disabled]) ::slotted(*[disabled] *)*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>*[disabled],.sc-calcite-label-h[disabled] .sc-calcite-label-s>*[disabled] *{--tw-bg-opacity:1}/*!@:host([disabled]) ::slotted(calcite-input-message:not([active]))*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>calcite-input-message:not([active]){--tw-bg-opacity:0}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-label-h[disabled] .sc-calcite-label-s>[calcite-hydrated][disabled],[disabled].sc-calcite-label-h [calcite-hydrated][disabled].sc-calcite-label{opacity:1}/*!@:host([disable-spacing]) .container*/[disable-spacing].sc-calcite-label-h .container.sc-calcite-label{margin:0px;gap:0px}";
|
|
21682
22152
|
|
|
21683
22153
|
/**
|
|
21684
22154
|
* @slot - A slot for adding text and a component that can be labeled.
|
|
@@ -21710,6 +22180,12 @@ class Label {
|
|
|
21710
22180
|
* @deprecated use the `disabled` property on the interactive components instead
|
|
21711
22181
|
*/
|
|
21712
22182
|
this.disabled = false;
|
|
22183
|
+
/**
|
|
22184
|
+
* eliminates any space around the label
|
|
22185
|
+
*
|
|
22186
|
+
* @deprecated set the --calcite-label-margin-bottom css variable to 0 instead
|
|
22187
|
+
*/
|
|
22188
|
+
this.disableSpacing = false;
|
|
21713
22189
|
//--------------------------------------------------------------------------
|
|
21714
22190
|
//
|
|
21715
22191
|
// Private Methods
|
|
@@ -21746,7 +22222,8 @@ class Label {
|
|
|
21746
22222
|
"for": [513],
|
|
21747
22223
|
"scale": [513],
|
|
21748
22224
|
"layout": [513],
|
|
21749
|
-
"disabled": [516]
|
|
22225
|
+
"disabled": [516],
|
|
22226
|
+
"disableSpacing": [4, "disable-spacing"]
|
|
21750
22227
|
},
|
|
21751
22228
|
"$listeners$": undefined,
|
|
21752
22229
|
"$lazyBundleId$": "-",
|
|
@@ -22304,7 +22781,7 @@ const TEXT$b = {
|
|
|
22304
22781
|
close: "Close"
|
|
22305
22782
|
};
|
|
22306
22783
|
|
|
22307
|
-
const modalCss = "@-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*/.sc-calcite-modal:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-modal{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*/.calcite-animate__in.sc-calcite-modal{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-modal{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-modal{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-modal{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-modal:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@:host*/.sc-calcite-modal-h{position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0)}/*!@:host([active])*/[active].sc-calcite-modal-h{opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}/*!@:host([active]) .modal*/[active].sc-calcite-modal-h .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transition-delay:0ms;transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{display:-ms-flexbox;display:flex;min-width:0px;max-width:100%;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}/*!@.close*/.close.sc-calcite-modal{-ms-flex-order:2;order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-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;border-start-end-radius:0.25rem;padding:var(--calcite-modal-padding);-ms-flex:0 0 auto;flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}/*!@slot[name=header]::slotted(*), \n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}/*!@.content*/.content.sc-calcite-modal{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-height:calc(100vh - 12rem);z-index:1}/*!@.content--spaced*/.content--spaced.sc-calcite-modal{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}/*!@.content--no-footer*/.content--no-footer.sc-calcite-modal{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-content-text)}/*!@:host([background-color=grey]) .content*/[background-color=grey].sc-calcite-modal-h .content.sc-calcite-modal{background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-modal{margin-top:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}/*!@.footer--hide-back .back, \n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;-webkit-margin-end:auto;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-left:0.25rem;margin-right:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{width:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:32rem}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=s][docked])*/[width=s][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:48rem}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=m][docked])*/[width=m][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:94rem}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=l][docked])*/[width=l][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([fullscreen])*/[fullscreen].sc-calcite-modal-h{background-color:transparent}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;-webkit-transform:translate3D(0, 20px, 0) scale(0.95);transform:translate3D(0, 20px, 0) scale(0.95)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-height:100%;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([active][fullscreen]) .modal*/[active][fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{-webkit-transform:translate3D(0, 0, 0) scale(1);transform:translate3D(0, 0, 0) scale(1)}/*!@:host([active][fullscreen]) .header*/[active][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0}/*!@:host([active][fullscreen]) .footer*/[active][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{height:auto}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{height:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@:host([docked]) .close*/[docked].sc-calcite-modal-h .close.sc-calcite-modal{border-start-end-radius:var(--calcite-border-radius)}}/*!@:host([color=red]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([color=blue]) .modal*/[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([color=red]) .modal, \n:host([color=blue]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal,[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-top-width:4px;border-style:solid}/*!@:host([color=red]) .header, \n:host([color=blue]) .header*/[color=red].sc-calcite-modal-h .header.sc-calcite-modal,[color=blue].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0.25rem;border-bottom-right-radius:0px;border-bottom-left-radius:0px}@media screen and (max-width: 860px){/*!@slot[name=header]::slotted(*), \n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer*/.footer.sc-calcite-modal{position:-webkit-sticky;position:sticky;bottom:0px}}@media screen and (max-width: 480px){/*!@.footer*/.footer.sc-calcite-modal{-ms-flex-direction:column;flex-direction:column}/*!@.back, \n.secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-bottom:0.25rem}}";
|
|
22784
|
+
const modalCss = "@-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*/.sc-calcite-modal:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-modal{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*/.calcite-animate__in.sc-calcite-modal{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-modal{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-modal{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-modal{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-modal:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@:host*/.sc-calcite-modal-h{position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0)}/*!@:host([active]), \n:host([open])*/[active].sc-calcite-modal-h,[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}/*!@:host([active]) .modal, \n:host([open]) .modal*/[active].sc-calcite-modal-h .modal.sc-calcite-modal,[open].sc-calcite-modal-h .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transition-delay:0ms;transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{display:-ms-flexbox;display:flex;min-width:0px;max-width:100%;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}/*!@.close*/.close.sc-calcite-modal{-ms-flex-order:2;order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-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;border-start-end-radius:0.25rem;padding:var(--calcite-modal-padding);-ms-flex:0 0 auto;flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}/*!@slot[name=header]::slotted(*), \n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}/*!@.content*/.content.sc-calcite-modal{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-height:calc(100vh - 12rem);z-index:1}/*!@.content--spaced*/.content--spaced.sc-calcite-modal{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}/*!@.content--no-footer*/.content--no-footer.sc-calcite-modal{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-content-text)}/*!@:host([background-color=grey]) .content*/[background-color=grey].sc-calcite-modal-h .content.sc-calcite-modal{background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-modal{margin-top:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}/*!@.footer--hide-back .back, \n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;-webkit-margin-end:auto;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-left:0.25rem;margin-right:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{width:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:32rem}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=s][docked])*/[width=s][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:48rem}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=m][docked])*/[width=m][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-width:94rem}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}/*!@:host([width=l][docked])*/[width=l][docked].sc-calcite-modal-h{-ms-flex-align:end;align-items:flex-end}}/*!@:host([fullscreen])*/[fullscreen].sc-calcite-modal-h{background-color:transparent}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;-webkit-transform:translate3D(0, 20px, 0) scale(0.95);transform:translate3D(0, 20px, 0) scale(0.95)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-height:100%;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([active][fullscreen]) .modal,\n:host([open][fullscreen]) .modal*/[active][fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{-webkit-transform:translate3D(0, 0, 0) scale(1);transform:translate3D(0, 0, 0) scale(1)}/*!@:host([active][fullscreen]) .header,\n:host([open][fullscreen]) .header*/[active][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0}/*!@:host([active][fullscreen]) .footer,\n:host([open][fullscreen]) .footer*/[active][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{height:auto}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{height:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@:host([docked]) .close*/[docked].sc-calcite-modal-h .close.sc-calcite-modal{border-start-end-radius:var(--calcite-border-radius)}}/*!@:host([color=red]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([color=blue]) .modal*/[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([color=red]) .modal, \n:host([color=blue]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal,[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-top-width:4px;border-style:solid}/*!@:host([color=red]) .header, \n:host([color=blue]) .header*/[color=red].sc-calcite-modal-h .header.sc-calcite-modal,[color=blue].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0.25rem;border-bottom-right-radius:0px;border-bottom-left-radius:0px}@media screen and (max-width: 860px){/*!@slot[name=header]::slotted(*), \n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer*/.footer.sc-calcite-modal{position:-webkit-sticky;position:sticky;bottom:0px}}@media screen and (max-width: 480px){/*!@.footer*/.footer.sc-calcite-modal{-ms-flex-direction:column;flex-direction:column}/*!@.back, \n.secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-bottom:0.25rem}}";
|
|
22308
22785
|
|
|
22309
22786
|
const isFocusableExtended = (el) => {
|
|
22310
22787
|
return isCalciteFocusable(el) || isFocusable(el);
|
|
@@ -22329,9 +22806,15 @@ class Modal {
|
|
|
22329
22806
|
// Properties
|
|
22330
22807
|
//
|
|
22331
22808
|
//--------------------------------------------------------------------------
|
|
22332
|
-
/**
|
|
22809
|
+
/**
|
|
22810
|
+
* When true, the `calcite-modal` is active.
|
|
22811
|
+
*
|
|
22812
|
+
* @deprecated use open instead
|
|
22813
|
+
*/
|
|
22333
22814
|
this.active = false;
|
|
22334
|
-
/**
|
|
22815
|
+
/** When true,`calcite-modal` opens */
|
|
22816
|
+
this.open = false;
|
|
22817
|
+
/** Passes a function to run before the `calcite-modal` closes. */
|
|
22335
22818
|
this.beforeClose = () => Promise.resolve();
|
|
22336
22819
|
/** When true, disables the component's close button. */
|
|
22337
22820
|
this.disableCloseButton = false;
|
|
@@ -22364,7 +22847,7 @@ class Modal {
|
|
|
22364
22847
|
//--------------------------------------------------------------------------
|
|
22365
22848
|
this.transitionEnd = (event) => {
|
|
22366
22849
|
if (event.propertyName === this.activeTransitionProp) {
|
|
22367
|
-
this.active ? this.calciteModalOpen.emit() : this.calciteModalClose.emit();
|
|
22850
|
+
this.open || this.active ? this.calciteModalOpen.emit() : this.calciteModalClose.emit();
|
|
22368
22851
|
}
|
|
22369
22852
|
};
|
|
22370
22853
|
this.openEnd = () => {
|
|
@@ -22381,6 +22864,7 @@ class Modal {
|
|
|
22381
22864
|
this.close = () => {
|
|
22382
22865
|
return this.beforeClose(this.el).then(() => {
|
|
22383
22866
|
this.active = false;
|
|
22867
|
+
this.open = false;
|
|
22384
22868
|
focusElement(this.previousActiveElement);
|
|
22385
22869
|
this.removeOverflowHiddenClass();
|
|
22386
22870
|
});
|
|
@@ -22408,8 +22892,8 @@ class Modal {
|
|
|
22408
22892
|
//--------------------------------------------------------------------------
|
|
22409
22893
|
componentWillLoad() {
|
|
22410
22894
|
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
|
22411
|
-
if (this.active) {
|
|
22412
|
-
this.
|
|
22895
|
+
if (this.open || this.active) {
|
|
22896
|
+
this.openModal();
|
|
22413
22897
|
}
|
|
22414
22898
|
}
|
|
22415
22899
|
connectedCallback() {
|
|
@@ -22465,7 +22949,7 @@ class Modal {
|
|
|
22465
22949
|
//
|
|
22466
22950
|
//--------------------------------------------------------------------------
|
|
22467
22951
|
handleEscape(e) {
|
|
22468
|
-
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
22952
|
+
if ((this.open || this.active) && !this.disableEscape && e.key === "Escape") {
|
|
22469
22953
|
this.close();
|
|
22470
22954
|
}
|
|
22471
22955
|
}
|
|
@@ -22518,7 +23002,7 @@ class Modal {
|
|
|
22518
23002
|
async toggleModal(value, oldValue) {
|
|
22519
23003
|
if (value !== oldValue) {
|
|
22520
23004
|
if (value) {
|
|
22521
|
-
this.
|
|
23005
|
+
this.openModal();
|
|
22522
23006
|
}
|
|
22523
23007
|
else if (!value) {
|
|
22524
23008
|
this.close();
|
|
@@ -22526,10 +23010,11 @@ class Modal {
|
|
|
22526
23010
|
}
|
|
22527
23011
|
}
|
|
22528
23012
|
/** Open the modal */
|
|
22529
|
-
|
|
23013
|
+
openModal() {
|
|
22530
23014
|
this.previousActiveElement = document.activeElement;
|
|
22531
23015
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
22532
23016
|
this.active = true;
|
|
23017
|
+
this.open = true;
|
|
22533
23018
|
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
22534
23019
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
22535
23020
|
this.titleId = ensureId(titleEl);
|
|
@@ -22541,7 +23026,8 @@ class Modal {
|
|
|
22541
23026
|
}
|
|
22542
23027
|
get el() { return getElement(this); }
|
|
22543
23028
|
static get watchers() { return {
|
|
22544
|
-
"active": ["toggleModal"]
|
|
23029
|
+
"active": ["toggleModal"],
|
|
23030
|
+
"open": ["toggleModal"]
|
|
22545
23031
|
}; }
|
|
22546
23032
|
static get style() { return modalCss; }
|
|
22547
23033
|
static get cmpMeta() { return {
|
|
@@ -22549,6 +23035,7 @@ class Modal {
|
|
|
22549
23035
|
"$tagName$": "calcite-modal",
|
|
22550
23036
|
"$members$": {
|
|
22551
23037
|
"active": [1540],
|
|
23038
|
+
"open": [1540],
|
|
22552
23039
|
"beforeClose": [16],
|
|
22553
23040
|
"disableCloseButton": [4, "disable-close-button"],
|
|
22554
23041
|
"disableOutsideClose": [4, "disable-outside-close"],
|
|
@@ -22568,7 +23055,7 @@ class Modal {
|
|
|
22568
23055
|
},
|
|
22569
23056
|
"$listeners$": [[8, "keyup", "handleEscape"]],
|
|
22570
23057
|
"$lazyBundleId$": "-",
|
|
22571
|
-
"$attrsToReflect$": [["active", "active"], ["docked", "docked"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["color", "color"], ["backgroundColor", "background-color"]]
|
|
23058
|
+
"$attrsToReflect$": [["active", "active"], ["open", "open"], ["docked", "docked"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["color", "color"], ["backgroundColor", "background-color"]]
|
|
22572
23059
|
}; }
|
|
22573
23060
|
}
|
|
22574
23061
|
|
|
@@ -23353,7 +23840,7 @@ class Panel {
|
|
|
23353
23840
|
renderMenu() {
|
|
23354
23841
|
const { el, intlOptions, menuOpen } = this;
|
|
23355
23842
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
23356
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$
|
|
23843
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$q.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
23357
23844
|
}
|
|
23358
23845
|
renderHeaderNode() {
|
|
23359
23846
|
const { el, showBackButton } = this;
|
|
@@ -24556,8 +25043,8 @@ class Popover {
|
|
|
24556
25043
|
const hidden = !displayed;
|
|
24557
25044
|
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
24558
25045
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
24559
|
-
[CSS$
|
|
24560
|
-
[CSS$
|
|
25046
|
+
[CSS$E.animation]: true,
|
|
25047
|
+
[CSS$E.animationActive]: displayed
|
|
24561
25048
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, hAsync("div", { class: {
|
|
24562
25049
|
[CSS$g.hasHeader]: !!heading,
|
|
24563
25050
|
[CSS$g.container]: true
|
|
@@ -33452,8 +33939,8 @@ class Tooltip {
|
|
|
33452
33939
|
const displayed = effectiveReferenceElement && open;
|
|
33453
33940
|
const hidden = !displayed;
|
|
33454
33941
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
|
|
33455
|
-
[CSS$
|
|
33456
|
-
[CSS$
|
|
33942
|
+
[CSS$E.animation]: true,
|
|
33943
|
+
[CSS$E.animationActive]: displayed
|
|
33457
33944
|
} }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
|
|
33458
33945
|
}
|
|
33459
33946
|
get el() { return getElement(this); }
|
|
@@ -34479,6 +34966,7 @@ registerComponents([
|
|
|
34479
34966
|
Input,
|
|
34480
34967
|
InputDatePicker,
|
|
34481
34968
|
InputMessage,
|
|
34969
|
+
InputNumber,
|
|
34482
34970
|
InputTimePicker,
|
|
34483
34971
|
Label,
|
|
34484
34972
|
Link,
|