@esri/calcite-components 1.0.0-next.573 → 1.0.0-next.576
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +2 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-5a322d52.system.entry.js → p-0063bd54.system.entry.js} +2 -2
- package/dist/calcite/{p-8a983533.js → p-00d651a3.js} +2 -2
- package/dist/calcite/{p-876dff53.js → p-01dfe353.js} +2 -2
- package/dist/calcite/{p-7f278aea.system.js → p-03710730.system.js} +1 -1
- package/dist/calcite/{p-e711dc43.entry.js → p-055689ac.entry.js} +2 -2
- package/dist/calcite/{p-f68cc31f.system.entry.js → p-05fe3055.system.entry.js} +2 -2
- package/dist/calcite/p-06642d43.js +6 -0
- package/dist/calcite/{p-fad46af8.system.entry.js → p-07785bab.system.entry.js} +2 -2
- package/dist/calcite/{p-6d7ee0b8.js → p-07dc2e03.js} +1 -1
- package/dist/calcite/{p-6dbf6d70.entry.js → p-0aaaec34.entry.js} +2 -2
- package/dist/calcite/{p-b4c5da6f.system.entry.js → p-0fe9b606.system.entry.js} +3 -3
- package/dist/calcite/{p-3bfc58d6.entry.js → p-0fee3871.entry.js} +2 -2
- package/dist/calcite/{p-6435b0a1.entry.js → p-1092f237.entry.js} +2 -2
- package/dist/calcite/{p-9f03f505.entry.js → p-112bddc6.entry.js} +2 -2
- package/dist/calcite/{p-dba9a591.system.js → p-148c7f5e.system.js} +1 -1
- package/dist/calcite/{p-33b105b3.system.entry.js → p-1580b332.system.entry.js} +2 -2
- package/dist/calcite/{p-9ceecc50.system.entry.js → p-1849141c.system.entry.js} +2 -2
- package/dist/calcite/{p-49fc9ebc.system.js → p-19828176.system.js} +1 -1
- package/dist/calcite/{p-65f99338.system.entry.js → p-1e5ea0c1.system.entry.js} +2 -2
- package/dist/calcite/{p-5b745241.system.entry.js → p-1f47cd4b.system.entry.js} +2 -2
- package/dist/calcite/{p-de536ef0.entry.js → p-250df0c1.entry.js} +2 -2
- package/dist/calcite/{p-c43ba981.js → p-25e4f3d8.js} +1 -1
- package/dist/calcite/{p-f495009f.system.js → p-2975db93.system.js} +2 -2
- package/dist/calcite/{p-a747f1d7.system.entry.js → p-2c0681f2.system.entry.js} +2 -2
- package/dist/calcite/{p-c5629271.entry.js → p-2c52e78e.entry.js} +2 -2
- package/dist/calcite/{p-d523d8cc.entry.js → p-2e2b5808.entry.js} +2 -2
- package/dist/calcite/{p-58d21c10.system.js → p-3030925e.system.js} +1 -1
- package/dist/calcite/{p-4f45d88a.system.js → p-3066f23a.system.js} +1 -1
- package/dist/calcite/{p-06398a4a.entry.js → p-31313f1f.entry.js} +2 -2
- package/dist/calcite/{p-73e9187d.system.js → p-3182cd22.system.js} +1 -1
- package/dist/calcite/{p-bb5e5ffb.system.js → p-369e807d.system.js} +1 -1
- package/dist/calcite/{p-255f27e2.system.js → p-36a2ec14.system.js} +1 -1
- package/dist/calcite/{p-0abc49f2.system.entry.js → p-38261ff9.system.entry.js} +3 -3
- package/dist/calcite/{p-95d00c3a.entry.js → p-3d5d4d2c.entry.js} +2 -2
- package/dist/calcite/{p-ddab519c.system.entry.js → p-404f0c9f.system.entry.js} +2 -2
- package/dist/calcite/{p-21f73977.js → p-4116356c.js} +1 -1
- package/dist/calcite/{p-5fe49537.system.entry.js → p-4183d4fd.system.entry.js} +2 -2
- package/dist/calcite/{p-44e87751.js → p-425a007f.js} +1 -1
- package/dist/calcite/{p-f3991961.js → p-444ea4b1.js} +1 -1
- package/dist/calcite/{p-5e08e43c.system.js → p-46ce04f4.system.js} +2 -2
- package/dist/calcite/{p-5eacd101.js → p-47361824.js} +1 -1
- package/dist/calcite/p-478b5bfa.system.entry.js +6 -0
- package/dist/calcite/{p-81922742.entry.js → p-499143ac.entry.js} +2 -2
- package/dist/calcite/{p-e4c0bfac.js → p-4d3c4760.js} +1 -1
- package/dist/calcite/{p-18ac810c.entry.js → p-4dc9141f.entry.js} +2 -2
- package/dist/calcite/{p-19201685.entry.js → p-55b8ed48.entry.js} +2 -2
- package/dist/calcite/{p-a7fa401c.entry.js → p-5701dfe2.entry.js} +2 -2
- package/dist/calcite/p-5a4337d3.system.entry.js +6 -0
- package/dist/calcite/{p-296d5c3b.system.js → p-5b4fe2ee.system.js} +1 -1
- package/dist/calcite/p-5e23eefc.entry.js +6 -0
- package/dist/calcite/{p-f71bc24d.js → p-5e5f793d.js} +1 -1
- package/dist/calcite/{p-23eaf857.entry.js → p-5e84cbe9.entry.js} +2 -2
- package/dist/calcite/{p-2927455c.system.js → p-62622654.system.js} +1 -1
- package/dist/calcite/{p-78a14123.system.entry.js → p-66d1e0a4.system.entry.js} +2 -2
- package/dist/calcite/p-66dfa4f0.system.js +6 -0
- package/dist/calcite/{p-a3f96232.js → p-677b6446.js} +1 -1
- package/dist/calcite/p-6b8e5715.entry.js +6 -0
- package/dist/calcite/{p-2d8398c7.system.entry.js → p-6baedf64.system.entry.js} +3 -3
- package/dist/calcite/{p-8ee51867.entry.js → p-6c0211c1.entry.js} +2 -2
- package/dist/calcite/{p-645ab10a.system.entry.js → p-6c843a7d.system.entry.js} +2 -2
- package/dist/calcite/{p-5f861187.system.entry.js → p-6dbcde67.system.entry.js} +2 -2
- package/dist/calcite/{p-3466bf65.system.entry.js → p-6dd18b78.system.entry.js} +2 -2
- package/dist/calcite/{p-8551e8fe.js → p-6e878a5b.js} +2 -2
- package/dist/calcite/p-6fd47bf6.system.js +7 -0
- package/dist/calcite/p-7264b861.js +6 -0
- package/dist/calcite/{p-3703f672.system.entry.js → p-728aed53.system.entry.js} +2 -2
- package/dist/calcite/{p-f7389e4a.system.entry.js → p-74d484b8.system.entry.js} +3 -3
- package/dist/calcite/{p-c237bb63.entry.js → p-762de88a.entry.js} +2 -2
- package/dist/calcite/{p-fe537558.entry.js → p-76ab9f31.entry.js} +2 -2
- package/dist/calcite/{p-b6b10e22.system.entry.js → p-76d99a7b.system.entry.js} +2 -2
- package/dist/calcite/{p-232d5c51.system.js → p-76dd13e8.system.js} +2 -2
- package/dist/calcite/{p-6be19ec4.system.entry.js → p-7bc834d6.system.entry.js} +2 -2
- package/dist/calcite/{p-99fcd3cd.system.entry.js → p-7bdcac53.system.entry.js} +2 -2
- package/dist/calcite/{p-eb8300a2.system.entry.js → p-7ce0d3ce.system.entry.js} +2 -2
- package/dist/calcite/{p-d36a9ae8.entry.js → p-7d970a7b.entry.js} +2 -2
- package/dist/calcite/{p-b2b789c7.entry.js → p-7fd9015a.entry.js} +2 -2
- package/dist/calcite/{p-63e73c95.js → p-80dfd47c.js} +1 -1
- package/dist/calcite/{p-7e99b406.js → p-8234e607.js} +2 -2
- package/dist/calcite/{p-763e7b90.entry.js → p-82d1c6c4.entry.js} +2 -2
- package/dist/calcite/{p-70762440.entry.js → p-87145a12.entry.js} +2 -2
- package/dist/calcite/{p-1c6aeec9.entry.js → p-8c2e59d9.entry.js} +2 -2
- package/dist/calcite/{p-ed9c45da.js → p-8daa6da7.js} +2 -2
- package/dist/calcite/{p-6d41212f.system.js → p-8dde86ed.system.js} +2 -2
- package/dist/calcite/{p-db4d1c41.system.entry.js → p-8f0b019a.system.entry.js} +2 -2
- package/dist/calcite/{p-e0d0a0c8.entry.js → p-90bc18da.entry.js} +2 -2
- package/dist/calcite/{p-01429b02.system.entry.js → p-926dd4ce.system.entry.js} +2 -2
- package/dist/calcite/{p-4140dba9.js → p-92becb57.js} +1 -1
- package/dist/calcite/p-931f53bc.entry.js +6 -0
- package/dist/calcite/p-93bced5f.system.entry.js +6 -0
- package/dist/calcite/{p-2091aec6.system.entry.js → p-93dd5666.system.entry.js} +2 -2
- package/dist/calcite/{p-da3a4817.system.entry.js → p-95340889.system.entry.js} +3 -3
- package/dist/calcite/{p-a0543a23.system.entry.js → p-960675a4.system.entry.js} +2 -2
- package/dist/calcite/{p-5173d4d5.entry.js → p-96df1410.entry.js} +2 -2
- package/dist/calcite/p-97d06529.system.entry.js +6 -0
- package/dist/calcite/{p-91bf59f3.system.entry.js → p-982d3df8.system.entry.js} +2 -2
- package/dist/calcite/{p-f6cd655c.entry.js → p-98d922b1.entry.js} +2 -2
- package/dist/calcite/{p-2d952c64.system.entry.js → p-9a9d808f.system.entry.js} +2 -2
- package/dist/calcite/p-9aea24b0.entry.js +6 -0
- package/dist/calcite/{p-f185f2ff.entry.js → p-9af07c3e.entry.js} +2 -2
- package/dist/calcite/p-9cff373a.entry.js +6 -0
- package/dist/calcite/{p-74de428b.system.entry.js → p-9e24b319.system.entry.js} +2 -2
- package/dist/calcite/{p-7537de6a.entry.js → p-a271fae7.entry.js} +2 -2
- package/dist/calcite/{p-d64e8b8e.entry.js → p-a4db59b2.entry.js} +2 -2
- package/dist/calcite/{p-47f16a46.entry.js → p-a4ea5de7.entry.js} +2 -2
- package/dist/calcite/{p-8662a273.system.entry.js → p-a517783e.system.entry.js} +2 -2
- package/dist/calcite/{p-abb0a3f3.entry.js → p-a5aee385.entry.js} +2 -2
- package/dist/calcite/{p-01f47808.system.js → p-a7a2768c.system.js} +1 -1
- package/dist/calcite/{p-add73f89.system.entry.js → p-a8bcb1a1.system.entry.js} +2 -2
- package/dist/calcite/{p-44ea12cb.system.entry.js → p-a935c72b.system.entry.js} +2 -2
- package/dist/calcite/{p-2776ae06.entry.js → p-a9b1d4a4.entry.js} +2 -2
- package/dist/calcite/{p-d6612851.entry.js → p-a9fe7931.entry.js} +2 -2
- package/dist/calcite/{p-2c93777d.entry.js → p-aa43c144.entry.js} +2 -2
- package/dist/calcite/p-ab6602f7.js +7 -0
- package/dist/calcite/{p-48899b80.system.entry.js → p-adddf205.system.entry.js} +2 -2
- package/dist/calcite/p-ae9358b7.system.entry.js +6 -0
- package/dist/calcite/p-b1ada8a7.system.js +6 -0
- package/dist/calcite/p-b1dfd6ff.system.js +6 -0
- package/dist/calcite/{p-24f3beb1.system.js → p-b286899b.system.js} +1 -1
- package/dist/calcite/{p-74045cd2.js → p-b3965a78.js} +1 -1
- package/dist/calcite/{p-1603eecc.js → p-b5d46dde.js} +1 -1
- package/dist/calcite/{p-62a1c81d.system.entry.js → p-b941fc92.system.entry.js} +2 -2
- package/dist/calcite/{p-47c06b6d.system.entry.js → p-ba1f87bf.system.entry.js} +2 -2
- package/dist/calcite/p-ba875cbc.entry.js +6 -0
- package/dist/calcite/{p-76d0f925.system.js → p-bb6fde02.system.js} +2 -2
- package/dist/calcite/{p-857fb485.system.js → p-bcc21945.system.js} +1 -1
- package/dist/calcite/{p-7890a9fe.system.entry.js → p-bdea289d.system.entry.js} +2 -2
- package/dist/calcite/{p-6807dea3.entry.js → p-bf453f94.entry.js} +2 -2
- package/dist/calcite/{p-06940898.entry.js → p-c19b15b5.entry.js} +2 -2
- package/dist/calcite/{p-9a704c99.entry.js → p-c2891336.entry.js} +2 -2
- package/dist/calcite/{p-8231b302.entry.js → p-c2f58564.entry.js} +2 -2
- package/dist/calcite/{p-2fb83966.js → p-c4c35103.js} +2 -2
- package/dist/calcite/{p-1f980a64.js → p-c5f18639.js} +2 -2
- package/dist/calcite/p-c6fe612c.system.entry.js +6 -0
- package/dist/calcite/{p-16db99cb.entry.js → p-c7fb04d2.entry.js} +2 -2
- package/dist/calcite/p-c8566719.system.entry.js +6 -0
- package/dist/calcite/{p-c2668e88.entry.js → p-c956ed92.entry.js} +2 -2
- package/dist/calcite/{p-dc882273.system.entry.js → p-cb767160.system.entry.js} +2 -2
- package/dist/calcite/{p-f1f9a708.system.js → p-cc15ab86.system.js} +1 -1
- package/dist/calcite/{p-c2d25fad.system.entry.js → p-cc6a1802.system.entry.js} +2 -2
- package/dist/calcite/{p-2d0c05ce.js → p-ce07692c.js} +2 -2
- package/dist/calcite/{p-4446ea9c.js → p-cfc4a165.js} +2 -2
- package/dist/calcite/{p-e57be199.system.entry.js → p-d035c9df.system.entry.js} +2 -2
- package/dist/calcite/p-d03c62db.js +6 -0
- package/dist/calcite/p-d1baac51.entry.js +6 -0
- package/dist/calcite/{p-5a26d765.system.entry.js → p-d1ce94e6.system.entry.js} +2 -2
- package/dist/calcite/{p-3c57eb23.system.js → p-d2186778.system.js} +2 -2
- package/dist/calcite/{p-5b21f192.system.entry.js → p-d340c46d.system.entry.js} +2 -2
- package/dist/calcite/{p-4c200082.system.entry.js → p-d3bc790e.system.entry.js} +2 -2
- package/dist/calcite/{p-9119abdf.entry.js → p-d63cd218.entry.js} +2 -2
- package/dist/calcite/{p-c5d51196.entry.js → p-d64bed77.entry.js} +2 -2
- package/dist/calcite/{p-5f4daba6.system.entry.js → p-d68ad052.system.entry.js} +2 -2
- package/dist/calcite/{p-f4839c59.entry.js → p-d71645da.entry.js} +2 -2
- package/dist/calcite/{p-4672c17e.system.entry.js → p-d76403f7.system.entry.js} +2 -2
- package/dist/calcite/{p-131c63f1.system.js → p-dce4cc99.system.js} +3 -3
- package/dist/calcite/{p-215cee4a.entry.js → p-dd9ee38c.entry.js} +2 -2
- package/dist/calcite/p-dfb23408.system.js +6 -0
- package/dist/calcite/{p-96ef5070.entry.js → p-dfcc691e.entry.js} +2 -2
- package/dist/calcite/{p-79e521d2.entry.js → p-e00ba801.entry.js} +2 -2
- package/dist/calcite/{p-ae8eceed.entry.js → p-e044bc1e.entry.js} +2 -2
- package/dist/calcite/{p-6691d147.system.js → p-e0c75676.system.js} +1 -1
- package/dist/calcite/{p-dcc231fb.system.js → p-e3f65e31.system.js} +2 -2
- package/dist/calcite/{p-7ba806bd.system.entry.js → p-e51cf891.system.entry.js} +2 -2
- package/dist/calcite/p-e556b877.entry.js +6 -0
- package/dist/calcite/p-e57cfbe2.system.entry.js +6 -0
- package/dist/calcite/{p-4b8e875c.system.js → p-e5cbc24b.system.js} +2 -2
- package/dist/calcite/{p-3c1c7270.js → p-e7e38d6b.js} +1 -1
- package/dist/calcite/{p-f1bc0e38.system.entry.js → p-e8ad8f14.system.entry.js} +2 -2
- package/dist/calcite/{p-635f786f.js → p-ed924f1b.js} +2 -2
- package/dist/calcite/{p-6458e818.system.entry.js → p-f226fbfc.system.entry.js} +2 -2
- package/dist/calcite/{p-c0738c16.entry.js → p-f3201bb0.entry.js} +2 -2
- package/dist/calcite/{p-d06b07a2.entry.js → p-f4364073.entry.js} +2 -2
- package/dist/calcite/{p-87812365.system.js → p-f6347608.system.js} +2 -2
- package/dist/calcite/{p-d32fc6bf.system.entry.js → p-f6d57744.system.entry.js} +2 -2
- package/dist/calcite/p-f7c72443.entry.js +6 -0
- package/dist/calcite/p-fa714458.entry.js +6 -0
- package/dist/calcite/p-fa82297a.system.entry.js +6 -0
- package/dist/calcite/p-fa98cfd6.entry.js +6 -0
- package/dist/calcite/{p-9ded762f.system.entry.js → p-fac9cf69.system.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-be716ed0.js → ExpandToggle-e1337602.js} +5 -5
- package/dist/cjs/{Heading-14436db8.js → Heading-ef56c3d3.js} +2 -2
- package/dist/cjs/{app-globals-18db0cbf.js → app-globals-6fc66d0b.js} +2 -2
- package/dist/cjs/{array-6a40c1d9.js → array-6e85280c.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +13 -11
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +8 -8
- package/dist/cjs/calcite-alert.cjs.entry.js +7 -7
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-card.cjs.entry.js +8 -8
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +142 -0
- package/dist/cjs/calcite-flow.cjs.entry.js +33 -33
- package/dist/cjs/calcite-graph_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +55 -37
- package/dist/cjs/calcite-input.cjs.entry.js +12 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +23 -11
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +110 -104
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +10 -10
- 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 +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +28 -20
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +21 -13
- package/dist/cjs/calcite-tile.cjs.entry.js +19 -13
- package/dist/cjs/calcite-tip_3.cjs.entry.js +16 -14
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite.cjs.js +6 -6
- package/dist/cjs/{conditionalSlot-74cabcef.js → conditionalSlot-70df6348.js} +3 -3
- package/dist/cjs/{debounce-d495c550.js → debounce-d73ff8b1.js} +1 -1
- package/dist/cjs/{dom-60a1a16f.js → dom-3f60cbd0.js} +3 -3
- package/dist/cjs/{filter-51cf2e7d.js → filter-fcadab7b.js} +2 -2
- package/dist/cjs/{floating-ui-686b3413.js → floating-ui-092f4fbd.js} +2 -2
- package/dist/cjs/{form-9ed868a6.js → form-3b946711.js} +3 -3
- package/dist/cjs/{guid-c2802a75.js → guid-fd4860ac.js} +1 -1
- package/dist/cjs/{index-cc07b36c.js → index-825bdca3.js} +10 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-27d3c6c4.js → interactive-b8e34dfa.js} +1 -1
- package/dist/cjs/{interfaces-d1d635a6.js → interfaces-d755a1de.js} +1 -1
- package/dist/cjs/{key-92498ae8.js → key-a6de3a12.js} +1 -1
- package/dist/cjs/{label-edae341f.js → label-d43a2e03.js} +2 -2
- package/dist/cjs/loader.cjs.js +6 -6
- package/dist/cjs/{locale-c6f1966f.js → locale-5031d0a4.js} +2 -2
- package/dist/cjs/{math-66bff6e9.js → math-7ca32485.js} +1 -1
- package/dist/cjs/{observers-53ebb8f3.js → observers-11a40c4f.js} +1 -1
- package/dist/cjs/{openCloseComponent-0885b399.js → openCloseComponent-565096c5.js} +1 -1
- package/dist/cjs/{resources-1e6ef3e5.js → resources-29cc0cd1.js} +3 -3
- package/dist/cjs/{resources-dac2d527.js → resources-4d95de9e.js} +1 -1
- package/dist/cjs/{resources-4619d271.js → resources-a0b9f49e.js} +1 -1
- package/dist/cjs/resources-b2db41e0.js +52 -0
- package/dist/cjs/{resources-bb3999db.js → resources-c81aa568.js} +1 -1
- package/dist/cjs/{resources-10d76ea2.js → resources-c98978e6.js} +5 -5
- package/dist/cjs/{sortable.esm-d676475c.js → sortable.esm-a9d9162d.js} +1 -1
- package/dist/cjs/{utils-692d8506.js → utils-0e43a2a6.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/accordion/accordion.js +9 -7
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +12 -4
- 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.css +111 -59
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.css +0 -19
- 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.css +34 -18
- 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 +6 -6
- 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 +2 -2
- 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.js +1 -1
- 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.css +1 -0
- package/dist/collection/components/flow/flow.js +44 -38
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.css +119 -0
- package/dist/collection/components/flow-item/flow-item.js +479 -0
- package/dist/collection/components/flow-item/resources.js +24 -0
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +54 -13
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.css +3 -2
- package/dist/collection/components/modal/modal.js +16 -4
- package/dist/collection/components/modal/resources.js +2 -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.css +5 -14
- package/dist/collection/components/panel/panel.js +134 -63
- package/dist/collection/components/panel/resources.js +2 -6
- 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.css +16 -10
- package/dist/collection/components/split-button/split-button.js +2 -2
- 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 +16 -12
- package/dist/collection/components/tab-nav/tab-nav.js +4 -4
- package/dist/collection/components/tab-title/tab-title.js +21 -17
- 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 +10 -10
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +23 -17
- 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 +25 -21
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +9 -5
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +33 -33
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +14 -12
- package/dist/collection/components/tip-group/tip-group.js +2 -2
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.css +2 -2
- package/dist/collection/components/tip-manager/tip-manager.js +16 -16
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +4 -4
- package/dist/components/calcite-accordion-item.js +2 -3
- package/dist/components/calcite-accordion.js +7 -5
- package/dist/components/calcite-action-bar.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +2 -2
- package/dist/components/calcite-avatar.js +2 -2
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-block.js +2 -2
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +4 -4
- 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 +4 -4
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +2 -2
- package/dist/components/calcite-combobox.js +5 -5
- 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 +2 -2
- package/dist/components/calcite-flow-item.d.ts +11 -0
- package/dist/components/calcite-flow-item.js +214 -0
- package/dist/components/calcite-flow.js +34 -34
- 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 +3 -3
- 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.js +3 -4
- package/dist/components/calcite-input-text.js +3 -4
- package/dist/components/calcite-input-time-picker.js +32 -13
- 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 +2 -2
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +18 -5
- package/dist/components/calcite-notice.js +2 -2
- 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 +2 -393
- package/dist/components/calcite-pick-list-group.js +3 -3
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +3 -3
- 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 +3 -3
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +3 -3
- 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 +2 -2
- package/dist/components/calcite-shell-panel.js +2 -2
- package/dist/components/calcite-shell.js +2 -2
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +2 -2
- 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 +7 -3
- package/dist/components/calcite-tile-select.js +12 -8
- 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 +6 -6
- package/dist/components/calcite-tip.js +8 -6
- 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 -3
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +3 -3
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +3 -3
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +2 -2
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +2 -3
- 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 +15 -3
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter.js +169 -741
- package/dist/components/filter2.js +741 -169
- package/dist/components/floating-ui.js +3 -3
- 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 +2 -2
- package/dist/components/index.d.ts +93 -5
- package/dist/components/index.js +2 -2
- package/dist/components/input.js +3 -4
- 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 +87 -112
- package/dist/components/label2.js +112 -87
- package/dist/components/link.js +2 -3
- 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/openCloseComponent.js +1 -1
- package/dist/components/panel.js +451 -0
- package/dist/components/pick-list-item.js +3 -3
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +12 -12
- package/dist/components/resources2.js +7 -10
- package/dist/components/resources3.js +23 -6
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +4 -4
- 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 +11 -7
- package/dist/components/tab.js +9 -5
- package/dist/components/tabs.js +5 -5
- package/dist/components/tile.js +13 -7
- package/dist/components/time-picker.js +17 -17
- 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 +790 -559
- package/dist/esm/{ExpandToggle-b806b6d6.js → ExpandToggle-79b23645.js} +5 -5
- package/dist/esm/{Heading-c9260472.js → Heading-09bf2fa9.js} +2 -2
- package/dist/esm/{app-globals-dfd78ab9.js → app-globals-33238d1e.js} +2 -2
- package/dist/esm/{array-f540a504.js → array-c2c29015.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +13 -11
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +8 -8
- package/dist/esm/calcite-alert.entry.js +7 -7
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +10 -10
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card.entry.js +8 -8
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +8 -8
- package/dist/esm/calcite-color-picker_3.entry.js +12 -12
- package/dist/esm/calcite-combobox_3.entry.js +15 -15
- package/dist/esm/calcite-date-picker_4.entry.js +10 -10
- package/dist/esm/calcite-dropdown_3.entry.js +10 -10
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +138 -0
- package/dist/esm/calcite-flow.entry.js +33 -33
- package/dist/esm/calcite-graph_2.entry.js +11 -11
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +13 -13
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +12 -12
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +55 -37
- package/dist/esm/calcite-input.entry.js +12 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +23 -11
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +102 -96
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +10 -10
- 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 +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper_2.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +28 -20
- package/dist/esm/calcite-tile-select_2.entry.js +21 -13
- package/dist/esm/calcite-tile.entry.js +19 -13
- package/dist/esm/calcite-tip_3.entry.js +16 -14
- package/dist/esm/calcite-tooltip_2.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +7 -7
- package/dist/esm/calcite-value-list_2.entry.js +12 -12
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-13919550.js → conditionalSlot-62083906.js} +3 -3
- package/dist/esm/{debounce-4468ec93.js → debounce-8c835d4b.js} +1 -1
- package/dist/esm/{dom-fb85e16c.js → dom-3916e61f.js} +3 -3
- package/dist/esm/{filter-c6da97aa.js → filter-aab1017e.js} +2 -2
- package/dist/esm/{floating-ui-a41704c5.js → floating-ui-970c21c6.js} +2 -2
- package/dist/esm/{form-19995c88.js → form-9147a2f9.js} +3 -3
- package/dist/esm/{guid-6b7f5b2a.js → guid-164faa41.js} +1 -1
- package/dist/esm/{index-0bb6162f.js → index-913acba3.js} +10 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-6af5c5ed.js → interactive-801ed755.js} +1 -1
- package/dist/esm/{interfaces-ef7c93cb.js → interfaces-44885f7b.js} +1 -1
- package/dist/esm/{key-9400c512.js → key-a7acb0ab.js} +1 -1
- package/dist/esm/{label-f7a4cb22.js → label-7e38a412.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-be38e4a3.js → locale-e7194024.js} +2 -2
- package/dist/esm/{math-d8951c4d.js → math-3caf2732.js} +1 -1
- package/dist/esm/{observers-dfc11a10.js → observers-04da3aa2.js} +1 -1
- package/dist/esm/{openCloseComponent-63ae7c03.js → openCloseComponent-c28502aa.js} +1 -1
- package/dist/esm/{resources-8d32ecce.js → resources-1b4bd79e.js} +1 -1
- package/dist/esm/{resources-d106e29b.js → resources-262a0e5a.js} +1 -1
- package/dist/esm/{resources-db745cae.js → resources-8fdc061f.js} +3 -3
- package/dist/esm/{resources-67e1126c.js → resources-a3196cd9.js} +1 -1
- package/dist/esm/resources-f0e7bd38.js +46 -0
- package/dist/esm/{resources-c8cc7a09.js → resources-fb2c5569.js} +5 -5
- package/dist/esm/{sortable.esm-3c0036cf.js → sortable.esm-b06d1353.js} +1 -1
- package/dist/esm/{utils-82f6c024.js → utils-ebc9c1e2.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-b806b6d6.js → ExpandToggle-79b23645.js} +2 -2
- package/dist/esm-es5/{Heading-c9260472.js → Heading-09bf2fa9.js} +2 -2
- package/dist/esm-es5/{app-globals-dfd78ab9.js → app-globals-33238d1e.js} +2 -2
- package/dist/esm-es5/{array-f540a504.js → array-c2c29015.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-chip.entry.js +3 -3
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow-item.entry.js +6 -0
- package/dist/esm-es5/calcite-flow.entry.js +3 -3
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-text.entry.js +2 -2
- 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 +3 -3
- package/dist/esm-es5/calcite-notice.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-13919550.js → conditionalSlot-62083906.js} +2 -2
- package/dist/esm-es5/{debounce-4468ec93.js → debounce-8c835d4b.js} +1 -1
- package/dist/esm-es5/{dom-fb85e16c.js → dom-3916e61f.js} +3 -3
- package/dist/esm-es5/{filter-c6da97aa.js → filter-aab1017e.js} +2 -2
- package/dist/esm-es5/{floating-ui-a41704c5.js → floating-ui-970c21c6.js} +2 -2
- package/dist/esm-es5/{form-19995c88.js → form-9147a2f9.js} +2 -2
- package/dist/esm-es5/{guid-6b7f5b2a.js → guid-164faa41.js} +1 -1
- package/dist/esm-es5/index-913acba3.js +7 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-6af5c5ed.js → interactive-801ed755.js} +1 -1
- package/dist/esm-es5/{interfaces-ef7c93cb.js → interfaces-44885f7b.js} +1 -1
- package/dist/esm-es5/{key-9400c512.js → key-a7acb0ab.js} +1 -1
- package/dist/esm-es5/{label-f7a4cb22.js → label-7e38a412.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-be38e4a3.js → locale-e7194024.js} +2 -2
- package/dist/esm-es5/{math-d8951c4d.js → math-3caf2732.js} +1 -1
- package/dist/esm-es5/{observers-dfc11a10.js → observers-04da3aa2.js} +1 -1
- package/dist/esm-es5/{openCloseComponent-63ae7c03.js → openCloseComponent-c28502aa.js} +1 -1
- package/dist/esm-es5/{resources-8d32ecce.js → resources-1b4bd79e.js} +1 -1
- package/dist/esm-es5/{resources-d106e29b.js → resources-262a0e5a.js} +1 -1
- package/dist/esm-es5/{resources-db745cae.js → resources-8fdc061f.js} +2 -2
- package/dist/esm-es5/{resources-67e1126c.js → resources-a3196cd9.js} +1 -1
- package/dist/esm-es5/resources-f0e7bd38.js +6 -0
- package/dist/esm-es5/{resources-c8cc7a09.js → resources-fb2c5569.js} +2 -2
- package/dist/esm-es5/{sortable.esm-3c0036cf.js → sortable.esm-b06d1353.js} +1 -1
- package/dist/esm-es5/{utils-82f6c024.js → utils-ebc9c1e2.js} +1 -1
- package/dist/extras/docs-json.json +711 -198
- 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/interfaces.d.ts +1 -1
- package/dist/types/components/button/interfaces.d.ts +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts +1 -1
- package/dist/types/components/color-picker/interfaces.d.ts +1 -1
- package/dist/types/components/flow/flow.d.ts +8 -8
- package/dist/types/components/flow-item/flow-item.d.ts +100 -0
- package/dist/types/components/flow-item/resources.d.ts +19 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +9 -2
- package/dist/types/components/interfaces.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +6 -0
- package/dist/types/components/modal/resources.d.ts +1 -0
- package/dist/types/components/panel/panel.d.ts +25 -4
- package/dist/types/components/panel/resources.d.ts +0 -4
- package/dist/types/components/tab/tab.d.ts +13 -8
- package/dist/types/components/tab-nav/tab-nav.d.ts +3 -3
- package/dist/types/components/tab-title/tab-title.d.ts +17 -12
- package/dist/types/components/tabs/tabs.d.ts +5 -5
- package/dist/types/components/tile/tile.d.ts +19 -11
- package/dist/types/components/tile-select/tile-select.d.ts +21 -13
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +6 -2
- package/dist/types/components/time-picker/time-picker.d.ts +16 -16
- package/dist/types/components/tip/tip.d.ts +10 -8
- package/dist/types/components/tip-group/tip-group.d.ts +1 -1
- package/dist/types/components/tip-manager/tip-manager.d.ts +12 -12
- package/dist/types/components.d.ts +324 -157
- package/dist/types/preact.d.ts +4 -0
- package/hydrate/index.js +1015 -569
- package/package.json +6 -4
- package/readme.md +2 -2
- package/dist/calcite/p-0079e9dc.js +0 -7
- package/dist/calcite/p-1227fc52.system.entry.js +0 -6
- package/dist/calcite/p-22da6834.system.entry.js +0 -6
- package/dist/calcite/p-258de339.entry.js +0 -6
- package/dist/calcite/p-2c07cc64.js +0 -6
- package/dist/calcite/p-3c69dedb.entry.js +0 -6
- package/dist/calcite/p-5493b0ff.system.js +0 -6
- package/dist/calcite/p-587ac194.entry.js +0 -6
- package/dist/calcite/p-771af5e2.entry.js +0 -6
- package/dist/calcite/p-79d7865d.entry.js +0 -6
- package/dist/calcite/p-7c1e6642.system.entry.js +0 -6
- package/dist/calcite/p-8906b45b.system.js +0 -7
- package/dist/calcite/p-8f00e8af.system.entry.js +0 -6
- package/dist/calcite/p-935e8a80.system.entry.js +0 -6
- package/dist/calcite/p-a62ccfd7.system.js +0 -6
- package/dist/calcite/p-bc363322.system.js +0 -6
- package/dist/calcite/p-c85c2743.system.entry.js +0 -6
- package/dist/calcite/p-cb0581e6.system.entry.js +0 -6
- package/dist/calcite/p-d34e1ff5.js +0 -6
- package/dist/calcite/p-d5488a3e.entry.js +0 -6
- package/dist/calcite/p-db77e732.entry.js +0 -6
- package/dist/calcite/p-f314edb9.entry.js +0 -6
- package/dist/calcite/p-f5c675ea.system.entry.js +0 -6
- package/dist/calcite/p-fa1fe9ce.entry.js +0 -6
- package/dist/calcite/p-fb89ecdf.entry.js +0 -6
- package/dist/components/resources4.js +0 -33
- package/dist/esm-es5/index-0bb6162f.js +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.576
|
|
5
5
|
*/
|
|
6
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Build, forceUpdate, Host, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -15,7 +15,7 @@ const CSS_UTILITY = {
|
|
|
15
15
|
lightTheme,
|
|
16
16
|
rtl: "calcite--rtl"
|
|
17
17
|
};
|
|
18
|
-
const TEXT$
|
|
18
|
+
const TEXT$v = {
|
|
19
19
|
loading: "Loading"
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -78,7 +78,7 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
78
78
|
//
|
|
79
79
|
//--------------------------------------------------------------------------
|
|
80
80
|
/** Specifies the appearance of the component. */
|
|
81
|
-
this.appearance = "
|
|
81
|
+
this.appearance = "solid";
|
|
82
82
|
/** Specifies the placement of the icon in the header. */
|
|
83
83
|
this.iconPosition = "end";
|
|
84
84
|
/** Specifies the type of the icon in the header. */
|
|
@@ -113,10 +113,12 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
+
const transparent = this.appearance === "transparent";
|
|
117
|
+
const minimal = this.appearance === "minimal";
|
|
116
118
|
return (h("div", { class: {
|
|
117
|
-
"accordion--transparent":
|
|
118
|
-
"accordion--minimal":
|
|
119
|
-
accordion:
|
|
119
|
+
"accordion--transparent": transparent,
|
|
120
|
+
"accordion--minimal": minimal,
|
|
121
|
+
accordion: !transparent && !minimal
|
|
120
122
|
} }, h("slot", null)));
|
|
121
123
|
}
|
|
122
124
|
//--------------------------------------------------------------------------
|
|
@@ -443,11 +445,11 @@ function processMutations$1(mutations) {
|
|
|
443
445
|
});
|
|
444
446
|
}
|
|
445
447
|
|
|
446
|
-
const SLOTS$
|
|
448
|
+
const SLOTS$t = {
|
|
447
449
|
actionsStart: "actions-start",
|
|
448
450
|
actionsEnd: "actions-end"
|
|
449
451
|
};
|
|
450
|
-
const CSS$
|
|
452
|
+
const CSS$T = {
|
|
451
453
|
icon: "icon",
|
|
452
454
|
header: "header",
|
|
453
455
|
headerContent: "header-content",
|
|
@@ -529,25 +531,25 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
529
531
|
// --------------------------------------------------------------------------
|
|
530
532
|
renderActionsStart() {
|
|
531
533
|
const { el } = this;
|
|
532
|
-
return getSlotted(el, SLOTS$
|
|
534
|
+
return getSlotted(el, SLOTS$t.actionsStart) ? (h("div", { class: CSS$T.actionsStart }, h("slot", { name: SLOTS$t.actionsStart }))) : null;
|
|
533
535
|
}
|
|
534
536
|
renderActionsEnd() {
|
|
535
537
|
const { el } = this;
|
|
536
|
-
return getSlotted(el, SLOTS$
|
|
538
|
+
return getSlotted(el, SLOTS$t.actionsEnd) ? (h("div", { class: CSS$T.actionsEnd }, h("slot", { name: SLOTS$t.actionsEnd }))) : null;
|
|
537
539
|
}
|
|
538
540
|
render() {
|
|
539
541
|
const dir = getElementDir(this.el);
|
|
540
|
-
const iconEl = h("calcite-icon", { class: CSS$
|
|
542
|
+
const iconEl = h("calcite-icon", { class: CSS$T.icon, icon: this.icon, scale: "s" });
|
|
541
543
|
return (h(Host, null, h("div", { class: {
|
|
542
544
|
[`icon-position--${this.iconPosition}`]: true,
|
|
543
545
|
[`icon-type--${this.iconType}`]: true
|
|
544
|
-
} }, h("div", { class: { [CSS$
|
|
546
|
+
} }, h("div", { class: { [CSS$T.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), h("div", { "aria-expanded": toAriaBoolean(this.active || this.expanded), class: CSS$T.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, this.icon ? iconEl : null, h("div", { class: CSS$T.headerText }, h("span", { class: CSS$T.heading }, this.heading || this.itemTitle), this.itemSubtitle || this.description ? (h("span", { class: CSS$T.description }, this.description || this.itemSubtitle)) : null), h("calcite-icon", { class: CSS$T.expandIcon, icon: this.iconType === "chevron"
|
|
545
547
|
? "chevronDown"
|
|
546
548
|
: this.iconType === "caret"
|
|
547
549
|
? "caretDown"
|
|
548
550
|
: this.expanded || this.active
|
|
549
551
|
? "minus"
|
|
550
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$
|
|
552
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$T.content }, h("slot", null)))));
|
|
551
553
|
}
|
|
552
554
|
//--------------------------------------------------------------------------
|
|
553
555
|
//
|
|
@@ -620,7 +622,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
620
622
|
static get style() { return accordionItemCss; }
|
|
621
623
|
};
|
|
622
624
|
|
|
623
|
-
const CSS$
|
|
625
|
+
const CSS$S = {
|
|
624
626
|
button: "button",
|
|
625
627
|
buttonTextVisible: "button--text-visible",
|
|
626
628
|
buttonCompact: "button--compact",
|
|
@@ -630,7 +632,7 @@ const CSS$R = {
|
|
|
630
632
|
textContainer: "text-container",
|
|
631
633
|
textContainerVisible: "text-container--visible"
|
|
632
634
|
};
|
|
633
|
-
const TEXT$
|
|
635
|
+
const TEXT$u = {
|
|
634
636
|
loading: "Loading"
|
|
635
637
|
};
|
|
636
638
|
|
|
@@ -674,7 +676,7 @@ function updateHostInteraction(component, hostIsTabbable = false) {
|
|
|
674
676
|
component.el.removeAttribute("aria-disabled");
|
|
675
677
|
}
|
|
676
678
|
|
|
677
|
-
const actionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-flexbox;display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;inline-size:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-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-transition-property:margin;transition-property:margin;-webkit-transition-property:inline-size;transition-property:inline-size}.button .text-container--visible{inline-size:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
679
|
+
const actionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-flexbox;display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;inline-size:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-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-transition-property:margin;transition-property:margin;-webkit-transition-property:inline-size;transition-property:inline-size}.button .text-container--visible{inline-size:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
678
680
|
|
|
679
681
|
const Action = class extends HTMLElement$1 {
|
|
680
682
|
constructor() {
|
|
@@ -710,7 +712,7 @@ const Action = class extends HTMLElement$1 {
|
|
|
710
712
|
*
|
|
711
713
|
* @default "Loading"
|
|
712
714
|
*/
|
|
713
|
-
this.intlLoading = TEXT$
|
|
715
|
+
this.intlLoading = TEXT$u.loading;
|
|
714
716
|
/**
|
|
715
717
|
* When true, a busy indicator is displayed.
|
|
716
718
|
*/
|
|
@@ -769,8 +771,8 @@ const Action = class extends HTMLElement$1 {
|
|
|
769
771
|
renderTextContainer() {
|
|
770
772
|
const { text, textEnabled } = this;
|
|
771
773
|
const textContainerClasses = {
|
|
772
|
-
[CSS$
|
|
773
|
-
[CSS$
|
|
774
|
+
[CSS$S.textContainer]: true,
|
|
775
|
+
[CSS$S.textContainerVisible]: textEnabled
|
|
774
776
|
};
|
|
775
777
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
776
778
|
}
|
|
@@ -784,18 +786,18 @@ const Action = class extends HTMLElement$1 {
|
|
|
784
786
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
785
787
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
786
788
|
const slotContainerNode = (h("div", { class: {
|
|
787
|
-
[CSS$
|
|
788
|
-
[CSS$
|
|
789
|
+
[CSS$S.slotContainer]: true,
|
|
790
|
+
[CSS$S.slotContainerHidden]: loading
|
|
789
791
|
} }, h("slot", null)));
|
|
790
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
792
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$S.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
791
793
|
}
|
|
792
794
|
render() {
|
|
793
795
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
794
796
|
const ariaLabel = label || text;
|
|
795
797
|
const buttonClasses = {
|
|
796
|
-
[CSS$
|
|
797
|
-
[CSS$
|
|
798
|
-
[CSS$
|
|
798
|
+
[CSS$S.button]: true,
|
|
799
|
+
[CSS$S.buttonTextVisible]: textEnabled,
|
|
800
|
+
[CSS$S.buttonCompact]: compact
|
|
799
801
|
};
|
|
800
802
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
801
803
|
}
|
|
@@ -803,26 +805,26 @@ const Action = class extends HTMLElement$1 {
|
|
|
803
805
|
static get style() { return actionCss; }
|
|
804
806
|
};
|
|
805
807
|
|
|
806
|
-
const CSS$
|
|
808
|
+
const CSS$R = {
|
|
807
809
|
menu: "menu",
|
|
808
810
|
defaultTrigger: "default-trigger"
|
|
809
811
|
};
|
|
810
|
-
const SLOTS$
|
|
812
|
+
const SLOTS$s = {
|
|
811
813
|
tooltip: "tooltip",
|
|
812
814
|
trigger: "trigger"
|
|
813
815
|
};
|
|
814
|
-
const ICONS$
|
|
816
|
+
const ICONS$g = {
|
|
815
817
|
menu: "ellipsis"
|
|
816
818
|
};
|
|
817
819
|
|
|
818
|
-
const SLOTS$
|
|
820
|
+
const SLOTS$r = {
|
|
819
821
|
menuActions: "menu-actions",
|
|
820
822
|
menuTooltip: "menu-tooltip"
|
|
821
823
|
};
|
|
822
|
-
const TEXT$
|
|
824
|
+
const TEXT$t = {
|
|
823
825
|
more: "More"
|
|
824
826
|
};
|
|
825
|
-
const ICONS$
|
|
827
|
+
const ICONS$f = {
|
|
826
828
|
menu: "ellipsis"
|
|
827
829
|
};
|
|
828
830
|
|
|
@@ -845,7 +847,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
845
847
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
846
848
|
};
|
|
847
849
|
const queryActions = (el) => {
|
|
848
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
850
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$s.trigger : true);
|
|
849
851
|
};
|
|
850
852
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
851
853
|
let needToSlotCount = overflowCount;
|
|
@@ -853,7 +855,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
853
855
|
let slottedWithinGroupCount = 0;
|
|
854
856
|
const groupActions = queryActions(group).reverse();
|
|
855
857
|
groupActions.forEach((groupAction) => {
|
|
856
|
-
if (groupAction.slot === SLOTS$
|
|
858
|
+
if (groupAction.slot === SLOTS$r.menuActions) {
|
|
857
859
|
groupAction.removeAttribute("slot");
|
|
858
860
|
groupAction.textEnabled = expanded;
|
|
859
861
|
}
|
|
@@ -863,7 +865,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
863
865
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
864
866
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
865
867
|
groupAction.textEnabled = true;
|
|
866
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
868
|
+
groupAction.setAttribute("slot", SLOTS$r.menuActions);
|
|
867
869
|
slottedWithinGroupCount++;
|
|
868
870
|
if (slottedWithinGroupCount > 1) {
|
|
869
871
|
needToSlotCount--;
|
|
@@ -876,7 +878,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
876
878
|
});
|
|
877
879
|
};
|
|
878
880
|
|
|
879
|
-
const ICONS$
|
|
881
|
+
const ICONS$e = {
|
|
880
882
|
chevronsLeft: "chevrons-left",
|
|
881
883
|
chevronsRight: "chevrons-right"
|
|
882
884
|
};
|
|
@@ -886,7 +888,7 @@ function getCalcitePosition(position, el) {
|
|
|
886
888
|
}
|
|
887
889
|
function toggleChildActionText({ parent, expanded }) {
|
|
888
890
|
queryActions(parent)
|
|
889
|
-
.filter((el) => el.slot !== SLOTS$
|
|
891
|
+
.filter((el) => el.slot !== SLOTS$r.menuActions)
|
|
890
892
|
.forEach((action) => (action.textEnabled = expanded));
|
|
891
893
|
parent
|
|
892
894
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -904,7 +906,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
904
906
|
const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
905
907
|
const rtl = getElementDir(el) === "rtl";
|
|
906
908
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
907
|
-
const icons = [ICONS$
|
|
909
|
+
const icons = [ICONS$e.chevronsLeft, ICONS$e.chevronsRight];
|
|
908
910
|
if (rtl) {
|
|
909
911
|
icons.reverse();
|
|
910
912
|
}
|
|
@@ -915,14 +917,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
915
917
|
return actionNode;
|
|
916
918
|
};
|
|
917
919
|
|
|
918
|
-
const CSS$
|
|
920
|
+
const CSS$Q = {
|
|
919
921
|
actionGroupBottom: "action-group--bottom"
|
|
920
922
|
};
|
|
921
|
-
const SLOTS$
|
|
923
|
+
const SLOTS$q = {
|
|
922
924
|
bottomActions: "bottom-actions",
|
|
923
925
|
expandTooltip: "expand-tooltip"
|
|
924
926
|
};
|
|
925
|
-
const TEXT$
|
|
927
|
+
const TEXT$s = {
|
|
926
928
|
expand: "Expand",
|
|
927
929
|
collapse: "Collapse"
|
|
928
930
|
};
|
|
@@ -2255,7 +2257,7 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2255
2257
|
const actions = queryActions(el);
|
|
2256
2258
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
2257
2259
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
2258
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
2260
|
+
const groupCount = getSlotted(el, SLOTS$q.bottomActions) || !expandDisabled
|
|
2259
2261
|
? actionGroups.length + 1
|
|
2260
2262
|
: actionGroups.length;
|
|
2261
2263
|
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
|
@@ -2357,11 +2359,11 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2357
2359
|
// --------------------------------------------------------------------------
|
|
2358
2360
|
renderBottomActionGroup() {
|
|
2359
2361
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2360
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2361
|
-
const expandLabel = intlExpand || TEXT$
|
|
2362
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2362
|
+
const tooltip = getSlotted(el, SLOTS$q.expandTooltip);
|
|
2363
|
+
const expandLabel = intlExpand || TEXT$s.expand;
|
|
2364
|
+
const collapseLabel = intlCollapse || TEXT$s.collapse;
|
|
2363
2365
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2364
|
-
return getSlotted(el, SLOTS$
|
|
2366
|
+
return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$Q.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$q.bottomActions }), h("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
|
|
2365
2367
|
}
|
|
2366
2368
|
render() {
|
|
2367
2369
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2429,13 +2431,13 @@ const ActionGroup = class extends HTMLElement$1 {
|
|
|
2429
2431
|
// --------------------------------------------------------------------------
|
|
2430
2432
|
renderTooltip() {
|
|
2431
2433
|
const { el } = this;
|
|
2432
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
2433
|
-
return hasTooltip ? h("slot", { name: SLOTS$
|
|
2434
|
+
const hasTooltip = getSlotted(el, SLOTS$r.menuTooltip);
|
|
2435
|
+
return hasTooltip ? h("slot", { name: SLOTS$r.menuTooltip, slot: SLOTS$s.tooltip }) : null;
|
|
2434
2436
|
}
|
|
2435
2437
|
renderMenu() {
|
|
2436
2438
|
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
|
2437
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
2438
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2439
|
+
const hasMenuItems = getSlotted(el, SLOTS$r.menuActions);
|
|
2440
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$t.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$f.menu, scale: scale, slot: SLOTS$s.trigger, text: intlMore || TEXT$t.more, textEnabled: expanded }), h("slot", { name: SLOTS$r.menuActions }), this.renderTooltip())) : null;
|
|
2439
2441
|
}
|
|
2440
2442
|
render() {
|
|
2441
2443
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2711,17 +2713,17 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2711
2713
|
}
|
|
2712
2714
|
renderMenuButton() {
|
|
2713
2715
|
const { label, scale, expanded } = this;
|
|
2714
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$
|
|
2716
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, h("calcite-action", { class: CSS$R.defaultTrigger, icon: ICONS$g.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
2715
2717
|
return menuButtonSlot;
|
|
2716
2718
|
}
|
|
2717
2719
|
renderMenuItems() {
|
|
2718
2720
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
2719
2721
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2720
2722
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2721
|
-
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2723
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$R.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, role: "menu", tabIndex: -1 }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
2722
2724
|
}
|
|
2723
2725
|
render() {
|
|
2724
|
-
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$
|
|
2726
|
+
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
|
|
2725
2727
|
}
|
|
2726
2728
|
isValidKey(key, supportedKeys) {
|
|
2727
2729
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -2735,15 +2737,15 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2735
2737
|
static get style() { return actionMenuCss; }
|
|
2736
2738
|
};
|
|
2737
2739
|
|
|
2738
|
-
const CSS$
|
|
2740
|
+
const CSS$P = {
|
|
2739
2741
|
actionGroupBottom: "action-group--bottom",
|
|
2740
2742
|
container: "container"
|
|
2741
2743
|
};
|
|
2742
|
-
const TEXT$
|
|
2744
|
+
const TEXT$r = {
|
|
2743
2745
|
expand: "Expand",
|
|
2744
2746
|
collapse: "Collapse"
|
|
2745
2747
|
};
|
|
2746
|
-
const SLOTS$
|
|
2748
|
+
const SLOTS$p = {
|
|
2747
2749
|
expandTooltip: "expand-tooltip"
|
|
2748
2750
|
};
|
|
2749
2751
|
|
|
@@ -2838,14 +2840,14 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2838
2840
|
// --------------------------------------------------------------------------
|
|
2839
2841
|
renderBottomActionGroup() {
|
|
2840
2842
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2841
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2842
|
-
const expandLabel = intlExpand || TEXT$
|
|
2843
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2843
|
+
const tooltip = getSlotted(el, SLOTS$p.expandTooltip);
|
|
2844
|
+
const expandLabel = intlExpand || TEXT$r.expand;
|
|
2845
|
+
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
2844
2846
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2845
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2847
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$P.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
2846
2848
|
}
|
|
2847
2849
|
render() {
|
|
2848
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2850
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$P.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2849
2851
|
}
|
|
2850
2852
|
get el() { return this; }
|
|
2851
2853
|
static get watchers() { return {
|
|
@@ -2854,7 +2856,7 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2854
2856
|
static get style() { return actionPadCss; }
|
|
2855
2857
|
};
|
|
2856
2858
|
|
|
2857
|
-
const TEXT$
|
|
2859
|
+
const TEXT$q = {
|
|
2858
2860
|
intlClose: "Close"
|
|
2859
2861
|
};
|
|
2860
2862
|
const DURATIONS = {
|
|
@@ -2862,7 +2864,7 @@ const DURATIONS = {
|
|
|
2862
2864
|
medium: 10000,
|
|
2863
2865
|
fast: 6000
|
|
2864
2866
|
};
|
|
2865
|
-
const SLOTS$
|
|
2867
|
+
const SLOTS$o = {
|
|
2866
2868
|
title: "title",
|
|
2867
2869
|
message: "message",
|
|
2868
2870
|
link: "link"
|
|
@@ -2958,7 +2960,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2958
2960
|
*
|
|
2959
2961
|
* @default "Close"
|
|
2960
2962
|
*/
|
|
2961
|
-
this.intlClose = TEXT$
|
|
2963
|
+
this.intlClose = TEXT$q.intlClose;
|
|
2962
2964
|
/** Specifies the placement of the component */
|
|
2963
2965
|
this.placement = "bottom";
|
|
2964
2966
|
/** Specifies the size of the component. */
|
|
@@ -3051,7 +3053,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
3051
3053
|
container: true,
|
|
3052
3054
|
queued,
|
|
3053
3055
|
[placement]: true
|
|
3054
|
-
}, ref: this.setTransitionEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$
|
|
3056
|
+
}, ref: this.setTransitionEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$o.title }), h("slot", { name: SLOTS$o.message }), h("slot", { name: SLOTS$o.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
3055
3057
|
}
|
|
3056
3058
|
// when an alert is opened or closed, update queue and determine active alert
|
|
3057
3059
|
alertSync(event) {
|
|
@@ -3377,7 +3379,7 @@ const Avatar = class extends HTMLElement$1 {
|
|
|
3377
3379
|
static get style() { return avatarCss; }
|
|
3378
3380
|
};
|
|
3379
3381
|
|
|
3380
|
-
const CSS$
|
|
3382
|
+
const CSS$O = {
|
|
3381
3383
|
article: "article",
|
|
3382
3384
|
content: "content",
|
|
3383
3385
|
headerContainer: "header-container",
|
|
@@ -3396,18 +3398,18 @@ const CSS$N = {
|
|
|
3396
3398
|
invalid: "invalid",
|
|
3397
3399
|
loading: "loading"
|
|
3398
3400
|
};
|
|
3399
|
-
const TEXT$
|
|
3401
|
+
const TEXT$p = {
|
|
3400
3402
|
collapse: "Collapse",
|
|
3401
3403
|
expand: "Expand",
|
|
3402
3404
|
loading: "Loading",
|
|
3403
3405
|
options: "Options"
|
|
3404
3406
|
};
|
|
3405
|
-
const SLOTS$
|
|
3407
|
+
const SLOTS$n = {
|
|
3406
3408
|
icon: "icon",
|
|
3407
3409
|
control: "control",
|
|
3408
3410
|
headerMenuActions: "header-menu-actions"
|
|
3409
3411
|
};
|
|
3410
|
-
const ICONS$
|
|
3412
|
+
const ICONS$d = {
|
|
3411
3413
|
opened: "chevron-up",
|
|
3412
3414
|
closed: "chevron-down",
|
|
3413
3415
|
valid: "check-circle",
|
|
@@ -3455,25 +3457,25 @@ const Block = class extends HTMLElement$1 {
|
|
|
3455
3457
|
*
|
|
3456
3458
|
* @default "Collapse"
|
|
3457
3459
|
*/
|
|
3458
|
-
this.intlCollapse = TEXT$
|
|
3460
|
+
this.intlCollapse = TEXT$p.collapse;
|
|
3459
3461
|
/**
|
|
3460
3462
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
3461
3463
|
*
|
|
3462
3464
|
* @default "Expand"
|
|
3463
3465
|
*/
|
|
3464
|
-
this.intlExpand = TEXT$
|
|
3466
|
+
this.intlExpand = TEXT$p.expand;
|
|
3465
3467
|
/**
|
|
3466
3468
|
* string to override English loading text
|
|
3467
3469
|
*
|
|
3468
3470
|
* @default "Loading"
|
|
3469
3471
|
*/
|
|
3470
|
-
this.intlLoading = TEXT$
|
|
3472
|
+
this.intlLoading = TEXT$p.loading;
|
|
3471
3473
|
/**
|
|
3472
3474
|
* Text string used for the actions menu
|
|
3473
3475
|
*
|
|
3474
3476
|
* @default "Options"
|
|
3475
3477
|
*/
|
|
3476
|
-
this.intlOptions = TEXT$
|
|
3478
|
+
this.intlOptions = TEXT$p.options;
|
|
3477
3479
|
/**
|
|
3478
3480
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3479
3481
|
*/
|
|
@@ -3531,33 +3533,33 @@ const Block = class extends HTMLElement$1 {
|
|
|
3531
3533
|
renderIcon() {
|
|
3532
3534
|
const { el, status } = this;
|
|
3533
3535
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3534
|
-
const statusIcon = showingLoadingStatus ? ICONS$
|
|
3535
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
3536
|
-
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$
|
|
3537
|
-
[CSS$
|
|
3538
|
-
[CSS$
|
|
3539
|
-
[CSS$
|
|
3540
|
-
[CSS$
|
|
3536
|
+
const statusIcon = showingLoadingStatus ? ICONS$d.refresh : ICONS$d[status];
|
|
3537
|
+
const hasIcon = getSlotted(el, SLOTS$n.icon) || statusIcon;
|
|
3538
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$n.icon })) : (h("calcite-icon", { class: {
|
|
3539
|
+
[CSS$O.statusIcon]: true,
|
|
3540
|
+
[CSS$O.valid]: status == "valid",
|
|
3541
|
+
[CSS$O.invalid]: status == "invalid",
|
|
3542
|
+
[CSS$O.loading]: showingLoadingStatus
|
|
3541
3543
|
}, icon: statusIcon, scale: "m" }));
|
|
3542
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3544
|
+
return hasIcon ? h("div", { class: CSS$O.icon }, iconEl) : null;
|
|
3543
3545
|
}
|
|
3544
3546
|
renderTitle() {
|
|
3545
3547
|
const { heading, headingLevel, summary, description } = this;
|
|
3546
|
-
return heading || summary || description ? (h("div", { class: CSS$
|
|
3548
|
+
return heading || summary || description ? (h("div", { class: CSS$O.title }, h(Heading, { class: CSS$O.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (h("div", { class: CSS$O.description }, summary || description)) : null)) : null;
|
|
3547
3549
|
}
|
|
3548
3550
|
render() {
|
|
3549
3551
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3550
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3551
|
-
const headerContent = (h("header", { class: CSS$
|
|
3552
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
3553
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
3554
|
-
const collapseIcon = open ? ICONS$
|
|
3552
|
+
const toggleLabel = open ? intlCollapse || TEXT$p.collapse : intlExpand || TEXT$p.expand;
|
|
3553
|
+
const headerContent = (h("header", { class: CSS$O.header }, this.renderIcon(), this.renderTitle()));
|
|
3554
|
+
const hasControl = !!getSlotted(el, SLOTS$n.control);
|
|
3555
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$n.headerMenuActions);
|
|
3556
|
+
const collapseIcon = open ? ICONS$d.opened : ICONS$d.closed;
|
|
3555
3557
|
const { guid } = this;
|
|
3556
3558
|
const regionId = `${guid}-region`;
|
|
3557
3559
|
const buttonId = `${guid}-button`;
|
|
3558
|
-
const headerNode = (h("div", { class: CSS$
|
|
3560
|
+
const headerNode = (h("div", { class: CSS$O.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$O.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$O.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$O.controlContainer }, h("slot", { name: SLOTS$n.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$p.options }, h("slot", { name: SLOTS$n.headerMenuActions }))) : null));
|
|
3559
3561
|
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3560
|
-
[CSS$
|
|
3562
|
+
[CSS$O.article]: true
|
|
3561
3563
|
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
3562
3564
|
content: true,
|
|
3563
3565
|
"content--spaced": !this.disablePadding
|
|
@@ -3567,7 +3569,7 @@ const Block = class extends HTMLElement$1 {
|
|
|
3567
3569
|
static get style() { return blockCss; }
|
|
3568
3570
|
};
|
|
3569
3571
|
|
|
3570
|
-
const CSS$
|
|
3572
|
+
const CSS$N = {
|
|
3571
3573
|
content: "content",
|
|
3572
3574
|
invalid: "invalid",
|
|
3573
3575
|
toggle: "toggle",
|
|
@@ -3579,11 +3581,11 @@ const CSS$M = {
|
|
|
3579
3581
|
statusIcon: "status-icon",
|
|
3580
3582
|
valid: "valid"
|
|
3581
3583
|
};
|
|
3582
|
-
const TEXT$
|
|
3584
|
+
const TEXT$o = {
|
|
3583
3585
|
collapse: "Collapse",
|
|
3584
3586
|
expand: "Expand"
|
|
3585
3587
|
};
|
|
3586
|
-
const ICONS$
|
|
3588
|
+
const ICONS$c = {
|
|
3587
3589
|
menuOpen: "chevron-down",
|
|
3588
3590
|
menuClosedLeft: "chevron-left",
|
|
3589
3591
|
menuClosedRight: "chevron-right",
|
|
@@ -3635,11 +3637,11 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3635
3637
|
renderStatusIcon() {
|
|
3636
3638
|
var _a;
|
|
3637
3639
|
const { status } = this;
|
|
3638
|
-
const statusIcon = (_a = ICONS$
|
|
3640
|
+
const statusIcon = (_a = ICONS$c[status]) !== null && _a !== void 0 ? _a : false;
|
|
3639
3641
|
const statusIconClasses = {
|
|
3640
|
-
[CSS$
|
|
3641
|
-
[CSS$
|
|
3642
|
-
[CSS$
|
|
3642
|
+
[CSS$N.statusIcon]: true,
|
|
3643
|
+
[CSS$N.valid]: status == "valid",
|
|
3644
|
+
[CSS$N.invalid]: status == "invalid"
|
|
3643
3645
|
};
|
|
3644
3646
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3645
3647
|
}
|
|
@@ -3647,22 +3649,22 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3647
3649
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
3648
3650
|
const dir = getElementDir(el);
|
|
3649
3651
|
const arrowIcon = open
|
|
3650
|
-
? ICONS$
|
|
3652
|
+
? ICONS$c.menuOpen
|
|
3651
3653
|
: dir === "rtl"
|
|
3652
|
-
? ICONS$
|
|
3653
|
-
: ICONS$
|
|
3654
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3654
|
+
? ICONS$c.menuClosedLeft
|
|
3655
|
+
: ICONS$c.menuClosedRight;
|
|
3656
|
+
const toggleLabel = open ? intlCollapse || TEXT$o.collapse : intlExpand || TEXT$o.expand;
|
|
3655
3657
|
const { guid } = this;
|
|
3656
3658
|
const regionId = `${guid}-region`;
|
|
3657
3659
|
const buttonId = `${guid}-button`;
|
|
3658
3660
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3659
|
-
[CSS$
|
|
3660
|
-
[CSS$
|
|
3661
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3662
|
-
[CSS$
|
|
3663
|
-
[CSS$
|
|
3664
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3665
|
-
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
3661
|
+
[CSS$N.toggle]: true,
|
|
3662
|
+
[CSS$N.toggleSwitch]: true
|
|
3663
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$N.toggleSwitchContent }, h("span", { class: CSS$N.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3664
|
+
[CSS$N.sectionHeader]: true,
|
|
3665
|
+
[CSS$N.toggle]: true
|
|
3666
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$N.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3667
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$N.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
3666
3668
|
}
|
|
3667
3669
|
get el() { return this; }
|
|
3668
3670
|
static get style() { return blockSectionCss; }
|
|
@@ -3696,7 +3698,7 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3696
3698
|
}
|
|
3697
3699
|
})(HTMLFormElement.prototype);
|
|
3698
3700
|
|
|
3699
|
-
const CSS$
|
|
3701
|
+
const CSS$M = {
|
|
3700
3702
|
buttonLoader: "calcite-button--loader",
|
|
3701
3703
|
content: "content",
|
|
3702
3704
|
contentSlotted: "content--slotted",
|
|
@@ -3708,7 +3710,7 @@ const CSS$L = {
|
|
|
3708
3710
|
iconStartEmpty: "icon-start-empty",
|
|
3709
3711
|
iconEndEmpty: "icon-end-empty"
|
|
3710
3712
|
};
|
|
3711
|
-
const TEXT$
|
|
3713
|
+
const TEXT$n = {
|
|
3712
3714
|
loading: "Loading"
|
|
3713
3715
|
};
|
|
3714
3716
|
|
|
@@ -4044,7 +4046,7 @@ const HiddenFormInputSlot = ({ component }) => {
|
|
|
4044
4046
|
return h("slot", { name: hiddenFormInputSlotName });
|
|
4045
4047
|
};
|
|
4046
4048
|
|
|
4047
|
-
const buttonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding-block:var(--calcite-button-padding-y);padding-inline:var(--calcite-button-padding-x);position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out}:host button:hover,:host a:hover{-webkit-text-decoration-line:none;text-decoration-line:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-inline:var(--calcite-button-content-margin)}.icon-start-empty .content{-webkit-margin-start:unset;margin-inline-start:unset}.icon-end-empty .content{-webkit-margin-end:unset;margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{-webkit-margin-end:auto;margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{-webkit-margin-start:auto;margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:var(--calcite-button-content-margin);margin-inline-start:var(--calcite-button-content-margin)}.icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([loading]){pointer-events:none}:host([loading]) button,:host([loading]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0px;-webkit-transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{border-width:1px;border-style:solid;background-color:transparent;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";
|
|
4049
|
+
const buttonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding-block:var(--calcite-button-padding-y);padding-inline:var(--calcite-button-padding-x);position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out}:host button:hover,:host a:hover{-webkit-text-decoration-line:none;text-decoration-line:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-inline:var(--calcite-button-content-margin)}.icon-start-empty .content{-webkit-margin-start:unset;margin-inline-start:unset}.icon-end-empty .content{-webkit-margin-end:unset;margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{-webkit-margin-end:auto;margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{-webkit-margin-start:auto;margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:var(--calcite-button-content-margin);margin-inline-start:var(--calcite-button-content-margin)}.icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([loading]){pointer-events:none}:host([loading]) button,:host([loading]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{inline-size:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0px;-webkit-transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([color=blue]) button,:host([color=blue]) a{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}:host([color=blue]) button:hover,:host([color=blue]) button:focus,:host([color=blue]) a:hover,:host([color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([color=blue]) button:active,:host([color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([color=blue]) button calcite-loader,:host([color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([color=red]) button,:host([color=red]) a{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([color=red]) button:hover,:host([color=red]) button:focus,:host([color=red]) a:hover,:host([color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([color=red]) button:active,:host([color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([color=red]) button calcite-loader,:host([color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([color=neutral]) button,:host([color=neutral]) a{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}:host([color=neutral]) button:hover,:host([color=neutral]) button:focus,:host([color=neutral]) a:hover,:host([color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([color=neutral]) button:active,:host([color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([color=neutral]) button calcite-loader,:host([color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([color=inverse]) button,:host([color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([color=inverse]) button:hover,:host([color=inverse]) button:focus,:host([color=inverse]) a:hover,:host([color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([color=inverse]) button:active,:host([color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([color=inverse]) button calcite-loader,:host([color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a,:host([appearance=minimal]) button,:host([appearance=minimal]) a{border-width:1px;border-style:solid;background-color:transparent;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a,:host([appearance=minimal][color=blue]) button,:host([appearance=minimal][color=blue]) a{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover,:host([appearance=minimal][color=blue]) button:hover,:host([appearance=minimal][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus,:host([appearance=minimal][color=blue]) button:focus,:host([appearance=minimal][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active,:host([appearance=minimal][color=blue]) button:active,:host([appearance=minimal][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader,:host([appearance=minimal][color=blue]) button calcite-loader,:host([appearance=minimal][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a,:host([appearance=minimal][color=red]) button,:host([appearance=minimal][color=red]) a{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover,:host([appearance=minimal][color=red]) button:hover,:host([appearance=minimal][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus,:host([appearance=minimal][color=red]) button:focus,:host([appearance=minimal][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active,:host([appearance=minimal][color=red]) button:active,:host([appearance=minimal][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader,:host([appearance=minimal][color=red]) button calcite-loader,:host([appearance=minimal][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a,:host([appearance=minimal][color=neutral]) button,:host([appearance=minimal][color=neutral]) a{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover,:host([appearance=minimal][color=neutral]) button:hover,:host([appearance=minimal][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus,:host([appearance=minimal][color=neutral]) button:focus,:host([appearance=minimal][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active,:host([appearance=minimal][color=neutral]) button:active,:host([appearance=minimal][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader,:host([appearance=minimal][color=neutral]) button calcite-loader,:host([appearance=minimal][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a,:host([appearance=minimal][color=inverse]) button,:host([appearance=minimal][color=inverse]) a{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover,:host([appearance=minimal][color=inverse]) button:hover,:host([appearance=minimal][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus,:host([appearance=minimal][color=inverse]) button:focus,:host([appearance=minimal][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active,:host([appearance=minimal][color=inverse]) button:active,:host([appearance=minimal][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader,:host([appearance=minimal][color=inverse]) button calcite-loader,:host([appearance=minimal][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button,:host([appearance=minimal][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button,:host([appearance=minimal][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";
|
|
4048
4050
|
|
|
4049
4051
|
const Button = class extends HTMLElement$1 {
|
|
4050
4052
|
constructor() {
|
|
@@ -4069,7 +4071,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
4069
4071
|
*
|
|
4070
4072
|
* @default "Loading"
|
|
4071
4073
|
*/
|
|
4072
|
-
this.intlLoading = TEXT$
|
|
4074
|
+
this.intlLoading = TEXT$n.loading;
|
|
4073
4075
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
4074
4076
|
this.loading = false;
|
|
4075
4077
|
/** optionally add a round style to the button */
|
|
@@ -4141,14 +4143,14 @@ const Button = class extends HTMLElement$1 {
|
|
|
4141
4143
|
render() {
|
|
4142
4144
|
const childElType = this.href ? "a" : "button";
|
|
4143
4145
|
const Tag = childElType;
|
|
4144
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
4145
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
4146
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
4147
|
-
const contentEl = (h("span", { class: CSS$
|
|
4146
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$M.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$M.loadingIn : CSS$M.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
4147
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$M.icon]: true, [CSS$M.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
4148
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$M.icon]: true, [CSS$M.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
4149
|
+
const contentEl = (h("span", { class: CSS$M.content }, h("slot", null)));
|
|
4148
4150
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
4149
|
-
[CSS$
|
|
4150
|
-
[CSS$
|
|
4151
|
-
[CSS$
|
|
4151
|
+
[CSS$M.contentSlotted]: this.hasContent,
|
|
4152
|
+
[CSS$M.iconStartEmpty]: !this.iconStart,
|
|
4153
|
+
[CSS$M.iconEndEmpty]: !this.iconEnd
|
|
4152
4154
|
}, 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));
|
|
4153
4155
|
}
|
|
4154
4156
|
//--------------------------------------------------------------------------
|
|
@@ -4189,7 +4191,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
4189
4191
|
static get style() { return buttonCss; }
|
|
4190
4192
|
};
|
|
4191
4193
|
|
|
4192
|
-
const CSS$
|
|
4194
|
+
const CSS$L = {
|
|
4193
4195
|
container: "container",
|
|
4194
4196
|
header: "header",
|
|
4195
4197
|
footer: "footer",
|
|
@@ -4198,20 +4200,20 @@ const CSS$K = {
|
|
|
4198
4200
|
checkboxWrapper: "checkbox-wrapper",
|
|
4199
4201
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
4200
4202
|
};
|
|
4201
|
-
const SLOTS$
|
|
4203
|
+
const SLOTS$m = {
|
|
4202
4204
|
thumbnail: "thumbnail",
|
|
4203
4205
|
title: "title",
|
|
4204
4206
|
subtitle: "subtitle",
|
|
4205
4207
|
footerLeading: "footer-leading",
|
|
4206
4208
|
footerTrailing: "footer-trailing"
|
|
4207
4209
|
};
|
|
4208
|
-
const TEXT$
|
|
4210
|
+
const TEXT$m = {
|
|
4209
4211
|
select: "Select",
|
|
4210
4212
|
deselect: "Deselect",
|
|
4211
4213
|
loading: "Loading"
|
|
4212
4214
|
};
|
|
4213
4215
|
|
|
4214
|
-
const cardCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:-ms-flexbox;display:flex;block-size:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-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);-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);border-radius:var(--calcite-border-radius-base)}
|
|
4216
|
+
const cardCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:-ms-flexbox;display:flex;block-size:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-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);-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);border-radius:var(--calcite-border-radius-base)}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header,.footer{display:-ms-flexbox;display:flex;padding-inline:0.75rem;padding-block:0.75rem 0.25rem}.header{-ms-flex-direction:column;flex-direction:column}.footer{-webkit-margin-before:auto;margin-block-start:auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-inline:0.75rem;padding-block:0.25rem 0.75rem}.card-content{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;-webkit-margin-before:0.5rem;margin-block-start:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;inset-block-start:0.5rem;inset-inline-end:0.5rem}.thumbnail-wrapper{display:-ms-flexbox;display:flex}.calcite-card-container.inline{-ms-flex-direction:row;flex-direction:row}.calcite-card-container.inline>.container{inline-size:60%}.calcite-card-container.inline>.thumbnail-wrapper{inline-size:40%;-ms-flex-align:start;align-items:flex-start}.calcite-card-container.inline slot[name=thumbnail]::slotted(img),.calcite-card-container.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-leading]::slotted(*),slot[name=footer-trailing]::slotted(*){display:-ms-flexbox;display:flex;gap:0.25rem}";
|
|
4215
4217
|
|
|
4216
4218
|
const Card = class extends HTMLElement$1 {
|
|
4217
4219
|
constructor() {
|
|
@@ -4235,19 +4237,19 @@ const Card = class extends HTMLElement$1 {
|
|
|
4235
4237
|
*
|
|
4236
4238
|
* @default "Loading"
|
|
4237
4239
|
*/
|
|
4238
|
-
this.intlLoading = TEXT$
|
|
4240
|
+
this.intlLoading = TEXT$m.loading;
|
|
4239
4241
|
/**
|
|
4240
4242
|
* string to override English select text for checkbox when selectable is true
|
|
4241
4243
|
*
|
|
4242
4244
|
* @default "Select"
|
|
4243
4245
|
*/
|
|
4244
|
-
this.intlSelect = TEXT$
|
|
4246
|
+
this.intlSelect = TEXT$m.select;
|
|
4245
4247
|
/**
|
|
4246
4248
|
* string to override English deselect text for checkbox when selectable is true
|
|
4247
4249
|
*
|
|
4248
4250
|
* @default "Deselect"
|
|
4249
4251
|
*/
|
|
4250
|
-
this.intlDeselect = TEXT$
|
|
4252
|
+
this.intlDeselect = TEXT$m.deselect;
|
|
4251
4253
|
this.thumbnailPosition = "block-start";
|
|
4252
4254
|
//--------------------------------------------------------------------------
|
|
4253
4255
|
//
|
|
@@ -4286,32 +4288,32 @@ const Card = class extends HTMLElement$1 {
|
|
|
4286
4288
|
render() {
|
|
4287
4289
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
4288
4290
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
4289
|
-
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
4291
|
+
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$L.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
4290
4292
|
}
|
|
4291
4293
|
selectCard() {
|
|
4292
4294
|
this.selected = !this.selected;
|
|
4293
4295
|
this.calciteCardSelect.emit();
|
|
4294
4296
|
}
|
|
4295
4297
|
renderThumbnail() {
|
|
4296
|
-
return getSlotted(this.el, SLOTS$
|
|
4298
|
+
return getSlotted(this.el, SLOTS$m.thumbnail) ? (h("section", { class: CSS$L.thumbnailWrapper }, h("slot", { name: SLOTS$m.thumbnail }))) : null;
|
|
4297
4299
|
}
|
|
4298
4300
|
renderCheckbox() {
|
|
4299
4301
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
4300
|
-
return (h("calcite-label", { class: CSS$
|
|
4302
|
+
return (h("calcite-label", { class: CSS$L.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
4301
4303
|
}
|
|
4302
4304
|
renderHeader() {
|
|
4303
4305
|
const { el } = this;
|
|
4304
|
-
const title = getSlotted(el, SLOTS$
|
|
4305
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
4306
|
+
const title = getSlotted(el, SLOTS$m.title);
|
|
4307
|
+
const subtitle = getSlotted(el, SLOTS$m.subtitle);
|
|
4306
4308
|
const hasHeader = title || subtitle;
|
|
4307
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
4309
|
+
return hasHeader ? (h("header", { class: CSS$L.header }, h("slot", { name: SLOTS$m.title }), h("slot", { name: SLOTS$m.subtitle }))) : null;
|
|
4308
4310
|
}
|
|
4309
4311
|
renderFooter() {
|
|
4310
4312
|
const { el } = this;
|
|
4311
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
4312
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
4313
|
+
const leadingFooter = getSlotted(el, SLOTS$m.footerLeading);
|
|
4314
|
+
const trailingFooter = getSlotted(el, SLOTS$m.footerTrailing);
|
|
4313
4315
|
const hasFooter = leadingFooter || trailingFooter;
|
|
4314
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
4316
|
+
return hasFooter ? (h("footer", { class: CSS$L.footer }, h("slot", { name: SLOTS$m.footerLeading }), h("slot", { name: SLOTS$m.footerTrailing }))) : null;
|
|
4315
4317
|
}
|
|
4316
4318
|
get el() { return this; }
|
|
4317
4319
|
static get style() { return cardCss; }
|
|
@@ -4440,24 +4442,24 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4440
4442
|
static get style() { return checkboxCss; }
|
|
4441
4443
|
};
|
|
4442
4444
|
|
|
4443
|
-
const CSS$
|
|
4445
|
+
const CSS$K = {
|
|
4444
4446
|
title: "title",
|
|
4445
4447
|
close: "close",
|
|
4446
4448
|
imageContainer: "image-container",
|
|
4447
4449
|
chipIcon: "chip-icon",
|
|
4448
4450
|
closeIcon: "close-icon"
|
|
4449
4451
|
};
|
|
4450
|
-
const TEXT$
|
|
4452
|
+
const TEXT$l = {
|
|
4451
4453
|
close: "Close"
|
|
4452
4454
|
};
|
|
4453
|
-
const SLOTS$
|
|
4455
|
+
const SLOTS$l = {
|
|
4454
4456
|
image: "image"
|
|
4455
4457
|
};
|
|
4456
|
-
const ICONS$
|
|
4458
|
+
const ICONS$b = {
|
|
4457
4459
|
close: "x"
|
|
4458
4460
|
};
|
|
4459
4461
|
|
|
4460
|
-
const chipCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){block-size:1.5rem;font-size:var(--calcite-font-size--2);--calcite-chip-spacing-unit-l:0.5rem;--calcite-chip-spacing-unit-s:0.25rem}:host([scale=s]) .image-container{block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:2rem;font-size:var(--calcite-font-size--1);--calcite-chip-spacing-unit-l:0.75rem;--calcite-chip-spacing-unit-s:6px}:host([scale=m]) .image-container{block-size:1.5rem;inline-size:1.5rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([scale=l]){block-size:2.75rem;font-size:var(--calcite-font-size-0);--calcite-chip-spacing-unit-l:1rem;--calcite-chip-spacing-unit-s:0.5rem}:host([scale=l]) .image-container{block-size:2rem;inline-size:2rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;cursor:default;-ms-flex-align:center;align-items:center;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container{display:-ms-inline-flexbox;display:inline-flex;block-size:100%;max-inline-size:100%;-ms-flex-align:center;align-items:center}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host span{padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-l)}:host([closable]) span{padding-inline:var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s)}:host([icon]:not([closable])) span{padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-l)}:host button{margin:0px;display:-ms-inline-flexbox;display:inline-flex;max-block-size:100%;min-block-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-1);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;-webkit-appearance:none;border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0;padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-s);color:inherit;--calcite-chip-transparent-hover:var(--calcite-button-transparent-hover);--calcite-chip-transparent-press:var(--calcite-button-transparent-press)}:host button:hover{background-color:var(--calcite-chip-transparent-hover)}:host button:focus{background-color:var(--calcite-chip-transparent-hover);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host button:active{background-color:var(--calcite-chip-transparent-press)}.image-container{display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;border-radius:50%}:host slot[name=image]::slotted(*){display:-ms-flexbox;display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}.chip-icon{position:relative;margin-block:0px;display:-ms-inline-flexbox;display:inline-flex;-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:0;margin-inline-end:0;-webkit-margin-start:var(--calcite-chip-spacing-unit-l);margin-inline-start:var(--calcite-chip-spacing-unit-l);border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0}:host([color=blue]
|
|
4462
|
+
const chipCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){block-size:1.5rem;font-size:var(--calcite-font-size--2);--calcite-chip-spacing-unit-l:0.5rem;--calcite-chip-spacing-unit-s:0.25rem}:host([scale=s]) .image-container{block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:2rem;font-size:var(--calcite-font-size--1);--calcite-chip-spacing-unit-l:0.75rem;--calcite-chip-spacing-unit-s:6px}:host([scale=m]) .image-container{block-size:1.5rem;inline-size:1.5rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([scale=l]){block-size:2.75rem;font-size:var(--calcite-font-size-0);--calcite-chip-spacing-unit-l:1rem;--calcite-chip-spacing-unit-s:0.5rem}:host([scale=l]) .image-container{block-size:2rem;inline-size:2rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;cursor:default;-ms-flex-align:center;align-items:center;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container{display:-ms-inline-flexbox;display:inline-flex;block-size:100%;max-inline-size:100%;-ms-flex-align:center;align-items:center}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host span{padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-l)}:host([closable]) span{padding-inline:var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s)}:host([icon]:not([closable])) span{padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-l)}:host button{margin:0px;display:-ms-inline-flexbox;display:inline-flex;max-block-size:100%;min-block-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-1);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;-webkit-appearance:none;border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0;padding-block:0;padding-inline:var(--calcite-chip-spacing-unit-s);color:inherit;--calcite-chip-transparent-hover:var(--calcite-button-transparent-hover);--calcite-chip-transparent-press:var(--calcite-button-transparent-press)}:host button:hover{background-color:var(--calcite-chip-transparent-hover)}:host button:focus{background-color:var(--calcite-chip-transparent-hover);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host button:active{background-color:var(--calcite-chip-transparent-press)}.image-container{display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;border-radius:50%}:host slot[name=image]::slotted(*){display:-ms-flexbox;display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}.chip-icon{position:relative;margin-block:0px;display:-ms-inline-flexbox;display:inline-flex;-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:0;margin-inline-end:0;-webkit-margin-start:var(--calcite-chip-spacing-unit-l);margin-inline-start:var(--calcite-chip-spacing-unit-l);border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0}:host([color=blue]){border-color:transparent;background-color:var(--calcite-ui-info);color:var(--calcite-ui-text-inverse)}:host([color=red]){border-color:transparent;background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([color=yellow]){border-color:transparent;background-color:var(--calcite-ui-warning);color:#151515}:host([color=green]){border-color:transparent;background-color:var(--calcite-ui-success);color:#151515}:host([color=grey]){border-color:transparent;background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host([color=grey]) button,:host([color=grey]) .close-icon{color:var(--calcite-ui-text-3)}:host([color=grey]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([appearance=clear]),:host([appearance=transparent]){background-color:transparent;color:var(--calcite-ui-text-1)}:host([color=blue][appearance=clear]),:host([color=blue][appearance=transparent]){border-color:var(--calcite-ui-info)}:host([color=blue][appearance=clear]) .chip-icon,:host([color=blue][appearance=transparent]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-info))}:host([color=red][appearance=clear]),:host([color=red][appearance=transparent]){border-color:var(--calcite-ui-danger)}:host([color=red][appearance=clear]) .chip-icon,:host([color=red][appearance=transparent]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-danger))}:host([color=yellow][appearance=clear]),:host([color=yellow][appearance=transparent]){border-color:var(--calcite-ui-warning)}:host([color=yellow][appearance=clear]) .chip-icon,:host([color=yellow][appearance=transparent]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-warning))}:host([color=green][appearance=clear]),:host([color=green][appearance=transparent]){border-color:var(--calcite-ui-success)}:host([color=green][appearance=clear]) .chip-icon,:host([color=green][appearance=transparent]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-success))}:host([color=grey][appearance=clear]),:host([color=grey][appearance=transparent]){border-color:var(--calcite-ui-border-1)}:host([color=grey][appearance=clear]) .chip-icon,:host([color=grey][appearance=transparent]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([closed]){display:none}";
|
|
4461
4463
|
|
|
4462
4464
|
const Chip = class extends HTMLElement$1 {
|
|
4463
4465
|
constructor() {
|
|
@@ -4487,7 +4489,7 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4487
4489
|
*
|
|
4488
4490
|
* @default "Close"
|
|
4489
4491
|
*/
|
|
4490
|
-
this.dismissLabel = TEXT$
|
|
4492
|
+
this.dismissLabel = TEXT$l.close;
|
|
4491
4493
|
/** flip the icon in rtl */
|
|
4492
4494
|
this.iconFlipRtl = false;
|
|
4493
4495
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4546,13 +4548,13 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4546
4548
|
//--------------------------------------------------------------------------
|
|
4547
4549
|
renderChipImage() {
|
|
4548
4550
|
const { el } = this;
|
|
4549
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
4550
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4551
|
+
const hasChipImage = getSlotted(el, SLOTS$l.image);
|
|
4552
|
+
return hasChipImage ? (h("div", { class: CSS$K.imageContainer, key: "image" }, h("slot", { name: SLOTS$l.image }))) : null;
|
|
4551
4553
|
}
|
|
4552
4554
|
render() {
|
|
4553
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4554
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4555
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4555
|
+
const iconEl = (h("calcite-icon", { class: CSS$K.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4556
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$K.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS$K.closeIcon, icon: ICONS$b.close, scale: "s" })));
|
|
4557
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$K.title, id: this.guid }, h("slot", null)), this.closable ? closeButton : null));
|
|
4556
4558
|
}
|
|
4557
4559
|
get el() { return this; }
|
|
4558
4560
|
static get watchers() { return {
|
|
@@ -6672,7 +6674,7 @@ function zeroArray(array, length) {
|
|
|
6672
6674
|
|
|
6673
6675
|
var color = Color;
|
|
6674
6676
|
|
|
6675
|
-
const CSS$
|
|
6677
|
+
const CSS$J = {
|
|
6676
6678
|
container: "container",
|
|
6677
6679
|
controlSection: "control-section",
|
|
6678
6680
|
hexOptions: "color-hex-options",
|
|
@@ -6710,7 +6712,7 @@ const HSV_LIMITS = {
|
|
|
6710
6712
|
s: 100,
|
|
6711
6713
|
v: 100
|
|
6712
6714
|
};
|
|
6713
|
-
const TEXT$
|
|
6715
|
+
const TEXT$k = {
|
|
6714
6716
|
b: "B",
|
|
6715
6717
|
blue: "Blue",
|
|
6716
6718
|
deleteColor: "Delete color",
|
|
@@ -6809,8 +6811,8 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6809
6811
|
* When true, clearing the input and blurring will restore the last valid color set. When false, it will set it to empty.
|
|
6810
6812
|
*/
|
|
6811
6813
|
this.allowEmpty = false;
|
|
6812
|
-
/** specify the appearance -
|
|
6813
|
-
this.appearance = "
|
|
6814
|
+
/** specify the appearance - solid (containing border), or minimal (no containing border) */
|
|
6815
|
+
this.appearance = "solid";
|
|
6814
6816
|
/**
|
|
6815
6817
|
* Internal prop for advanced use-cases.
|
|
6816
6818
|
*
|
|
@@ -6840,115 +6842,115 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6840
6842
|
*
|
|
6841
6843
|
* @default "B"
|
|
6842
6844
|
*/
|
|
6843
|
-
this.intlB = TEXT$
|
|
6845
|
+
this.intlB = TEXT$k.b;
|
|
6844
6846
|
/**
|
|
6845
6847
|
* Label used for the blue channel description
|
|
6846
6848
|
*
|
|
6847
6849
|
* @default "Blue"
|
|
6848
6850
|
*/
|
|
6849
|
-
this.intlBlue = TEXT$
|
|
6851
|
+
this.intlBlue = TEXT$k.blue;
|
|
6850
6852
|
/**
|
|
6851
6853
|
* Label used for the delete color button.
|
|
6852
6854
|
*
|
|
6853
6855
|
* @default "Delete color"
|
|
6854
6856
|
*/
|
|
6855
|
-
this.intlDeleteColor = TEXT$
|
|
6857
|
+
this.intlDeleteColor = TEXT$k.deleteColor;
|
|
6856
6858
|
/**
|
|
6857
6859
|
* Label used for the green channel
|
|
6858
6860
|
*
|
|
6859
6861
|
* @default "G"
|
|
6860
6862
|
*/
|
|
6861
|
-
this.intlG = TEXT$
|
|
6863
|
+
this.intlG = TEXT$k.g;
|
|
6862
6864
|
/**
|
|
6863
6865
|
* Label used for the green channel description
|
|
6864
6866
|
*
|
|
6865
6867
|
* @default "Green"
|
|
6866
6868
|
*/
|
|
6867
|
-
this.intlGreen = TEXT$
|
|
6869
|
+
this.intlGreen = TEXT$k.green;
|
|
6868
6870
|
/**
|
|
6869
6871
|
* Label used for the hue channel
|
|
6870
6872
|
*
|
|
6871
6873
|
* @default "H"
|
|
6872
6874
|
*/
|
|
6873
|
-
this.intlH = TEXT$
|
|
6875
|
+
this.intlH = TEXT$k.h;
|
|
6874
6876
|
/**
|
|
6875
6877
|
* Label used for the HSV mode
|
|
6876
6878
|
*
|
|
6877
6879
|
* @default "HSV"
|
|
6878
6880
|
*/
|
|
6879
|
-
this.intlHsv = TEXT$
|
|
6881
|
+
this.intlHsv = TEXT$k.hsv;
|
|
6880
6882
|
/**
|
|
6881
6883
|
* Label used for the hex input
|
|
6882
6884
|
*
|
|
6883
6885
|
* @default "Hex"
|
|
6884
6886
|
*/
|
|
6885
|
-
this.intlHex = TEXT$
|
|
6887
|
+
this.intlHex = TEXT$k.hex;
|
|
6886
6888
|
/**
|
|
6887
6889
|
* Label used for the hue channel description
|
|
6888
6890
|
*
|
|
6889
6891
|
* @default "Hue"
|
|
6890
6892
|
*/
|
|
6891
|
-
this.intlHue = TEXT$
|
|
6893
|
+
this.intlHue = TEXT$k.hue;
|
|
6892
6894
|
/**
|
|
6893
6895
|
* Label used for the hex input when there is no color selected.
|
|
6894
6896
|
*
|
|
6895
6897
|
* @default "No color"
|
|
6896
6898
|
*/
|
|
6897
|
-
this.intlNoColor = TEXT$
|
|
6899
|
+
this.intlNoColor = TEXT$k.noColor;
|
|
6898
6900
|
/**
|
|
6899
6901
|
* Label used for the red channel
|
|
6900
6902
|
*
|
|
6901
6903
|
* @default "R"
|
|
6902
6904
|
*/
|
|
6903
|
-
this.intlR = TEXT$
|
|
6905
|
+
this.intlR = TEXT$k.r;
|
|
6904
6906
|
/**
|
|
6905
6907
|
* Label used for the red channel description
|
|
6906
6908
|
*
|
|
6907
6909
|
* @default "Red"
|
|
6908
6910
|
*/
|
|
6909
|
-
this.intlRed = TEXT$
|
|
6911
|
+
this.intlRed = TEXT$k.red;
|
|
6910
6912
|
/**
|
|
6911
6913
|
* Label used for the RGB mode
|
|
6912
6914
|
*
|
|
6913
6915
|
* @default "RGB"
|
|
6914
6916
|
*/
|
|
6915
|
-
this.intlRgb = TEXT$
|
|
6917
|
+
this.intlRgb = TEXT$k.rgb;
|
|
6916
6918
|
/**
|
|
6917
6919
|
* Label used for the saturation channel
|
|
6918
6920
|
*
|
|
6919
6921
|
* @default "S"
|
|
6920
6922
|
*/
|
|
6921
|
-
this.intlS = TEXT$
|
|
6923
|
+
this.intlS = TEXT$k.s;
|
|
6922
6924
|
/**
|
|
6923
6925
|
* Label used for the saturation channel description
|
|
6924
6926
|
*
|
|
6925
6927
|
* @default "Saturation"
|
|
6926
6928
|
*/
|
|
6927
|
-
this.intlSaturation = TEXT$
|
|
6929
|
+
this.intlSaturation = TEXT$k.saturation;
|
|
6928
6930
|
/**
|
|
6929
6931
|
* Label used for the save color button.
|
|
6930
6932
|
*
|
|
6931
6933
|
* @default "Save color"
|
|
6932
6934
|
*/
|
|
6933
|
-
this.intlSaveColor = TEXT$
|
|
6935
|
+
this.intlSaveColor = TEXT$k.saveColor;
|
|
6934
6936
|
/**
|
|
6935
6937
|
* Label used for the saved colors section
|
|
6936
6938
|
*
|
|
6937
6939
|
* @default "Saved"
|
|
6938
6940
|
*/
|
|
6939
|
-
this.intlSaved = TEXT$
|
|
6941
|
+
this.intlSaved = TEXT$k.saved;
|
|
6940
6942
|
/**
|
|
6941
6943
|
* Label used for the value channel
|
|
6942
6944
|
*
|
|
6943
6945
|
* @default "V"
|
|
6944
6946
|
*/
|
|
6945
|
-
this.intlV = TEXT$
|
|
6947
|
+
this.intlV = TEXT$k.v;
|
|
6946
6948
|
/**
|
|
6947
6949
|
* Label used for the
|
|
6948
6950
|
*
|
|
6949
6951
|
* @default "Value"
|
|
6950
6952
|
*/
|
|
6951
|
-
this.intlValue = TEXT$
|
|
6953
|
+
this.intlValue = TEXT$k.value;
|
|
6952
6954
|
/**
|
|
6953
6955
|
* The scale of the color picker.
|
|
6954
6956
|
*/
|
|
@@ -7214,7 +7216,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7214
7216
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
7215
7217
|
const active = channelMode === activeChannelMode;
|
|
7216
7218
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
7217
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
7219
|
+
return (h("calcite-tab-title", { active: active, class: CSS$J.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
7218
7220
|
};
|
|
7219
7221
|
this.renderChannelsTab = (channelMode) => {
|
|
7220
7222
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -7225,11 +7227,11 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7225
7227
|
? [intlRed, intlGreen, intlBlue]
|
|
7226
7228
|
: [intlHue, intlSaturation, intlValue];
|
|
7227
7229
|
const direction = getElementDir(this.el);
|
|
7228
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
7230
|
+
return (h("calcite-tab", { active: active, class: CSS$J.control, key: channelMode }, h("div", { class: CSS$J.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
7229
7231
|
/* the channel container is ltr, so we apply the host's direction */
|
|
7230
7232
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
7231
7233
|
};
|
|
7232
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$
|
|
7234
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$J.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() }));
|
|
7233
7235
|
this.deleteColor = () => {
|
|
7234
7236
|
const colorToDelete = this.color.hex();
|
|
7235
7237
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7332,7 +7334,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7332
7334
|
this.shiftKeyChannelAdjustment = 0;
|
|
7333
7335
|
const { key } = event;
|
|
7334
7336
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
7335
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
7337
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$J.channel); })) {
|
|
7336
7338
|
return;
|
|
7337
7339
|
}
|
|
7338
7340
|
const { shiftKey } = event;
|
|
@@ -7403,20 +7405,20 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7403
7405
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
7404
7406
|
const noColor = color === null;
|
|
7405
7407
|
const vertical = scopeOrientation === "vertical";
|
|
7406
|
-
return (h("div", { class: CSS$
|
|
7407
|
-
[CSS$
|
|
7408
|
-
[CSS$
|
|
7409
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
7410
|
-
[CSS$
|
|
7411
|
-
[CSS$
|
|
7412
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
7413
|
-
[CSS$
|
|
7414
|
-
[CSS$
|
|
7415
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
7416
|
-
[CSS$
|
|
7417
|
-
[CSS$
|
|
7418
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
7419
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
7408
|
+
return (h("div", { class: CSS$J.container }, h("div", { class: CSS$J.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
7409
|
+
[CSS$J.colorFieldAndSlider]: true,
|
|
7410
|
+
[CSS$J.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
7411
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$J.scope]: true, [CSS$J.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$J.scope]: true, [CSS$J.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
7412
|
+
[CSS$J.controlSection]: true,
|
|
7413
|
+
[CSS$J.section]: true
|
|
7414
|
+
} }, hideHex ? null : (h("div", { class: CSS$J.hexOptions }, h("span", { class: {
|
|
7415
|
+
[CSS$J.header]: true,
|
|
7416
|
+
[CSS$J.headerHex]: true
|
|
7417
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$J.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7418
|
+
[CSS$J.colorModeContainer]: true,
|
|
7419
|
+
[CSS$J.splitSection]: true
|
|
7420
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$J.savedColorsSection]: true, [CSS$J.section]: true } }, h("div", { class: CSS$J.header }, h("label", null, intlSaved), h("div", { class: CSS$J.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$J.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS$J.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS$J.savedColors }, [
|
|
7421
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$J.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
7420
7422
|
])) : null))));
|
|
7421
7423
|
}
|
|
7422
7424
|
// --------------------------------------------------------------------------
|
|
@@ -7611,7 +7613,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7611
7613
|
static get style() { return colorPickerCss; }
|
|
7612
7614
|
};
|
|
7613
7615
|
|
|
7614
|
-
const CSS$
|
|
7616
|
+
const CSS$I = {
|
|
7615
7617
|
container: "container",
|
|
7616
7618
|
preview: "preview",
|
|
7617
7619
|
input: "input"
|
|
@@ -7642,13 +7644,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7642
7644
|
*
|
|
7643
7645
|
* @default "Hex"
|
|
7644
7646
|
*/
|
|
7645
|
-
this.intlHex = TEXT$
|
|
7647
|
+
this.intlHex = TEXT$k.hex;
|
|
7646
7648
|
/**
|
|
7647
7649
|
* Label used for the hex input when there is no color selected.
|
|
7648
7650
|
*
|
|
7649
7651
|
* @default "No color"
|
|
7650
7652
|
*/
|
|
7651
|
-
this.intlNoColor = TEXT$
|
|
7653
|
+
this.intlNoColor = TEXT$k.noColor;
|
|
7652
7654
|
/**
|
|
7653
7655
|
* The component's scale.
|
|
7654
7656
|
*/
|
|
@@ -7749,7 +7751,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7749
7751
|
render() {
|
|
7750
7752
|
const { intlHex, value } = this;
|
|
7751
7753
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7752
|
-
return (h("div", { class: CSS$
|
|
7754
|
+
return (h("div", { class: CSS$I.container }, h("calcite-input", { class: CSS$I.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$I.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7753
7755
|
}
|
|
7754
7756
|
//--------------------------------------------------------------------------
|
|
7755
7757
|
//
|
|
@@ -7808,7 +7810,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7808
7810
|
static get style() { return colorPickerHexInputCss; }
|
|
7809
7811
|
};
|
|
7810
7812
|
|
|
7811
|
-
const CSS$
|
|
7813
|
+
const CSS$H = {
|
|
7812
7814
|
swatch: "swatch",
|
|
7813
7815
|
noColorIcon: "no-color-icon"
|
|
7814
7816
|
};
|
|
@@ -7855,7 +7857,7 @@ const ColorPickerSwatch = class extends HTMLElement$1 {
|
|
|
7855
7857
|
const hex = internalColor.hex();
|
|
7856
7858
|
const theme = getThemeName(el);
|
|
7857
7859
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7858
|
-
return (h("svg", { class: CSS$
|
|
7860
|
+
return (h("svg", { class: CSS$H.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7859
7861
|
}
|
|
7860
7862
|
get el() { return this; }
|
|
7861
7863
|
static get watchers() { return {
|
|
@@ -9556,7 +9558,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
9556
9558
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
9557
9559
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9558
9560
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
9559
|
-
const TEXT$
|
|
9561
|
+
const TEXT$j = {
|
|
9560
9562
|
removeTag: "Remove tag"
|
|
9561
9563
|
};
|
|
9562
9564
|
|
|
@@ -9652,7 +9654,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9652
9654
|
*
|
|
9653
9655
|
* @default "Remove tag"
|
|
9654
9656
|
*/
|
|
9655
|
-
this.intlRemoveTag = TEXT$
|
|
9657
|
+
this.intlRemoveTag = TEXT$j.removeTag;
|
|
9656
9658
|
//--------------------------------------------------------------------------
|
|
9657
9659
|
//
|
|
9658
9660
|
// Private State/Props
|
|
@@ -10395,7 +10397,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10395
10397
|
wrapper: true,
|
|
10396
10398
|
"wrapper--single": single || !this.selectedItems.length,
|
|
10397
10399
|
"wrapper--active": open || active
|
|
10398
|
-
}, onClick: this.clickHandler, onKeyDown: this.keydownHandler, ref: this.setReferenceEl, role: "combobox"
|
|
10400
|
+
}, onClick: this.clickHandler, onKeyDown: this.keydownHandler, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderFloatingUIContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
10399
10401
|
}
|
|
10400
10402
|
get el() { return this; }
|
|
10401
10403
|
static get watchers() { return {
|
|
@@ -10412,7 +10414,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10412
10414
|
static get style() { return comboboxCss; }
|
|
10413
10415
|
};
|
|
10414
10416
|
|
|
10415
|
-
const CSS$
|
|
10417
|
+
const CSS$G = {
|
|
10416
10418
|
icon: "icon",
|
|
10417
10419
|
iconActive: "icon--active",
|
|
10418
10420
|
custom: "icon--custom",
|
|
@@ -10503,18 +10505,18 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10503
10505
|
// --------------------------------------------------------------------------
|
|
10504
10506
|
renderIcon(isSingle) {
|
|
10505
10507
|
const { icon, disabled, selected } = this;
|
|
10506
|
-
const level = `${CSS$
|
|
10508
|
+
const level = `${CSS$G.icon}--indent`;
|
|
10507
10509
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
10508
10510
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
10509
10511
|
const showDot = isSingle && !icon && !disabled;
|
|
10510
10512
|
return showDot ? (h("span", { class: {
|
|
10511
|
-
[CSS$
|
|
10512
|
-
[CSS$
|
|
10513
|
+
[CSS$G.icon]: true,
|
|
10514
|
+
[CSS$G.dot]: true,
|
|
10513
10515
|
[level]: true
|
|
10514
10516
|
} })) : (h("calcite-icon", { class: {
|
|
10515
|
-
[CSS$
|
|
10516
|
-
[CSS$
|
|
10517
|
-
[CSS$
|
|
10517
|
+
[CSS$G.icon]: !icon,
|
|
10518
|
+
[CSS$G.custom]: !!icon,
|
|
10519
|
+
[CSS$G.iconActive]: icon && selected,
|
|
10518
10520
|
[level]: true
|
|
10519
10521
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10520
10522
|
}
|
|
@@ -10527,13 +10529,13 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10527
10529
|
render() {
|
|
10528
10530
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
10529
10531
|
const classes = {
|
|
10530
|
-
[CSS$
|
|
10531
|
-
[CSS$
|
|
10532
|
-
[CSS$
|
|
10533
|
-
[CSS$
|
|
10532
|
+
[CSS$G.label]: true,
|
|
10533
|
+
[CSS$G.selected]: this.selected,
|
|
10534
|
+
[CSS$G.active]: this.active,
|
|
10535
|
+
[CSS$G.single]: isSingleSelect
|
|
10534
10536
|
};
|
|
10535
10537
|
const depth = getDepth(this.el);
|
|
10536
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
10538
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$G.title }, this.textLabel)), this.renderChildren())));
|
|
10537
10539
|
}
|
|
10538
10540
|
get el() { return this; }
|
|
10539
10541
|
static get watchers() { return {
|
|
@@ -10542,7 +10544,7 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10542
10544
|
static get style() { return comboboxItemCss; }
|
|
10543
10545
|
};
|
|
10544
10546
|
|
|
10545
|
-
const CSS$
|
|
10547
|
+
const CSS$F = {
|
|
10546
10548
|
list: "list",
|
|
10547
10549
|
label: "label",
|
|
10548
10550
|
title: "title"
|
|
@@ -10574,8 +10576,8 @@ const ComboboxItemGroup = class extends HTMLElement$1 {
|
|
|
10574
10576
|
// --------------------------------------------------------------------------
|
|
10575
10577
|
render() {
|
|
10576
10578
|
const { el, scale } = this;
|
|
10577
|
-
const indent = `${CSS$
|
|
10578
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10579
|
+
const indent = `${CSS$F.label}--indent-${getDepth(el)}`;
|
|
10580
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$F.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$F.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$F.title }, this.label)), h("slot", null)));
|
|
10579
10581
|
}
|
|
10580
10582
|
get el() { return this; }
|
|
10581
10583
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -11075,7 +11077,7 @@ function getDaysDiff(date1, date2) {
|
|
|
11075
11077
|
}
|
|
11076
11078
|
|
|
11077
11079
|
const HEADING_LEVEL$6 = 2;
|
|
11078
|
-
const TEXT$
|
|
11080
|
+
const TEXT$i = {
|
|
11079
11081
|
nextMonth: "Next month",
|
|
11080
11082
|
prevMonth: "Previous month",
|
|
11081
11083
|
year: "Year"
|
|
@@ -11095,19 +11097,19 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11095
11097
|
*
|
|
11096
11098
|
* @default "Previous month"
|
|
11097
11099
|
*/
|
|
11098
|
-
this.intlPrevMonth = TEXT$
|
|
11100
|
+
this.intlPrevMonth = TEXT$i.prevMonth;
|
|
11099
11101
|
/**
|
|
11100
11102
|
* Localized string for "next month" (used for aria label)
|
|
11101
11103
|
*
|
|
11102
11104
|
* @default "Next month"
|
|
11103
11105
|
*/
|
|
11104
|
-
this.intlNextMonth = TEXT$
|
|
11106
|
+
this.intlNextMonth = TEXT$i.nextMonth;
|
|
11105
11107
|
/**
|
|
11106
11108
|
* Localized string for "year" (used for aria label)
|
|
11107
11109
|
*
|
|
11108
11110
|
* @default "Year"
|
|
11109
11111
|
*/
|
|
11110
|
-
this.intlYear = TEXT$
|
|
11112
|
+
this.intlYear = TEXT$i.year;
|
|
11111
11113
|
/** BCP 47 language tag for desired language and country format */
|
|
11112
11114
|
this.locale = document.documentElement.lang || "en";
|
|
11113
11115
|
/** specify the scale of the date picker */
|
|
@@ -12035,7 +12037,7 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
12035
12037
|
static get style() { return datePickerMonthHeaderCss; }
|
|
12036
12038
|
};
|
|
12037
12039
|
|
|
12038
|
-
const SLOTS$
|
|
12040
|
+
const SLOTS$k = {
|
|
12039
12041
|
dropdownTrigger: "dropdown-trigger"
|
|
12040
12042
|
};
|
|
12041
12043
|
|
|
@@ -12293,7 +12295,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12293
12295
|
}
|
|
12294
12296
|
render() {
|
|
12295
12297
|
const { open, guid } = this;
|
|
12296
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$
|
|
12298
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$k.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper", ref: this.setFloatingEl }, h("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
12297
12299
|
["calcite-dropdown-content"]: true,
|
|
12298
12300
|
[FloatingCSS.animation]: true,
|
|
12299
12301
|
[FloatingCSS.animationActive]: open
|
|
@@ -12478,7 +12480,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12478
12480
|
static get style() { return dropdownCss; }
|
|
12479
12481
|
};
|
|
12480
12482
|
|
|
12481
|
-
const CSS$
|
|
12483
|
+
const CSS$E = {
|
|
12482
12484
|
containerSmall: "container--s",
|
|
12483
12485
|
containerMedium: "container--m",
|
|
12484
12486
|
containerLarge: "container--l"
|
|
@@ -12512,9 +12514,9 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12512
12514
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
12513
12515
|
return (h(Host, { "aria-label": this.groupTitle, role: "group" }, h("div", { class: {
|
|
12514
12516
|
container: true,
|
|
12515
|
-
[CSS$
|
|
12516
|
-
[CSS$
|
|
12517
|
-
[CSS$
|
|
12517
|
+
[CSS$E.containerSmall]: scale === "s",
|
|
12518
|
+
[CSS$E.containerMedium]: scale === "m",
|
|
12519
|
+
[CSS$E.containerLarge]: scale === "l"
|
|
12518
12520
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
12519
12521
|
}
|
|
12520
12522
|
//--------------------------------------------------------------------------
|
|
@@ -12542,7 +12544,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12542
12544
|
static get style() { return dropdownGroupCss; }
|
|
12543
12545
|
};
|
|
12544
12546
|
|
|
12545
|
-
const CSS$
|
|
12547
|
+
const CSS$D = {
|
|
12546
12548
|
containerLink: "container--link",
|
|
12547
12549
|
containerSmall: "container--s",
|
|
12548
12550
|
containerMedium: "container--m",
|
|
@@ -12631,13 +12633,13 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12631
12633
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
12632
12634
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12633
12635
|
container: true,
|
|
12634
|
-
[CSS$
|
|
12635
|
-
[CSS$
|
|
12636
|
-
[CSS$
|
|
12637
|
-
[CSS$
|
|
12638
|
-
[CSS$
|
|
12639
|
-
[CSS$
|
|
12640
|
-
[CSS$
|
|
12636
|
+
[CSS$D.containerLink]: !!this.href,
|
|
12637
|
+
[CSS$D.containerSmall]: scale === "s",
|
|
12638
|
+
[CSS$D.containerMedium]: scale === "m",
|
|
12639
|
+
[CSS$D.containerLarge]: scale === "l",
|
|
12640
|
+
[CSS$D.containerMulti]: this.selectionMode === "multi",
|
|
12641
|
+
[CSS$D.containerSingle]: this.selectionMode === "single",
|
|
12642
|
+
[CSS$D.containerNone]: this.selectionMode === "none"
|
|
12641
12643
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
12642
12644
|
}
|
|
12643
12645
|
//--------------------------------------------------------------------------
|
|
@@ -12729,10 +12731,10 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12729
12731
|
static get style() { return dropdownItemCss; }
|
|
12730
12732
|
};
|
|
12731
12733
|
|
|
12732
|
-
const CSS$
|
|
12734
|
+
const CSS$C = {
|
|
12733
12735
|
button: "button"
|
|
12734
12736
|
};
|
|
12735
|
-
const ICONS$
|
|
12737
|
+
const ICONS$a = {
|
|
12736
12738
|
plus: "plus"
|
|
12737
12739
|
};
|
|
12738
12740
|
|
|
@@ -12765,7 +12767,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12765
12767
|
*
|
|
12766
12768
|
* @default "plus"
|
|
12767
12769
|
*/
|
|
12768
|
-
this.icon = ICONS$
|
|
12770
|
+
this.icon = ICONS$a.plus;
|
|
12769
12771
|
/**
|
|
12770
12772
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
12771
12773
|
*/
|
|
@@ -12804,7 +12806,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12804
12806
|
render() {
|
|
12805
12807
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
12806
12808
|
const title = !textEnabled ? label || text || null : null;
|
|
12807
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
12809
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$C.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
12808
12810
|
this.buttonEl = buttonEl;
|
|
12809
12811
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
12810
12812
|
}
|
|
@@ -12812,15 +12814,15 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12812
12814
|
static get style() { return fabCss; }
|
|
12813
12815
|
};
|
|
12814
12816
|
|
|
12815
|
-
const CSS$
|
|
12817
|
+
const CSS$B = {
|
|
12816
12818
|
container: "container",
|
|
12817
12819
|
searchIcon: "search-icon"
|
|
12818
12820
|
};
|
|
12819
|
-
const TEXT$
|
|
12821
|
+
const TEXT$h = {
|
|
12820
12822
|
filterLabel: "Filter",
|
|
12821
12823
|
clear: "Clear filter"
|
|
12822
12824
|
};
|
|
12823
|
-
const ICONS$
|
|
12825
|
+
const ICONS$9 = {
|
|
12824
12826
|
search: "search",
|
|
12825
12827
|
close: "x"
|
|
12826
12828
|
};
|
|
@@ -12933,7 +12935,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12933
12935
|
// --------------------------------------------------------------------------
|
|
12934
12936
|
render() {
|
|
12935
12937
|
const { disabled, scale } = this;
|
|
12936
|
-
return (h(Fragment, null, h("div", { class: CSS$
|
|
12938
|
+
return (h(Fragment, null, h("div", { class: CSS$B.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$h.filterLabel, clearable: true, disabled: disabled, icon: ICONS$9.search, intlClear: this.intlClear || TEXT$h.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12937
12939
|
this.textInput = el;
|
|
12938
12940
|
}, scale: scale, type: "text", value: this.value })))));
|
|
12939
12941
|
}
|
|
@@ -12945,51 +12947,51 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12945
12947
|
static get style() { return filterCss; }
|
|
12946
12948
|
};
|
|
12947
12949
|
|
|
12948
|
-
const CSS$
|
|
12950
|
+
const CSS$A = {
|
|
12949
12951
|
frame: "frame",
|
|
12950
12952
|
frameAdvancing: "frame--advancing",
|
|
12951
12953
|
frameRetreating: "frame--retreating"
|
|
12952
12954
|
};
|
|
12953
12955
|
|
|
12954
|
-
const flowCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;padding:0px}:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host .frame--advancing{-webkit-animation:calcite-frame-advance var(--calcite-animation-timing);animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{-webkit-animation:calcite-frame-retreat var(--calcite-animation-timing);animation:calcite-frame-retreat var(--calcite-animation-timing)}@-webkit-keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@-webkit-keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}";
|
|
12956
|
+
const flowCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host .frame--advancing{-webkit-animation:calcite-frame-advance var(--calcite-animation-timing);animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{-webkit-animation:calcite-frame-retreat var(--calcite-animation-timing);animation:calcite-frame-retreat var(--calcite-animation-timing)}@-webkit-keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@-webkit-keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}";
|
|
12955
12957
|
|
|
12956
12958
|
const Flow = class extends HTMLElement$1 {
|
|
12957
12959
|
constructor() {
|
|
12958
12960
|
super();
|
|
12959
12961
|
this.__registerHost();
|
|
12960
12962
|
this.__attachShadow();
|
|
12961
|
-
this.panelCount = 0;
|
|
12962
12963
|
this.flowDirection = null;
|
|
12963
|
-
this.
|
|
12964
|
-
this.
|
|
12965
|
-
this.
|
|
12966
|
-
|
|
12967
|
-
const
|
|
12964
|
+
this.itemCount = 0;
|
|
12965
|
+
this.items = [];
|
|
12966
|
+
this.itemMutationObserver = createObserver("mutation", () => this.updateFlowProps());
|
|
12967
|
+
this.getFlowDirection = (oldFlowItemCount, newFlowItemCount) => {
|
|
12968
|
+
const allowRetreatingDirection = oldFlowItemCount > 1;
|
|
12969
|
+
const allowAdvancingDirection = oldFlowItemCount && newFlowItemCount > 1;
|
|
12968
12970
|
if (!allowAdvancingDirection && !allowRetreatingDirection) {
|
|
12969
12971
|
return null;
|
|
12970
12972
|
}
|
|
12971
|
-
return
|
|
12973
|
+
return newFlowItemCount < oldFlowItemCount ? "retreating" : "advancing";
|
|
12972
12974
|
};
|
|
12973
12975
|
this.updateFlowProps = () => {
|
|
12974
|
-
const { el,
|
|
12975
|
-
const
|
|
12976
|
-
const
|
|
12977
|
-
const
|
|
12978
|
-
const
|
|
12979
|
-
const
|
|
12980
|
-
if (
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12976
|
+
const { el, items } = this;
|
|
12977
|
+
const newItems = Array.from(el.querySelectorAll("calcite-flow-item, calcite-panel")).filter((flowItem) => !flowItem.matches("calcite-flow-item calcite-flow-item, calcite-panel calcite-panel"));
|
|
12978
|
+
const oldItemCount = items.length;
|
|
12979
|
+
const newItemCount = newItems.length;
|
|
12980
|
+
const activeItem = newItems[newItemCount - 1];
|
|
12981
|
+
const previousItem = newItems[newItemCount - 2];
|
|
12982
|
+
if (newItemCount && activeItem) {
|
|
12983
|
+
newItems.forEach((itemNode) => {
|
|
12984
|
+
itemNode.showBackButton = itemNode === activeItem && newItemCount > 1;
|
|
12985
|
+
itemNode.hidden = itemNode !== activeItem;
|
|
12984
12986
|
});
|
|
12985
12987
|
}
|
|
12986
|
-
if (
|
|
12987
|
-
|
|
12988
|
+
if (previousItem) {
|
|
12989
|
+
previousItem.menuOpen = false;
|
|
12988
12990
|
}
|
|
12989
|
-
this.
|
|
12990
|
-
if (
|
|
12991
|
-
const flowDirection = this.getFlowDirection(
|
|
12992
|
-
this.
|
|
12991
|
+
this.items = newItems;
|
|
12992
|
+
if (oldItemCount !== newItemCount) {
|
|
12993
|
+
const flowDirection = this.getFlowDirection(oldItemCount, newItemCount);
|
|
12994
|
+
this.itemCount = newItemCount;
|
|
12993
12995
|
this.flowDirection = flowDirection;
|
|
12994
12996
|
}
|
|
12995
12997
|
};
|
|
@@ -13000,11 +13002,11 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13000
13002
|
//
|
|
13001
13003
|
// --------------------------------------------------------------------------
|
|
13002
13004
|
/**
|
|
13003
|
-
* Removes the currently active `calcite-panel`.
|
|
13005
|
+
* Removes the currently active `calcite-flow-item` or `calcite-panel`.
|
|
13004
13006
|
*/
|
|
13005
13007
|
async back() {
|
|
13006
|
-
const {
|
|
13007
|
-
const lastItem =
|
|
13008
|
+
const { items } = this;
|
|
13009
|
+
const lastItem = items[items.length - 1];
|
|
13008
13010
|
if (!lastItem) {
|
|
13009
13011
|
return;
|
|
13010
13012
|
}
|
|
@@ -13023,19 +13025,19 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13023
13025
|
// --------------------------------------------------------------------------
|
|
13024
13026
|
connectedCallback() {
|
|
13025
13027
|
var _a;
|
|
13026
|
-
(_a = this.
|
|
13028
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
13027
13029
|
this.updateFlowProps();
|
|
13028
13030
|
}
|
|
13029
13031
|
disconnectedCallback() {
|
|
13030
13032
|
var _a;
|
|
13031
|
-
(_a = this.
|
|
13033
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
13032
13034
|
}
|
|
13033
13035
|
// --------------------------------------------------------------------------
|
|
13034
13036
|
//
|
|
13035
13037
|
// Private Methods
|
|
13036
13038
|
//
|
|
13037
13039
|
// --------------------------------------------------------------------------
|
|
13038
|
-
|
|
13040
|
+
handleItemBackClick() {
|
|
13039
13041
|
this.back();
|
|
13040
13042
|
}
|
|
13041
13043
|
// --------------------------------------------------------------------------
|
|
@@ -13046,9 +13048,9 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13046
13048
|
render() {
|
|
13047
13049
|
const { flowDirection } = this;
|
|
13048
13050
|
const frameDirectionClasses = {
|
|
13049
|
-
[CSS$
|
|
13050
|
-
[CSS$
|
|
13051
|
-
[CSS$
|
|
13051
|
+
[CSS$A.frame]: true,
|
|
13052
|
+
[CSS$A.frameAdvancing]: flowDirection === "advancing",
|
|
13053
|
+
[CSS$A.frameRetreating]: flowDirection === "retreating"
|
|
13052
13054
|
};
|
|
13053
13055
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
13054
13056
|
}
|
|
@@ -13056,6 +13058,173 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13056
13058
|
static get style() { return flowCss; }
|
|
13057
13059
|
};
|
|
13058
13060
|
|
|
13061
|
+
const CSS$z = {
|
|
13062
|
+
backButton: "back-button"
|
|
13063
|
+
};
|
|
13064
|
+
const ICONS$8 = {
|
|
13065
|
+
backLeft: "chevron-left",
|
|
13066
|
+
backRight: "chevron-right"
|
|
13067
|
+
};
|
|
13068
|
+
const TEXT$g = {
|
|
13069
|
+
back: "Back"
|
|
13070
|
+
};
|
|
13071
|
+
const SLOTS$j = {
|
|
13072
|
+
headerActionsStart: "header-actions-start",
|
|
13073
|
+
headerActionsEnd: "header-actions-end",
|
|
13074
|
+
headerMenuActions: "header-menu-actions",
|
|
13075
|
+
headerContent: "header-content",
|
|
13076
|
+
fab: "fab",
|
|
13077
|
+
footer: "footer",
|
|
13078
|
+
footerActions: "footer-actions"
|
|
13079
|
+
};
|
|
13080
|
+
|
|
13081
|
+
const CSS$y = {
|
|
13082
|
+
backButton: "back-button",
|
|
13083
|
+
container: "container",
|
|
13084
|
+
header: "header",
|
|
13085
|
+
heading: "heading",
|
|
13086
|
+
summary: "summary",
|
|
13087
|
+
description: "description",
|
|
13088
|
+
headerContent: "header-content",
|
|
13089
|
+
headerActions: "header-actions",
|
|
13090
|
+
headerActionsEnd: "header-actions--end",
|
|
13091
|
+
headerActionsStart: "header-actions--start",
|
|
13092
|
+
contentWrapper: "content-wrapper",
|
|
13093
|
+
contentContainer: "content-container",
|
|
13094
|
+
contentHeight: "content-height",
|
|
13095
|
+
fabContainer: "fab-container",
|
|
13096
|
+
footer: "footer"
|
|
13097
|
+
};
|
|
13098
|
+
const ICONS$7 = {
|
|
13099
|
+
close: "x",
|
|
13100
|
+
menu: "ellipsis",
|
|
13101
|
+
backLeft: "chevron-left",
|
|
13102
|
+
backRight: "chevron-right"
|
|
13103
|
+
};
|
|
13104
|
+
const SLOTS$i = {
|
|
13105
|
+
headerActionsStart: "header-actions-start",
|
|
13106
|
+
headerActionsEnd: "header-actions-end",
|
|
13107
|
+
headerMenuActions: "header-menu-actions",
|
|
13108
|
+
headerContent: "header-content",
|
|
13109
|
+
fab: "fab",
|
|
13110
|
+
footer: "footer",
|
|
13111
|
+
footerActions: "footer-actions"
|
|
13112
|
+
};
|
|
13113
|
+
const TEXT$f = {
|
|
13114
|
+
back: "Back",
|
|
13115
|
+
close: "Close",
|
|
13116
|
+
open: "Open",
|
|
13117
|
+
options: "Options"
|
|
13118
|
+
};
|
|
13119
|
+
const HEADING_LEVEL$5 = 3;
|
|
13120
|
+
|
|
13121
|
+
const flowItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}";
|
|
13122
|
+
|
|
13123
|
+
const FlowItem = class extends HTMLElement$1 {
|
|
13124
|
+
constructor() {
|
|
13125
|
+
super();
|
|
13126
|
+
this.__registerHost();
|
|
13127
|
+
this.__attachShadow();
|
|
13128
|
+
this.calciteFlowItemBackClick = createEvent(this, "calciteFlowItemBackClick", 6);
|
|
13129
|
+
// --------------------------------------------------------------------------
|
|
13130
|
+
//
|
|
13131
|
+
// Properties
|
|
13132
|
+
//
|
|
13133
|
+
// --------------------------------------------------------------------------
|
|
13134
|
+
/** When true, displays a close button in the trailing side of the header */
|
|
13135
|
+
this.closable = false;
|
|
13136
|
+
/** When true, flow-item will be hidden */
|
|
13137
|
+
this.closed = false;
|
|
13138
|
+
/**
|
|
13139
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
13140
|
+
*/
|
|
13141
|
+
this.disabled = false;
|
|
13142
|
+
/**
|
|
13143
|
+
* When true, a busy indicator is displayed.
|
|
13144
|
+
*/
|
|
13145
|
+
this.loading = false;
|
|
13146
|
+
/**
|
|
13147
|
+
* When true, the action menu items in the `header-menu-actions` slot are open.
|
|
13148
|
+
*/
|
|
13149
|
+
this.menuOpen = false;
|
|
13150
|
+
/**
|
|
13151
|
+
* When true, displays a back button in the header.
|
|
13152
|
+
*/
|
|
13153
|
+
this.showBackButton = false;
|
|
13154
|
+
// --------------------------------------------------------------------------
|
|
13155
|
+
//
|
|
13156
|
+
// Private Methods
|
|
13157
|
+
//
|
|
13158
|
+
// --------------------------------------------------------------------------
|
|
13159
|
+
this.backButtonClick = () => {
|
|
13160
|
+
this.calciteFlowItemBackClick.emit();
|
|
13161
|
+
};
|
|
13162
|
+
this.setBackRef = (node) => {
|
|
13163
|
+
this.backButtonEl = node;
|
|
13164
|
+
};
|
|
13165
|
+
}
|
|
13166
|
+
//--------------------------------------------------------------------------
|
|
13167
|
+
//
|
|
13168
|
+
// Lifecycle
|
|
13169
|
+
//
|
|
13170
|
+
//--------------------------------------------------------------------------
|
|
13171
|
+
componentDidRender() {
|
|
13172
|
+
updateHostInteraction(this);
|
|
13173
|
+
}
|
|
13174
|
+
// --------------------------------------------------------------------------
|
|
13175
|
+
//
|
|
13176
|
+
// Methods
|
|
13177
|
+
//
|
|
13178
|
+
// --------------------------------------------------------------------------
|
|
13179
|
+
/**
|
|
13180
|
+
* Sets focus on the component.
|
|
13181
|
+
*/
|
|
13182
|
+
async setFocus() {
|
|
13183
|
+
const { backButtonEl, containerEl } = this;
|
|
13184
|
+
if (backButtonEl) {
|
|
13185
|
+
backButtonEl.setFocus();
|
|
13186
|
+
return;
|
|
13187
|
+
}
|
|
13188
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.setFocus();
|
|
13189
|
+
}
|
|
13190
|
+
/**
|
|
13191
|
+
* Scrolls the component's content to a specified set of coordinates.
|
|
13192
|
+
*
|
|
13193
|
+
* ```
|
|
13194
|
+
* myCalciteFlowItem.scrollContentTo({
|
|
13195
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
13196
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
13197
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
13198
|
+
* });
|
|
13199
|
+
* ```
|
|
13200
|
+
*
|
|
13201
|
+
* @param options
|
|
13202
|
+
*/
|
|
13203
|
+
async scrollContentTo(options) {
|
|
13204
|
+
var _a;
|
|
13205
|
+
(_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options);
|
|
13206
|
+
}
|
|
13207
|
+
// --------------------------------------------------------------------------
|
|
13208
|
+
//
|
|
13209
|
+
// Render Methods
|
|
13210
|
+
//
|
|
13211
|
+
// --------------------------------------------------------------------------
|
|
13212
|
+
renderBackButton() {
|
|
13213
|
+
const { el } = this;
|
|
13214
|
+
const rtl = getElementDir(el) === "rtl";
|
|
13215
|
+
const { showBackButton, intlBack, backButtonClick } = this;
|
|
13216
|
+
const label = intlBack || TEXT$g.back;
|
|
13217
|
+
const icon = rtl ? ICONS$8.backRight : ICONS$8.backLeft;
|
|
13218
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$z.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: "header-actions-start", text: label })) : null;
|
|
13219
|
+
}
|
|
13220
|
+
render() {
|
|
13221
|
+
const { closable, closed, description, disabled, heading, headingLevel, heightScale, intlBack, intlClose, intlOptions, loading, menuOpen, widthScale } = this;
|
|
13222
|
+
return (h(Host, null, h("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, heightScale: heightScale, intlBack: intlBack, intlClose: intlClose, intlOptions: intlOptions, loading: loading, menuOpen: menuOpen, widthScale: widthScale }, h("slot", { name: SLOTS$j.headerActionsStart, slot: SLOTS$i.headerActionsStart }), h("slot", { name: SLOTS$j.headerActionsEnd, slot: SLOTS$i.headerActionsEnd }), h("slot", { name: SLOTS$j.headerContent, slot: SLOTS$i.headerContent }), h("slot", { name: SLOTS$j.headerMenuActions, slot: SLOTS$i.headerMenuActions }), h("slot", { name: SLOTS$j.fab, slot: SLOTS$i.fab }), h("slot", { name: SLOTS$j.footerActions, slot: SLOTS$i.footerActions }), h("slot", { name: SLOTS$j.footer, slot: SLOTS$i.footer }), h("slot", null), this.renderBackButton())));
|
|
13223
|
+
}
|
|
13224
|
+
get el() { return this; }
|
|
13225
|
+
static get style() { return flowItemCss; }
|
|
13226
|
+
};
|
|
13227
|
+
|
|
13059
13228
|
/**
|
|
13060
13229
|
* Calculate slope of the tangents
|
|
13061
13230
|
* uses Steffen interpolation as it's monotonic
|
|
@@ -13274,11 +13443,11 @@ const Graph = class extends HTMLElement$1 {
|
|
|
13274
13443
|
static get style() { return graphCss; }
|
|
13275
13444
|
};
|
|
13276
13445
|
|
|
13277
|
-
const CSS$
|
|
13446
|
+
const CSS$x = {
|
|
13278
13447
|
handle: "handle",
|
|
13279
13448
|
handleActivated: "handle--activated"
|
|
13280
13449
|
};
|
|
13281
|
-
const ICONS$
|
|
13450
|
+
const ICONS$6 = {
|
|
13282
13451
|
drag: "drag"
|
|
13283
13452
|
};
|
|
13284
13453
|
|
|
@@ -13347,15 +13516,15 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13347
13516
|
render() {
|
|
13348
13517
|
return (
|
|
13349
13518
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
13350
|
-
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
13519
|
+
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$x.handle]: true, [CSS$x.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
13351
13520
|
this.handleButton = el;
|
|
13352
|
-
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$
|
|
13521
|
+
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$6.drag, scale: "s" })));
|
|
13353
13522
|
}
|
|
13354
13523
|
get el() { return this; }
|
|
13355
13524
|
static get style() { return handleCss; }
|
|
13356
13525
|
};
|
|
13357
13526
|
|
|
13358
|
-
const CSS$
|
|
13527
|
+
const CSS$w = {
|
|
13359
13528
|
icon: "icon",
|
|
13360
13529
|
flipRtl: "flip-rtl"
|
|
13361
13530
|
};
|
|
@@ -13475,7 +13644,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13475
13644
|
const semantic = !!textLabel;
|
|
13476
13645
|
const paths = [].concat(pathData || "");
|
|
13477
13646
|
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
13478
|
-
[CSS$
|
|
13647
|
+
[CSS$w.flipRtl]: dir === "rtl" && flipRtl,
|
|
13479
13648
|
svg: true
|
|
13480
13649
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
13481
13650
|
}
|
|
@@ -13516,7 +13685,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13516
13685
|
static get style() { return iconCss; }
|
|
13517
13686
|
};
|
|
13518
13687
|
|
|
13519
|
-
const CSS$
|
|
13688
|
+
const CSS$v = {
|
|
13520
13689
|
wrapper: "wrapper",
|
|
13521
13690
|
confirmChangesButton: "confirm-changes-button",
|
|
13522
13691
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -13525,7 +13694,7 @@ const CSS$w = {
|
|
|
13525
13694
|
enableEditingButton: "enable-editing-button",
|
|
13526
13695
|
controlsWrapper: "controls-wrapper"
|
|
13527
13696
|
};
|
|
13528
|
-
const TEXT$
|
|
13697
|
+
const TEXT$e = {
|
|
13529
13698
|
intlEnablingEditing: "Click to edit",
|
|
13530
13699
|
intlCancelEditing: "Cancel",
|
|
13531
13700
|
intlConfirmChanges: "Save"
|
|
@@ -13559,19 +13728,19 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13559
13728
|
*
|
|
13560
13729
|
* @default "Click to edit"
|
|
13561
13730
|
*/
|
|
13562
|
-
this.intlEnableEditing = TEXT$
|
|
13731
|
+
this.intlEnableEditing = TEXT$e.intlEnablingEditing;
|
|
13563
13732
|
/**
|
|
13564
13733
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13565
13734
|
*
|
|
13566
13735
|
* @default "Cancel"
|
|
13567
13736
|
*/
|
|
13568
|
-
this.intlCancelEditing = TEXT$
|
|
13737
|
+
this.intlCancelEditing = TEXT$e.intlCancelEditing;
|
|
13569
13738
|
/**
|
|
13570
13739
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13571
13740
|
*
|
|
13572
13741
|
* @default "Save"
|
|
13573
13742
|
*/
|
|
13574
|
-
this.intlConfirmChanges = TEXT$
|
|
13743
|
+
this.intlConfirmChanges = TEXT$e.intlConfirmChanges;
|
|
13575
13744
|
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
13576
13745
|
this.enableEditing = () => {
|
|
13577
13746
|
var _a, _b;
|
|
@@ -13679,12 +13848,12 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13679
13848
|
updateHostInteraction(this);
|
|
13680
13849
|
}
|
|
13681
13850
|
render() {
|
|
13682
|
-
return (h("div", { class: CSS$
|
|
13851
|
+
return (h("div", { class: CSS$v.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, h("div", { class: CSS$v.inputWrapper }, h("slot", null)), h("div", { class: CSS$v.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$v.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
13683
13852
|
opacity: this.editingEnabled ? "0" : "1",
|
|
13684
13853
|
width: this.editingEnabled ? "0" : "inherit"
|
|
13685
13854
|
}, type: "button" }), this.shouldShowControls && [
|
|
13686
|
-
h("div", { class: CSS$
|
|
13687
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
13855
|
+
h("div", { class: CSS$v.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$v.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
13856
|
+
h("calcite-button", { appearance: "solid", class: CSS$v.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" })
|
|
13688
13857
|
])));
|
|
13689
13858
|
}
|
|
13690
13859
|
//--------------------------------------------------------------------------
|
|
@@ -13747,7 +13916,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13747
13916
|
static get style() { return inlineEditableCss; }
|
|
13748
13917
|
};
|
|
13749
13918
|
|
|
13750
|
-
const CSS$
|
|
13919
|
+
const CSS$u = {
|
|
13751
13920
|
loader: "loader",
|
|
13752
13921
|
clearButton: "clear-button",
|
|
13753
13922
|
editingEnabled: "editing-enabled",
|
|
@@ -13771,10 +13940,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
13771
13940
|
time: "clock",
|
|
13772
13941
|
search: "search"
|
|
13773
13942
|
};
|
|
13774
|
-
const SLOTS$
|
|
13943
|
+
const SLOTS$h = {
|
|
13775
13944
|
action: "action"
|
|
13776
13945
|
};
|
|
13777
|
-
const TEXT$
|
|
13946
|
+
const TEXT$d = {
|
|
13778
13947
|
clear: "Clear value"
|
|
13779
13948
|
};
|
|
13780
13949
|
|
|
@@ -13827,7 +13996,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13827
13996
|
*
|
|
13828
13997
|
* @default "Loading"
|
|
13829
13998
|
*/
|
|
13830
|
-
this.intlLoading = TEXT$
|
|
13999
|
+
this.intlLoading = TEXT$v.loading;
|
|
13831
14000
|
/** When true, the icon is flipped in RTL. */
|
|
13832
14001
|
this.iconFlipRtl = false;
|
|
13833
14002
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -14325,34 +14494,34 @@ const Input = class extends HTMLElement$1 {
|
|
|
14325
14494
|
// --------------------------------------------------------------------------
|
|
14326
14495
|
render() {
|
|
14327
14496
|
const dir = getElementDir(this.el);
|
|
14328
|
-
const loader = (h("div", { class: CSS$
|
|
14329
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
14330
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
14497
|
+
const loader = (h("div", { class: CSS$u.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
14498
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$u.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
14499
|
+
const iconEl = (h("calcite-icon", { class: CSS$u.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
14331
14500
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
14332
14501
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14333
|
-
[CSS$
|
|
14334
|
-
[CSS$
|
|
14502
|
+
[CSS$u.numberButtonItem]: true,
|
|
14503
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14335
14504
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
14336
14505
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14337
|
-
[CSS$
|
|
14338
|
-
[CSS$
|
|
14506
|
+
[CSS$u.numberButtonItem]: true,
|
|
14507
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14339
14508
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
14340
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
14341
|
-
const prefixText = h("div", { class: CSS$
|
|
14342
|
-
const suffixText = h("div", { class: CSS$
|
|
14509
|
+
const numberButtonsVertical = (h("div", { class: CSS$u.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
14510
|
+
const prefixText = h("div", { class: CSS$u.prefix }, this.prefixText);
|
|
14511
|
+
const suffixText = h("div", { class: CSS$u.suffix }, this.suffixText);
|
|
14343
14512
|
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
14344
14513
|
const childEl = this.type !== "number"
|
|
14345
14514
|
? [
|
|
14346
14515
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
14347
|
-
[CSS$
|
|
14348
|
-
[CSS$
|
|
14516
|
+
[CSS$u.editingEnabled]: this.editingEnabled,
|
|
14517
|
+
[CSS$u.inlineChild]: !!this.inlineEditableEl
|
|
14349
14518
|
}, 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 }),
|
|
14350
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
14519
|
+
this.isTextarea ? (h("div", { class: CSS$u.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
14351
14520
|
]
|
|
14352
14521
|
: null;
|
|
14353
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
14522
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$u.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14354
14523
|
? numberButtonsHorizontalDown
|
|
14355
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
14524
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$u.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$u.actionWrapper }, h("slot", { name: SLOTS$h.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
14356
14525
|
? numberButtonsVertical
|
|
14357
14526
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14358
14527
|
? numberButtonsHorizontalUp
|
|
@@ -14370,7 +14539,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
14370
14539
|
static get style() { return inputCss; }
|
|
14371
14540
|
};
|
|
14372
14541
|
|
|
14373
|
-
const CSS$
|
|
14542
|
+
const CSS$t = {
|
|
14374
14543
|
menu: "menu-container",
|
|
14375
14544
|
menuActive: "menu-container--active"
|
|
14376
14545
|
};
|
|
@@ -14417,19 +14586,19 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14417
14586
|
*
|
|
14418
14587
|
* @default "Previous month"
|
|
14419
14588
|
*/
|
|
14420
|
-
this.intlPrevMonth = TEXT$
|
|
14589
|
+
this.intlPrevMonth = TEXT$i.prevMonth;
|
|
14421
14590
|
/**
|
|
14422
14591
|
* Localized string for "next month" (used for aria label)
|
|
14423
14592
|
*
|
|
14424
14593
|
* @default "Next month"
|
|
14425
14594
|
*/
|
|
14426
|
-
this.intlNextMonth = TEXT$
|
|
14595
|
+
this.intlNextMonth = TEXT$i.nextMonth;
|
|
14427
14596
|
/**
|
|
14428
14597
|
* Localized string for "year" (used for aria label)
|
|
14429
14598
|
*
|
|
14430
14599
|
* @default "Year"
|
|
14431
14600
|
*/
|
|
14432
|
-
this.intlYear = TEXT$
|
|
14601
|
+
this.intlYear = TEXT$i.year;
|
|
14433
14602
|
/** BCP 47 language tag for desired language and country format */
|
|
14434
14603
|
this.locale = document.documentElement.lang || "en";
|
|
14435
14604
|
/** specify the scale of the date picker */
|
|
@@ -14708,8 +14877,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14708
14877
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14709
14878
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14710
14879
|
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
14711
|
-
[CSS$
|
|
14712
|
-
[CSS$
|
|
14880
|
+
[CSS$t.menu]: true,
|
|
14881
|
+
[CSS$t.menuActive]: this.open
|
|
14713
14882
|
}, ref: this.setFloatingEl }, h("div", { class: {
|
|
14714
14883
|
["calendar-picker-wrapper"]: true,
|
|
14715
14884
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -14968,7 +15137,7 @@ const InputMessage = class extends HTMLElement$1 {
|
|
|
14968
15137
|
static get style() { return inputMessageCss; }
|
|
14969
15138
|
};
|
|
14970
15139
|
|
|
14971
|
-
const CSS$
|
|
15140
|
+
const CSS$s = {
|
|
14972
15141
|
loader: "loader",
|
|
14973
15142
|
clearButton: "clear-button",
|
|
14974
15143
|
editingEnabled: "editing-enabled",
|
|
@@ -14984,10 +15153,10 @@ const CSS$t = {
|
|
|
14984
15153
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
14985
15154
|
numberButtonItem: "number-button-item"
|
|
14986
15155
|
};
|
|
14987
|
-
const SLOTS$
|
|
15156
|
+
const SLOTS$g = {
|
|
14988
15157
|
action: "action"
|
|
14989
15158
|
};
|
|
14990
|
-
const TEXT$
|
|
15159
|
+
const TEXT$c = {
|
|
14991
15160
|
clear: "Clear value"
|
|
14992
15161
|
};
|
|
14993
15162
|
|
|
@@ -15040,7 +15209,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15040
15209
|
*
|
|
15041
15210
|
* @default "Loading"
|
|
15042
15211
|
*/
|
|
15043
|
-
this.intlLoading = TEXT$
|
|
15212
|
+
this.intlLoading = TEXT$v.loading;
|
|
15044
15213
|
/** When true, the icon is flipped in RTL. */
|
|
15045
15214
|
this.iconFlipRtl = false;
|
|
15046
15215
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15454,25 +15623,25 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15454
15623
|
// --------------------------------------------------------------------------
|
|
15455
15624
|
render() {
|
|
15456
15625
|
const dir = getElementDir(this.el);
|
|
15457
|
-
const loader = (h("div", { class: CSS$
|
|
15458
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15459
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
15626
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15627
|
+
const inputClearButton = (h("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" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15628
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15460
15629
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
15461
15630
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
15462
|
-
[CSS$
|
|
15463
|
-
[CSS$
|
|
15631
|
+
[CSS$s.numberButtonItem]: true,
|
|
15632
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15464
15633
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
15465
15634
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
15466
|
-
[CSS$
|
|
15467
|
-
[CSS$
|
|
15635
|
+
[CSS$s.numberButtonItem]: true,
|
|
15636
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15468
15637
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
15469
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
15470
|
-
const prefixText = h("div", { class: CSS$
|
|
15471
|
-
const suffixText = h("div", { class: CSS$
|
|
15638
|
+
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
15639
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
15640
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
15472
15641
|
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue }));
|
|
15473
|
-
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
15642
|
+
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15474
15643
|
? numberButtonsHorizontalDown
|
|
15475
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
15644
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15476
15645
|
? numberButtonsHorizontalUp
|
|
15477
15646
|
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
15478
15647
|
}
|
|
@@ -15487,7 +15656,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15487
15656
|
static get style() { return inputNumberCss; }
|
|
15488
15657
|
};
|
|
15489
15658
|
|
|
15490
|
-
const CSS$
|
|
15659
|
+
const CSS$r = {
|
|
15491
15660
|
loader: "loader",
|
|
15492
15661
|
clearButton: "clear-button",
|
|
15493
15662
|
editingEnabled: "editing-enabled",
|
|
@@ -15500,10 +15669,10 @@ const CSS$s = {
|
|
|
15500
15669
|
actionWrapper: "action-wrapper",
|
|
15501
15670
|
resizeIconWrapper: "resize-icon-wrapper"
|
|
15502
15671
|
};
|
|
15503
|
-
const SLOTS$
|
|
15672
|
+
const SLOTS$f = {
|
|
15504
15673
|
action: "action"
|
|
15505
15674
|
};
|
|
15506
|
-
const TEXT$
|
|
15675
|
+
const TEXT$b = {
|
|
15507
15676
|
clear: "Clear value"
|
|
15508
15677
|
};
|
|
15509
15678
|
|
|
@@ -15552,7 +15721,7 @@ const InputText = class extends HTMLElement$1 {
|
|
|
15552
15721
|
*
|
|
15553
15722
|
* @default "Loading"
|
|
15554
15723
|
*/
|
|
15555
|
-
this.intlLoading = TEXT$
|
|
15724
|
+
this.intlLoading = TEXT$v.loading;
|
|
15556
15725
|
/** When true, the icon is flipped in RTL. */
|
|
15557
15726
|
this.iconFlipRtl = false;
|
|
15558
15727
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15794,16 +15963,16 @@ const InputText = class extends HTMLElement$1 {
|
|
|
15794
15963
|
// --------------------------------------------------------------------------
|
|
15795
15964
|
render() {
|
|
15796
15965
|
const dir = getElementDir(this.el);
|
|
15797
|
-
const loader = (h("div", { class: CSS$
|
|
15798
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15799
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
15800
|
-
const prefixText = h("div", { class: CSS$
|
|
15801
|
-
const suffixText = h("div", { class: CSS$
|
|
15966
|
+
const loader = (h("div", { class: CSS$r.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15967
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$b.clear, class: CSS$r.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15968
|
+
const iconEl = (h("calcite-icon", { class: CSS$r.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15969
|
+
const prefixText = h("div", { class: CSS$r.prefix }, this.prefixText);
|
|
15970
|
+
const suffixText = h("div", { class: CSS$r.suffix }, this.suffixText);
|
|
15802
15971
|
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
15803
|
-
[CSS$
|
|
15804
|
-
[CSS$
|
|
15972
|
+
[CSS$r.editingEnabled]: this.editingEnabled,
|
|
15973
|
+
[CSS$r.inlineChild]: !!this.inlineEditableEl
|
|
15805
15974
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value }));
|
|
15806
|
-
return (h(Host, { onClick: this.inputTextFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
15975
|
+
return (h(Host, { onClick: this.inputTextFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, h("div", { class: CSS$r.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$r.actionWrapper }, h("slot", { name: SLOTS$f.action })), this.suffixText ? suffixText : null, h(HiddenFormInputSlot, { component: this }))));
|
|
15807
15976
|
}
|
|
15808
15977
|
get el() { return this; }
|
|
15809
15978
|
static get watchers() { return {
|
|
@@ -16003,8 +16172,14 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16003
16172
|
// Properties
|
|
16004
16173
|
//
|
|
16005
16174
|
//--------------------------------------------------------------------------
|
|
16006
|
-
/**
|
|
16175
|
+
/**
|
|
16176
|
+
* The active state of the time input
|
|
16177
|
+
*
|
|
16178
|
+
* @deprecated Use open instead.
|
|
16179
|
+
*/
|
|
16007
16180
|
this.active = false;
|
|
16181
|
+
/** When true, displays the `calcite-time-picker` component.*/
|
|
16182
|
+
this.open = false;
|
|
16008
16183
|
/** The disabled state of the time input */
|
|
16009
16184
|
this.disabled = false;
|
|
16010
16185
|
/**
|
|
@@ -16047,14 +16222,14 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16047
16222
|
//
|
|
16048
16223
|
//--------------------------------------------------------------------------
|
|
16049
16224
|
this.calciteInternalInputBlurHandler = () => {
|
|
16050
|
-
this.
|
|
16225
|
+
this.open = false;
|
|
16051
16226
|
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
16052
16227
|
const localizedInputValue = localizeTimeString(this.calciteInputEl.value, this.locale, shouldIncludeSeconds);
|
|
16053
16228
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
16054
16229
|
};
|
|
16055
16230
|
this.calciteInternalInputFocusHandler = (event) => {
|
|
16056
16231
|
if (!this.readOnly) {
|
|
16057
|
-
this.
|
|
16232
|
+
this.open = true;
|
|
16058
16233
|
event.stopPropagation();
|
|
16059
16234
|
}
|
|
16060
16235
|
};
|
|
@@ -16083,8 +16258,8 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16083
16258
|
event.preventDefault();
|
|
16084
16259
|
}
|
|
16085
16260
|
}
|
|
16086
|
-
if (key === "Escape" && this.
|
|
16087
|
-
this.
|
|
16261
|
+
if (key === "Escape" && this.open) {
|
|
16262
|
+
this.open = false;
|
|
16088
16263
|
event.preventDefault();
|
|
16089
16264
|
}
|
|
16090
16265
|
};
|
|
@@ -16143,16 +16318,20 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16143
16318
|
}
|
|
16144
16319
|
};
|
|
16145
16320
|
}
|
|
16146
|
-
activeHandler() {
|
|
16321
|
+
activeHandler(value) {
|
|
16322
|
+
this.open = value;
|
|
16323
|
+
}
|
|
16324
|
+
openHandler(value) {
|
|
16325
|
+
this.active = value;
|
|
16147
16326
|
if (this.disabled || this.readOnly) {
|
|
16148
|
-
this.
|
|
16327
|
+
this.open = false;
|
|
16149
16328
|
return;
|
|
16150
16329
|
}
|
|
16151
16330
|
this.reposition();
|
|
16152
16331
|
}
|
|
16153
16332
|
handleDisabledAndReadOnlyChange(value) {
|
|
16154
16333
|
if (!value) {
|
|
16155
|
-
this.
|
|
16334
|
+
this.open = false;
|
|
16156
16335
|
}
|
|
16157
16336
|
}
|
|
16158
16337
|
localeWatcher(newLocale) {
|
|
@@ -16173,13 +16352,13 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16173
16352
|
timePickerBlurHandler(event) {
|
|
16174
16353
|
event.preventDefault();
|
|
16175
16354
|
event.stopPropagation();
|
|
16176
|
-
this.
|
|
16355
|
+
this.open = false;
|
|
16177
16356
|
}
|
|
16178
16357
|
timePickerFocusHandler(event) {
|
|
16179
16358
|
event.preventDefault();
|
|
16180
16359
|
event.stopPropagation();
|
|
16181
16360
|
if (!this.readOnly) {
|
|
16182
|
-
this.
|
|
16361
|
+
this.open = true;
|
|
16183
16362
|
}
|
|
16184
16363
|
}
|
|
16185
16364
|
// --------------------------------------------------------------------------
|
|
@@ -16209,11 +16388,18 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16209
16388
|
//
|
|
16210
16389
|
//--------------------------------------------------------------------------
|
|
16211
16390
|
connectedCallback() {
|
|
16391
|
+
const { active, open } = this;
|
|
16212
16392
|
if (this.value) {
|
|
16213
16393
|
this.setValue({ value: isValidTime(this.value) ? this.value : undefined, origin: "loading" });
|
|
16214
16394
|
}
|
|
16215
16395
|
connectLabel(this);
|
|
16216
16396
|
connectForm(this);
|
|
16397
|
+
if (open) {
|
|
16398
|
+
this.active = open;
|
|
16399
|
+
}
|
|
16400
|
+
else if (active) {
|
|
16401
|
+
this.open = active;
|
|
16402
|
+
}
|
|
16217
16403
|
}
|
|
16218
16404
|
componentDidLoad() {
|
|
16219
16405
|
this.setInputValue(this.localizedValue);
|
|
@@ -16232,11 +16418,12 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16232
16418
|
// --------------------------------------------------------------------------
|
|
16233
16419
|
render() {
|
|
16234
16420
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
16235
|
-
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.
|
|
16421
|
+
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.open, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
16236
16422
|
}
|
|
16237
16423
|
get el() { return this; }
|
|
16238
16424
|
static get watchers() { return {
|
|
16239
16425
|
"active": ["activeHandler"],
|
|
16426
|
+
"open": ["openHandler"],
|
|
16240
16427
|
"disabled": ["handleDisabledAndReadOnlyChange"],
|
|
16241
16428
|
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
|
16242
16429
|
"locale": ["localeWatcher"],
|
|
@@ -16245,7 +16432,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16245
16432
|
static get style() { return inputTimePickerCss; }
|
|
16246
16433
|
};
|
|
16247
16434
|
|
|
16248
|
-
const CSS$
|
|
16435
|
+
const CSS$q = {
|
|
16249
16436
|
container: "container"
|
|
16250
16437
|
};
|
|
16251
16438
|
|
|
@@ -16309,7 +16496,7 @@ const Label = class extends HTMLElement$1 {
|
|
|
16309
16496
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
16310
16497
|
}
|
|
16311
16498
|
render() {
|
|
16312
|
-
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$
|
|
16499
|
+
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$q.container }, h("slot", null))));
|
|
16313
16500
|
}
|
|
16314
16501
|
get el() { return this; }
|
|
16315
16502
|
static get style() { return labelCss; }
|
|
@@ -16381,7 +16568,7 @@ const Link = class extends HTMLElement$1 {
|
|
|
16381
16568
|
static get style() { return linkCss; }
|
|
16382
16569
|
};
|
|
16383
16570
|
|
|
16384
|
-
const CSS$
|
|
16571
|
+
const CSS$p = {
|
|
16385
16572
|
container: "container"
|
|
16386
16573
|
};
|
|
16387
16574
|
|
|
@@ -16426,13 +16613,13 @@ const List$1 = class extends HTMLElement$1 {
|
|
|
16426
16613
|
//
|
|
16427
16614
|
// --------------------------------------------------------------------------
|
|
16428
16615
|
render() {
|
|
16429
|
-
return (h(Host, { role: "list" }, h("div", { class: CSS$
|
|
16616
|
+
return (h(Host, { role: "list" }, h("div", { class: CSS$p.container }, h("slot", null))));
|
|
16430
16617
|
}
|
|
16431
16618
|
get el() { return this; }
|
|
16432
16619
|
static get style() { return listCss; }
|
|
16433
16620
|
};
|
|
16434
16621
|
|
|
16435
|
-
const CSS$
|
|
16622
|
+
const CSS$o = {
|
|
16436
16623
|
container: "container",
|
|
16437
16624
|
contentContainer: "content-container",
|
|
16438
16625
|
nestedContainer: "nested-container",
|
|
@@ -16446,7 +16633,7 @@ const CSS$p = {
|
|
|
16446
16633
|
actionsEnd: "actions-end",
|
|
16447
16634
|
hasCenterContent: "has-center-content"
|
|
16448
16635
|
};
|
|
16449
|
-
const SLOTS$
|
|
16636
|
+
const SLOTS$e = {
|
|
16450
16637
|
actionsStart: "actions-start",
|
|
16451
16638
|
contentStart: "content-start",
|
|
16452
16639
|
contentEnd: "content-end",
|
|
@@ -16510,46 +16697,46 @@ const ListItem = class extends HTMLElement$1 {
|
|
|
16510
16697
|
// --------------------------------------------------------------------------
|
|
16511
16698
|
renderActionsStart() {
|
|
16512
16699
|
const { el } = this;
|
|
16513
|
-
return getSlotted(el, SLOTS$
|
|
16700
|
+
return getSlotted(el, SLOTS$e.actionsStart) ? (h("div", { class: CSS$o.actionsStart }, h("slot", { name: SLOTS$e.actionsStart }))) : null;
|
|
16514
16701
|
}
|
|
16515
16702
|
renderActionsEnd() {
|
|
16516
16703
|
const { el } = this;
|
|
16517
|
-
return getSlotted(el, SLOTS$
|
|
16704
|
+
return getSlotted(el, SLOTS$e.actionsEnd) ? (h("div", { class: CSS$o.actionsEnd }, h("slot", { name: SLOTS$e.actionsEnd }))) : null;
|
|
16518
16705
|
}
|
|
16519
16706
|
renderContentStart() {
|
|
16520
16707
|
const { el } = this;
|
|
16521
|
-
return getSlotted(el, SLOTS$
|
|
16708
|
+
return getSlotted(el, SLOTS$e.contentStart) ? (h("div", { class: CSS$o.contentStart }, h("slot", { name: SLOTS$e.contentStart }))) : null;
|
|
16522
16709
|
}
|
|
16523
16710
|
renderContentEnd() {
|
|
16524
16711
|
const { el } = this;
|
|
16525
|
-
return getSlotted(el, SLOTS$
|
|
16712
|
+
return getSlotted(el, SLOTS$e.contentEnd) ? (h("div", { class: CSS$o.contentEnd }, h("slot", { name: SLOTS$e.contentEnd }))) : null;
|
|
16526
16713
|
}
|
|
16527
16714
|
renderContent() {
|
|
16528
16715
|
const { label, description } = this;
|
|
16529
|
-
return !!label || !!description ? (h("div", { class: CSS$
|
|
16716
|
+
return !!label || !!description ? (h("div", { class: CSS$o.content }, label ? h("div", { class: CSS$o.label }, label) : null, description ? h("div", { class: CSS$o.description }, description) : null)) : null;
|
|
16530
16717
|
}
|
|
16531
16718
|
renderContentContainer() {
|
|
16532
16719
|
const { description, disabled, label, nonInteractive } = this;
|
|
16533
16720
|
const hasCenterContent = !!label || !!description;
|
|
16534
16721
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
16535
16722
|
return !nonInteractive ? (h("button", { class: {
|
|
16536
|
-
[CSS$
|
|
16537
|
-
[CSS$
|
|
16538
|
-
[CSS$
|
|
16539
|
-
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$
|
|
16723
|
+
[CSS$o.contentContainer]: true,
|
|
16724
|
+
[CSS$o.contentContainerButton]: true,
|
|
16725
|
+
[CSS$o.hasCenterContent]: hasCenterContent
|
|
16726
|
+
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$o.contentContainer]: true, [CSS$o.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
|
|
16540
16727
|
}
|
|
16541
16728
|
render() {
|
|
16542
|
-
return (h(Host, { role: "listitem" }, h("div", { class: CSS$
|
|
16729
|
+
return (h(Host, { role: "listitem" }, h("div", { class: CSS$o.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$o.nestedContainer }, h("slot", null))));
|
|
16543
16730
|
}
|
|
16544
16731
|
get el() { return this; }
|
|
16545
16732
|
static get style() { return listItemCss; }
|
|
16546
16733
|
};
|
|
16547
16734
|
|
|
16548
|
-
const CSS$
|
|
16735
|
+
const CSS$n = {
|
|
16549
16736
|
heading: "heading",
|
|
16550
16737
|
container: "container"
|
|
16551
16738
|
};
|
|
16552
|
-
const HEADING_LEVEL$
|
|
16739
|
+
const HEADING_LEVEL$4 = 3;
|
|
16553
16740
|
|
|
16554
16741
|
const listItemGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.heading{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.container{display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}::slotted(calcite-list-item-group){-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}";
|
|
16555
16742
|
|
|
@@ -16569,8 +16756,8 @@ const ListItemGroup = class extends HTMLElement$1 {
|
|
|
16569
16756
|
const { el, heading, headingLevel } = this;
|
|
16570
16757
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
16571
16758
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
16572
|
-
const level = headingLevel || relativeLevel || HEADING_LEVEL$
|
|
16573
|
-
return (h(Host, null, heading ? (h(Heading, { class: CSS$
|
|
16759
|
+
const level = headingLevel || relativeLevel || HEADING_LEVEL$4;
|
|
16760
|
+
return (h(Host, null, heading ? (h(Heading, { class: CSS$n.heading, level: level }, heading)) : null, h("div", { class: CSS$n.container, role: "group" }, h("slot", null))));
|
|
16574
16761
|
}
|
|
16575
16762
|
get el() { return this; }
|
|
16576
16763
|
static get style() { return listItemGroupCss; }
|
|
@@ -16763,8 +16950,9 @@ function isFocusable($elem) {
|
|
|
16763
16950
|
|| $elem instanceof HTMLIFrameElement);
|
|
16764
16951
|
}
|
|
16765
16952
|
|
|
16766
|
-
const CSS$
|
|
16953
|
+
const CSS$m = {
|
|
16767
16954
|
modal: "modal",
|
|
16955
|
+
modalOpen: "modal--open",
|
|
16768
16956
|
title: "title",
|
|
16769
16957
|
header: "header",
|
|
16770
16958
|
footer: "footer",
|
|
@@ -16781,21 +16969,21 @@ const CSS$n = {
|
|
|
16781
16969
|
closingIdle: "modal--closing-idle",
|
|
16782
16970
|
closingActive: "modal--closing-active"
|
|
16783
16971
|
};
|
|
16784
|
-
const ICONS$
|
|
16972
|
+
const ICONS$5 = {
|
|
16785
16973
|
close: "x"
|
|
16786
16974
|
};
|
|
16787
|
-
const SLOTS$
|
|
16975
|
+
const SLOTS$d = {
|
|
16788
16976
|
content: "content",
|
|
16789
16977
|
header: "header",
|
|
16790
16978
|
back: "back",
|
|
16791
16979
|
secondary: "secondary",
|
|
16792
16980
|
primary: "primary"
|
|
16793
16981
|
};
|
|
16794
|
-
const TEXT$
|
|
16982
|
+
const TEXT$a = {
|
|
16795
16983
|
close: "Close"
|
|
16796
16984
|
};
|
|
16797
16985
|
|
|
16798
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;inset:0px;z-index:700;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 var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--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);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--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);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--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);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size: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);-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{-webkit-transform:var(--calcite-modal-hidden-position);transform:var(--calcite-modal-hidden-position)}.modal--opening-active{-webkit-transform:var(--calcite-modal-shown-position);transform:var(--calcite-modal-shown-position)}.modal--closing-idle{-webkit-transform:var(--calcite-modal-shown-position);transform:var(--calcite-modal-shown-position)}.modal--closing-active{-webkit-transform:var(--calcite-modal-hidden-position);transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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{z-index:400;display:-ms-flexbox;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-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}.close{-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-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));-ms-flex:0 0 auto;flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-inline-size:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}.content{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}.content--spaced{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{z-index:400;-webkit-margin-before:auto;margin-block-start:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:justify;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-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-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){-ms-flex-align:end;align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;-ms-flex:1 1 auto;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:-webkit-sticky;position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{-ms-flex-direction:column;flex-direction:column}.back,.secondary{margin:0px;-webkit-margin-after:0.25rem;margin-block-end:0.25rem}}";
|
|
16986
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;inset:0px;z-index:700;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 var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--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);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--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);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--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);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size: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);-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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 var(--calcite-internal-animation-timing-slow), 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);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{-webkit-transform:var(--calcite-modal-hidden-position);transform:var(--calcite-modal-hidden-position)}.modal--opening-active{-webkit-transform:var(--calcite-modal-shown-position);transform:var(--calcite-modal-shown-position)}.modal--closing-idle{-webkit-transform:var(--calcite-modal-shown-position);transform:var(--calcite-modal-shown-position)}.modal--closing-active{-webkit-transform:var(--calcite-modal-hidden-position);transform:var(--calcite-modal-hidden-position)}:host([open][calcite-hydrated]){opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}:host([open][calcite-hydrated]) .modal--open{pointer-events:auto;visibility:visible;opacity:1;-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size 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{z-index:400;display:-ms-flexbox;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-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}.close{-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-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));-ms-flex:0 0 auto;flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-inline-size:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}.content{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}.content--spaced{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{z-index:400;-webkit-margin-before:auto;margin-block-start:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:justify;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-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-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){-ms-flex-align:end;align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;-ms-flex:1 1 auto;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:-webkit-sticky;position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{-ms-flex-direction:column;flex-direction:column}.back,.secondary{margin:0px;-webkit-margin-after:0.25rem;margin-block-end:0.25rem}}";
|
|
16799
16987
|
|
|
16800
16988
|
const isFocusableExtended = (el) => {
|
|
16801
16989
|
return isCalciteFocusable(el) || isFocusable(el);
|
|
@@ -16832,7 +17020,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16832
17020
|
/** When true, disables the closing of the component when clicked outside. */
|
|
16833
17021
|
this.disableOutsideClose = false;
|
|
16834
17022
|
/** Accessible name for the component's close button. */
|
|
16835
|
-
this.intlClose = TEXT$
|
|
17023
|
+
this.intlClose = TEXT$a.close;
|
|
16836
17024
|
/** When true, disables the default close on escape behavior. */
|
|
16837
17025
|
this.disableEscape = false;
|
|
16838
17026
|
/** Specifies the size of the component. */
|
|
@@ -16853,6 +17041,12 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16853
17041
|
//
|
|
16854
17042
|
//--------------------------------------------------------------------------
|
|
16855
17043
|
this.hasFooter = true;
|
|
17044
|
+
/**
|
|
17045
|
+
* We use internal variable to make sure initially open modal can transition from closed state when rendered
|
|
17046
|
+
*
|
|
17047
|
+
* @private
|
|
17048
|
+
*/
|
|
17049
|
+
this.isOpen = false;
|
|
16856
17050
|
this.mutationObserver = createObserver("mutation", () => this.updateFooterVisibility());
|
|
16857
17051
|
this.openTransitionProp = "opacity";
|
|
16858
17052
|
//--------------------------------------------------------------------------
|
|
@@ -16878,6 +17072,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16878
17072
|
this.close = () => {
|
|
16879
17073
|
return this.beforeClose(this.el).then(() => {
|
|
16880
17074
|
this.open = false;
|
|
17075
|
+
this.isOpen = false;
|
|
16881
17076
|
focusElement(this.previousActiveElement);
|
|
16882
17077
|
this.removeOverflowHiddenClass();
|
|
16883
17078
|
});
|
|
@@ -16895,7 +17090,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16895
17090
|
}
|
|
16896
17091
|
};
|
|
16897
17092
|
this.updateFooterVisibility = () => {
|
|
16898
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
17093
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$d.back, SLOTS$d.primary, SLOTS$d.secondary]);
|
|
16899
17094
|
};
|
|
16900
17095
|
}
|
|
16901
17096
|
//--------------------------------------------------------------------------
|
|
@@ -16906,7 +17101,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16906
17101
|
componentWillLoad() {
|
|
16907
17102
|
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
|
16908
17103
|
if (this.open) {
|
|
16909
|
-
this.openModal();
|
|
17104
|
+
requestAnimationFrame(() => this.openModal());
|
|
16910
17105
|
}
|
|
16911
17106
|
}
|
|
16912
17107
|
connectedCallback() {
|
|
@@ -16930,26 +17125,29 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16930
17125
|
disconnectOpenCloseComponent(this);
|
|
16931
17126
|
}
|
|
16932
17127
|
render() {
|
|
16933
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$
|
|
17128
|
+
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$m.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: {
|
|
17129
|
+
[CSS$m.modal]: true,
|
|
17130
|
+
[CSS$m.modalOpen]: this.isOpen
|
|
17131
|
+
}, ref: this.setTransitionEl }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$m.header }, this.renderCloseButton(), h("header", { class: CSS$m.title }, h("slot", { name: CSS$m.header }))), h("div", { class: {
|
|
16934
17132
|
content: true,
|
|
16935
17133
|
"content--spaced": !this.noPadding,
|
|
16936
17134
|
"content--no-footer": !this.hasFooter
|
|
16937
|
-
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$
|
|
17135
|
+
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$d.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
16938
17136
|
}
|
|
16939
17137
|
renderFooter() {
|
|
16940
|
-
return this.hasFooter ? (h("div", { class: CSS$
|
|
17138
|
+
return this.hasFooter ? (h("div", { class: CSS$m.footer, key: "footer" }, h("span", { class: CSS$m.back }, h("slot", { name: SLOTS$d.back })), h("span", { class: CSS$m.secondary }, h("slot", { name: SLOTS$d.secondary })), h("span", { class: CSS$m.primary }, h("slot", { name: SLOTS$d.primary })))) : null;
|
|
16941
17139
|
}
|
|
16942
17140
|
renderCloseButton() {
|
|
16943
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
17141
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$m.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$5.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
16944
17142
|
}
|
|
16945
17143
|
renderStyle() {
|
|
16946
17144
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
16947
17145
|
return hasCustomWidth ? (h("style", null, `
|
|
16948
|
-
.${CSS$
|
|
17146
|
+
.${CSS$m.modal} {
|
|
16949
17147
|
max-width: ${this.width}px !important;
|
|
16950
17148
|
}
|
|
16951
17149
|
@media screen and (max-width: ${this.width}px) {
|
|
16952
|
-
.${CSS$
|
|
17150
|
+
.${CSS$m.modal} {
|
|
16953
17151
|
height: 100% !important;
|
|
16954
17152
|
max-height: 100% !important;
|
|
16955
17153
|
width: 100% !important;
|
|
@@ -17022,19 +17220,19 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17022
17220
|
}
|
|
17023
17221
|
}
|
|
17024
17222
|
onBeforeOpen() {
|
|
17025
|
-
this.transitionEl.classList.add(CSS$
|
|
17223
|
+
this.transitionEl.classList.add(CSS$m.openingActive);
|
|
17026
17224
|
this.calciteModalBeforeOpen.emit();
|
|
17027
17225
|
}
|
|
17028
17226
|
onOpen() {
|
|
17029
|
-
this.transitionEl.classList.remove(CSS$
|
|
17227
|
+
this.transitionEl.classList.remove(CSS$m.openingIdle, CSS$m.openingActive);
|
|
17030
17228
|
this.calciteModalOpen.emit();
|
|
17031
17229
|
}
|
|
17032
17230
|
onBeforeClose() {
|
|
17033
|
-
this.transitionEl.classList.add(CSS$
|
|
17231
|
+
this.transitionEl.classList.add(CSS$m.closingActive);
|
|
17034
17232
|
this.calciteModalBeforeClose.emit();
|
|
17035
17233
|
}
|
|
17036
17234
|
onClose() {
|
|
17037
|
-
this.transitionEl.classList.remove(CSS$
|
|
17235
|
+
this.transitionEl.classList.remove(CSS$m.closingIdle, CSS$m.closingActive);
|
|
17038
17236
|
this.calciteModalClose.emit();
|
|
17039
17237
|
}
|
|
17040
17238
|
activeHandler(value) {
|
|
@@ -17044,11 +17242,11 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17044
17242
|
var _a, _b;
|
|
17045
17243
|
this.active = value;
|
|
17046
17244
|
if (value) {
|
|
17047
|
-
(_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS$
|
|
17245
|
+
(_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS$m.openingIdle);
|
|
17048
17246
|
this.openModal();
|
|
17049
17247
|
}
|
|
17050
17248
|
else {
|
|
17051
|
-
(_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS$
|
|
17249
|
+
(_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS$m.closingIdle);
|
|
17052
17250
|
this.close();
|
|
17053
17251
|
}
|
|
17054
17252
|
}
|
|
@@ -17057,14 +17255,15 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17057
17255
|
this.previousActiveElement = document.activeElement;
|
|
17058
17256
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
17059
17257
|
this.open = true;
|
|
17060
|
-
|
|
17061
|
-
const
|
|
17258
|
+
this.isOpen = true;
|
|
17259
|
+
const titleEl = getSlotted(this.el, SLOTS$d.header);
|
|
17260
|
+
const contentEl = getSlotted(this.el, SLOTS$d.content);
|
|
17062
17261
|
this.titleId = ensureId(titleEl);
|
|
17063
17262
|
this.contentId = ensureId(contentEl);
|
|
17064
|
-
document.documentElement.classList.add(CSS$
|
|
17263
|
+
document.documentElement.classList.add(CSS$m.overflowHidden);
|
|
17065
17264
|
}
|
|
17066
17265
|
removeOverflowHiddenClass() {
|
|
17067
|
-
document.documentElement.classList.remove(CSS$
|
|
17266
|
+
document.documentElement.classList.remove(CSS$m.overflowHidden);
|
|
17068
17267
|
}
|
|
17069
17268
|
get el() { return this; }
|
|
17070
17269
|
static get watchers() { return {
|
|
@@ -17074,16 +17273,16 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17074
17273
|
static get style() { return modalCss; }
|
|
17075
17274
|
};
|
|
17076
17275
|
|
|
17077
|
-
const TEXT$
|
|
17276
|
+
const TEXT$9 = {
|
|
17078
17277
|
close: "Close"
|
|
17079
17278
|
};
|
|
17080
|
-
const SLOTS$
|
|
17279
|
+
const SLOTS$c = {
|
|
17081
17280
|
title: "title",
|
|
17082
17281
|
message: "message",
|
|
17083
17282
|
link: "link",
|
|
17084
17283
|
actionsEnd: "actions-end"
|
|
17085
17284
|
};
|
|
17086
|
-
const CSS$
|
|
17285
|
+
const CSS$l = {
|
|
17087
17286
|
actionsEnd: "actions-end",
|
|
17088
17287
|
close: "notice-close",
|
|
17089
17288
|
container: "container",
|
|
@@ -17128,7 +17327,7 @@ const Notice = class extends HTMLElement$1 {
|
|
|
17128
17327
|
*
|
|
17129
17328
|
* @default "Close"
|
|
17130
17329
|
*/
|
|
17131
|
-
this.intlClose = TEXT$
|
|
17330
|
+
this.intlClose = TEXT$9.close;
|
|
17132
17331
|
/** Specifies the size of the component. */
|
|
17133
17332
|
this.scale = "m";
|
|
17134
17333
|
/** Specifies the width of the component. */
|
|
@@ -17185,9 +17384,9 @@ const Notice = class extends HTMLElement$1 {
|
|
|
17185
17384
|
}
|
|
17186
17385
|
render() {
|
|
17187
17386
|
const { el } = this;
|
|
17188
|
-
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
17189
|
-
const hasActionEnd = getSlotted(el, SLOTS$
|
|
17190
|
-
return (h("div", { class: CSS$
|
|
17387
|
+
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$l.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
17388
|
+
const hasActionEnd = getSlotted(el, SLOTS$c.actionsEnd);
|
|
17389
|
+
return (h("div", { class: CSS$l.container }, this.requestedIcon ? (h("div", { class: CSS$l.icon }, h("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: CSS$l.content }, h("slot", { name: SLOTS$c.title }), h("slot", { name: SLOTS$c.message }), h("slot", { name: SLOTS$c.link })), hasActionEnd ? (h("div", { class: CSS$l.actionsEnd }, h("slot", { name: SLOTS$c.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
17191
17390
|
}
|
|
17192
17391
|
//--------------------------------------------------------------------------
|
|
17193
17392
|
//
|
|
@@ -17396,7 +17595,7 @@ function unwatchGlobalAttributes(component) {
|
|
|
17396
17595
|
}
|
|
17397
17596
|
}
|
|
17398
17597
|
|
|
17399
|
-
const CSS$
|
|
17598
|
+
const CSS$k = {
|
|
17400
17599
|
page: "page",
|
|
17401
17600
|
selected: "is-selected",
|
|
17402
17601
|
previous: "previous",
|
|
@@ -17406,7 +17605,7 @@ const CSS$l = {
|
|
|
17406
17605
|
ellipsisStart: "ellipsis--start",
|
|
17407
17606
|
ellipsisEnd: "ellipsis--end"
|
|
17408
17607
|
};
|
|
17409
|
-
const TEXT$
|
|
17608
|
+
const TEXT$8 = {
|
|
17410
17609
|
nextLabel: "Next",
|
|
17411
17610
|
previousLabel: "Previous"
|
|
17412
17611
|
};
|
|
@@ -17437,13 +17636,13 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17437
17636
|
*
|
|
17438
17637
|
* @default "Next"
|
|
17439
17638
|
*/
|
|
17440
|
-
this.textLabelNext = TEXT$
|
|
17639
|
+
this.textLabelNext = TEXT$8.nextLabel;
|
|
17441
17640
|
/**
|
|
17442
17641
|
* Accessible name for the component's previous button.
|
|
17443
17642
|
*
|
|
17444
17643
|
* @default "Previous"
|
|
17445
17644
|
*/
|
|
17446
|
-
this.textLabelPrevious = TEXT$
|
|
17645
|
+
this.textLabelPrevious = TEXT$8.previousLabel;
|
|
17447
17646
|
/** Specifies the size of the component. */
|
|
17448
17647
|
this.scale = "m";
|
|
17449
17648
|
//--------------------------------------------------------------------------
|
|
@@ -17553,8 +17752,8 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17553
17752
|
const lang = this.globalAttributes["lang"] || document.documentElement.lang || "en";
|
|
17554
17753
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
17555
17754
|
return (h("button", { class: {
|
|
17556
|
-
[CSS$
|
|
17557
|
-
[CSS$
|
|
17755
|
+
[CSS$k.page]: true,
|
|
17756
|
+
[CSS$k.selected]: start === this.start
|
|
17558
17757
|
}, onClick: () => {
|
|
17559
17758
|
this.start = start;
|
|
17560
17759
|
this.emitUpdate();
|
|
@@ -17562,12 +17761,12 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17562
17761
|
}
|
|
17563
17762
|
renderLeftEllipsis() {
|
|
17564
17763
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
17565
|
-
return h("span", { class: `${CSS$
|
|
17764
|
+
return h("span", { class: `${CSS$k.ellipsis} ${CSS$k.ellipsisStart}` }, "\u2026");
|
|
17566
17765
|
}
|
|
17567
17766
|
}
|
|
17568
17767
|
renderRightEllipsis() {
|
|
17569
17768
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
17570
|
-
return h("span", { class: `${CSS$
|
|
17769
|
+
return h("span", { class: `${CSS$k.ellipsis} ${CSS$k.ellipsisEnd}` }, "\u2026");
|
|
17571
17770
|
}
|
|
17572
17771
|
}
|
|
17573
17772
|
render() {
|
|
@@ -17575,62 +17774,18 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17575
17774
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
17576
17775
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
17577
17776
|
return (h(Fragment, null, h("button", { "aria-label": this.textLabelPrevious, class: {
|
|
17578
|
-
[CSS$
|
|
17579
|
-
[CSS$
|
|
17777
|
+
[CSS$k.previous]: true,
|
|
17778
|
+
[CSS$k.disabled]: prevDisabled
|
|
17580
17779
|
}, disabled: prevDisabled, onClick: this.previousClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), h("button", { "aria-label": this.textLabelNext, class: {
|
|
17581
|
-
[CSS$
|
|
17582
|
-
[CSS$
|
|
17780
|
+
[CSS$k.next]: true,
|
|
17781
|
+
[CSS$k.disabled]: nextDisabled
|
|
17583
17782
|
}, disabled: nextDisabled, onClick: this.nextClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
17584
17783
|
}
|
|
17585
17784
|
get el() { return this; }
|
|
17586
17785
|
static get style() { return paginationCss; }
|
|
17587
17786
|
};
|
|
17588
17787
|
|
|
17589
|
-
const
|
|
17590
|
-
backButton: "back-button",
|
|
17591
|
-
container: "container",
|
|
17592
|
-
header: "header",
|
|
17593
|
-
heading: "heading",
|
|
17594
|
-
summary: "summary",
|
|
17595
|
-
description: "description",
|
|
17596
|
-
headerContent: "header-content",
|
|
17597
|
-
headerActions: "header-actions",
|
|
17598
|
-
headerActionsEnd: "header-actions--end",
|
|
17599
|
-
headerActionsStart: "header-actions--start",
|
|
17600
|
-
contentWrapper: "content-wrapper",
|
|
17601
|
-
contentContainer: "content-container",
|
|
17602
|
-
contentHeight: "content-height",
|
|
17603
|
-
fabContainer: "fab-container",
|
|
17604
|
-
footer: "footer",
|
|
17605
|
-
menuContainer: "menu-container",
|
|
17606
|
-
menuButton: "menu-button",
|
|
17607
|
-
menu: "menu",
|
|
17608
|
-
menuOpen: "menu--open"
|
|
17609
|
-
};
|
|
17610
|
-
const ICONS$5 = {
|
|
17611
|
-
close: "x",
|
|
17612
|
-
menu: "ellipsis",
|
|
17613
|
-
backLeft: "chevron-left",
|
|
17614
|
-
backRight: "chevron-right"
|
|
17615
|
-
};
|
|
17616
|
-
const SLOTS$c = {
|
|
17617
|
-
headerActionsStart: "header-actions-start",
|
|
17618
|
-
headerActionsEnd: "header-actions-end",
|
|
17619
|
-
headerMenuActions: "header-menu-actions",
|
|
17620
|
-
headerContent: "header-content",
|
|
17621
|
-
fab: "fab",
|
|
17622
|
-
footer: "footer",
|
|
17623
|
-
footerActions: "footer-actions"
|
|
17624
|
-
};
|
|
17625
|
-
const TEXT$8 = {
|
|
17626
|
-
back: "Back",
|
|
17627
|
-
close: "Close",
|
|
17628
|
-
open: "Open",
|
|
17629
|
-
options: "Options"
|
|
17630
|
-
};
|
|
17631
|
-
const HEADING_LEVEL$4 = 3;
|
|
17632
|
-
|
|
17633
|
-
const panelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);-webkit-transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-inline-size:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:-webkit-sticky;position:sticky;inset-block-end:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;inset-block-end:0px;inset-inline:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content}";
|
|
17788
|
+
const panelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);-webkit-transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end{-webkit-margin-start:auto;margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:-webkit-sticky;position:sticky;inset-block-end:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;inset-block-end:0px;inset-inline:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content}[hidden]{display:none}";
|
|
17634
17789
|
|
|
17635
17790
|
const Panel = class extends HTMLElement$1 {
|
|
17636
17791
|
constructor() {
|
|
@@ -17668,6 +17823,8 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17668
17823
|
this.closable = false;
|
|
17669
17824
|
/**
|
|
17670
17825
|
* When true, displays a back button in the header.
|
|
17826
|
+
*
|
|
17827
|
+
* @deprecated use `calcite-flow-item` instead.
|
|
17671
17828
|
*/
|
|
17672
17829
|
this.showBackButton = false;
|
|
17673
17830
|
/**
|
|
@@ -17679,6 +17836,13 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17679
17836
|
*/
|
|
17680
17837
|
this.menuOpen = false;
|
|
17681
17838
|
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
|
17839
|
+
this.hasStartActions = false;
|
|
17840
|
+
this.hasEndActions = false;
|
|
17841
|
+
this.hasMenuItems = false;
|
|
17842
|
+
this.hasHeaderContent = false;
|
|
17843
|
+
this.hasFooterContent = false;
|
|
17844
|
+
this.hasFooterActions = false;
|
|
17845
|
+
this.hasFab = false;
|
|
17682
17846
|
// --------------------------------------------------------------------------
|
|
17683
17847
|
//
|
|
17684
17848
|
// Private Methods
|
|
@@ -17718,6 +17882,48 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17718
17882
|
this.backButtonClick = () => {
|
|
17719
17883
|
this.calcitePanelBackClick.emit();
|
|
17720
17884
|
};
|
|
17885
|
+
this.handleHeaderActionsStartSlotChange = (event) => {
|
|
17886
|
+
const elements = event.target.assignedElements({
|
|
17887
|
+
flatten: true
|
|
17888
|
+
});
|
|
17889
|
+
this.hasStartActions = !!elements.length;
|
|
17890
|
+
};
|
|
17891
|
+
this.handleHeaderActionsEndSlotChange = (event) => {
|
|
17892
|
+
const elements = event.target.assignedElements({
|
|
17893
|
+
flatten: true
|
|
17894
|
+
});
|
|
17895
|
+
this.hasEndActions = !!elements.length;
|
|
17896
|
+
};
|
|
17897
|
+
this.handleHeaderMenuActionsSlotChange = (event) => {
|
|
17898
|
+
const elements = event.target.assignedElements({
|
|
17899
|
+
flatten: true
|
|
17900
|
+
});
|
|
17901
|
+
this.hasMenuItems = !!elements.length;
|
|
17902
|
+
};
|
|
17903
|
+
this.handleHeaderContentSlotChange = (event) => {
|
|
17904
|
+
const elements = event.target.assignedElements({
|
|
17905
|
+
flatten: true
|
|
17906
|
+
});
|
|
17907
|
+
this.hasHeaderContent = !!elements.length;
|
|
17908
|
+
};
|
|
17909
|
+
this.handleFooterSlotChange = (event) => {
|
|
17910
|
+
const elements = event.target.assignedElements({
|
|
17911
|
+
flatten: true
|
|
17912
|
+
});
|
|
17913
|
+
this.hasFooterContent = !!elements.length;
|
|
17914
|
+
};
|
|
17915
|
+
this.handleFooterActionsSlotChange = (event) => {
|
|
17916
|
+
const elements = event.target.assignedElements({
|
|
17917
|
+
flatten: true
|
|
17918
|
+
});
|
|
17919
|
+
this.hasFooterActions = !!elements.length;
|
|
17920
|
+
};
|
|
17921
|
+
this.handleFabSlotChange = (event) => {
|
|
17922
|
+
const elements = event.target.assignedElements({
|
|
17923
|
+
flatten: true
|
|
17924
|
+
});
|
|
17925
|
+
this.hasFab = !!elements.length;
|
|
17926
|
+
};
|
|
17721
17927
|
this.setPanelScrollEl = (el) => {
|
|
17722
17928
|
var _a, _b;
|
|
17723
17929
|
this.panelScrollEl = el;
|
|
@@ -17755,7 +17961,6 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17755
17961
|
//
|
|
17756
17962
|
// --------------------------------------------------------------------------
|
|
17757
17963
|
connectedCallback() {
|
|
17758
|
-
connectConditionalSlotComponent(this);
|
|
17759
17964
|
const isClosed = this.dismissed || this.closed;
|
|
17760
17965
|
const isClosable = this.dismissible || this.closable;
|
|
17761
17966
|
if (isClosed) {
|
|
@@ -17769,7 +17974,6 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17769
17974
|
}
|
|
17770
17975
|
disconnectedCallback() {
|
|
17771
17976
|
var _a;
|
|
17772
|
-
disconnectConditionalSlotComponent(this);
|
|
17773
17977
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
17774
17978
|
}
|
|
17775
17979
|
// --------------------------------------------------------------------------
|
|
@@ -17783,16 +17987,24 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17783
17987
|
* @param focusId
|
|
17784
17988
|
*/
|
|
17785
17989
|
async setFocus(focusId) {
|
|
17786
|
-
|
|
17990
|
+
const { backButtonEl, closeButtonEl, containerEl } = this;
|
|
17991
|
+
if (focusId === "back-button") {
|
|
17992
|
+
backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
|
|
17993
|
+
return;
|
|
17994
|
+
}
|
|
17787
17995
|
if (focusId === "dismiss-button") {
|
|
17788
|
-
|
|
17996
|
+
closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
|
|
17789
17997
|
return;
|
|
17790
17998
|
}
|
|
17791
|
-
if (
|
|
17792
|
-
|
|
17999
|
+
if (backButtonEl) {
|
|
18000
|
+
backButtonEl.setFocus();
|
|
17793
18001
|
return;
|
|
17794
18002
|
}
|
|
17795
|
-
(
|
|
18003
|
+
if (closeButtonEl) {
|
|
18004
|
+
closeButtonEl.setFocus();
|
|
18005
|
+
return;
|
|
18006
|
+
}
|
|
18007
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
17796
18008
|
}
|
|
17797
18009
|
/**
|
|
17798
18010
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -17820,75 +18032,68 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17820
18032
|
const { el } = this;
|
|
17821
18033
|
const rtl = getElementDir(el) === "rtl";
|
|
17822
18034
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
17823
|
-
const label = intlBack || TEXT$
|
|
17824
|
-
const icon = rtl ? ICONS$
|
|
17825
|
-
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$
|
|
18035
|
+
const label = intlBack || TEXT$f.back;
|
|
18036
|
+
const icon = rtl ? ICONS$7.backRight : ICONS$7.backLeft;
|
|
18037
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$y.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$i.headerActionsStart, text: label })) : null;
|
|
17826
18038
|
}
|
|
17827
18039
|
renderHeaderContent() {
|
|
17828
|
-
const { heading, headingLevel, summary, description } = this;
|
|
17829
|
-
const headingNode = heading ? (h(Heading, { class: CSS$
|
|
17830
|
-
const descriptionNode = description || summary ? h("span", { class: CSS$
|
|
17831
|
-
return headingNode || descriptionNode ? (h("div", { class: CSS$
|
|
18040
|
+
const { heading, headingLevel, summary, description, hasHeaderContent } = this;
|
|
18041
|
+
const headingNode = heading ? (h(Heading, { class: CSS$y.heading, level: headingLevel || HEADING_LEVEL$5 }, heading)) : null;
|
|
18042
|
+
const descriptionNode = description || summary ? h("span", { class: CSS$y.description }, description || summary) : null;
|
|
18043
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (h("div", { class: CSS$y.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
17832
18044
|
}
|
|
17833
18045
|
/**
|
|
17834
18046
|
* Allows user to override the entire header-content node.
|
|
17835
18047
|
*/
|
|
17836
18048
|
renderHeaderSlottedContent() {
|
|
17837
|
-
return (h("div", { class: CSS$
|
|
18049
|
+
return (h("div", { class: CSS$y.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$i.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
17838
18050
|
}
|
|
17839
18051
|
renderHeaderStartActions() {
|
|
17840
|
-
const {
|
|
17841
|
-
|
|
17842
|
-
return hasStartActions ? (h("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, h("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
18052
|
+
const { hasStartActions } = this;
|
|
18053
|
+
return (h("div", { class: { [CSS$y.headerActionsStart]: true, [CSS$y.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, h("slot", { name: SLOTS$i.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
17843
18054
|
}
|
|
17844
18055
|
renderHeaderActionsEnd() {
|
|
17845
|
-
const { close,
|
|
17846
|
-
const text = intlClose || TEXT$
|
|
17847
|
-
const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS$
|
|
17848
|
-
const slotNode = h("slot", { name: SLOTS$
|
|
17849
|
-
const
|
|
17850
|
-
return
|
|
18056
|
+
const { close, hasEndActions, intlClose, closable } = this;
|
|
18057
|
+
const text = intlClose || TEXT$f.close;
|
|
18058
|
+
const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS$7.close, onClick: close, ref: this.setCloseRef, text: text })) : null;
|
|
18059
|
+
const slotNode = (h("slot", { name: SLOTS$i.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
18060
|
+
const showContainer = hasEndActions || closableNode;
|
|
18061
|
+
return (h("div", { class: { [CSS$y.headerActionsEnd]: true, [CSS$y.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
|
|
17851
18062
|
}
|
|
17852
18063
|
renderMenu() {
|
|
17853
|
-
const {
|
|
17854
|
-
|
|
17855
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$r.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
18064
|
+
const { hasMenuItems, intlOptions, menuOpen } = this;
|
|
18065
|
+
return (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT$f.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$7.menu, slot: SLOTS$s.trigger, text: intlOptions || TEXT$f.options }), h("slot", { name: SLOTS$i.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
17856
18066
|
}
|
|
17857
18067
|
renderHeaderNode() {
|
|
17858
|
-
const {
|
|
17859
|
-
const
|
|
17860
|
-
const
|
|
17861
|
-
|
|
17862
|
-
? this.renderHeaderSlottedContent()
|
|
17863
|
-
: this.renderHeaderContent();
|
|
17864
|
-
const actionsNodeStart = this.renderHeaderStartActions();
|
|
17865
|
-
const actionsNodeEnd = this.renderHeaderActionsEnd();
|
|
17866
|
-
const headerMenuNode = this.renderMenu();
|
|
17867
|
-
return actionsNodeStart ||
|
|
18068
|
+
const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
|
|
18069
|
+
const headerContentNode = this.renderHeaderContent();
|
|
18070
|
+
const showHeader = showBackButton ||
|
|
18071
|
+
hasHeaderContent ||
|
|
17868
18072
|
headerContentNode ||
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
|
|
18073
|
+
hasStartActions ||
|
|
18074
|
+
hasEndActions ||
|
|
18075
|
+
closable ||
|
|
18076
|
+
hasMenuItems;
|
|
18077
|
+
return (h("header", { class: CSS$y.header, hidden: !showHeader }, this.renderBackButton(), this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu()));
|
|
17872
18078
|
}
|
|
17873
18079
|
renderFooterNode() {
|
|
17874
|
-
const {
|
|
17875
|
-
const
|
|
17876
|
-
|
|
17877
|
-
return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS$k.footer, key: "footer" }, hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS$c.footer }) : null, hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS$c.footerActions }) : null)) : null;
|
|
18080
|
+
const { hasFooterContent, hasFooterActions } = this;
|
|
18081
|
+
const showFooter = hasFooterContent || hasFooterActions;
|
|
18082
|
+
return (h("footer", { class: CSS$y.footer, hidden: !showFooter, key: "footer" }, h("slot", { key: "footer-slot", name: SLOTS$i.footer, onSlotchange: this.handleFooterSlotChange }), h("slot", { key: "footer-actions-slot", name: SLOTS$i.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
17878
18083
|
}
|
|
17879
18084
|
renderContent() {
|
|
17880
|
-
const {
|
|
17881
|
-
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
18085
|
+
const { hasFab } = this;
|
|
17882
18086
|
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
17883
18087
|
const contentWrapperKey = "content-wrapper";
|
|
17884
|
-
|
|
18088
|
+
const containerNode = hasFab ? (h("section", { class: CSS$y.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
|
|
18089
|
+
return (h("div", { class: { [CSS$y.contentWrapper]: true, [CSS$y.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
|
|
17885
18090
|
}
|
|
17886
18091
|
renderFab() {
|
|
17887
|
-
return (h("div", { class: CSS$
|
|
18092
|
+
return (h("div", { class: CSS$y.fabContainer, hidden: !this.hasFab }, h("slot", { name: SLOTS$i.fab, onSlotchange: this.handleFabSlotChange })));
|
|
17888
18093
|
}
|
|
17889
18094
|
render() {
|
|
17890
18095
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
17891
|
-
const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
18096
|
+
const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$y.container, hidden: closed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: closable ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
17892
18097
|
return (h(Fragment, null, loading ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
17893
18098
|
}
|
|
17894
18099
|
get el() { return this; }
|
|
@@ -24438,7 +24643,7 @@ const CSS$7 = {
|
|
|
24438
24643
|
widthFull: "width-full"
|
|
24439
24644
|
};
|
|
24440
24645
|
|
|
24441
|
-
const splitButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block}:host .split-button__container{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .split-button__container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}:host
|
|
24646
|
+
const splitButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block}:host .split-button__container{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .split-button__container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}:host:host([color=blue]){--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host:host([color=red]){--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host:host([color=neutral]){--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}:host:host([color=inverse]){--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=transparent]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=transparent]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=transparent]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=transparent]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=clear]),:host([appearance=transparent]){--calcite-split-button-background:transparent}:host([appearance=outline]){--calcite-split-button-background:var(--calcite-ui-foreground-1)}:host([appearance=clear]):host([color=blue]),:host([appearance=outline]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=clear]):host([color=red]),:host([appearance=outline]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=clear]):host([color=neutral]),:host([appearance=outline]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-foreground-3)}:host([appearance=clear]):host([color=inverse]),:host([appearance=outline]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-inverse)}.width-auto{inline-size:auto}.width-half{inline-size:50%}.width-full{inline-size:100%}.split-button__divider-container{display:-ms-flexbox;display:flex;inline-size:1px;-ms-flex-align:stretch;align-items:stretch;-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;background-color:var(--calcite-split-button-background)}.split-button__divider{margin-block:0.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-split-button-divider)}:host([appearance=outline]) .split-button__divider-container,:host([appearance=clear]) .split-button__divider-container,:host([appearance=minimal]) .split-button__divider-container{border-block:1px solid var(--calcite-split-button-divider)}:host([appearance=outline]):hover .split-button__divider-container,:host([appearance=clear]):hover .split-button__divider-container,:host([appearance=minimal]):hover .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:hover) .split-button__divider-container,:host([appearance=clear]:hover) .split-button__divider-container,:host([appearance=minimal]):hover .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:focus-within):host([color=blue]),:host([appearance=clear]:focus-within):host([color=blue]),:host([appearance=minimal]:focus-within):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}:host([appearance=outline]:focus-within):host([color=red]),:host([appearance=clear]:focus-within):host([color=red]),:host([appearance=minimal]:focus-within):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}:host([appearance=outline]:focus-within) .split-button__divider-container,:host([appearance=clear]:focus-within) .split-button__divider-container,:host([appearance=minimal]:focus-within) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([disabled]) .split-button__divider-container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";
|
|
24442
24647
|
|
|
24443
24648
|
const SplitButton = class extends HTMLElement$1 {
|
|
24444
24649
|
constructor() {
|
|
@@ -25051,13 +25256,17 @@ const Tab = class extends HTMLElement$1 {
|
|
|
25051
25256
|
this.__attachShadow();
|
|
25052
25257
|
this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 6);
|
|
25053
25258
|
/**
|
|
25054
|
-
*
|
|
25259
|
+
* When true, the component's contents are selected.
|
|
25055
25260
|
*
|
|
25056
|
-
*
|
|
25261
|
+
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
25262
|
+
*
|
|
25263
|
+
* @deprecated Use "selected" instead.
|
|
25057
25264
|
*/
|
|
25058
25265
|
this.active = false;
|
|
25059
25266
|
/**
|
|
25060
|
-
* When true,
|
|
25267
|
+
* When true, the component's contents are selected.
|
|
25268
|
+
*
|
|
25269
|
+
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
25061
25270
|
*/
|
|
25062
25271
|
this.selected = false;
|
|
25063
25272
|
/**
|
|
@@ -25134,7 +25343,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
25134
25343
|
//
|
|
25135
25344
|
//--------------------------------------------------------------------------
|
|
25136
25345
|
/**
|
|
25137
|
-
*
|
|
25346
|
+
* Returns the index of the component item within the tab array.
|
|
25138
25347
|
*/
|
|
25139
25348
|
async getTabIndex() {
|
|
25140
25349
|
return Array.prototype.indexOf.call(nodeListToArray(this.el.parentElement.children).filter((el) => el.matches("calcite-tab")), this.el);
|
|
@@ -25381,16 +25590,20 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
25381
25590
|
//
|
|
25382
25591
|
//--------------------------------------------------------------------------
|
|
25383
25592
|
/**
|
|
25384
|
-
*
|
|
25593
|
+
* When true, the component and its respective `calcite-tab` contents are selected.
|
|
25385
25594
|
*
|
|
25386
|
-
*
|
|
25595
|
+
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
25596
|
+
*
|
|
25597
|
+
* @deprecated Use "selected" instead.
|
|
25387
25598
|
*/
|
|
25388
25599
|
this.active = false;
|
|
25389
25600
|
/**
|
|
25390
|
-
* When true,
|
|
25601
|
+
* When true, the component and its respective `calcite-tab` contents are selected.
|
|
25602
|
+
*
|
|
25603
|
+
* Only one tab can be selected within the `calcite-tabs` parent.
|
|
25391
25604
|
*/
|
|
25392
25605
|
this.selected = false;
|
|
25393
|
-
/**
|
|
25606
|
+
/** When true, interaction is prevented and the component is displayed with lower opacity. */
|
|
25394
25607
|
this.disabled = false;
|
|
25395
25608
|
/**
|
|
25396
25609
|
* @internal
|
|
@@ -25537,7 +25750,7 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
25537
25750
|
//
|
|
25538
25751
|
//--------------------------------------------------------------------------
|
|
25539
25752
|
/**
|
|
25540
|
-
*
|
|
25753
|
+
* Returns the index of the title within the `calcite-tab-nav`.
|
|
25541
25754
|
*/
|
|
25542
25755
|
async getTabIndex() {
|
|
25543
25756
|
return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"), this.el);
|
|
@@ -25598,20 +25811,20 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
25598
25811
|
//
|
|
25599
25812
|
//--------------------------------------------------------------------------
|
|
25600
25813
|
/**
|
|
25601
|
-
*
|
|
25814
|
+
* Specifies the layout of the `calcite-tab-nav`, justifying the `calcite-tab-title`s to the start ("inline"), or across and centered ("center").
|
|
25602
25815
|
*/
|
|
25603
25816
|
this.layout = "inline";
|
|
25604
25817
|
/**
|
|
25605
|
-
*
|
|
25818
|
+
* Specifies the position of the component in relation to the `calcite-tab`s. The "above" and "below" values are deprecated.
|
|
25606
25819
|
*
|
|
25607
25820
|
*/
|
|
25608
25821
|
this.position = "top";
|
|
25609
25822
|
/**
|
|
25610
|
-
*
|
|
25823
|
+
* Specifies the size of the component.
|
|
25611
25824
|
*/
|
|
25612
25825
|
this.scale = "m";
|
|
25613
25826
|
/**
|
|
25614
|
-
*
|
|
25827
|
+
* When true and layout is set to "inline", the component will display with a folder style menu.
|
|
25615
25828
|
*/
|
|
25616
25829
|
this.bordered = false;
|
|
25617
25830
|
//--------------------------------------------------------------------------
|
|
@@ -25757,21 +25970,27 @@ const Tile = class extends HTMLElement$1 {
|
|
|
25757
25970
|
// Properties
|
|
25758
25971
|
//
|
|
25759
25972
|
//--------------------------------------------------------------------------
|
|
25760
|
-
/**
|
|
25973
|
+
/**
|
|
25974
|
+
* When true, the component is active.
|
|
25975
|
+
*/
|
|
25761
25976
|
this.active = false;
|
|
25762
25977
|
/**
|
|
25763
|
-
* When true,
|
|
25978
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
25764
25979
|
*/
|
|
25765
25980
|
this.disabled = false;
|
|
25766
|
-
/**
|
|
25981
|
+
/**
|
|
25982
|
+
* The component's embed mode.
|
|
25983
|
+
*
|
|
25984
|
+
* When true, renders without a border and padding for use by other components.
|
|
25985
|
+
*/
|
|
25767
25986
|
this.embed = false;
|
|
25768
25987
|
/**
|
|
25769
|
-
* The focused state of the
|
|
25988
|
+
* The focused state of the component.
|
|
25770
25989
|
*
|
|
25771
25990
|
* @internal
|
|
25772
25991
|
*/
|
|
25773
25992
|
this.focused = false;
|
|
25774
|
-
/**
|
|
25993
|
+
/** When true, the component is not displayed and is not focusable. */
|
|
25775
25994
|
this.hidden = false;
|
|
25776
25995
|
}
|
|
25777
25996
|
// --------------------------------------------------------------------------
|
|
@@ -25841,19 +26060,23 @@ const TileSelect = class extends HTMLElement$1 {
|
|
|
25841
26060
|
// Properties
|
|
25842
26061
|
//
|
|
25843
26062
|
//--------------------------------------------------------------------------
|
|
25844
|
-
/**
|
|
26063
|
+
/** When true, the component is checked. */
|
|
25845
26064
|
this.checked = false;
|
|
25846
|
-
/**
|
|
26065
|
+
/** When true, interaction is prevented and the component is displayed with lower opacity. */
|
|
25847
26066
|
this.disabled = false;
|
|
25848
|
-
/**
|
|
26067
|
+
/** When true, the component is not displayed and is not focusable or checkable. */
|
|
25849
26068
|
this.hidden = false;
|
|
25850
|
-
/**
|
|
26069
|
+
/** When true, displays an interactive input based on the "type" property. */
|
|
25851
26070
|
this.inputEnabled = false;
|
|
25852
|
-
/**
|
|
26071
|
+
/** When inputEnabled is true, the placement of the interactive input on the component. */
|
|
25853
26072
|
this.inputAlignment = "start";
|
|
25854
|
-
/**
|
|
26073
|
+
/**
|
|
26074
|
+
* The selection mode of the component.
|
|
26075
|
+
*
|
|
26076
|
+
* Use radio for single selection, and checkbox for multiple selections.
|
|
26077
|
+
*/
|
|
25855
26078
|
this.type = "radio";
|
|
25856
|
-
/**
|
|
26079
|
+
/** Specifies the width of the component. */
|
|
25857
26080
|
this.width = "auto";
|
|
25858
26081
|
this.guid = `calcite-tile-select-${guid()}`;
|
|
25859
26082
|
//--------------------------------------------------------------------------
|
|
@@ -26020,9 +26243,13 @@ const TileSelectGroup = class extends HTMLElement$1 {
|
|
|
26020
26243
|
// Properties
|
|
26021
26244
|
//
|
|
26022
26245
|
//--------------------------------------------------------------------------
|
|
26023
|
-
/**
|
|
26246
|
+
/** When true, interaction is prevented and the component is displayed with lower opacity. */
|
|
26024
26247
|
this.disabled = false;
|
|
26025
|
-
/**
|
|
26248
|
+
/**
|
|
26249
|
+
* Defines the layout of the component.
|
|
26250
|
+
*
|
|
26251
|
+
* Use "horizontal" for rows, and "vertical" for a single column.
|
|
26252
|
+
*/
|
|
26026
26253
|
this.layout = "horizontal";
|
|
26027
26254
|
}
|
|
26028
26255
|
//--------------------------------------------------------------------------
|
|
@@ -26103,88 +26330,88 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
26103
26330
|
//
|
|
26104
26331
|
//--------------------------------------------------------------------------
|
|
26105
26332
|
/**
|
|
26106
|
-
*
|
|
26333
|
+
* Accessible name for the component's hour input.
|
|
26107
26334
|
*
|
|
26108
26335
|
* @default "Hour"
|
|
26109
26336
|
*/
|
|
26110
26337
|
this.intlHour = TEXT$2.hour;
|
|
26111
26338
|
/**
|
|
26112
|
-
*
|
|
26339
|
+
* Accessible name for the component's hour down button.
|
|
26113
26340
|
*
|
|
26114
26341
|
* @default "Decrease hour"
|
|
26115
26342
|
*/
|
|
26116
26343
|
this.intlHourDown = TEXT$2.hourDown;
|
|
26117
26344
|
/**
|
|
26118
|
-
*
|
|
26345
|
+
* Accessible name for the component's hour up button.
|
|
26119
26346
|
*
|
|
26120
26347
|
* @default "Increase hour"
|
|
26121
26348
|
*/
|
|
26122
26349
|
this.intlHourUp = TEXT$2.hourUp;
|
|
26123
26350
|
/**
|
|
26124
|
-
*
|
|
26351
|
+
* Accessible name for the component's meridiem (AM/PM) input.
|
|
26125
26352
|
*
|
|
26126
26353
|
* @default "AM/PM"
|
|
26127
26354
|
*/
|
|
26128
26355
|
this.intlMeridiem = TEXT$2.meridiem;
|
|
26129
26356
|
/**
|
|
26130
|
-
*
|
|
26357
|
+
* Accessible name for the component's meridiem (AM/PM) down button.
|
|
26131
26358
|
*
|
|
26132
26359
|
* @default "Decrease AM/PM"
|
|
26133
26360
|
*/
|
|
26134
26361
|
this.intlMeridiemDown = TEXT$2.meridiemDown;
|
|
26135
26362
|
/**
|
|
26136
|
-
*
|
|
26363
|
+
* Accessible name for the component's meridiem (AM/PM) up button.
|
|
26137
26364
|
*
|
|
26138
26365
|
* @default "Increase AM/PM"
|
|
26139
26366
|
*/
|
|
26140
26367
|
this.intlMeridiemUp = TEXT$2.meridiemUp;
|
|
26141
26368
|
/**
|
|
26142
|
-
*
|
|
26369
|
+
* Accessible name for the component's minute input.
|
|
26143
26370
|
*
|
|
26144
26371
|
* @default "Minute"
|
|
26145
26372
|
*/
|
|
26146
26373
|
this.intlMinute = TEXT$2.minute;
|
|
26147
26374
|
/**
|
|
26148
|
-
*
|
|
26375
|
+
* Accessible name for the component's minute down button.
|
|
26149
26376
|
*
|
|
26150
26377
|
* @default "Decrease minute"
|
|
26151
26378
|
*/
|
|
26152
26379
|
this.intlMinuteDown = TEXT$2.minuteDown;
|
|
26153
26380
|
/**
|
|
26154
|
-
*
|
|
26381
|
+
* Accessible name for the component's minute up button.
|
|
26155
26382
|
*
|
|
26156
26383
|
* @default "Increase minute"
|
|
26157
26384
|
*/
|
|
26158
26385
|
this.intlMinuteUp = TEXT$2.minuteUp;
|
|
26159
26386
|
/**
|
|
26160
|
-
*
|
|
26387
|
+
* Accessible name for the component's second input.
|
|
26161
26388
|
*
|
|
26162
26389
|
* @default "Second"
|
|
26163
26390
|
*/
|
|
26164
26391
|
this.intlSecond = TEXT$2.second;
|
|
26165
26392
|
/**
|
|
26166
|
-
*
|
|
26393
|
+
* Accessible name for the component's second down button.
|
|
26167
26394
|
*
|
|
26168
26395
|
* @default "Decrease second"
|
|
26169
26396
|
*/
|
|
26170
26397
|
this.intlSecondDown = TEXT$2.secondDown;
|
|
26171
26398
|
/**
|
|
26172
|
-
*
|
|
26399
|
+
* Accessible name for the component's second up button.
|
|
26173
26400
|
*
|
|
26174
26401
|
* @default "Increase second"
|
|
26175
26402
|
*/
|
|
26176
26403
|
this.intlSecondUp = TEXT$2.secondUp;
|
|
26177
26404
|
/**
|
|
26178
|
-
* BCP 47 language tag for desired language and country format
|
|
26405
|
+
* BCP 47 language tag for desired language and country format.
|
|
26179
26406
|
*
|
|
26180
26407
|
* @internal
|
|
26181
26408
|
*/
|
|
26182
26409
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
26183
|
-
/**
|
|
26410
|
+
/** Specifies the size of the component. */
|
|
26184
26411
|
this.scale = "m";
|
|
26185
|
-
/**
|
|
26412
|
+
/** Specifies the granularity the "value" must adhere to (in seconds). */
|
|
26186
26413
|
this.step = 60;
|
|
26187
|
-
/** The
|
|
26414
|
+
/** The component's value in UTC (always 24-hour format). */
|
|
26188
26415
|
this.value = null;
|
|
26189
26416
|
this.showSecond = this.step < 60;
|
|
26190
26417
|
this.decrementHour = () => {
|
|
@@ -26766,15 +26993,17 @@ const Tip = class extends HTMLElement$1 {
|
|
|
26766
26993
|
//
|
|
26767
26994
|
// --------------------------------------------------------------------------
|
|
26768
26995
|
/**
|
|
26769
|
-
*
|
|
26996
|
+
* When true, the component does not display.
|
|
26770
26997
|
*/
|
|
26771
26998
|
this.dismissed = false;
|
|
26772
26999
|
/**
|
|
26773
|
-
*
|
|
27000
|
+
* When true, the close button is not present on the component.
|
|
26774
27001
|
*/
|
|
26775
27002
|
this.nonDismissible = false;
|
|
26776
27003
|
/**
|
|
26777
|
-
*
|
|
27004
|
+
* When true and if it has a parent `calcite-tip-manager`, the component is selected.
|
|
27005
|
+
*
|
|
27006
|
+
* Only one tip can be selected within the `calcite-tip-manager` parent.
|
|
26778
27007
|
*/
|
|
26779
27008
|
this.selected = false;
|
|
26780
27009
|
// --------------------------------------------------------------------------
|
|
@@ -26862,7 +27091,7 @@ const TipManager = class extends HTMLElement$1 {
|
|
|
26862
27091
|
//
|
|
26863
27092
|
// --------------------------------------------------------------------------
|
|
26864
27093
|
/**
|
|
26865
|
-
*
|
|
27094
|
+
* When true, does not display or position the component.
|
|
26866
27095
|
*/
|
|
26867
27096
|
this.closed = false;
|
|
26868
27097
|
this.mutationObserver = createObserver("mutation", () => this.setUpTips());
|
|
@@ -26931,13 +27160,13 @@ const TipManager = class extends HTMLElement$1 {
|
|
|
26931
27160
|
// Public Methods
|
|
26932
27161
|
//
|
|
26933
27162
|
// --------------------------------------------------------------------------
|
|
26934
|
-
/** Selects the next tip to display */
|
|
27163
|
+
/** Selects the next `calcite-tip` to display. */
|
|
26935
27164
|
async nextTip() {
|
|
26936
27165
|
this.direction = "advancing";
|
|
26937
27166
|
const nextIndex = this.selectedIndex + 1;
|
|
26938
27167
|
this.selectedIndex = (nextIndex + this.total) % this.total;
|
|
26939
27168
|
}
|
|
26940
|
-
/** Selects the previous tip to display */
|
|
27169
|
+
/** Selects the previous `calcite-tip` to display. */
|
|
26941
27170
|
async previousTip() {
|
|
26942
27171
|
this.direction = "retreating";
|
|
26943
27172
|
const previousIndex = this.selectedIndex - 1;
|
|
@@ -28308,7 +28537,8 @@ const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(DropdownGroup, [1,"
|
|
|
28308
28537
|
const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(DropdownItem, [1,"calcite-dropdown-item",{"active":[1540],"selected":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteInternalDropdownItemChange","updateActiveItemOnChange"]]]);
|
|
28309
28538
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(Fab, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
28310
28539
|
const CalciteFilter = /*@__PURE__*/proxyCustomElement(Filter, [1,"calcite-filter",{"items":[1040],"disabled":[516],"filteredItems":[1040],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"scale":[513],"value":[1025]}]);
|
|
28311
|
-
const CalciteFlow = /*@__PURE__*/proxyCustomElement(Flow, [1,"calcite-flow",{"
|
|
28540
|
+
const CalciteFlow = /*@__PURE__*/proxyCustomElement(Flow, [1,"calcite-flow",{"flowDirection":[32],"itemCount":[32],"items":[32]},[[0,"calciteFlowItemBackClick","handleItemBackClick"],[0,"calcitePanelBackClick","handleItemBackClick"]]]);
|
|
28541
|
+
const CalciteFlowItem = /*@__PURE__*/proxyCustomElement(FlowItem, [1,"calcite-flow-item",{"closable":[1540],"closed":[1540],"beforeBack":[16],"description":[1],"disabled":[516],"heading":[1],"headingLevel":[2,"heading-level"],"heightScale":[513,"height-scale"],"intlBack":[1,"intl-back"],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"loading":[516],"menuOpen":[516,"menu-open"],"showBackButton":[516,"show-back-button"],"widthScale":[513,"width-scale"]}]);
|
|
28312
28542
|
const CalciteGraph = /*@__PURE__*/proxyCustomElement(Graph, [1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
28313
28543
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
28314
28544
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
@@ -28318,19 +28548,19 @@ const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker,
|
|
|
28318
28548
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
28319
28549
|
const CalciteInputNumber = /*@__PURE__*/proxyCustomElement(InputNumber, [1,"calcite-input-number",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"numberingSystem":[1,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"localizedValue":[32]}]);
|
|
28320
28550
|
const CalciteInputText = /*@__PURE__*/proxyCustomElement(InputText, [1,"calcite-input-text",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025]}]);
|
|
28321
|
-
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"readOnly":[4,"read-only"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
28551
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"open":[1540],"disabled":[516],"readOnly":[4,"read-only"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
28322
28552
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disabled":[516],"disableSpacing":[4,"disable-spacing"]}]);
|
|
28323
28553
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
28324
28554
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
28325
28555
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(ListItem, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
28326
28556
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(ListItemGroup, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|
|
28327
28557
|
const CalciteLoader = /*@__PURE__*/proxyCustomElement(Loader, [1,"calcite-loader",{"active":[516],"inline":[516],"label":[1],"scale":[513],"type":[513],"value":[2],"text":[1],"noPadding":[4,"no-padding"]}]);
|
|
28328
|
-
const CalciteModal = /*@__PURE__*/proxyCustomElement(Modal, [1,"calcite-modal",{"active":[1540],"open":[1540],"beforeClose":[16],"disableCloseButton":[4,"disable-close-button"],"disableOutsideClose":[4,"disable-outside-close"],"intlClose":[1,"intl-close"],"docked":[516],"disableEscape":[4,"disable-escape"],"scale":[513],"width":[520],"fullscreen":[516],"color":[513],"backgroundColor":[513,"background-color"],"noPadding":[4,"no-padding"],"hasFooter":[32]},[[8,"keydown","handleEscape"]]]);
|
|
28558
|
+
const CalciteModal = /*@__PURE__*/proxyCustomElement(Modal, [1,"calcite-modal",{"active":[1540],"open":[1540],"beforeClose":[16],"disableCloseButton":[4,"disable-close-button"],"disableOutsideClose":[4,"disable-outside-close"],"intlClose":[1,"intl-close"],"docked":[516],"disableEscape":[4,"disable-escape"],"scale":[513],"width":[520],"fullscreen":[516],"color":[513],"backgroundColor":[513,"background-color"],"noPadding":[4,"no-padding"],"hasFooter":[32],"isOpen":[32]},[[8,"keydown","handleEscape"]]]);
|
|
28329
28559
|
const CalciteNotice = /*@__PURE__*/proxyCustomElement(Notice, [1,"calcite-notice",{"active":[1540],"open":[1540],"color":[513],"dismissible":[516],"closable":[516],"icon":[520],"intlClose":[1,"intl-close"],"scale":[513],"width":[513]}]);
|
|
28330
28560
|
const CalciteOption = /*@__PURE__*/proxyCustomElement(Option, [1,"calcite-option",{"disabled":[516],"label":[1025],"selected":[516],"value":[1032]}]);
|
|
28331
28561
|
const CalciteOptionGroup = /*@__PURE__*/proxyCustomElement(OptionGroup, [1,"calcite-option-group",{"disabled":[516],"label":[1]}]);
|
|
28332
28562
|
const CalcitePagination = /*@__PURE__*/proxyCustomElement(Pagination, [1,"calcite-pagination",{"num":[2],"start":[1026],"total":[2],"textLabelNext":[1,"text-label-next"],"textLabelPrevious":[1,"text-label-previous"],"scale":[513],"globalAttributes":[32]}]);
|
|
28333
|
-
const CalcitePanel = /*@__PURE__*/proxyCustomElement(Panel, [1,"calcite-panel",{"dismissed":[1540],"closed":[1540],"beforeBack":[16],"disabled":[516],"dismissible":[1540],"closable":[1540],"headingLevel":[2,"heading-level"],"showBackButton":[516,"show-back-button"],"intlBack":[1,"intl-back"],"heightScale":[513,"height-scale"],"widthScale":[513,"width-scale"],"loading":[516],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"heading":[1],"summary":[1],"description":[1],"menuOpen":[516,"menu-open"]}]);
|
|
28563
|
+
const CalcitePanel = /*@__PURE__*/proxyCustomElement(Panel, [1,"calcite-panel",{"dismissed":[1540],"closed":[1540],"beforeBack":[16],"disabled":[516],"dismissible":[1540],"closable":[1540],"headingLevel":[2,"heading-level"],"showBackButton":[516,"show-back-button"],"intlBack":[1,"intl-back"],"heightScale":[513,"height-scale"],"widthScale":[513,"width-scale"],"loading":[516],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"heading":[1],"summary":[1],"description":[1],"menuOpen":[516,"menu-open"],"hasStartActions":[32],"hasEndActions":[32],"hasMenuItems":[32],"hasHeaderContent":[32],"hasFooterContent":[32],"hasFooterActions":[32],"hasFab":[32]}]);
|
|
28334
28564
|
const CalcitePickList = /*@__PURE__*/proxyCustomElement(PickList, [1,"calcite-pick-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"headingLevel":[2,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]]);
|
|
28335
28565
|
const CalcitePickListGroup = /*@__PURE__*/proxyCustomElement(PickListGroup, [1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[2,"heading-level"]}]);
|
|
28336
28566
|
const CalcitePickListItem = /*@__PURE__*/proxyCustomElement(PickListItem, [1,"calcite-pick-list-item",{"description":[513],"disabled":[516],"disableDeselect":[4,"disable-deselect"],"nonInteractive":[516,"non-interactive"],"icon":[513],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"intlRemove":[513,"intl-remove"],"value":[8]}]);
|
|
@@ -28404,6 +28634,7 @@ const defineCustomElements = (opts) => {
|
|
|
28404
28634
|
CalciteFab,
|
|
28405
28635
|
CalciteFilter,
|
|
28406
28636
|
CalciteFlow,
|
|
28637
|
+
CalciteFlowItem,
|
|
28407
28638
|
CalciteGraph,
|
|
28408
28639
|
CalciteHandle,
|
|
28409
28640
|
CalciteIcon,
|
|
@@ -28473,4 +28704,4 @@ const defineCustomElements = (opts) => {
|
|
|
28473
28704
|
}
|
|
28474
28705
|
};
|
|
28475
28706
|
|
|
28476
|
-
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputText, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|
|
28707
|
+
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteFlowItem, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputText, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|