@esri/calcite-components 1.0.0-next.571 → 1.0.0-next.574
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 +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-8fca8432.entry.js → p-01e1f264.entry.js} +2 -2
- package/dist/calcite/{p-5f7bdd83.js → p-02874e66.js} +1 -1
- package/dist/calcite/{p-5cee55f8.entry.js → p-02bf316f.entry.js} +2 -2
- package/dist/calcite/{p-2d261579.system.js → p-04324ff6.system.js} +2 -2
- package/dist/calcite/{p-cc01a0da.js → p-0472246a.js} +2 -2
- package/dist/calcite/p-08a5a1c1.entry.js +6 -0
- package/dist/calcite/{p-6403e39f.system.entry.js → p-0943dc72.system.entry.js} +2 -2
- package/dist/calcite/{p-4bd6b9b3.entry.js → p-0a4974cc.entry.js} +2 -2
- package/dist/calcite/{p-b3be56ab.js → p-0aeae19a.js} +2 -2
- package/dist/calcite/{p-05d4924d.js → p-0ccdf105.js} +2 -2
- package/dist/calcite/{p-13fc82d6.entry.js → p-0ddc8a53.entry.js} +2 -2
- package/dist/calcite/{p-31121b13.system.js → p-1038133f.system.js} +1 -1
- package/dist/calcite/{p-e85960bb.system.entry.js → p-128f6135.system.entry.js} +2 -2
- package/dist/calcite/{p-2f7ea8e0.system.js → p-1352c084.system.js} +1 -1
- package/dist/calcite/{p-71ba7f12.js → p-13e8eef6.js} +1 -1
- package/dist/calcite/{p-b1ebe2a6.entry.js → p-14e6ae5b.entry.js} +2 -2
- package/dist/calcite/{p-dc2ba8d6.entry.js → p-14f4fac9.entry.js} +2 -2
- package/dist/calcite/{p-31c18ebc.system.entry.js → p-1b724a77.system.entry.js} +3 -3
- package/dist/calcite/{p-7504b5c5.js → p-1c0cfd52.js} +1 -1
- package/dist/calcite/{p-07aaa874.system.entry.js → p-1c325f2a.system.entry.js} +2 -2
- package/dist/calcite/{p-06de5e73.system.js → p-1cd25094.system.js} +2 -2
- package/dist/calcite/{p-9ade1c57.js → p-2256fb5a.js} +1 -1
- package/dist/calcite/{p-38483baf.system.entry.js → p-2501e910.system.entry.js} +2 -2
- package/dist/calcite/{p-0eb313ce.system.entry.js → p-258f25b4.system.entry.js} +2 -2
- package/dist/calcite/{p-0ee15efc.entry.js → p-26edc3fe.entry.js} +2 -2
- package/dist/calcite/{p-b9ad148b.entry.js → p-27323b2b.entry.js} +2 -2
- package/dist/calcite/{p-df985eab.entry.js → p-27894e89.entry.js} +2 -2
- package/dist/calcite/{p-9f99c3f3.system.js → p-293f1130.system.js} +1 -1
- package/dist/calcite/{p-6a52afac.system.entry.js → p-29bcb552.system.entry.js} +2 -2
- package/dist/calcite/{p-dff8bed4.system.js → p-2aa5b545.system.js} +1 -1
- package/dist/calcite/{p-87af229a.system.js → p-2b26e70c.system.js} +2 -2
- package/dist/calcite/{p-4aecbc47.system.js → p-2c75a894.system.js} +1 -1
- package/dist/calcite/{p-0864ff1f.system.entry.js → p-2d018297.system.entry.js} +2 -2
- package/dist/calcite/{p-bf07fd68.entry.js → p-2f662260.entry.js} +2 -2
- package/dist/calcite/{p-9e593267.entry.js → p-3058a676.entry.js} +2 -2
- package/dist/calcite/p-31a68d51.system.js +6 -0
- package/dist/calcite/{p-668dda51.entry.js → p-31ed467b.entry.js} +2 -2
- package/dist/calcite/{p-f650bc5a.entry.js → p-32bbc891.entry.js} +2 -2
- package/dist/calcite/{p-d0e26d0f.system.entry.js → p-32c72e8d.system.entry.js} +2 -2
- package/dist/calcite/{p-ce1d03e8.system.js → p-337a24eb.system.js} +1 -1
- package/dist/calcite/{p-27e2b8ea.system.js → p-396820b7.system.js} +1 -1
- package/dist/calcite/{p-bdfa3789.system.js → p-398ddb30.system.js} +1 -1
- package/dist/calcite/{p-e119e0b4.js → p-3bbdf28c.js} +2 -2
- package/dist/calcite/{p-6beead34.system.entry.js → p-3dc32ec2.system.entry.js} +2 -2
- package/dist/calcite/{p-989266f0.system.entry.js → p-405f0063.system.entry.js} +2 -2
- package/dist/calcite/{p-feeecafb.system.entry.js → p-42028ad9.system.entry.js} +2 -2
- package/dist/calcite/{p-d12f04b6.js → p-420ccddd.js} +1 -1
- package/dist/calcite/{p-e9debf39.system.entry.js → p-43ba6532.system.entry.js} +3 -3
- package/dist/calcite/p-49114c42.entry.js +6 -0
- package/dist/calcite/{p-e8dd0ce4.system.entry.js → p-4b20dd06.system.entry.js} +2 -2
- package/dist/calcite/{p-4ab7389d.js → p-4d8ba58f.js} +2 -2
- package/dist/calcite/{p-6f35a22e.system.entry.js → p-4e3bb2b5.system.entry.js} +2 -2
- package/dist/calcite/{p-2b9d43ee.entry.js → p-4f151515.entry.js} +2 -2
- package/dist/calcite/{p-b45b3d79.system.entry.js → p-4f264208.system.entry.js} +2 -2
- package/dist/calcite/{p-0f09f141.entry.js → p-5418d810.entry.js} +2 -2
- package/dist/calcite/{p-46674baf.entry.js → p-54949aeb.entry.js} +2 -2
- package/dist/calcite/{p-e9f9da36.system.entry.js → p-551a2e01.system.entry.js} +3 -3
- package/dist/calcite/{p-8e9e4678.system.js → p-567888cc.system.js} +2 -2
- package/dist/calcite/p-588da538.entry.js +6 -0
- package/dist/calcite/{p-0da0fa29.entry.js → p-58cd6a25.entry.js} +2 -2
- package/dist/calcite/{p-ad9d14c2.system.entry.js → p-58cdd975.system.entry.js} +2 -2
- package/dist/calcite/p-5c4421dc.entry.js +6 -0
- package/dist/calcite/{p-46db8711.js → p-5da3e726.js} +1 -1
- package/dist/calcite/{p-bf3152d1.entry.js → p-5f34cff7.entry.js} +2 -2
- package/dist/calcite/{p-581a5a39.system.entry.js → p-5f8c7a97.system.entry.js} +2 -2
- package/dist/calcite/{p-84323215.system.entry.js → p-63e0068e.system.entry.js} +2 -2
- package/dist/calcite/{p-1efc3593.entry.js → p-66a2952f.entry.js} +2 -2
- package/dist/calcite/{p-7ea1d145.system.entry.js → p-68dfd0e8.system.entry.js} +2 -2
- package/dist/calcite/p-69607178.system.entry.js +6 -0
- package/dist/calcite/{p-5d25a2ed.system.js → p-6aa7147a.system.js} +2 -2
- package/dist/calcite/{p-aa4f564a.system.js → p-6f45df0b.system.js} +1 -1
- package/dist/calcite/{p-748bf973.system.js → p-6f71dc54.system.js} +1 -1
- package/dist/calcite/p-711c3499.js +6 -0
- package/dist/calcite/{p-44a6ec71.entry.js → p-7170dae4.entry.js} +2 -2
- package/dist/calcite/{p-c86a8ae6.js → p-729414c5.js} +1 -1
- package/dist/calcite/{p-9ae2a7a4.system.entry.js → p-72f5d36b.system.entry.js} +2 -2
- package/dist/calcite/{p-f2c16b29.system.entry.js → p-7647ee97.system.entry.js} +2 -2
- package/dist/calcite/{p-9c13e45b.entry.js → p-7ac38b2b.entry.js} +2 -2
- package/dist/calcite/{p-b596c9e6.js → p-7de25c76.js} +1 -1
- package/dist/calcite/{p-4cc4a849.system.entry.js → p-8079a79c.system.entry.js} +2 -2
- package/dist/calcite/{p-40a03fa2.system.entry.js → p-81606519.system.entry.js} +2 -2
- package/dist/calcite/{p-b1f1ef97.system.entry.js → p-854fabb7.system.entry.js} +2 -2
- package/dist/calcite/p-8a55c80a.js +6 -0
- package/dist/calcite/{p-f3ca7d80.system.entry.js → p-8c4dde60.system.entry.js} +2 -2
- package/dist/calcite/{p-735f4fb7.js → p-904eb1df.js} +1 -1
- package/dist/calcite/{p-f6443e8b.js → p-94929da9.js} +1 -1
- package/dist/calcite/p-9525e397.entry.js +6 -0
- package/dist/calcite/p-9644cf90.system.entry.js +6 -0
- package/dist/calcite/{p-3b5fd066.entry.js → p-9646400a.entry.js} +2 -2
- package/dist/calcite/p-96f59f09.system.entry.js +6 -0
- package/dist/calcite/{p-a0a3e061.system.entry.js → p-96f9d00c.system.entry.js} +2 -2
- package/dist/calcite/p-97b5b5ac.system.entry.js +6 -0
- package/dist/calcite/{p-f7ef036f.js → p-9c6a2350.js} +2 -2
- package/dist/calcite/{p-ffafacab.system.entry.js → p-9d562b85.system.entry.js} +2 -2
- package/dist/calcite/{p-db26e542.system.entry.js → p-9d72faa2.system.entry.js} +2 -2
- package/dist/calcite/p-9e267363.entry.js +6 -0
- package/dist/calcite/{p-28488be9.entry.js → p-9ebe47e9.entry.js} +2 -2
- package/dist/calcite/{p-8b30894d.system.entry.js → p-9f9dfe99.system.entry.js} +2 -2
- package/dist/calcite/{p-d1227283.entry.js → p-a026e825.entry.js} +2 -2
- package/dist/calcite/{p-8dc799ea.system.entry.js → p-a4a1dbb7.system.entry.js} +2 -2
- package/dist/calcite/p-a598a7dd.system.entry.js +6 -0
- package/dist/calcite/{p-20ef7eb3.entry.js → p-a67f40e6.entry.js} +2 -2
- package/dist/calcite/{p-67d8d2f5.system.entry.js → p-a6e30a8f.system.entry.js} +2 -2
- package/dist/calcite/{p-19797e3a.system.entry.js → p-a716e34c.system.entry.js} +2 -2
- package/dist/calcite/{p-634b4667.js → p-a7579427.js} +2 -2
- package/dist/calcite/p-a898954c.system.entry.js +6 -0
- package/dist/calcite/{p-e9590974.entry.js → p-a8a53704.entry.js} +2 -2
- package/dist/calcite/{p-002ec83c.system.entry.js → p-a8f9c6d6.system.entry.js} +2 -2
- package/dist/calcite/p-a9f20b18.system.entry.js +6 -0
- package/dist/calcite/{p-d9bc6c90.system.entry.js → p-aa13a6c2.system.entry.js} +2 -2
- package/dist/calcite/{p-f7ffeafa.entry.js → p-aafc1a2f.entry.js} +2 -2
- package/dist/calcite/p-abe3683b.js +6 -0
- package/dist/calcite/{p-0b194b2f.system.entry.js → p-ad5972fc.system.entry.js} +2 -2
- package/dist/calcite/{p-556f99b3.js → p-ad63ba8c.js} +1 -1
- package/dist/calcite/{p-c6e8c158.entry.js → p-af602be9.entry.js} +2 -2
- package/dist/calcite/{p-c8ceec2d.js → p-afb86c1a.js} +1 -1
- package/dist/calcite/{p-d815a193.js → p-b21f44b7.js} +1 -1
- package/dist/calcite/p-b248c3b2.entry.js +6 -0
- package/dist/calcite/p-b2649312.entry.js +6 -0
- package/dist/calcite/{p-27644b63.entry.js → p-b26e592b.entry.js} +2 -2
- package/dist/calcite/{p-d22701df.system.entry.js → p-b4c56282.system.entry.js} +2 -2
- package/dist/calcite/p-b6dc1fbb.js +6 -0
- package/dist/calcite/{p-46c9c1da.system.entry.js → p-b73dc693.system.entry.js} +2 -2
- package/dist/calcite/{p-05e8f5e7.entry.js → p-b855c064.entry.js} +2 -2
- package/dist/calcite/{p-a0a7d286.entry.js → p-b8810eb8.entry.js} +2 -2
- package/dist/calcite/{p-4407d4e4.system.js → p-b91d70ea.system.js} +1 -1
- package/dist/calcite/{p-30805900.system.entry.js → p-ba9faef1.system.entry.js} +2 -2
- package/dist/calcite/{p-f36a9b83.entry.js → p-bbd25093.entry.js} +2 -2
- package/dist/calcite/{p-94c24c02.entry.js → p-bd0c7dee.entry.js} +2 -2
- package/dist/calcite/p-bd1fb33a.entry.js +6 -0
- package/dist/calcite/{p-55bb2cdc.system.entry.js → p-bf1c3465.system.entry.js} +2 -2
- package/dist/calcite/{p-47810f6d.entry.js → p-c2d7f995.entry.js} +2 -2
- package/dist/calcite/{p-0149d27c.entry.js → p-c54ba294.entry.js} +2 -2
- package/dist/calcite/{p-be2321b0.system.entry.js → p-c6005ea4.system.entry.js} +2 -2
- package/dist/calcite/{p-63146b51.js → p-c769a124.js} +1 -1
- package/dist/calcite/{p-d85c22c9.system.entry.js → p-c8d7baeb.system.entry.js} +2 -2
- package/dist/calcite/p-c93fd4d4.system.entry.js +6 -0
- package/dist/calcite/p-c9d74771.system.js +6 -0
- package/dist/calcite/{p-6aee159f.js → p-c9f24014.js} +2 -2
- package/dist/calcite/{p-0a5fc96c.entry.js → p-ca9d349d.entry.js} +2 -2
- package/dist/calcite/{p-1990acbf.entry.js → p-cbe27383.entry.js} +2 -2
- package/dist/calcite/{p-6f62d2c6.system.js → p-cc5b9672.system.js} +1 -1
- package/dist/calcite/{p-2560a58e.system.entry.js → p-cd1e35ee.system.entry.js} +2 -2
- package/dist/calcite/{p-e342902c.system.entry.js → p-cdd4697e.system.entry.js} +2 -2
- package/dist/calcite/p-ce3da917.system.js +6 -0
- package/dist/calcite/p-cf3ea746.entry.js +6 -0
- package/dist/calcite/{p-4ae377e7.system.entry.js → p-cf3fb5a0.system.entry.js} +2 -2
- package/dist/calcite/{p-d3e3c001.entry.js → p-d064ce65.entry.js} +2 -2
- package/dist/calcite/p-d0ea54b5.system.entry.js +6 -0
- package/dist/calcite/p-d0fbf0a6.entry.js +6 -0
- package/dist/calcite/p-d3bb2db1.entry.js +6 -0
- package/dist/calcite/{p-38043ca4.entry.js → p-d4772885.entry.js} +2 -2
- package/dist/calcite/{p-7e3170f3.entry.js → p-d6933313.entry.js} +2 -2
- package/dist/calcite/{p-103e5afd.system.entry.js → p-d69d2ceb.system.entry.js} +2 -2
- package/dist/calcite/{p-b3675053.js → p-d70de307.js} +2 -2
- package/dist/calcite/p-d9f72aca.system.entry.js +6 -0
- package/dist/calcite/{p-6a600418.entry.js → p-dabfab4d.entry.js} +2 -2
- package/dist/calcite/{p-3ff82cf1.entry.js → p-dae459bf.entry.js} +2 -2
- package/dist/calcite/{p-b495901b.entry.js → p-dca7a79c.entry.js} +2 -2
- package/dist/calcite/{p-d18ddc53.system.entry.js → p-dda4734d.system.entry.js} +2 -2
- package/dist/calcite/{p-75817bd0.system.js → p-defa0c9d.system.js} +1 -1
- package/dist/calcite/p-df16481d.system.entry.js +6 -0
- package/dist/calcite/{p-2ce5c529.system.js → p-df2b9dd8.system.js} +2 -2
- package/dist/calcite/{p-3d1abd24.system.js → p-e0f33780.system.js} +2 -2
- package/dist/calcite/{p-e8b30d42.system.js → p-e1d7243b.system.js} +1 -1
- package/dist/calcite/{p-8ad9220f.system.js → p-e7dc1543.system.js} +1 -1
- package/dist/calcite/{p-7a03365e.entry.js → p-e7f9f911.entry.js} +2 -2
- package/dist/calcite/p-ebe41e88.entry.js +6 -0
- package/dist/calcite/{p-528aaf72.system.entry.js → p-edcb605e.system.entry.js} +2 -2
- package/dist/calcite/{p-00367ed4.system.js → p-ee2ba171.system.js} +2 -2
- package/dist/calcite/{p-7d44b9ba.system.js → p-ef95d6d7.system.js} +2 -2
- package/dist/calcite/{p-aae82ee7.js → p-f1873d3e.js} +1 -1
- package/dist/calcite/{p-f22fd556.system.js → p-f2564d1d.system.js} +2 -2
- package/dist/calcite/{p-9544cb29.entry.js → p-f2592bd5.entry.js} +2 -2
- package/dist/calcite/{p-5676272d.system.js → p-f28e72db.system.js} +1 -1
- package/dist/calcite/{p-d5a25382.entry.js → p-f2d22297.entry.js} +2 -2
- package/dist/calcite/{p-33a4e116.entry.js → p-f5f0e229.entry.js} +2 -2
- package/dist/calcite/{p-c44b740a.system.js → p-ffab28ce.system.js} +2 -2
- package/dist/cjs/{ExpandToggle-8782dd2f.js → ExpandToggle-d01ba222.js} +5 -5
- package/dist/cjs/{Heading-d7f41298.js → Heading-5c8ae7c7.js} +2 -2
- package/dist/cjs/{app-globals-a7ded446.js → app-globals-ac11ea69.js} +2 -2
- package/dist/cjs/{array-1d4fc13d.js → array-1b1fee7a.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 +20 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +17 -15
- 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 +18 -16
- 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 +10 -10
- 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 +17 -17
- 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 +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- 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 +5 -5
- package/dist/cjs/{conditionalSlot-9c0fa505.js → conditionalSlot-d467cd45.js} +3 -3
- package/dist/cjs/{debounce-19b40b8f.js → debounce-fdf01cb6.js} +1 -1
- package/dist/cjs/{dom-eaadcd89.js → dom-3eb34325.js} +3 -3
- package/dist/cjs/{filter-807d1608.js → filter-55af528e.js} +2 -2
- package/dist/cjs/{floating-ui-b204da9e.js → floating-ui-7329e890.js} +5 -3
- package/dist/cjs/{form-d12acbaa.js → form-80db0b5f.js} +3 -3
- package/dist/cjs/{guid-73c3edb1.js → guid-dc7f4ae8.js} +1 -1
- package/dist/cjs/{index-6bf394ff.js → index-371fa05d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-26bbc844.js → interactive-0d5bf080.js} +1 -1
- package/dist/cjs/{interfaces-d80e4a30.js → interfaces-05dc4281.js} +1 -1
- package/dist/cjs/{key-afa2f3d6.js → key-7782fce0.js} +1 -1
- package/dist/cjs/{label-d075c31f.js → label-7d957162.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-93089c26.js → locale-c6c7e842.js} +2 -2
- package/dist/cjs/{math-1535633c.js → math-77342528.js} +1 -1
- package/dist/cjs/{observers-072222fa.js → observers-42cebe54.js} +1 -1
- package/dist/cjs/{openCloseComponent-a2a73280.js → openCloseComponent-d46fe480.js} +1 -1
- package/dist/cjs/{resources-5155666e.js → resources-08cedc9e.js} +3 -3
- package/dist/cjs/{resources-b97de259.js → resources-4c96ffc6.js} +1 -1
- package/dist/cjs/{resources-4f93a2ec.js → resources-6b16c623.js} +1 -1
- package/dist/cjs/resources-8d1dd980.js +52 -0
- package/dist/cjs/{resources-4ff9d0d2.js → resources-b5b9e02b.js} +5 -5
- package/dist/cjs/{resources-1ab38954.js → resources-ea6e7974.js} +1 -1
- package/dist/cjs/{sortable.esm-81835757.js → sortable.esm-e02e39de.js} +1 -1
- package/dist/cjs/{utils-8b591bb2.js → utils-bdda9970.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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.css +6 -0
- package/dist/collection/components/combobox/combobox.js +6 -4
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +6 -0
- package/dist/collection/components/dropdown/dropdown.js +8 -7
- 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.css +9 -0
- package/dist/collection/components/input-date-picker/input-date-picker.js +6 -4
- 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 +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.css +2 -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 +5 -6
- package/dist/collection/components/popover/popover.js +4 -3
- 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 +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +4 -2
- 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 +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +7 -5
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +3 -3
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +7 -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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-input-date-picker.js +6 -4
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +17 -4
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +2 -393
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +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 +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +8 -6
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +4 -2
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +451 -0
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +8 -8
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +714 -517
- package/dist/esm/{ExpandToggle-d33b69db.js → ExpandToggle-f1f93ed7.js} +5 -5
- package/dist/esm/{Heading-cc745c4a.js → Heading-17772655.js} +2 -2
- package/dist/esm/{app-globals-e1c2379e.js → app-globals-fd18e0c0.js} +2 -2
- package/dist/esm/{array-51e6fec9.js → array-23601dc0.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 +20 -18
- package/dist/esm/calcite-date-picker_4.entry.js +10 -10
- package/dist/esm/calcite-dropdown_3.entry.js +17 -15
- 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 +18 -16
- 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 +10 -10
- 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 +17 -17
- 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 +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- 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 +5 -5
- package/dist/esm/{conditionalSlot-d174e645.js → conditionalSlot-e4e51860.js} +3 -3
- package/dist/esm/{debounce-97ec2bf5.js → debounce-f443feec.js} +1 -1
- package/dist/esm/{dom-ada6955f.js → dom-a8dad893.js} +3 -3
- package/dist/esm/{filter-95fc6fc6.js → filter-093821c0.js} +2 -2
- package/dist/esm/{floating-ui-1dbb3151.js → floating-ui-26990792.js} +5 -3
- package/dist/esm/{form-13f50160.js → form-08fd9bc5.js} +3 -3
- package/dist/esm/{guid-a51b25d0.js → guid-b990c4d2.js} +1 -1
- package/dist/esm/{index-47008242.js → index-8b5f2ff9.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-d8ae72af.js → interactive-e72598f1.js} +1 -1
- package/dist/esm/{interfaces-1d49904b.js → interfaces-58f534e2.js} +1 -1
- package/dist/esm/{key-66ffc0a6.js → key-9cbf7b92.js} +1 -1
- package/dist/esm/{label-a7ae8219.js → label-cd0fc1fd.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-8929fd51.js → locale-26bd4f96.js} +2 -2
- package/dist/esm/{math-be7d2f3b.js → math-519aad80.js} +1 -1
- package/dist/esm/{observers-1c28ae12.js → observers-b2199b39.js} +1 -1
- package/dist/esm/{openCloseComponent-07a8007c.js → openCloseComponent-6cc92b6d.js} +1 -1
- package/dist/esm/{resources-8df5b958.js → resources-08de72a5.js} +3 -3
- package/dist/esm/{resources-c467e503.js → resources-0fcef459.js} +1 -1
- package/dist/esm/{resources-9480c6af.js → resources-11a525a9.js} +5 -5
- package/dist/esm/{resources-47135f28.js → resources-222b83b4.js} +1 -1
- package/dist/esm/resources-5784443c.js +46 -0
- package/dist/esm/{resources-9edb97ea.js → resources-fcc173ea.js} +1 -1
- package/dist/esm/{sortable.esm-41e7c566.js → sortable.esm-b374e5fb.js} +1 -1
- package/dist/esm/{utils-535af390.js → utils-e80bf55b.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-d33b69db.js → ExpandToggle-f1f93ed7.js} +2 -2
- package/dist/esm-es5/{Heading-cc745c4a.js → Heading-17772655.js} +2 -2
- package/dist/esm-es5/{app-globals-e1c2379e.js → app-globals-fd18e0c0.js} +2 -2
- package/dist/esm-es5/{array-51e6fec9.js → array-23601dc0.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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +3 -3
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-d174e645.js → conditionalSlot-e4e51860.js} +2 -2
- package/dist/esm-es5/{debounce-97ec2bf5.js → debounce-f443feec.js} +1 -1
- package/dist/esm-es5/{dom-ada6955f.js → dom-a8dad893.js} +2 -2
- package/dist/esm-es5/{filter-95fc6fc6.js → filter-093821c0.js} +2 -2
- package/dist/esm-es5/{floating-ui-1dbb3151.js → floating-ui-26990792.js} +2 -2
- package/dist/esm-es5/{form-13f50160.js → form-08fd9bc5.js} +2 -2
- package/dist/esm-es5/{guid-a51b25d0.js → guid-b990c4d2.js} +1 -1
- package/dist/esm-es5/{index-47008242.js → index-8b5f2ff9.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-d8ae72af.js → interactive-e72598f1.js} +1 -1
- package/dist/esm-es5/{interfaces-1d49904b.js → interfaces-58f534e2.js} +1 -1
- package/dist/esm-es5/{key-66ffc0a6.js → key-9cbf7b92.js} +1 -1
- package/dist/esm-es5/{label-a7ae8219.js → label-cd0fc1fd.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-8929fd51.js → locale-26bd4f96.js} +2 -2
- package/dist/esm-es5/{math-be7d2f3b.js → math-519aad80.js} +1 -1
- package/dist/esm-es5/{observers-1c28ae12.js → observers-b2199b39.js} +1 -1
- package/dist/esm-es5/{openCloseComponent-07a8007c.js → openCloseComponent-6cc92b6d.js} +1 -1
- package/dist/esm-es5/{resources-8df5b958.js → resources-08de72a5.js} +2 -2
- package/dist/esm-es5/{resources-c467e503.js → resources-0fcef459.js} +1 -1
- package/dist/esm-es5/{resources-9480c6af.js → resources-11a525a9.js} +2 -2
- package/dist/esm-es5/{resources-47135f28.js → resources-222b83b4.js} +1 -1
- package/dist/esm-es5/resources-5784443c.js +6 -0
- package/dist/esm-es5/{resources-9edb97ea.js → resources-fcc173ea.js} +1 -1
- package/dist/esm-es5/{sortable.esm-41e7c566.js → sortable.esm-b374e5fb.js} +1 -1
- package/dist/esm-es5/{utils-535af390.js → utils-e80bf55b.js} +1 -1
- package/dist/extras/docs-json.json +542 -21
- 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/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.d.ts +162 -5
- package/dist/types/preact.d.ts +4 -0
- package/dist/types/utils/floating-ui.d.ts +10 -2
- package/hydrate/index.js +755 -517
- package/package.json +5 -5
- package/readme.md +2 -2
- package/dist/calcite/p-01f33421.js +0 -6
- package/dist/calcite/p-03dbcd7d.system.entry.js +0 -6
- package/dist/calcite/p-0bcceda2.system.entry.js +0 -6
- package/dist/calcite/p-127c4501.entry.js +0 -6
- package/dist/calcite/p-3a7e9f2e.entry.js +0 -6
- package/dist/calcite/p-3cfab2ca.entry.js +0 -6
- package/dist/calcite/p-45353e58.system.entry.js +0 -6
- package/dist/calcite/p-65506efd.system.entry.js +0 -6
- package/dist/calcite/p-68339cba.js +0 -6
- package/dist/calcite/p-6fbdf6b8.system.entry.js +0 -6
- package/dist/calcite/p-7772682c.entry.js +0 -6
- package/dist/calcite/p-7fd192b5.system.entry.js +0 -6
- package/dist/calcite/p-853b363e.system.js +0 -6
- package/dist/calcite/p-8a93016a.system.entry.js +0 -6
- package/dist/calcite/p-90dc377d.entry.js +0 -6
- package/dist/calcite/p-936abd8d.system.entry.js +0 -6
- package/dist/calcite/p-948a5867.system.entry.js +0 -6
- package/dist/calcite/p-9529657d.entry.js +0 -6
- package/dist/calcite/p-ba1859b0.entry.js +0 -6
- package/dist/calcite/p-bf05225a.entry.js +0 -6
- package/dist/calcite/p-c451ce2e.entry.js +0 -6
- package/dist/calcite/p-d97dd30a.entry.js +0 -6
- package/dist/calcite/p-dc063bce.system.js +0 -6
- package/dist/calcite/p-eceed63b.entry.js +0 -6
- package/dist/calcite/p-f88777d1.entry.js +0 -6
- package/dist/calcite/p-fe158e3f.system.entry.js +0 -6
- package/dist/calcite/p-fe656a4f.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.574
|
|
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 {
|
|
@@ -9398,7 +9400,9 @@ function getMiddleware({ placement, disableFlip, flipPlacements, offsetDistance,
|
|
|
9398
9400
|
if (type === "menu") {
|
|
9399
9401
|
return [
|
|
9400
9402
|
...defaultMiddleware,
|
|
9401
|
-
flip({
|
|
9403
|
+
flip({
|
|
9404
|
+
fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"]
|
|
9405
|
+
})
|
|
9402
9406
|
];
|
|
9403
9407
|
}
|
|
9404
9408
|
if (type === "popover" || type === "tooltip") {
|
|
@@ -9554,7 +9558,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
9554
9558
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
9555
9559
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9556
9560
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
9557
|
-
const TEXT$
|
|
9561
|
+
const TEXT$j = {
|
|
9558
9562
|
removeTag: "Remove tag"
|
|
9559
9563
|
};
|
|
9560
9564
|
|
|
@@ -9583,7 +9587,7 @@ function getDepth(element) {
|
|
|
9583
9587
|
return result.snapshotLength;
|
|
9584
9588
|
}
|
|
9585
9589
|
|
|
9586
|
-
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9590
|
+
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}.floating-ui-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9587
9591
|
|
|
9588
9592
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
9589
9593
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -9650,7 +9654,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9650
9654
|
*
|
|
9651
9655
|
* @default "Remove tag"
|
|
9652
9656
|
*/
|
|
9653
|
-
this.intlRemoveTag = TEXT$
|
|
9657
|
+
this.intlRemoveTag = TEXT$j.removeTag;
|
|
9654
9658
|
//--------------------------------------------------------------------------
|
|
9655
9659
|
//
|
|
9656
9660
|
// Private State/Props
|
|
@@ -9985,6 +9989,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9985
9989
|
}
|
|
9986
9990
|
flipPlacementsHandler() {
|
|
9987
9991
|
this.setFilteredPlacements();
|
|
9992
|
+
this.reposition();
|
|
9988
9993
|
}
|
|
9989
9994
|
//--------------------------------------------------------------------------
|
|
9990
9995
|
//
|
|
@@ -10010,12 +10015,13 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10010
10015
|
//--------------------------------------------------------------------------
|
|
10011
10016
|
/** Updates the position of the component. */
|
|
10012
10017
|
async reposition() {
|
|
10013
|
-
const { floatingEl, referenceEl, placement, overlayPositioning } = this;
|
|
10018
|
+
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
10014
10019
|
return positionFloatingUI({
|
|
10015
10020
|
floatingEl,
|
|
10016
10021
|
referenceEl,
|
|
10017
10022
|
overlayPositioning,
|
|
10018
10023
|
placement,
|
|
10024
|
+
flipPlacements: filteredFlipPlacements,
|
|
10019
10025
|
type: "menu"
|
|
10020
10026
|
});
|
|
10021
10027
|
}
|
|
@@ -10040,8 +10046,8 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10040
10046
|
connectLabel(this);
|
|
10041
10047
|
connectForm(this);
|
|
10042
10048
|
connectOpenCloseComponent(this);
|
|
10043
|
-
this.reposition();
|
|
10044
10049
|
this.setFilteredPlacements();
|
|
10050
|
+
this.reposition();
|
|
10045
10051
|
if (this.active) {
|
|
10046
10052
|
this.activeHandler(this.active);
|
|
10047
10053
|
}
|
|
@@ -10391,7 +10397,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10391
10397
|
wrapper: true,
|
|
10392
10398
|
"wrapper--single": single || !this.selectedItems.length,
|
|
10393
10399
|
"wrapper--active": open || active
|
|
10394
|
-
}, 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 })));
|
|
10395
10401
|
}
|
|
10396
10402
|
get el() { return this; }
|
|
10397
10403
|
static get watchers() { return {
|
|
@@ -10408,7 +10414,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10408
10414
|
static get style() { return comboboxCss; }
|
|
10409
10415
|
};
|
|
10410
10416
|
|
|
10411
|
-
const CSS$
|
|
10417
|
+
const CSS$G = {
|
|
10412
10418
|
icon: "icon",
|
|
10413
10419
|
iconActive: "icon--active",
|
|
10414
10420
|
custom: "icon--custom",
|
|
@@ -10499,18 +10505,18 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10499
10505
|
// --------------------------------------------------------------------------
|
|
10500
10506
|
renderIcon(isSingle) {
|
|
10501
10507
|
const { icon, disabled, selected } = this;
|
|
10502
|
-
const level = `${CSS$
|
|
10508
|
+
const level = `${CSS$G.icon}--indent`;
|
|
10503
10509
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
10504
10510
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
10505
10511
|
const showDot = isSingle && !icon && !disabled;
|
|
10506
10512
|
return showDot ? (h("span", { class: {
|
|
10507
|
-
[CSS$
|
|
10508
|
-
[CSS$
|
|
10513
|
+
[CSS$G.icon]: true,
|
|
10514
|
+
[CSS$G.dot]: true,
|
|
10509
10515
|
[level]: true
|
|
10510
10516
|
} })) : (h("calcite-icon", { class: {
|
|
10511
|
-
[CSS$
|
|
10512
|
-
[CSS$
|
|
10513
|
-
[CSS$
|
|
10517
|
+
[CSS$G.icon]: !icon,
|
|
10518
|
+
[CSS$G.custom]: !!icon,
|
|
10519
|
+
[CSS$G.iconActive]: icon && selected,
|
|
10514
10520
|
[level]: true
|
|
10515
10521
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10516
10522
|
}
|
|
@@ -10523,13 +10529,13 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10523
10529
|
render() {
|
|
10524
10530
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
10525
10531
|
const classes = {
|
|
10526
|
-
[CSS$
|
|
10527
|
-
[CSS$
|
|
10528
|
-
[CSS$
|
|
10529
|
-
[CSS$
|
|
10532
|
+
[CSS$G.label]: true,
|
|
10533
|
+
[CSS$G.selected]: this.selected,
|
|
10534
|
+
[CSS$G.active]: this.active,
|
|
10535
|
+
[CSS$G.single]: isSingleSelect
|
|
10530
10536
|
};
|
|
10531
10537
|
const depth = getDepth(this.el);
|
|
10532
|
-
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())));
|
|
10533
10539
|
}
|
|
10534
10540
|
get el() { return this; }
|
|
10535
10541
|
static get watchers() { return {
|
|
@@ -10538,7 +10544,7 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10538
10544
|
static get style() { return comboboxItemCss; }
|
|
10539
10545
|
};
|
|
10540
10546
|
|
|
10541
|
-
const CSS$
|
|
10547
|
+
const CSS$F = {
|
|
10542
10548
|
list: "list",
|
|
10543
10549
|
label: "label",
|
|
10544
10550
|
title: "title"
|
|
@@ -10570,8 +10576,8 @@ const ComboboxItemGroup = class extends HTMLElement$1 {
|
|
|
10570
10576
|
// --------------------------------------------------------------------------
|
|
10571
10577
|
render() {
|
|
10572
10578
|
const { el, scale } = this;
|
|
10573
|
-
const indent = `${CSS$
|
|
10574
|
-
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)));
|
|
10575
10581
|
}
|
|
10576
10582
|
get el() { return this; }
|
|
10577
10583
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -11071,7 +11077,7 @@ function getDaysDiff(date1, date2) {
|
|
|
11071
11077
|
}
|
|
11072
11078
|
|
|
11073
11079
|
const HEADING_LEVEL$6 = 2;
|
|
11074
|
-
const TEXT$
|
|
11080
|
+
const TEXT$i = {
|
|
11075
11081
|
nextMonth: "Next month",
|
|
11076
11082
|
prevMonth: "Previous month",
|
|
11077
11083
|
year: "Year"
|
|
@@ -11091,19 +11097,19 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11091
11097
|
*
|
|
11092
11098
|
* @default "Previous month"
|
|
11093
11099
|
*/
|
|
11094
|
-
this.intlPrevMonth = TEXT$
|
|
11100
|
+
this.intlPrevMonth = TEXT$i.prevMonth;
|
|
11095
11101
|
/**
|
|
11096
11102
|
* Localized string for "next month" (used for aria label)
|
|
11097
11103
|
*
|
|
11098
11104
|
* @default "Next month"
|
|
11099
11105
|
*/
|
|
11100
|
-
this.intlNextMonth = TEXT$
|
|
11106
|
+
this.intlNextMonth = TEXT$i.nextMonth;
|
|
11101
11107
|
/**
|
|
11102
11108
|
* Localized string for "year" (used for aria label)
|
|
11103
11109
|
*
|
|
11104
11110
|
* @default "Year"
|
|
11105
11111
|
*/
|
|
11106
|
-
this.intlYear = TEXT$
|
|
11112
|
+
this.intlYear = TEXT$i.year;
|
|
11107
11113
|
/** BCP 47 language tag for desired language and country format */
|
|
11108
11114
|
this.locale = document.documentElement.lang || "en";
|
|
11109
11115
|
/** specify the scale of the date picker */
|
|
@@ -12031,11 +12037,11 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
12031
12037
|
static get style() { return datePickerMonthHeaderCss; }
|
|
12032
12038
|
};
|
|
12033
12039
|
|
|
12034
|
-
const SLOTS$
|
|
12040
|
+
const SLOTS$k = {
|
|
12035
12041
|
dropdownTrigger: "dropdown-trigger"
|
|
12036
12042
|
};
|
|
12037
12043
|
|
|
12038
|
-
const dropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
12044
|
+
const dropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none;inline-size:0;block-size:0;overflow:hidden}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
12039
12045
|
|
|
12040
12046
|
const Dropdown = class extends HTMLElement$1 {
|
|
12041
12047
|
constructor() {
|
|
@@ -12159,8 +12165,8 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12159
12165
|
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
|
12160
12166
|
};
|
|
12161
12167
|
this.setMaxScrollerHeight = () => {
|
|
12162
|
-
const { scrollerEl
|
|
12163
|
-
if (!scrollerEl
|
|
12168
|
+
const { scrollerEl } = this;
|
|
12169
|
+
if (!scrollerEl) {
|
|
12164
12170
|
return;
|
|
12165
12171
|
}
|
|
12166
12172
|
this.reposition();
|
|
@@ -12245,6 +12251,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12245
12251
|
}
|
|
12246
12252
|
flipPlacementsHandler() {
|
|
12247
12253
|
this.setFilteredPlacements();
|
|
12254
|
+
this.reposition();
|
|
12248
12255
|
}
|
|
12249
12256
|
maxItemsHandler() {
|
|
12250
12257
|
this.setMaxScrollerHeight();
|
|
@@ -12288,11 +12295,11 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12288
12295
|
}
|
|
12289
12296
|
render() {
|
|
12290
12297
|
const { open, guid } = this;
|
|
12291
|
-
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: {
|
|
12292
12299
|
["calcite-dropdown-content"]: true,
|
|
12293
12300
|
[FloatingCSS.animation]: true,
|
|
12294
12301
|
[FloatingCSS.animationActive]: open
|
|
12295
|
-
}, id: `${guid}-menu`, ref: this.setScrollerAndTransitionEl, role: "menu" }, h("
|
|
12302
|
+
}, id: `${guid}-menu`, ref: this.setScrollerAndTransitionEl, role: "menu" }, h("slot", { onSlotchange: this.updateGroups })))));
|
|
12296
12303
|
}
|
|
12297
12304
|
//--------------------------------------------------------------------------
|
|
12298
12305
|
//
|
|
@@ -12301,12 +12308,13 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12301
12308
|
//--------------------------------------------------------------------------
|
|
12302
12309
|
/** Updates the position of the component. */
|
|
12303
12310
|
async reposition() {
|
|
12304
|
-
const { floatingEl, referenceEl, placement, overlayPositioning } = this;
|
|
12311
|
+
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
12305
12312
|
return positionFloatingUI({
|
|
12306
12313
|
floatingEl,
|
|
12307
12314
|
referenceEl,
|
|
12308
12315
|
overlayPositioning,
|
|
12309
12316
|
placement,
|
|
12317
|
+
flipPlacements: filteredFlipPlacements,
|
|
12310
12318
|
type: "menu"
|
|
12311
12319
|
});
|
|
12312
12320
|
}
|
|
@@ -12472,7 +12480,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12472
12480
|
static get style() { return dropdownCss; }
|
|
12473
12481
|
};
|
|
12474
12482
|
|
|
12475
|
-
const CSS$
|
|
12483
|
+
const CSS$E = {
|
|
12476
12484
|
containerSmall: "container--s",
|
|
12477
12485
|
containerMedium: "container--m",
|
|
12478
12486
|
containerLarge: "container--l"
|
|
@@ -12506,9 +12514,9 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12506
12514
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
12507
12515
|
return (h(Host, { "aria-label": this.groupTitle, role: "group" }, h("div", { class: {
|
|
12508
12516
|
container: true,
|
|
12509
|
-
[CSS$
|
|
12510
|
-
[CSS$
|
|
12511
|
-
[CSS$
|
|
12517
|
+
[CSS$E.containerSmall]: scale === "s",
|
|
12518
|
+
[CSS$E.containerMedium]: scale === "m",
|
|
12519
|
+
[CSS$E.containerLarge]: scale === "l"
|
|
12512
12520
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
12513
12521
|
}
|
|
12514
12522
|
//--------------------------------------------------------------------------
|
|
@@ -12536,7 +12544,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12536
12544
|
static get style() { return dropdownGroupCss; }
|
|
12537
12545
|
};
|
|
12538
12546
|
|
|
12539
|
-
const CSS$
|
|
12547
|
+
const CSS$D = {
|
|
12540
12548
|
containerLink: "container--link",
|
|
12541
12549
|
containerSmall: "container--s",
|
|
12542
12550
|
containerMedium: "container--m",
|
|
@@ -12625,13 +12633,13 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12625
12633
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
12626
12634
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12627
12635
|
container: true,
|
|
12628
|
-
[CSS$
|
|
12629
|
-
[CSS$
|
|
12630
|
-
[CSS$
|
|
12631
|
-
[CSS$
|
|
12632
|
-
[CSS$
|
|
12633
|
-
[CSS$
|
|
12634
|
-
[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"
|
|
12635
12643
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
12636
12644
|
}
|
|
12637
12645
|
//--------------------------------------------------------------------------
|
|
@@ -12723,10 +12731,10 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12723
12731
|
static get style() { return dropdownItemCss; }
|
|
12724
12732
|
};
|
|
12725
12733
|
|
|
12726
|
-
const CSS$
|
|
12734
|
+
const CSS$C = {
|
|
12727
12735
|
button: "button"
|
|
12728
12736
|
};
|
|
12729
|
-
const ICONS$
|
|
12737
|
+
const ICONS$a = {
|
|
12730
12738
|
plus: "plus"
|
|
12731
12739
|
};
|
|
12732
12740
|
|
|
@@ -12759,7 +12767,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12759
12767
|
*
|
|
12760
12768
|
* @default "plus"
|
|
12761
12769
|
*/
|
|
12762
|
-
this.icon = ICONS$
|
|
12770
|
+
this.icon = ICONS$a.plus;
|
|
12763
12771
|
/**
|
|
12764
12772
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
12765
12773
|
*/
|
|
@@ -12798,7 +12806,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12798
12806
|
render() {
|
|
12799
12807
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
12800
12808
|
const title = !textEnabled ? label || text || null : null;
|
|
12801
|
-
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) => {
|
|
12802
12810
|
this.buttonEl = buttonEl;
|
|
12803
12811
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
12804
12812
|
}
|
|
@@ -12806,15 +12814,15 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12806
12814
|
static get style() { return fabCss; }
|
|
12807
12815
|
};
|
|
12808
12816
|
|
|
12809
|
-
const CSS$
|
|
12817
|
+
const CSS$B = {
|
|
12810
12818
|
container: "container",
|
|
12811
12819
|
searchIcon: "search-icon"
|
|
12812
12820
|
};
|
|
12813
|
-
const TEXT$
|
|
12821
|
+
const TEXT$h = {
|
|
12814
12822
|
filterLabel: "Filter",
|
|
12815
12823
|
clear: "Clear filter"
|
|
12816
12824
|
};
|
|
12817
|
-
const ICONS$
|
|
12825
|
+
const ICONS$9 = {
|
|
12818
12826
|
search: "search",
|
|
12819
12827
|
close: "x"
|
|
12820
12828
|
};
|
|
@@ -12927,7 +12935,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12927
12935
|
// --------------------------------------------------------------------------
|
|
12928
12936
|
render() {
|
|
12929
12937
|
const { disabled, scale } = this;
|
|
12930
|
-
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) => {
|
|
12931
12939
|
this.textInput = el;
|
|
12932
12940
|
}, scale: scale, type: "text", value: this.value })))));
|
|
12933
12941
|
}
|
|
@@ -12939,51 +12947,51 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12939
12947
|
static get style() { return filterCss; }
|
|
12940
12948
|
};
|
|
12941
12949
|
|
|
12942
|
-
const CSS$
|
|
12950
|
+
const CSS$A = {
|
|
12943
12951
|
frame: "frame",
|
|
12944
12952
|
frameAdvancing: "frame--advancing",
|
|
12945
12953
|
frameRetreating: "frame--retreating"
|
|
12946
12954
|
};
|
|
12947
12955
|
|
|
12948
|
-
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)}}";
|
|
12949
12957
|
|
|
12950
12958
|
const Flow = class extends HTMLElement$1 {
|
|
12951
12959
|
constructor() {
|
|
12952
12960
|
super();
|
|
12953
12961
|
this.__registerHost();
|
|
12954
12962
|
this.__attachShadow();
|
|
12955
|
-
this.panelCount = 0;
|
|
12956
12963
|
this.flowDirection = null;
|
|
12957
|
-
this.
|
|
12958
|
-
this.
|
|
12959
|
-
this.
|
|
12960
|
-
|
|
12961
|
-
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;
|
|
12962
12970
|
if (!allowAdvancingDirection && !allowRetreatingDirection) {
|
|
12963
12971
|
return null;
|
|
12964
12972
|
}
|
|
12965
|
-
return
|
|
12973
|
+
return newFlowItemCount < oldFlowItemCount ? "retreating" : "advancing";
|
|
12966
12974
|
};
|
|
12967
12975
|
this.updateFlowProps = () => {
|
|
12968
|
-
const { el,
|
|
12969
|
-
const
|
|
12970
|
-
const
|
|
12971
|
-
const
|
|
12972
|
-
const
|
|
12973
|
-
const
|
|
12974
|
-
if (
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
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;
|
|
12978
12986
|
});
|
|
12979
12987
|
}
|
|
12980
|
-
if (
|
|
12981
|
-
|
|
12988
|
+
if (previousItem) {
|
|
12989
|
+
previousItem.menuOpen = false;
|
|
12982
12990
|
}
|
|
12983
|
-
this.
|
|
12984
|
-
if (
|
|
12985
|
-
const flowDirection = this.getFlowDirection(
|
|
12986
|
-
this.
|
|
12991
|
+
this.items = newItems;
|
|
12992
|
+
if (oldItemCount !== newItemCount) {
|
|
12993
|
+
const flowDirection = this.getFlowDirection(oldItemCount, newItemCount);
|
|
12994
|
+
this.itemCount = newItemCount;
|
|
12987
12995
|
this.flowDirection = flowDirection;
|
|
12988
12996
|
}
|
|
12989
12997
|
};
|
|
@@ -12994,11 +13002,11 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12994
13002
|
//
|
|
12995
13003
|
// --------------------------------------------------------------------------
|
|
12996
13004
|
/**
|
|
12997
|
-
* Removes the currently active `calcite-panel`.
|
|
13005
|
+
* Removes the currently active `calcite-flow-item` or `calcite-panel`.
|
|
12998
13006
|
*/
|
|
12999
13007
|
async back() {
|
|
13000
|
-
const {
|
|
13001
|
-
const lastItem =
|
|
13008
|
+
const { items } = this;
|
|
13009
|
+
const lastItem = items[items.length - 1];
|
|
13002
13010
|
if (!lastItem) {
|
|
13003
13011
|
return;
|
|
13004
13012
|
}
|
|
@@ -13017,19 +13025,19 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13017
13025
|
// --------------------------------------------------------------------------
|
|
13018
13026
|
connectedCallback() {
|
|
13019
13027
|
var _a;
|
|
13020
|
-
(_a = this.
|
|
13028
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
13021
13029
|
this.updateFlowProps();
|
|
13022
13030
|
}
|
|
13023
13031
|
disconnectedCallback() {
|
|
13024
13032
|
var _a;
|
|
13025
|
-
(_a = this.
|
|
13033
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
13026
13034
|
}
|
|
13027
13035
|
// --------------------------------------------------------------------------
|
|
13028
13036
|
//
|
|
13029
13037
|
// Private Methods
|
|
13030
13038
|
//
|
|
13031
13039
|
// --------------------------------------------------------------------------
|
|
13032
|
-
|
|
13040
|
+
handleItemBackClick() {
|
|
13033
13041
|
this.back();
|
|
13034
13042
|
}
|
|
13035
13043
|
// --------------------------------------------------------------------------
|
|
@@ -13040,9 +13048,9 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13040
13048
|
render() {
|
|
13041
13049
|
const { flowDirection } = this;
|
|
13042
13050
|
const frameDirectionClasses = {
|
|
13043
|
-
[CSS$
|
|
13044
|
-
[CSS$
|
|
13045
|
-
[CSS$
|
|
13051
|
+
[CSS$A.frame]: true,
|
|
13052
|
+
[CSS$A.frameAdvancing]: flowDirection === "advancing",
|
|
13053
|
+
[CSS$A.frameRetreating]: flowDirection === "retreating"
|
|
13046
13054
|
};
|
|
13047
13055
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
13048
13056
|
}
|
|
@@ -13050,6 +13058,173 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13050
13058
|
static get style() { return flowCss; }
|
|
13051
13059
|
};
|
|
13052
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
|
+
|
|
13053
13228
|
/**
|
|
13054
13229
|
* Calculate slope of the tangents
|
|
13055
13230
|
* uses Steffen interpolation as it's monotonic
|
|
@@ -13268,11 +13443,11 @@ const Graph = class extends HTMLElement$1 {
|
|
|
13268
13443
|
static get style() { return graphCss; }
|
|
13269
13444
|
};
|
|
13270
13445
|
|
|
13271
|
-
const CSS$
|
|
13446
|
+
const CSS$x = {
|
|
13272
13447
|
handle: "handle",
|
|
13273
13448
|
handleActivated: "handle--activated"
|
|
13274
13449
|
};
|
|
13275
|
-
const ICONS$
|
|
13450
|
+
const ICONS$6 = {
|
|
13276
13451
|
drag: "drag"
|
|
13277
13452
|
};
|
|
13278
13453
|
|
|
@@ -13341,15 +13516,15 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13341
13516
|
render() {
|
|
13342
13517
|
return (
|
|
13343
13518
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
13344
|
-
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) => {
|
|
13345
13520
|
this.handleButton = el;
|
|
13346
|
-
}, 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" })));
|
|
13347
13522
|
}
|
|
13348
13523
|
get el() { return this; }
|
|
13349
13524
|
static get style() { return handleCss; }
|
|
13350
13525
|
};
|
|
13351
13526
|
|
|
13352
|
-
const CSS$
|
|
13527
|
+
const CSS$w = {
|
|
13353
13528
|
icon: "icon",
|
|
13354
13529
|
flipRtl: "flip-rtl"
|
|
13355
13530
|
};
|
|
@@ -13469,7 +13644,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13469
13644
|
const semantic = !!textLabel;
|
|
13470
13645
|
const paths = [].concat(pathData || "");
|
|
13471
13646
|
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
13472
|
-
[CSS$
|
|
13647
|
+
[CSS$w.flipRtl]: dir === "rtl" && flipRtl,
|
|
13473
13648
|
svg: true
|
|
13474
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 }))))));
|
|
13475
13650
|
}
|
|
@@ -13510,7 +13685,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13510
13685
|
static get style() { return iconCss; }
|
|
13511
13686
|
};
|
|
13512
13687
|
|
|
13513
|
-
const CSS$
|
|
13688
|
+
const CSS$v = {
|
|
13514
13689
|
wrapper: "wrapper",
|
|
13515
13690
|
confirmChangesButton: "confirm-changes-button",
|
|
13516
13691
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -13519,7 +13694,7 @@ const CSS$w = {
|
|
|
13519
13694
|
enableEditingButton: "enable-editing-button",
|
|
13520
13695
|
controlsWrapper: "controls-wrapper"
|
|
13521
13696
|
};
|
|
13522
|
-
const TEXT$
|
|
13697
|
+
const TEXT$e = {
|
|
13523
13698
|
intlEnablingEditing: "Click to edit",
|
|
13524
13699
|
intlCancelEditing: "Cancel",
|
|
13525
13700
|
intlConfirmChanges: "Save"
|
|
@@ -13553,19 +13728,19 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13553
13728
|
*
|
|
13554
13729
|
* @default "Click to edit"
|
|
13555
13730
|
*/
|
|
13556
|
-
this.intlEnableEditing = TEXT$
|
|
13731
|
+
this.intlEnableEditing = TEXT$e.intlEnablingEditing;
|
|
13557
13732
|
/**
|
|
13558
13733
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13559
13734
|
*
|
|
13560
13735
|
* @default "Cancel"
|
|
13561
13736
|
*/
|
|
13562
|
-
this.intlCancelEditing = TEXT$
|
|
13737
|
+
this.intlCancelEditing = TEXT$e.intlCancelEditing;
|
|
13563
13738
|
/**
|
|
13564
13739
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13565
13740
|
*
|
|
13566
13741
|
* @default "Save"
|
|
13567
13742
|
*/
|
|
13568
|
-
this.intlConfirmChanges = TEXT$
|
|
13743
|
+
this.intlConfirmChanges = TEXT$e.intlConfirmChanges;
|
|
13569
13744
|
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
13570
13745
|
this.enableEditing = () => {
|
|
13571
13746
|
var _a, _b;
|
|
@@ -13673,12 +13848,12 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13673
13848
|
updateHostInteraction(this);
|
|
13674
13849
|
}
|
|
13675
13850
|
render() {
|
|
13676
|
-
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: {
|
|
13677
13852
|
opacity: this.editingEnabled ? "0" : "1",
|
|
13678
13853
|
width: this.editingEnabled ? "0" : "inherit"
|
|
13679
13854
|
}, type: "button" }), this.shouldShowControls && [
|
|
13680
|
-
h("div", { class: CSS$
|
|
13681
|
-
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" })
|
|
13682
13857
|
])));
|
|
13683
13858
|
}
|
|
13684
13859
|
//--------------------------------------------------------------------------
|
|
@@ -13741,7 +13916,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13741
13916
|
static get style() { return inlineEditableCss; }
|
|
13742
13917
|
};
|
|
13743
13918
|
|
|
13744
|
-
const CSS$
|
|
13919
|
+
const CSS$u = {
|
|
13745
13920
|
loader: "loader",
|
|
13746
13921
|
clearButton: "clear-button",
|
|
13747
13922
|
editingEnabled: "editing-enabled",
|
|
@@ -13765,10 +13940,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
13765
13940
|
time: "clock",
|
|
13766
13941
|
search: "search"
|
|
13767
13942
|
};
|
|
13768
|
-
const SLOTS$
|
|
13943
|
+
const SLOTS$h = {
|
|
13769
13944
|
action: "action"
|
|
13770
13945
|
};
|
|
13771
|
-
const TEXT$
|
|
13946
|
+
const TEXT$d = {
|
|
13772
13947
|
clear: "Clear value"
|
|
13773
13948
|
};
|
|
13774
13949
|
|
|
@@ -13821,7 +13996,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13821
13996
|
*
|
|
13822
13997
|
* @default "Loading"
|
|
13823
13998
|
*/
|
|
13824
|
-
this.intlLoading = TEXT$
|
|
13999
|
+
this.intlLoading = TEXT$v.loading;
|
|
13825
14000
|
/** When true, the icon is flipped in RTL. */
|
|
13826
14001
|
this.iconFlipRtl = false;
|
|
13827
14002
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -14319,34 +14494,34 @@ const Input = class extends HTMLElement$1 {
|
|
|
14319
14494
|
// --------------------------------------------------------------------------
|
|
14320
14495
|
render() {
|
|
14321
14496
|
const dir = getElementDir(this.el);
|
|
14322
|
-
const loader = (h("div", { class: CSS$
|
|
14323
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
14324
|
-
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" }));
|
|
14325
14500
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
14326
14501
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14327
|
-
[CSS$
|
|
14328
|
-
[CSS$
|
|
14502
|
+
[CSS$u.numberButtonItem]: true,
|
|
14503
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14329
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" })));
|
|
14330
14505
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14331
|
-
[CSS$
|
|
14332
|
-
[CSS$
|
|
14506
|
+
[CSS$u.numberButtonItem]: true,
|
|
14507
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14333
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" })));
|
|
14334
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
14335
|
-
const prefixText = h("div", { class: CSS$
|
|
14336
|
-
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);
|
|
14337
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;
|
|
14338
14513
|
const childEl = this.type !== "number"
|
|
14339
14514
|
? [
|
|
14340
14515
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
14341
|
-
[CSS$
|
|
14342
|
-
[CSS$
|
|
14516
|
+
[CSS$u.editingEnabled]: this.editingEnabled,
|
|
14517
|
+
[CSS$u.inlineChild]: !!this.inlineEditableEl
|
|
14343
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 }),
|
|
14344
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
14519
|
+
this.isTextarea ? (h("div", { class: CSS$u.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
14345
14520
|
]
|
|
14346
14521
|
: null;
|
|
14347
|
-
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
|
|
14348
14523
|
? numberButtonsHorizontalDown
|
|
14349
|
-
: 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
|
|
14350
14525
|
? numberButtonsVertical
|
|
14351
14526
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14352
14527
|
? numberButtonsHorizontalUp
|
|
@@ -14364,12 +14539,12 @@ const Input = class extends HTMLElement$1 {
|
|
|
14364
14539
|
static get style() { return inputCss; }
|
|
14365
14540
|
};
|
|
14366
14541
|
|
|
14367
|
-
const CSS$
|
|
14542
|
+
const CSS$t = {
|
|
14368
14543
|
menu: "menu-container",
|
|
14369
14544
|
menuActive: "menu-container--active"
|
|
14370
14545
|
};
|
|
14371
14546
|
|
|
14372
|
-
const inputDatePickerCss = "@-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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--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)}:host .menu-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--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-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;inset-inline-start:0px;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);pointer-events:none;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .menu-container{pointer-events:initial;visibility:visible}.menu-container--active{pointer-events:initial;visibility:visible}.input .calcite-input__wrapper{-webkit-margin-before:0px;margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
14547
|
+
const inputDatePickerCss = "@-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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--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)}:host .menu-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--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-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;inset-inline-start:0px;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);inline-size:0;block-size:0;overflow:hidden;pointer-events:none;visibility:hidden}.menu-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .menu-container{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.menu-container--active{pointer-events:initial;visibility:visible;inline-size:unset;block-size:unset;overflow:unset}.input .calcite-input__wrapper{-webkit-margin-before:0px;margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
14373
14548
|
|
|
14374
14549
|
const InputDatePicker = class extends HTMLElement$1 {
|
|
14375
14550
|
constructor() {
|
|
@@ -14411,19 +14586,19 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14411
14586
|
*
|
|
14412
14587
|
* @default "Previous month"
|
|
14413
14588
|
*/
|
|
14414
|
-
this.intlPrevMonth = TEXT$
|
|
14589
|
+
this.intlPrevMonth = TEXT$i.prevMonth;
|
|
14415
14590
|
/**
|
|
14416
14591
|
* Localized string for "next month" (used for aria label)
|
|
14417
14592
|
*
|
|
14418
14593
|
* @default "Next month"
|
|
14419
14594
|
*/
|
|
14420
|
-
this.intlNextMonth = TEXT$
|
|
14595
|
+
this.intlNextMonth = TEXT$i.nextMonth;
|
|
14421
14596
|
/**
|
|
14422
14597
|
* Localized string for "year" (used for aria label)
|
|
14423
14598
|
*
|
|
14424
14599
|
* @default "Year"
|
|
14425
14600
|
*/
|
|
14426
|
-
this.intlYear = TEXT$
|
|
14601
|
+
this.intlYear = TEXT$i.year;
|
|
14427
14602
|
/** BCP 47 language tag for desired language and country format */
|
|
14428
14603
|
this.locale = document.documentElement.lang || "en";
|
|
14429
14604
|
/** specify the scale of the date picker */
|
|
@@ -14576,6 +14751,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14576
14751
|
}
|
|
14577
14752
|
flipPlacementsHandler() {
|
|
14578
14753
|
this.setFilteredPlacements();
|
|
14754
|
+
this.reposition();
|
|
14579
14755
|
}
|
|
14580
14756
|
onMinChanged(min) {
|
|
14581
14757
|
if (min) {
|
|
@@ -14627,12 +14803,13 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14627
14803
|
}
|
|
14628
14804
|
/** Updates the position of the component. */
|
|
14629
14805
|
async reposition() {
|
|
14630
|
-
const { floatingEl, referenceEl, placement, overlayPositioning } = this;
|
|
14806
|
+
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
14631
14807
|
return positionFloatingUI({
|
|
14632
14808
|
floatingEl,
|
|
14633
14809
|
referenceEl,
|
|
14634
14810
|
overlayPositioning,
|
|
14635
14811
|
placement,
|
|
14812
|
+
flipPlacements: filteredFlipPlacements,
|
|
14636
14813
|
type: "menu"
|
|
14637
14814
|
});
|
|
14638
14815
|
}
|
|
@@ -14670,8 +14847,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14670
14847
|
connectLabel(this);
|
|
14671
14848
|
connectForm(this);
|
|
14672
14849
|
connectOpenCloseComponent(this);
|
|
14673
|
-
this.reposition();
|
|
14674
14850
|
this.setFilteredPlacements();
|
|
14851
|
+
this.reposition();
|
|
14675
14852
|
}
|
|
14676
14853
|
async componentWillLoad() {
|
|
14677
14854
|
await this.loadLocaleData();
|
|
@@ -14700,8 +14877,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14700
14877
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14701
14878
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14702
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: {
|
|
14703
|
-
[CSS$
|
|
14704
|
-
[CSS$
|
|
14880
|
+
[CSS$t.menu]: true,
|
|
14881
|
+
[CSS$t.menuActive]: this.open
|
|
14705
14882
|
}, ref: this.setFloatingEl }, h("div", { class: {
|
|
14706
14883
|
["calendar-picker-wrapper"]: true,
|
|
14707
14884
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -14960,7 +15137,7 @@ const InputMessage = class extends HTMLElement$1 {
|
|
|
14960
15137
|
static get style() { return inputMessageCss; }
|
|
14961
15138
|
};
|
|
14962
15139
|
|
|
14963
|
-
const CSS$
|
|
15140
|
+
const CSS$s = {
|
|
14964
15141
|
loader: "loader",
|
|
14965
15142
|
clearButton: "clear-button",
|
|
14966
15143
|
editingEnabled: "editing-enabled",
|
|
@@ -14976,10 +15153,10 @@ const CSS$t = {
|
|
|
14976
15153
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
14977
15154
|
numberButtonItem: "number-button-item"
|
|
14978
15155
|
};
|
|
14979
|
-
const SLOTS$
|
|
15156
|
+
const SLOTS$g = {
|
|
14980
15157
|
action: "action"
|
|
14981
15158
|
};
|
|
14982
|
-
const TEXT$
|
|
15159
|
+
const TEXT$c = {
|
|
14983
15160
|
clear: "Clear value"
|
|
14984
15161
|
};
|
|
14985
15162
|
|
|
@@ -15032,7 +15209,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15032
15209
|
*
|
|
15033
15210
|
* @default "Loading"
|
|
15034
15211
|
*/
|
|
15035
|
-
this.intlLoading = TEXT$
|
|
15212
|
+
this.intlLoading = TEXT$v.loading;
|
|
15036
15213
|
/** When true, the icon is flipped in RTL. */
|
|
15037
15214
|
this.iconFlipRtl = false;
|
|
15038
15215
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15446,25 +15623,25 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15446
15623
|
// --------------------------------------------------------------------------
|
|
15447
15624
|
render() {
|
|
15448
15625
|
const dir = getElementDir(this.el);
|
|
15449
|
-
const loader = (h("div", { class: CSS$
|
|
15450
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15451
|
-
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" }));
|
|
15452
15629
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
15453
15630
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
15454
|
-
[CSS$
|
|
15455
|
-
[CSS$
|
|
15631
|
+
[CSS$s.numberButtonItem]: true,
|
|
15632
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15456
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" })));
|
|
15457
15634
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
15458
|
-
[CSS$
|
|
15459
|
-
[CSS$
|
|
15635
|
+
[CSS$s.numberButtonItem]: true,
|
|
15636
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15460
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" })));
|
|
15461
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
15462
|
-
const prefixText = h("div", { class: CSS$
|
|
15463
|
-
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);
|
|
15464
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 }));
|
|
15465
|
-
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
|
|
15466
15643
|
? numberButtonsHorizontalDown
|
|
15467
|
-
: 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
|
|
15468
15645
|
? numberButtonsHorizontalUp
|
|
15469
15646
|
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
15470
15647
|
}
|
|
@@ -15479,7 +15656,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15479
15656
|
static get style() { return inputNumberCss; }
|
|
15480
15657
|
};
|
|
15481
15658
|
|
|
15482
|
-
const CSS$
|
|
15659
|
+
const CSS$r = {
|
|
15483
15660
|
loader: "loader",
|
|
15484
15661
|
clearButton: "clear-button",
|
|
15485
15662
|
editingEnabled: "editing-enabled",
|
|
@@ -15492,10 +15669,10 @@ const CSS$s = {
|
|
|
15492
15669
|
actionWrapper: "action-wrapper",
|
|
15493
15670
|
resizeIconWrapper: "resize-icon-wrapper"
|
|
15494
15671
|
};
|
|
15495
|
-
const SLOTS$
|
|
15672
|
+
const SLOTS$f = {
|
|
15496
15673
|
action: "action"
|
|
15497
15674
|
};
|
|
15498
|
-
const TEXT$
|
|
15675
|
+
const TEXT$b = {
|
|
15499
15676
|
clear: "Clear value"
|
|
15500
15677
|
};
|
|
15501
15678
|
|
|
@@ -15544,7 +15721,7 @@ const InputText = class extends HTMLElement$1 {
|
|
|
15544
15721
|
*
|
|
15545
15722
|
* @default "Loading"
|
|
15546
15723
|
*/
|
|
15547
|
-
this.intlLoading = TEXT$
|
|
15724
|
+
this.intlLoading = TEXT$v.loading;
|
|
15548
15725
|
/** When true, the icon is flipped in RTL. */
|
|
15549
15726
|
this.iconFlipRtl = false;
|
|
15550
15727
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15786,16 +15963,16 @@ const InputText = class extends HTMLElement$1 {
|
|
|
15786
15963
|
// --------------------------------------------------------------------------
|
|
15787
15964
|
render() {
|
|
15788
15965
|
const dir = getElementDir(this.el);
|
|
15789
|
-
const loader = (h("div", { class: CSS$
|
|
15790
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15791
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
15792
|
-
const prefixText = h("div", { class: CSS$
|
|
15793
|
-
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);
|
|
15794
15971
|
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
15795
|
-
[CSS$
|
|
15796
|
-
[CSS$
|
|
15972
|
+
[CSS$r.editingEnabled]: this.editingEnabled,
|
|
15973
|
+
[CSS$r.inlineChild]: !!this.inlineEditableEl
|
|
15797
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 }));
|
|
15798
|
-
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 }))));
|
|
15799
15976
|
}
|
|
15800
15977
|
get el() { return this; }
|
|
15801
15978
|
static get watchers() { return {
|
|
@@ -16237,7 +16414,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
16237
16414
|
static get style() { return inputTimePickerCss; }
|
|
16238
16415
|
};
|
|
16239
16416
|
|
|
16240
|
-
const CSS$
|
|
16417
|
+
const CSS$q = {
|
|
16241
16418
|
container: "container"
|
|
16242
16419
|
};
|
|
16243
16420
|
|
|
@@ -16301,7 +16478,7 @@ const Label = class extends HTMLElement$1 {
|
|
|
16301
16478
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
16302
16479
|
}
|
|
16303
16480
|
render() {
|
|
16304
|
-
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$
|
|
16481
|
+
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$q.container }, h("slot", null))));
|
|
16305
16482
|
}
|
|
16306
16483
|
get el() { return this; }
|
|
16307
16484
|
static get style() { return labelCss; }
|
|
@@ -16373,7 +16550,7 @@ const Link = class extends HTMLElement$1 {
|
|
|
16373
16550
|
static get style() { return linkCss; }
|
|
16374
16551
|
};
|
|
16375
16552
|
|
|
16376
|
-
const CSS$
|
|
16553
|
+
const CSS$p = {
|
|
16377
16554
|
container: "container"
|
|
16378
16555
|
};
|
|
16379
16556
|
|
|
@@ -16418,13 +16595,13 @@ const List$1 = class extends HTMLElement$1 {
|
|
|
16418
16595
|
//
|
|
16419
16596
|
// --------------------------------------------------------------------------
|
|
16420
16597
|
render() {
|
|
16421
|
-
return (h(Host, { role: "list" }, h("div", { class: CSS$
|
|
16598
|
+
return (h(Host, { role: "list" }, h("div", { class: CSS$p.container }, h("slot", null))));
|
|
16422
16599
|
}
|
|
16423
16600
|
get el() { return this; }
|
|
16424
16601
|
static get style() { return listCss; }
|
|
16425
16602
|
};
|
|
16426
16603
|
|
|
16427
|
-
const CSS$
|
|
16604
|
+
const CSS$o = {
|
|
16428
16605
|
container: "container",
|
|
16429
16606
|
contentContainer: "content-container",
|
|
16430
16607
|
nestedContainer: "nested-container",
|
|
@@ -16438,7 +16615,7 @@ const CSS$p = {
|
|
|
16438
16615
|
actionsEnd: "actions-end",
|
|
16439
16616
|
hasCenterContent: "has-center-content"
|
|
16440
16617
|
};
|
|
16441
|
-
const SLOTS$
|
|
16618
|
+
const SLOTS$e = {
|
|
16442
16619
|
actionsStart: "actions-start",
|
|
16443
16620
|
contentStart: "content-start",
|
|
16444
16621
|
contentEnd: "content-end",
|
|
@@ -16502,46 +16679,46 @@ const ListItem = class extends HTMLElement$1 {
|
|
|
16502
16679
|
// --------------------------------------------------------------------------
|
|
16503
16680
|
renderActionsStart() {
|
|
16504
16681
|
const { el } = this;
|
|
16505
|
-
return getSlotted(el, SLOTS$
|
|
16682
|
+
return getSlotted(el, SLOTS$e.actionsStart) ? (h("div", { class: CSS$o.actionsStart }, h("slot", { name: SLOTS$e.actionsStart }))) : null;
|
|
16506
16683
|
}
|
|
16507
16684
|
renderActionsEnd() {
|
|
16508
16685
|
const { el } = this;
|
|
16509
|
-
return getSlotted(el, SLOTS$
|
|
16686
|
+
return getSlotted(el, SLOTS$e.actionsEnd) ? (h("div", { class: CSS$o.actionsEnd }, h("slot", { name: SLOTS$e.actionsEnd }))) : null;
|
|
16510
16687
|
}
|
|
16511
16688
|
renderContentStart() {
|
|
16512
16689
|
const { el } = this;
|
|
16513
|
-
return getSlotted(el, SLOTS$
|
|
16690
|
+
return getSlotted(el, SLOTS$e.contentStart) ? (h("div", { class: CSS$o.contentStart }, h("slot", { name: SLOTS$e.contentStart }))) : null;
|
|
16514
16691
|
}
|
|
16515
16692
|
renderContentEnd() {
|
|
16516
16693
|
const { el } = this;
|
|
16517
|
-
return getSlotted(el, SLOTS$
|
|
16694
|
+
return getSlotted(el, SLOTS$e.contentEnd) ? (h("div", { class: CSS$o.contentEnd }, h("slot", { name: SLOTS$e.contentEnd }))) : null;
|
|
16518
16695
|
}
|
|
16519
16696
|
renderContent() {
|
|
16520
16697
|
const { label, description } = this;
|
|
16521
|
-
return !!label || !!description ? (h("div", { class: CSS$
|
|
16698
|
+
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;
|
|
16522
16699
|
}
|
|
16523
16700
|
renderContentContainer() {
|
|
16524
16701
|
const { description, disabled, label, nonInteractive } = this;
|
|
16525
16702
|
const hasCenterContent = !!label || !!description;
|
|
16526
16703
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
16527
16704
|
return !nonInteractive ? (h("button", { class: {
|
|
16528
|
-
[CSS$
|
|
16529
|
-
[CSS$
|
|
16530
|
-
[CSS$
|
|
16531
|
-
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$
|
|
16705
|
+
[CSS$o.contentContainer]: true,
|
|
16706
|
+
[CSS$o.contentContainerButton]: true,
|
|
16707
|
+
[CSS$o.hasCenterContent]: hasCenterContent
|
|
16708
|
+
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$o.contentContainer]: true, [CSS$o.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
|
|
16532
16709
|
}
|
|
16533
16710
|
render() {
|
|
16534
|
-
return (h(Host, { role: "listitem" }, h("div", { class: CSS$
|
|
16711
|
+
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))));
|
|
16535
16712
|
}
|
|
16536
16713
|
get el() { return this; }
|
|
16537
16714
|
static get style() { return listItemCss; }
|
|
16538
16715
|
};
|
|
16539
16716
|
|
|
16540
|
-
const CSS$
|
|
16717
|
+
const CSS$n = {
|
|
16541
16718
|
heading: "heading",
|
|
16542
16719
|
container: "container"
|
|
16543
16720
|
};
|
|
16544
|
-
const HEADING_LEVEL$
|
|
16721
|
+
const HEADING_LEVEL$4 = 3;
|
|
16545
16722
|
|
|
16546
16723
|
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}";
|
|
16547
16724
|
|
|
@@ -16561,8 +16738,8 @@ const ListItemGroup = class extends HTMLElement$1 {
|
|
|
16561
16738
|
const { el, heading, headingLevel } = this;
|
|
16562
16739
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
16563
16740
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
16564
|
-
const level = headingLevel || relativeLevel || HEADING_LEVEL$
|
|
16565
|
-
return (h(Host, null, heading ? (h(Heading, { class: CSS$
|
|
16741
|
+
const level = headingLevel || relativeLevel || HEADING_LEVEL$4;
|
|
16742
|
+
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))));
|
|
16566
16743
|
}
|
|
16567
16744
|
get el() { return this; }
|
|
16568
16745
|
static get style() { return listItemGroupCss; }
|
|
@@ -16755,8 +16932,9 @@ function isFocusable($elem) {
|
|
|
16755
16932
|
|| $elem instanceof HTMLIFrameElement);
|
|
16756
16933
|
}
|
|
16757
16934
|
|
|
16758
|
-
const CSS$
|
|
16935
|
+
const CSS$m = {
|
|
16759
16936
|
modal: "modal",
|
|
16937
|
+
modalOpen: "modal--open",
|
|
16760
16938
|
title: "title",
|
|
16761
16939
|
header: "header",
|
|
16762
16940
|
footer: "footer",
|
|
@@ -16773,21 +16951,21 @@ const CSS$n = {
|
|
|
16773
16951
|
closingIdle: "modal--closing-idle",
|
|
16774
16952
|
closingActive: "modal--closing-active"
|
|
16775
16953
|
};
|
|
16776
|
-
const ICONS$
|
|
16954
|
+
const ICONS$5 = {
|
|
16777
16955
|
close: "x"
|
|
16778
16956
|
};
|
|
16779
|
-
const SLOTS$
|
|
16957
|
+
const SLOTS$d = {
|
|
16780
16958
|
content: "content",
|
|
16781
16959
|
header: "header",
|
|
16782
16960
|
back: "back",
|
|
16783
16961
|
secondary: "secondary",
|
|
16784
16962
|
primary: "primary"
|
|
16785
16963
|
};
|
|
16786
|
-
const TEXT$
|
|
16964
|
+
const TEXT$a = {
|
|
16787
16965
|
close: "Close"
|
|
16788
16966
|
};
|
|
16789
16967
|
|
|
16790
|
-
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}}";
|
|
16968
|
+
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));-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}}";
|
|
16791
16969
|
|
|
16792
16970
|
const isFocusableExtended = (el) => {
|
|
16793
16971
|
return isCalciteFocusable(el) || isFocusable(el);
|
|
@@ -16824,7 +17002,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16824
17002
|
/** When true, disables the closing of the component when clicked outside. */
|
|
16825
17003
|
this.disableOutsideClose = false;
|
|
16826
17004
|
/** Accessible name for the component's close button. */
|
|
16827
|
-
this.intlClose = TEXT$
|
|
17005
|
+
this.intlClose = TEXT$a.close;
|
|
16828
17006
|
/** When true, disables the default close on escape behavior. */
|
|
16829
17007
|
this.disableEscape = false;
|
|
16830
17008
|
/** Specifies the size of the component. */
|
|
@@ -16845,6 +17023,12 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16845
17023
|
//
|
|
16846
17024
|
//--------------------------------------------------------------------------
|
|
16847
17025
|
this.hasFooter = true;
|
|
17026
|
+
/**
|
|
17027
|
+
* We use internal variable to make sure initially open modal can transition from closed state when rendered
|
|
17028
|
+
*
|
|
17029
|
+
* @private
|
|
17030
|
+
*/
|
|
17031
|
+
this.isOpen = false;
|
|
16848
17032
|
this.mutationObserver = createObserver("mutation", () => this.updateFooterVisibility());
|
|
16849
17033
|
this.openTransitionProp = "opacity";
|
|
16850
17034
|
//--------------------------------------------------------------------------
|
|
@@ -16870,6 +17054,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16870
17054
|
this.close = () => {
|
|
16871
17055
|
return this.beforeClose(this.el).then(() => {
|
|
16872
17056
|
this.open = false;
|
|
17057
|
+
this.isOpen = false;
|
|
16873
17058
|
focusElement(this.previousActiveElement);
|
|
16874
17059
|
this.removeOverflowHiddenClass();
|
|
16875
17060
|
});
|
|
@@ -16887,7 +17072,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16887
17072
|
}
|
|
16888
17073
|
};
|
|
16889
17074
|
this.updateFooterVisibility = () => {
|
|
16890
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
17075
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$d.back, SLOTS$d.primary, SLOTS$d.secondary]);
|
|
16891
17076
|
};
|
|
16892
17077
|
}
|
|
16893
17078
|
//--------------------------------------------------------------------------
|
|
@@ -16898,7 +17083,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16898
17083
|
componentWillLoad() {
|
|
16899
17084
|
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
|
16900
17085
|
if (this.open) {
|
|
16901
|
-
this.openModal();
|
|
17086
|
+
requestAnimationFrame(() => this.openModal());
|
|
16902
17087
|
}
|
|
16903
17088
|
}
|
|
16904
17089
|
connectedCallback() {
|
|
@@ -16922,26 +17107,29 @@ const Modal = class extends HTMLElement$1 {
|
|
|
16922
17107
|
disconnectOpenCloseComponent(this);
|
|
16923
17108
|
}
|
|
16924
17109
|
render() {
|
|
16925
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$
|
|
17110
|
+
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: {
|
|
17111
|
+
[CSS$m.modal]: true,
|
|
17112
|
+
[CSS$m.modalOpen]: this.isOpen
|
|
17113
|
+
}, 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: {
|
|
16926
17114
|
content: true,
|
|
16927
17115
|
"content--spaced": !this.noPadding,
|
|
16928
17116
|
"content--no-footer": !this.hasFooter
|
|
16929
|
-
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$
|
|
17117
|
+
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$d.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
16930
17118
|
}
|
|
16931
17119
|
renderFooter() {
|
|
16932
|
-
return this.hasFooter ? (h("div", { class: CSS$
|
|
17120
|
+
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;
|
|
16933
17121
|
}
|
|
16934
17122
|
renderCloseButton() {
|
|
16935
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
17123
|
+
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;
|
|
16936
17124
|
}
|
|
16937
17125
|
renderStyle() {
|
|
16938
17126
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
16939
17127
|
return hasCustomWidth ? (h("style", null, `
|
|
16940
|
-
.${CSS$
|
|
17128
|
+
.${CSS$m.modal} {
|
|
16941
17129
|
max-width: ${this.width}px !important;
|
|
16942
17130
|
}
|
|
16943
17131
|
@media screen and (max-width: ${this.width}px) {
|
|
16944
|
-
.${CSS$
|
|
17132
|
+
.${CSS$m.modal} {
|
|
16945
17133
|
height: 100% !important;
|
|
16946
17134
|
max-height: 100% !important;
|
|
16947
17135
|
width: 100% !important;
|
|
@@ -17014,19 +17202,19 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17014
17202
|
}
|
|
17015
17203
|
}
|
|
17016
17204
|
onBeforeOpen() {
|
|
17017
|
-
this.transitionEl.classList.add(CSS$
|
|
17205
|
+
this.transitionEl.classList.add(CSS$m.openingActive);
|
|
17018
17206
|
this.calciteModalBeforeOpen.emit();
|
|
17019
17207
|
}
|
|
17020
17208
|
onOpen() {
|
|
17021
|
-
this.transitionEl.classList.remove(CSS$
|
|
17209
|
+
this.transitionEl.classList.remove(CSS$m.openingIdle, CSS$m.openingActive);
|
|
17022
17210
|
this.calciteModalOpen.emit();
|
|
17023
17211
|
}
|
|
17024
17212
|
onBeforeClose() {
|
|
17025
|
-
this.transitionEl.classList.add(CSS$
|
|
17213
|
+
this.transitionEl.classList.add(CSS$m.closingActive);
|
|
17026
17214
|
this.calciteModalBeforeClose.emit();
|
|
17027
17215
|
}
|
|
17028
17216
|
onClose() {
|
|
17029
|
-
this.transitionEl.classList.remove(CSS$
|
|
17217
|
+
this.transitionEl.classList.remove(CSS$m.closingIdle, CSS$m.closingActive);
|
|
17030
17218
|
this.calciteModalClose.emit();
|
|
17031
17219
|
}
|
|
17032
17220
|
activeHandler(value) {
|
|
@@ -17036,11 +17224,11 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17036
17224
|
var _a, _b;
|
|
17037
17225
|
this.active = value;
|
|
17038
17226
|
if (value) {
|
|
17039
|
-
(_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS$
|
|
17227
|
+
(_a = this.transitionEl) === null || _a === void 0 ? void 0 : _a.classList.add(CSS$m.openingIdle);
|
|
17040
17228
|
this.openModal();
|
|
17041
17229
|
}
|
|
17042
17230
|
else {
|
|
17043
|
-
(_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS$
|
|
17231
|
+
(_b = this.transitionEl) === null || _b === void 0 ? void 0 : _b.classList.add(CSS$m.closingIdle);
|
|
17044
17232
|
this.close();
|
|
17045
17233
|
}
|
|
17046
17234
|
}
|
|
@@ -17049,14 +17237,15 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17049
17237
|
this.previousActiveElement = document.activeElement;
|
|
17050
17238
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
17051
17239
|
this.open = true;
|
|
17052
|
-
|
|
17053
|
-
const
|
|
17240
|
+
this.isOpen = true;
|
|
17241
|
+
const titleEl = getSlotted(this.el, SLOTS$d.header);
|
|
17242
|
+
const contentEl = getSlotted(this.el, SLOTS$d.content);
|
|
17054
17243
|
this.titleId = ensureId(titleEl);
|
|
17055
17244
|
this.contentId = ensureId(contentEl);
|
|
17056
|
-
document.documentElement.classList.add(CSS$
|
|
17245
|
+
document.documentElement.classList.add(CSS$m.overflowHidden);
|
|
17057
17246
|
}
|
|
17058
17247
|
removeOverflowHiddenClass() {
|
|
17059
|
-
document.documentElement.classList.remove(CSS$
|
|
17248
|
+
document.documentElement.classList.remove(CSS$m.overflowHidden);
|
|
17060
17249
|
}
|
|
17061
17250
|
get el() { return this; }
|
|
17062
17251
|
static get watchers() { return {
|
|
@@ -17066,16 +17255,16 @@ const Modal = class extends HTMLElement$1 {
|
|
|
17066
17255
|
static get style() { return modalCss; }
|
|
17067
17256
|
};
|
|
17068
17257
|
|
|
17069
|
-
const TEXT$
|
|
17258
|
+
const TEXT$9 = {
|
|
17070
17259
|
close: "Close"
|
|
17071
17260
|
};
|
|
17072
|
-
const SLOTS$
|
|
17261
|
+
const SLOTS$c = {
|
|
17073
17262
|
title: "title",
|
|
17074
17263
|
message: "message",
|
|
17075
17264
|
link: "link",
|
|
17076
17265
|
actionsEnd: "actions-end"
|
|
17077
17266
|
};
|
|
17078
|
-
const CSS$
|
|
17267
|
+
const CSS$l = {
|
|
17079
17268
|
actionsEnd: "actions-end",
|
|
17080
17269
|
close: "notice-close",
|
|
17081
17270
|
container: "container",
|
|
@@ -17120,7 +17309,7 @@ const Notice = class extends HTMLElement$1 {
|
|
|
17120
17309
|
*
|
|
17121
17310
|
* @default "Close"
|
|
17122
17311
|
*/
|
|
17123
|
-
this.intlClose = TEXT$
|
|
17312
|
+
this.intlClose = TEXT$9.close;
|
|
17124
17313
|
/** Specifies the size of the component. */
|
|
17125
17314
|
this.scale = "m";
|
|
17126
17315
|
/** Specifies the width of the component. */
|
|
@@ -17177,9 +17366,9 @@ const Notice = class extends HTMLElement$1 {
|
|
|
17177
17366
|
}
|
|
17178
17367
|
render() {
|
|
17179
17368
|
const { el } = this;
|
|
17180
|
-
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
17181
|
-
const hasActionEnd = getSlotted(el, SLOTS$
|
|
17182
|
-
return (h("div", { class: CSS$
|
|
17369
|
+
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" })));
|
|
17370
|
+
const hasActionEnd = getSlotted(el, SLOTS$c.actionsEnd);
|
|
17371
|
+
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));
|
|
17183
17372
|
}
|
|
17184
17373
|
//--------------------------------------------------------------------------
|
|
17185
17374
|
//
|
|
@@ -17388,7 +17577,7 @@ function unwatchGlobalAttributes(component) {
|
|
|
17388
17577
|
}
|
|
17389
17578
|
}
|
|
17390
17579
|
|
|
17391
|
-
const CSS$
|
|
17580
|
+
const CSS$k = {
|
|
17392
17581
|
page: "page",
|
|
17393
17582
|
selected: "is-selected",
|
|
17394
17583
|
previous: "previous",
|
|
@@ -17398,7 +17587,7 @@ const CSS$l = {
|
|
|
17398
17587
|
ellipsisStart: "ellipsis--start",
|
|
17399
17588
|
ellipsisEnd: "ellipsis--end"
|
|
17400
17589
|
};
|
|
17401
|
-
const TEXT$
|
|
17590
|
+
const TEXT$8 = {
|
|
17402
17591
|
nextLabel: "Next",
|
|
17403
17592
|
previousLabel: "Previous"
|
|
17404
17593
|
};
|
|
@@ -17429,13 +17618,13 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17429
17618
|
*
|
|
17430
17619
|
* @default "Next"
|
|
17431
17620
|
*/
|
|
17432
|
-
this.textLabelNext = TEXT$
|
|
17621
|
+
this.textLabelNext = TEXT$8.nextLabel;
|
|
17433
17622
|
/**
|
|
17434
17623
|
* Accessible name for the component's previous button.
|
|
17435
17624
|
*
|
|
17436
17625
|
* @default "Previous"
|
|
17437
17626
|
*/
|
|
17438
|
-
this.textLabelPrevious = TEXT$
|
|
17627
|
+
this.textLabelPrevious = TEXT$8.previousLabel;
|
|
17439
17628
|
/** Specifies the size of the component. */
|
|
17440
17629
|
this.scale = "m";
|
|
17441
17630
|
//--------------------------------------------------------------------------
|
|
@@ -17545,8 +17734,8 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17545
17734
|
const lang = this.globalAttributes["lang"] || document.documentElement.lang || "en";
|
|
17546
17735
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
17547
17736
|
return (h("button", { class: {
|
|
17548
|
-
[CSS$
|
|
17549
|
-
[CSS$
|
|
17737
|
+
[CSS$k.page]: true,
|
|
17738
|
+
[CSS$k.selected]: start === this.start
|
|
17550
17739
|
}, onClick: () => {
|
|
17551
17740
|
this.start = start;
|
|
17552
17741
|
this.emitUpdate();
|
|
@@ -17554,12 +17743,12 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17554
17743
|
}
|
|
17555
17744
|
renderLeftEllipsis() {
|
|
17556
17745
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
17557
|
-
return h("span", { class: `${CSS$
|
|
17746
|
+
return h("span", { class: `${CSS$k.ellipsis} ${CSS$k.ellipsisStart}` }, "\u2026");
|
|
17558
17747
|
}
|
|
17559
17748
|
}
|
|
17560
17749
|
renderRightEllipsis() {
|
|
17561
17750
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
17562
|
-
return h("span", { class: `${CSS$
|
|
17751
|
+
return h("span", { class: `${CSS$k.ellipsis} ${CSS$k.ellipsisEnd}` }, "\u2026");
|
|
17563
17752
|
}
|
|
17564
17753
|
}
|
|
17565
17754
|
render() {
|
|
@@ -17567,62 +17756,18 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
17567
17756
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
17568
17757
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
17569
17758
|
return (h(Fragment, null, h("button", { "aria-label": this.textLabelPrevious, class: {
|
|
17570
|
-
[CSS$
|
|
17571
|
-
[CSS$
|
|
17759
|
+
[CSS$k.previous]: true,
|
|
17760
|
+
[CSS$k.disabled]: prevDisabled
|
|
17572
17761
|
}, 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: {
|
|
17573
|
-
[CSS$
|
|
17574
|
-
[CSS$
|
|
17762
|
+
[CSS$k.next]: true,
|
|
17763
|
+
[CSS$k.disabled]: nextDisabled
|
|
17575
17764
|
}, disabled: nextDisabled, onClick: this.nextClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
17576
17765
|
}
|
|
17577
17766
|
get el() { return this; }
|
|
17578
17767
|
static get style() { return paginationCss; }
|
|
17579
17768
|
};
|
|
17580
17769
|
|
|
17581
|
-
const
|
|
17582
|
-
backButton: "back-button",
|
|
17583
|
-
container: "container",
|
|
17584
|
-
header: "header",
|
|
17585
|
-
heading: "heading",
|
|
17586
|
-
summary: "summary",
|
|
17587
|
-
description: "description",
|
|
17588
|
-
headerContent: "header-content",
|
|
17589
|
-
headerActions: "header-actions",
|
|
17590
|
-
headerActionsEnd: "header-actions--end",
|
|
17591
|
-
headerActionsStart: "header-actions--start",
|
|
17592
|
-
contentWrapper: "content-wrapper",
|
|
17593
|
-
contentContainer: "content-container",
|
|
17594
|
-
contentHeight: "content-height",
|
|
17595
|
-
fabContainer: "fab-container",
|
|
17596
|
-
footer: "footer",
|
|
17597
|
-
menuContainer: "menu-container",
|
|
17598
|
-
menuButton: "menu-button",
|
|
17599
|
-
menu: "menu",
|
|
17600
|
-
menuOpen: "menu--open"
|
|
17601
|
-
};
|
|
17602
|
-
const ICONS$5 = {
|
|
17603
|
-
close: "x",
|
|
17604
|
-
menu: "ellipsis",
|
|
17605
|
-
backLeft: "chevron-left",
|
|
17606
|
-
backRight: "chevron-right"
|
|
17607
|
-
};
|
|
17608
|
-
const SLOTS$c = {
|
|
17609
|
-
headerActionsStart: "header-actions-start",
|
|
17610
|
-
headerActionsEnd: "header-actions-end",
|
|
17611
|
-
headerMenuActions: "header-menu-actions",
|
|
17612
|
-
headerContent: "header-content",
|
|
17613
|
-
fab: "fab",
|
|
17614
|
-
footer: "footer",
|
|
17615
|
-
footerActions: "footer-actions"
|
|
17616
|
-
};
|
|
17617
|
-
const TEXT$8 = {
|
|
17618
|
-
back: "Back",
|
|
17619
|
-
close: "Close",
|
|
17620
|
-
open: "Open",
|
|
17621
|
-
options: "Options"
|
|
17622
|
-
};
|
|
17623
|
-
const HEADING_LEVEL$4 = 3;
|
|
17624
|
-
|
|
17625
|
-
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}";
|
|
17770
|
+
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}";
|
|
17626
17771
|
|
|
17627
17772
|
const Panel = class extends HTMLElement$1 {
|
|
17628
17773
|
constructor() {
|
|
@@ -17660,6 +17805,8 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17660
17805
|
this.closable = false;
|
|
17661
17806
|
/**
|
|
17662
17807
|
* When true, displays a back button in the header.
|
|
17808
|
+
*
|
|
17809
|
+
* @deprecated use `calcite-flow-item` instead.
|
|
17663
17810
|
*/
|
|
17664
17811
|
this.showBackButton = false;
|
|
17665
17812
|
/**
|
|
@@ -17671,6 +17818,13 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17671
17818
|
*/
|
|
17672
17819
|
this.menuOpen = false;
|
|
17673
17820
|
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
|
17821
|
+
this.hasStartActions = false;
|
|
17822
|
+
this.hasEndActions = false;
|
|
17823
|
+
this.hasMenuItems = false;
|
|
17824
|
+
this.hasHeaderContent = false;
|
|
17825
|
+
this.hasFooterContent = false;
|
|
17826
|
+
this.hasFooterActions = false;
|
|
17827
|
+
this.hasFab = false;
|
|
17674
17828
|
// --------------------------------------------------------------------------
|
|
17675
17829
|
//
|
|
17676
17830
|
// Private Methods
|
|
@@ -17710,6 +17864,48 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17710
17864
|
this.backButtonClick = () => {
|
|
17711
17865
|
this.calcitePanelBackClick.emit();
|
|
17712
17866
|
};
|
|
17867
|
+
this.handleHeaderActionsStartSlotChange = (event) => {
|
|
17868
|
+
const elements = event.target.assignedElements({
|
|
17869
|
+
flatten: true
|
|
17870
|
+
});
|
|
17871
|
+
this.hasStartActions = !!elements.length;
|
|
17872
|
+
};
|
|
17873
|
+
this.handleHeaderActionsEndSlotChange = (event) => {
|
|
17874
|
+
const elements = event.target.assignedElements({
|
|
17875
|
+
flatten: true
|
|
17876
|
+
});
|
|
17877
|
+
this.hasEndActions = !!elements.length;
|
|
17878
|
+
};
|
|
17879
|
+
this.handleHeaderMenuActionsSlotChange = (event) => {
|
|
17880
|
+
const elements = event.target.assignedElements({
|
|
17881
|
+
flatten: true
|
|
17882
|
+
});
|
|
17883
|
+
this.hasMenuItems = !!elements.length;
|
|
17884
|
+
};
|
|
17885
|
+
this.handleHeaderContentSlotChange = (event) => {
|
|
17886
|
+
const elements = event.target.assignedElements({
|
|
17887
|
+
flatten: true
|
|
17888
|
+
});
|
|
17889
|
+
this.hasHeaderContent = !!elements.length;
|
|
17890
|
+
};
|
|
17891
|
+
this.handleFooterSlotChange = (event) => {
|
|
17892
|
+
const elements = event.target.assignedElements({
|
|
17893
|
+
flatten: true
|
|
17894
|
+
});
|
|
17895
|
+
this.hasFooterContent = !!elements.length;
|
|
17896
|
+
};
|
|
17897
|
+
this.handleFooterActionsSlotChange = (event) => {
|
|
17898
|
+
const elements = event.target.assignedElements({
|
|
17899
|
+
flatten: true
|
|
17900
|
+
});
|
|
17901
|
+
this.hasFooterActions = !!elements.length;
|
|
17902
|
+
};
|
|
17903
|
+
this.handleFabSlotChange = (event) => {
|
|
17904
|
+
const elements = event.target.assignedElements({
|
|
17905
|
+
flatten: true
|
|
17906
|
+
});
|
|
17907
|
+
this.hasFab = !!elements.length;
|
|
17908
|
+
};
|
|
17713
17909
|
this.setPanelScrollEl = (el) => {
|
|
17714
17910
|
var _a, _b;
|
|
17715
17911
|
this.panelScrollEl = el;
|
|
@@ -17747,7 +17943,6 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17747
17943
|
//
|
|
17748
17944
|
// --------------------------------------------------------------------------
|
|
17749
17945
|
connectedCallback() {
|
|
17750
|
-
connectConditionalSlotComponent(this);
|
|
17751
17946
|
const isClosed = this.dismissed || this.closed;
|
|
17752
17947
|
const isClosable = this.dismissible || this.closable;
|
|
17753
17948
|
if (isClosed) {
|
|
@@ -17761,7 +17956,6 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17761
17956
|
}
|
|
17762
17957
|
disconnectedCallback() {
|
|
17763
17958
|
var _a;
|
|
17764
|
-
disconnectConditionalSlotComponent(this);
|
|
17765
17959
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
17766
17960
|
}
|
|
17767
17961
|
// --------------------------------------------------------------------------
|
|
@@ -17775,16 +17969,24 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17775
17969
|
* @param focusId
|
|
17776
17970
|
*/
|
|
17777
17971
|
async setFocus(focusId) {
|
|
17778
|
-
|
|
17972
|
+
const { backButtonEl, closeButtonEl, containerEl } = this;
|
|
17973
|
+
if (focusId === "back-button") {
|
|
17974
|
+
backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
|
|
17975
|
+
return;
|
|
17976
|
+
}
|
|
17779
17977
|
if (focusId === "dismiss-button") {
|
|
17780
|
-
|
|
17978
|
+
closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
|
|
17781
17979
|
return;
|
|
17782
17980
|
}
|
|
17783
|
-
if (
|
|
17784
|
-
|
|
17981
|
+
if (backButtonEl) {
|
|
17982
|
+
backButtonEl.setFocus();
|
|
17785
17983
|
return;
|
|
17786
17984
|
}
|
|
17787
|
-
(
|
|
17985
|
+
if (closeButtonEl) {
|
|
17986
|
+
closeButtonEl.setFocus();
|
|
17987
|
+
return;
|
|
17988
|
+
}
|
|
17989
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
17788
17990
|
}
|
|
17789
17991
|
/**
|
|
17790
17992
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -17812,75 +18014,68 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17812
18014
|
const { el } = this;
|
|
17813
18015
|
const rtl = getElementDir(el) === "rtl";
|
|
17814
18016
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
17815
|
-
const label = intlBack || TEXT$
|
|
17816
|
-
const icon = rtl ? ICONS$
|
|
17817
|
-
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$
|
|
18017
|
+
const label = intlBack || TEXT$f.back;
|
|
18018
|
+
const icon = rtl ? ICONS$7.backRight : ICONS$7.backLeft;
|
|
18019
|
+
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;
|
|
17818
18020
|
}
|
|
17819
18021
|
renderHeaderContent() {
|
|
17820
|
-
const { heading, headingLevel, summary, description } = this;
|
|
17821
|
-
const headingNode = heading ? (h(Heading, { class: CSS$
|
|
17822
|
-
const descriptionNode = description || summary ? h("span", { class: CSS$
|
|
17823
|
-
return headingNode || descriptionNode ? (h("div", { class: CSS$
|
|
18022
|
+
const { heading, headingLevel, summary, description, hasHeaderContent } = this;
|
|
18023
|
+
const headingNode = heading ? (h(Heading, { class: CSS$y.heading, level: headingLevel || HEADING_LEVEL$5 }, heading)) : null;
|
|
18024
|
+
const descriptionNode = description || summary ? h("span", { class: CSS$y.description }, description || summary) : null;
|
|
18025
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (h("div", { class: CSS$y.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
17824
18026
|
}
|
|
17825
18027
|
/**
|
|
17826
18028
|
* Allows user to override the entire header-content node.
|
|
17827
18029
|
*/
|
|
17828
18030
|
renderHeaderSlottedContent() {
|
|
17829
|
-
return (h("div", { class: CSS$
|
|
18031
|
+
return (h("div", { class: CSS$y.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$i.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
17830
18032
|
}
|
|
17831
18033
|
renderHeaderStartActions() {
|
|
17832
|
-
const {
|
|
17833
|
-
|
|
17834
|
-
return hasStartActions ? (h("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, h("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
18034
|
+
const { hasStartActions } = this;
|
|
18035
|
+
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 })));
|
|
17835
18036
|
}
|
|
17836
18037
|
renderHeaderActionsEnd() {
|
|
17837
|
-
const { close,
|
|
17838
|
-
const text = intlClose || TEXT$
|
|
17839
|
-
const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS$
|
|
17840
|
-
const slotNode = h("slot", { name: SLOTS$
|
|
17841
|
-
const
|
|
17842
|
-
return
|
|
18038
|
+
const { close, hasEndActions, intlClose, closable } = this;
|
|
18039
|
+
const text = intlClose || TEXT$f.close;
|
|
18040
|
+
const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS$7.close, onClick: close, ref: this.setCloseRef, text: text })) : null;
|
|
18041
|
+
const slotNode = (h("slot", { name: SLOTS$i.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
18042
|
+
const showContainer = hasEndActions || closableNode;
|
|
18043
|
+
return (h("div", { class: { [CSS$y.headerActionsEnd]: true, [CSS$y.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
|
|
17843
18044
|
}
|
|
17844
18045
|
renderMenu() {
|
|
17845
|
-
const {
|
|
17846
|
-
|
|
17847
|
-
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;
|
|
18046
|
+
const { hasMenuItems, intlOptions, menuOpen } = this;
|
|
18047
|
+
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 })));
|
|
17848
18048
|
}
|
|
17849
18049
|
renderHeaderNode() {
|
|
17850
|
-
const {
|
|
17851
|
-
const
|
|
17852
|
-
const
|
|
17853
|
-
|
|
17854
|
-
? this.renderHeaderSlottedContent()
|
|
17855
|
-
: this.renderHeaderContent();
|
|
17856
|
-
const actionsNodeStart = this.renderHeaderStartActions();
|
|
17857
|
-
const actionsNodeEnd = this.renderHeaderActionsEnd();
|
|
17858
|
-
const headerMenuNode = this.renderMenu();
|
|
17859
|
-
return actionsNodeStart ||
|
|
18050
|
+
const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
|
|
18051
|
+
const headerContentNode = this.renderHeaderContent();
|
|
18052
|
+
const showHeader = showBackButton ||
|
|
18053
|
+
hasHeaderContent ||
|
|
17860
18054
|
headerContentNode ||
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
18055
|
+
hasStartActions ||
|
|
18056
|
+
hasEndActions ||
|
|
18057
|
+
closable ||
|
|
18058
|
+
hasMenuItems;
|
|
18059
|
+
return (h("header", { class: CSS$y.header, hidden: !showHeader }, this.renderBackButton(), this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu()));
|
|
17864
18060
|
}
|
|
17865
18061
|
renderFooterNode() {
|
|
17866
|
-
const {
|
|
17867
|
-
const
|
|
17868
|
-
|
|
17869
|
-
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;
|
|
18062
|
+
const { hasFooterContent, hasFooterActions } = this;
|
|
18063
|
+
const showFooter = hasFooterContent || hasFooterActions;
|
|
18064
|
+
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 })));
|
|
17870
18065
|
}
|
|
17871
18066
|
renderContent() {
|
|
17872
|
-
const {
|
|
17873
|
-
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
18067
|
+
const { hasFab } = this;
|
|
17874
18068
|
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
17875
18069
|
const contentWrapperKey = "content-wrapper";
|
|
17876
|
-
|
|
18070
|
+
const containerNode = hasFab ? (h("section", { class: CSS$y.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
|
|
18071
|
+
return (h("div", { class: { [CSS$y.contentWrapper]: true, [CSS$y.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
|
|
17877
18072
|
}
|
|
17878
18073
|
renderFab() {
|
|
17879
|
-
return (h("div", { class: CSS$
|
|
18074
|
+
return (h("div", { class: CSS$y.fabContainer, hidden: !this.hasFab }, h("slot", { name: SLOTS$i.fab, onSlotchange: this.handleFabSlotChange })));
|
|
17880
18075
|
}
|
|
17881
18076
|
render() {
|
|
17882
18077
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
17883
|
-
const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
18078
|
+
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()));
|
|
17884
18079
|
return (h(Fragment, null, loading ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
17885
18080
|
}
|
|
17886
18081
|
get el() { return this; }
|
|
@@ -18626,13 +18821,12 @@ class PopoverManager$1 {
|
|
|
18626
18821
|
};
|
|
18627
18822
|
this.togglePopovers = (event) => {
|
|
18628
18823
|
const composedPath = event.composedPath();
|
|
18629
|
-
const
|
|
18630
|
-
if (
|
|
18631
|
-
|
|
18632
|
-
return;
|
|
18824
|
+
const togglePopover = this.queryPopover(composedPath);
|
|
18825
|
+
if (togglePopover && !togglePopover.triggerDisabled) {
|
|
18826
|
+
togglePopover.toggle();
|
|
18633
18827
|
}
|
|
18634
18828
|
Array.from(this.registeredElements.values())
|
|
18635
|
-
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
18829
|
+
.filter((popover) => popover !== togglePopover && popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
18636
18830
|
.forEach((popover) => popover.toggle(false));
|
|
18637
18831
|
};
|
|
18638
18832
|
this.keyHandler = (event) => {
|
|
@@ -18836,6 +19030,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
18836
19030
|
}
|
|
18837
19031
|
flipPlacementsHandler() {
|
|
18838
19032
|
this.setFilteredPlacements();
|
|
19033
|
+
this.reposition();
|
|
18839
19034
|
}
|
|
18840
19035
|
offsetDistanceOffsetHandler() {
|
|
18841
19036
|
this.reposition();
|
|
@@ -18893,14 +19088,14 @@ const Popover = class extends HTMLElement$1 {
|
|
|
18893
19088
|
// --------------------------------------------------------------------------
|
|
18894
19089
|
/** Updates the position of the component. */
|
|
18895
19090
|
async reposition() {
|
|
18896
|
-
const { el, effectiveReferenceElement, placement, overlayPositioning, disableFlip,
|
|
19091
|
+
const { el, effectiveReferenceElement, placement, overlayPositioning, disableFlip, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl } = this;
|
|
18897
19092
|
return positionFloatingUI({
|
|
18898
19093
|
floatingEl: el,
|
|
18899
19094
|
referenceEl: effectiveReferenceElement,
|
|
18900
19095
|
overlayPositioning,
|
|
18901
19096
|
placement,
|
|
18902
19097
|
disableFlip,
|
|
18903
|
-
flipPlacements,
|
|
19098
|
+
flipPlacements: filteredFlipPlacements,
|
|
18904
19099
|
offsetDistance,
|
|
18905
19100
|
offsetSkidding,
|
|
18906
19101
|
arrowEl,
|
|
@@ -24430,7 +24625,7 @@ const CSS$7 = {
|
|
|
24430
24625
|
widthFull: "width-full"
|
|
24431
24626
|
};
|
|
24432
24627
|
|
|
24433
|
-
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
|
|
24628
|
+
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}";
|
|
24434
24629
|
|
|
24435
24630
|
const SplitButton = class extends HTMLElement$1 {
|
|
24436
24631
|
constructor() {
|
|
@@ -28300,7 +28495,8 @@ const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(DropdownGroup, [1,"
|
|
|
28300
28495
|
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"]]]);
|
|
28301
28496
|
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"]}]);
|
|
28302
28497
|
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]}]);
|
|
28303
|
-
const CalciteFlow = /*@__PURE__*/proxyCustomElement(Flow, [1,"calcite-flow",{"
|
|
28498
|
+
const CalciteFlow = /*@__PURE__*/proxyCustomElement(Flow, [1,"calcite-flow",{"flowDirection":[32],"itemCount":[32],"items":[32]},[[0,"calciteFlowItemBackClick","handleItemBackClick"],[0,"calcitePanelBackClick","handleItemBackClick"]]]);
|
|
28499
|
+
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"]}]);
|
|
28304
28500
|
const CalciteGraph = /*@__PURE__*/proxyCustomElement(Graph, [1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
28305
28501
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
28306
28502
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
@@ -28317,12 +28513,12 @@ const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"
|
|
|
28317
28513
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(ListItem, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
28318
28514
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(ListItemGroup, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|
|
28319
28515
|
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"]}]);
|
|
28320
|
-
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"]]]);
|
|
28516
|
+
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"]]]);
|
|
28321
28517
|
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]}]);
|
|
28322
28518
|
const CalciteOption = /*@__PURE__*/proxyCustomElement(Option, [1,"calcite-option",{"disabled":[516],"label":[1025],"selected":[516],"value":[1032]}]);
|
|
28323
28519
|
const CalciteOptionGroup = /*@__PURE__*/proxyCustomElement(OptionGroup, [1,"calcite-option-group",{"disabled":[516],"label":[1]}]);
|
|
28324
28520
|
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]}]);
|
|
28325
|
-
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"]}]);
|
|
28521
|
+
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]}]);
|
|
28326
28522
|
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"]]]);
|
|
28327
28523
|
const CalcitePickListGroup = /*@__PURE__*/proxyCustomElement(PickListGroup, [1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[2,"heading-level"]}]);
|
|
28328
28524
|
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]}]);
|
|
@@ -28396,6 +28592,7 @@ const defineCustomElements = (opts) => {
|
|
|
28396
28592
|
CalciteFab,
|
|
28397
28593
|
CalciteFilter,
|
|
28398
28594
|
CalciteFlow,
|
|
28595
|
+
CalciteFlowItem,
|
|
28399
28596
|
CalciteGraph,
|
|
28400
28597
|
CalciteHandle,
|
|
28401
28598
|
CalciteIcon,
|
|
@@ -28465,4 +28662,4 @@ const defineCustomElements = (opts) => {
|
|
|
28465
28662
|
}
|
|
28466
28663
|
};
|
|
28467
28664
|
|
|
28468
|
-
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 };
|
|
28665
|
+
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 };
|