@esri/calcite-components 1.9.0-next.1 → 1.9.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/icon/projectTemplate16.json +1 -0
- package/dist/calcite/assets/icon/projectTemplate24.json +1 -0
- package/dist/calcite/assets/icon/projectTemplate32.json +1 -0
- package/dist/calcite/assets/panel/t9n/index.d.ts +2 -0
- package/dist/calcite/assets/panel/t9n/messages.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ar.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_bg.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_bs.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ca.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_cs.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_da.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_de.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_el.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_en.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_es.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_et.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_fi.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_fr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_he.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_hr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_hu.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_id.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_it.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ja.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ko.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_lt.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_lv.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_nl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_no.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pt-BR.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pt-PT.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ro.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ru.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sk.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sv.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_th.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_tr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_uk.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_vi.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-CN.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-HK.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-TW.json +3 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/p-02117d4f.js +6 -0
- package/dist/calcite/{p-3cfdb76a.entry.js → p-0212e15e.entry.js} +2 -2
- package/dist/calcite/p-0414de17.js +6 -0
- package/dist/calcite/p-05004546.js +6 -0
- package/dist/calcite/p-0543d754.js +6 -0
- package/dist/calcite/{p-a05ea478.entry.js → p-058c2ef5.entry.js} +2 -2
- package/dist/calcite/{p-96a93a29.entry.js → p-05a0452f.entry.js} +2 -2
- package/dist/calcite/p-06caf28c.js +6 -0
- package/dist/calcite/{p-92c891f1.entry.js → p-0a63c952.entry.js} +2 -2
- package/dist/calcite/p-0c47332c.js +6 -0
- package/dist/calcite/{p-deec3ec3.entry.js → p-120827ea.entry.js} +2 -2
- package/dist/calcite/{p-248a8144.entry.js → p-12100a42.entry.js} +2 -2
- package/dist/calcite/{p-78bedeac.js → p-12d3e420.js} +2 -2
- package/dist/calcite/p-135086b9.js +6 -0
- package/dist/calcite/p-17708857.js +6 -0
- package/dist/calcite/{p-5093ec0e.entry.js → p-19482589.entry.js} +2 -2
- package/dist/calcite/{p-2538f9d1.entry.js → p-1bb88419.entry.js} +2 -2
- package/dist/calcite/p-1df8b8e1.entry.js +6 -0
- package/dist/calcite/p-2263b38a.js +6 -0
- package/dist/calcite/p-26c8a1dd.entry.js +6 -0
- package/dist/calcite/p-278670b4.js +6 -0
- package/dist/calcite/{p-9f4b49e2.entry.js → p-2885b7fe.entry.js} +2 -2
- package/dist/calcite/{p-a07bf5e6.entry.js → p-2a03c545.entry.js} +2 -2
- package/dist/calcite/p-2a573544.entry.js +6 -0
- package/dist/calcite/{p-0fb73d4a.js → p-2cd46259.js} +1 -1
- package/dist/calcite/p-2fd249f5.js +6 -0
- package/dist/calcite/{p-34df1dda.js → p-314938d8.js} +1 -1
- package/dist/calcite/{p-05bf947f.js → p-31db8988.js} +2 -2
- package/dist/calcite/{p-62dab0b7.entry.js → p-32ebceab.entry.js} +2 -2
- package/dist/calcite/{p-6cf97b3f.js → p-357246d0.js} +1 -1
- package/dist/calcite/{p-8264f365.entry.js → p-37309619.entry.js} +2 -2
- package/dist/calcite/p-383f8212.entry.js +6 -0
- package/dist/calcite/{p-c6f01194.js → p-39c94666.js} +1 -1
- package/dist/calcite/p-3b55244c.js +6 -0
- package/dist/calcite/p-3b7bd7e0.js +6 -0
- package/dist/calcite/p-3ee68554.js +6 -0
- package/dist/calcite/{p-b546fc0e.entry.js → p-4700c993.entry.js} +2 -2
- package/dist/calcite/p-490be162.js +6 -0
- package/dist/calcite/{p-e35bb182.entry.js → p-49873c38.entry.js} +2 -2
- package/dist/calcite/{p-d002e950.entry.js → p-49d63fec.entry.js} +2 -2
- package/dist/calcite/p-4cd694f4.js +6 -0
- package/dist/calcite/{p-63c8aa37.js → p-4f55412c.js} +2 -2
- package/dist/calcite/{p-f174f15f.js → p-54d89281.js} +2 -2
- package/dist/calcite/p-591296f6.js +6 -0
- package/dist/calcite/{p-644a3e09.entry.js → p-5ab95b3c.entry.js} +2 -2
- package/dist/calcite/{p-fdb5c2ef.entry.js → p-5b472290.entry.js} +2 -2
- package/dist/calcite/p-5b7b5d26.js +6 -0
- package/dist/calcite/{p-392a5eab.entry.js → p-5b9b2da5.entry.js} +2 -2
- package/dist/calcite/{p-2b891235.entry.js → p-5c13b071.entry.js} +2 -2
- package/dist/calcite/{p-072ac66f.entry.js → p-5e1c1a15.entry.js} +2 -2
- package/dist/calcite/{p-b5d16958.entry.js → p-5e30accb.entry.js} +2 -2
- package/dist/calcite/{p-23bfc451.js → p-6133d7b0.js} +2 -2
- package/dist/calcite/p-63dbe578.js +6 -0
- package/dist/calcite/{p-df5e6379.js → p-658b96c5.js} +1 -1
- package/dist/calcite/{p-67b6dec7.entry.js → p-68b7c1ef.entry.js} +2 -2
- package/dist/calcite/{p-80b4db84.js → p-6ae58a3d.js} +2 -2
- package/dist/calcite/{p-5f5f4a1c.entry.js → p-6b6001b6.entry.js} +2 -2
- package/dist/calcite/{p-af45e42f.entry.js → p-700a5f5a.entry.js} +2 -2
- package/dist/calcite/{p-a05dcc91.entry.js → p-71e3fbb6.entry.js} +2 -2
- package/dist/calcite/{p-e69f0192.entry.js → p-74733741.entry.js} +2 -2
- package/dist/calcite/p-7609fc80.js +6 -0
- package/dist/calcite/{p-aaf827ae.entry.js → p-764fd38a.entry.js} +2 -2
- package/dist/calcite/p-7856c091.entry.js +6 -0
- package/dist/calcite/p-78c3a367.js +6 -0
- package/dist/calcite/{p-60324a80.entry.js → p-791937f5.entry.js} +2 -2
- package/dist/calcite/p-795d952e.entry.js +6 -0
- package/dist/calcite/p-798c5567.js +6 -0
- package/dist/calcite/{p-28a2f48a.js → p-7a42c9f3.js} +2 -2
- package/dist/calcite/{p-36aea4b1.entry.js → p-7b3502cb.entry.js} +2 -2
- package/dist/calcite/{p-bb9dda24.js → p-7c790de3.js} +2 -2
- package/dist/calcite/p-7cb39d8d.js +6 -0
- package/dist/calcite/{p-37e58dd0.entry.js → p-7e27dc47.entry.js} +2 -2
- package/dist/calcite/p-7fb67684.js +6 -0
- package/dist/calcite/p-80fb6641.js +6 -0
- package/dist/calcite/p-8157d385.js +6 -0
- package/dist/calcite/p-82279878.entry.js +6 -0
- package/dist/calcite/p-83e358ed.entry.js +6 -0
- package/dist/calcite/{p-ed35eb62.entry.js → p-86ba3c71.entry.js} +2 -2
- package/dist/calcite/{p-75d2f191.js → p-8878e973.js} +1 -1
- package/dist/calcite/p-888776db.entry.js +6 -0
- package/dist/calcite/p-8b8dc006.js +6 -0
- package/dist/calcite/p-8bebb899.entry.js +6 -0
- package/dist/calcite/p-8c388b34.entry.js +6 -0
- package/dist/calcite/p-8c6ebf0f.js +6 -0
- package/dist/calcite/p-8c71fd47.entry.js +6 -0
- package/dist/calcite/p-8eccc1a7.entry.js +6 -0
- package/dist/calcite/{p-4c4c9438.entry.js → p-9017637b.entry.js} +2 -2
- package/dist/calcite/{p-976d83b3.js → p-9130e253.js} +2 -2
- package/dist/calcite/p-92d8531c.js +6 -0
- package/dist/calcite/p-930906cc.js +6 -0
- package/dist/calcite/{p-a75ce1f5.entry.js → p-9438bd1c.entry.js} +2 -2
- package/dist/calcite/p-986490b2.js +6 -0
- package/dist/calcite/p-9ae4e2d5.js +6 -0
- package/dist/calcite/{p-e8f6e0de.js → p-9d8a7033.js} +2 -2
- package/dist/calcite/{p-cf658566.entry.js → p-9e627c83.entry.js} +2 -2
- package/dist/calcite/{p-30684208.js → p-9fd7c8a5.js} +1 -1
- package/dist/calcite/p-a13f20a2.js +6 -0
- package/dist/calcite/p-a2d203c2.js +6 -0
- package/dist/calcite/p-a67df826.js +6 -0
- package/dist/calcite/p-a85c05f4.js +6 -0
- package/dist/calcite/p-ac7754a7.js +6 -0
- package/dist/calcite/{p-26dd8b91.js → p-acb77661.js} +1 -1
- package/dist/calcite/{p-f5f2e602.js → p-ae141934.js} +1 -1
- package/dist/calcite/p-b02603a9.js +6 -0
- package/dist/calcite/p-b190e76a.js +6 -0
- package/dist/calcite/p-b2e08bf5.js +6 -0
- package/dist/calcite/p-b31079ad.js +6 -0
- package/dist/calcite/{p-3718907b.entry.js → p-b49d7672.entry.js} +2 -2
- package/dist/calcite/{p-8a384415.entry.js → p-b5c3eb26.entry.js} +2 -2
- package/dist/calcite/{p-ead035c3.entry.js → p-b7098cd3.entry.js} +2 -2
- package/dist/calcite/p-b8450f7e.entry.js +6 -0
- package/dist/calcite/{p-b67936ed.entry.js → p-b91e27ab.entry.js} +2 -2
- package/dist/calcite/{p-769e56ec.entry.js → p-b9e96001.entry.js} +2 -2
- package/dist/calcite/{p-bb309124.js → p-bc5445d3.js} +1 -1
- package/dist/calcite/{p-24f2f4ad.entry.js → p-bcfcedfa.entry.js} +2 -2
- package/dist/calcite/p-be589361.entry.js +6 -0
- package/dist/calcite/p-c0d41a6a.js +6 -0
- package/dist/calcite/p-c3e571cd.entry.js +6 -0
- package/dist/calcite/p-c449ad5e.entry.js +6 -0
- package/dist/calcite/p-c50040ca.entry.js +6 -0
- package/dist/calcite/p-c54abd64.js +6 -0
- package/dist/calcite/p-c927e466.js +6 -0
- package/dist/calcite/p-c998a4ea.js +6 -0
- package/dist/calcite/p-ca0659cd.entry.js +6 -0
- package/dist/calcite/{p-3f32b7f4.entry.js → p-cb05e0ed.entry.js} +2 -2
- package/dist/calcite/{p-a462b761.entry.js → p-cbe23f4c.entry.js} +2 -2
- package/dist/calcite/p-cc654e0b.js +6 -0
- package/dist/calcite/p-cc7c4fe3.entry.js +6 -0
- package/dist/calcite/p-cc9ac72a.js +6 -0
- package/dist/calcite/p-cd7d78fa.js +6 -0
- package/dist/calcite/p-cf20d020.js +6 -0
- package/dist/calcite/{p-7af985ca.js → p-d1464066.js} +1 -1
- package/dist/calcite/{p-8def46aa.js → p-d47bcb1b.js} +2 -2
- package/dist/calcite/p-d6072a02.js +6 -0
- package/dist/calcite/p-d6a07396.js +6 -0
- package/dist/calcite/p-d8aff29a.js +6 -0
- package/dist/calcite/{p-35458760.entry.js → p-d9748938.entry.js} +2 -2
- package/dist/calcite/p-d9e95708.js +6 -0
- package/dist/calcite/p-da095973.entry.js +6 -0
- package/dist/calcite/p-ddaf9f16.js +6 -0
- package/dist/calcite/{p-19e9682c.js → p-ddef6e26.js} +1 -1
- package/dist/calcite/{p-53ff091d.js → p-e17a4e5f.js} +1 -1
- package/dist/calcite/{p-68a25994.entry.js → p-e2917861.entry.js} +2 -2
- package/dist/calcite/{p-61668259.entry.js → p-e326c09e.entry.js} +2 -2
- package/dist/calcite/{p-cb020988.js → p-e603bef5.js} +1 -1
- package/dist/calcite/p-e803785f.entry.js +6 -0
- package/dist/calcite/p-eaa1d53c.entry.js +6 -0
- package/dist/calcite/{p-9d27c20e.js → p-eaccbf67.js} +2 -2
- package/dist/calcite/{p-202f5013.entry.js → p-ec766295.entry.js} +2 -2
- package/dist/calcite/{p-c1c1db47.js → p-edd20d09.js} +2 -2
- package/dist/calcite/{p-5bf6f598.entry.js → p-f66ef0bb.entry.js} +2 -2
- package/dist/calcite/p-fcc9a5bb.js +6 -0
- package/dist/calcite/p-fd063bd3.js +6 -0
- package/dist/calcite/p-fe95f222.entry.js +6 -0
- package/dist/calcite/{p-479e79de.js → p-ff0fd88d.js} +2 -2
- package/dist/calcite/{p-e1cce30e.js → p-ff2cc9ca.js} +2 -2
- package/dist/cjs/{ExpandToggle-b5f1b99e.js → ExpandToggle-c5d62982.js} +9 -8
- package/dist/cjs/{FloatingArrow-00ce27e4.js → FloatingArrow-857972f5.js} +2 -2
- package/dist/cjs/{Heading-70304434.js → Heading-66f4b0c1.js} +2 -2
- package/dist/cjs/{app-globals-f88b65c5.js → app-globals-29e62dfa.js} +2 -2
- package/dist/cjs/{ar-70ed4884.js → ar-bbf72b01.js} +21 -17
- package/dist/cjs/{array-eb242d5e.js → array-f3eb0825.js} +1 -1
- package/dist/cjs/{bg-c132893a.js → bg-61ee2984.js} +18 -17
- package/dist/cjs/{browser-3067f24e.js → browser-7ca059f6.js} +1 -1
- package/dist/cjs/{bs-0842a27d.js → bs-6e1486b0.js} +18 -17
- package/dist/cjs/{ca-7ab74cea.js → ca-67a7b919.js} +18 -17
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +22 -19
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-menu.cjs.entry.js +13 -12
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +15 -14
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +45 -15
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +29 -18
- package/dist/cjs/calcite-flow.cjs.entry.js +8 -5
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -19
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-dc6792d4.js → calcite-input-time-picker.calcite-time-picker-e8638781.js} +95 -69
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +18 -17
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +30 -26
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +41 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +15 -14
- package/dist/cjs/calcite-pagination.cjs.entry.js +161 -64
- package/dist/cjs/calcite-panel.cjs.entry.js +39 -35
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +34 -23
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +12 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-f5ae9f6f.js → conditionalSlot-b0c2feb4.js} +3 -3
- package/dist/cjs/{cs-a9a36da5.js → cs-ad101da7.js} +18 -17
- package/dist/cjs/{da-28d28710.js → da-369fabb7.js} +18 -17
- package/dist/cjs/{de-1461b30d.js → de-160a4f8d.js} +18 -17
- package/dist/cjs/{de-at-7e5a4c28.js → de-at-d0da9e79.js} +18 -17
- package/dist/cjs/{de-ch-dc940f3b.js → de-ch-bf6ec2f3.js} +18 -17
- package/dist/cjs/{debounce-03156dfc.js → debounce-7c2653ef.js} +1 -1
- package/dist/cjs/{dom-fce6f26d.js → dom-dc793198.js} +3 -3
- package/dist/cjs/{el-ed20936c.js → el-f3936e0b.js} +18 -17
- package/dist/cjs/{en-au-5129e6eb.js → en-au-430d359e.js} +18 -17
- package/dist/cjs/{en-ca-7225d69a.js → en-ca-c484da4c.js} +18 -17
- package/dist/cjs/{en-gb-d0120407.js → en-gb-ffdda080.js} +18 -17
- package/dist/cjs/{es-eda3b171.js → es-4a784e28.js} +18 -17
- package/dist/cjs/{es-mx-675d69d4.js → es-mx-fe371cb9.js} +18 -17
- package/dist/cjs/{et-45817bc3.js → et-6cb27c93.js} +18 -17
- package/dist/cjs/{fi-66923ad9.js → fi-6c0cc683.js} +18 -17
- package/dist/cjs/{filter-f329adfe.js → filter-cb81f608.js} +2 -2
- package/dist/cjs/{floating-ui-f3b9a432.js → floating-ui-0d96eba8.js} +32 -16
- package/dist/cjs/{focusTrapComponent-d713a3f6.js → focusTrapComponent-4c916b1a.js} +2 -2
- package/dist/cjs/{form-4dc1d591.js → form-9e380f56.js} +3 -3
- package/dist/cjs/{fr-43f07398.js → fr-ab398536.js} +18 -17
- package/dist/cjs/{fr-ch-157c5b3a.js → fr-ch-f5bbac16.js} +18 -17
- package/dist/cjs/{guid-80751135.js → guid-a38b1f13.js} +1 -1
- package/dist/cjs/{he-c1887b2e.js → he-7d9d2208.js} +18 -17
- package/dist/cjs/{hi-e8924810.js → hi-538bfc0f.js} +18 -17
- package/dist/cjs/{hr-5724c845.js → hr-a365716c.js} +18 -17
- package/dist/cjs/{hu-0424688a.js → hu-71f2112b.js} +18 -17
- package/dist/cjs/{id-1bbfb4c0.js → id-49d526bc.js} +18 -17
- package/dist/cjs/{index-abb409dc.js → index-72a027fc.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-b871d34e.js → interactive-907d7330.js} +2 -2
- package/dist/cjs/{it-0eb07821.js → it-a5181b92.js} +18 -17
- package/dist/cjs/{it-ch-aa9d06ca.js → it-ch-2b367b09.js} +18 -17
- package/dist/cjs/{ja-5718002c.js → ja-b92d3d94.js} +18 -17
- package/dist/cjs/{key-74a84e1b.js → key-448c4d4a.js} +1 -1
- package/dist/cjs/{ko-63659f1f.js → ko-1f79a785.js} +19 -18
- package/dist/cjs/{label-881e97c2.js → label-9f2f565f.js} +2 -2
- package/dist/cjs/{loadable-8378250a.js → loadable-7b7762a4.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-f9101d69.js → locale-d8030d1e.js} +4 -4
- package/dist/cjs/{lt-fb4ab940.js → lt-31ea2ec9.js} +18 -17
- package/dist/cjs/{lv-8e99a2f5.js → lv-bf40a612.js} +18 -17
- package/dist/cjs/{math-1a7e5a64.js → math-189ef67e.js} +1 -1
- package/dist/cjs/{mk-5f1b829f.js → mk-2e9f11c2.js} +18 -17
- package/dist/cjs/{nb-24bbf0d2.js → nb-3619a5dc.js} +18 -17
- package/dist/cjs/{nl-79bd1147.js → nl-e323bf50.js} +18 -17
- package/dist/cjs/{observers-bb4a4274.js → observers-2cf2bf90.js} +1 -1
- package/dist/cjs/{openCloseComponent-3658831a.js → openCloseComponent-7a805643.js} +2 -2
- package/dist/cjs/{pl-512bd4c6.js → pl-d173e6e9.js} +18 -17
- package/dist/cjs/{pt-d94f6ac1.js → pt-8165c44c.js} +18 -17
- package/dist/cjs/{pt-br-e644e6b2.js → pt-br-dc773e37.js} +18 -17
- package/dist/cjs/{resources-bcfb1200.js → resources-1d7f94fc.js} +5 -5
- package/dist/cjs/{resources-dfd5953f.js → resources-386c83a4.js} +1 -1
- package/dist/cjs/{resources-8b0edf1b.js → resources-8d9226fb.js} +1 -1
- package/dist/cjs/{resources-26f582f3.js → resources-94648959.js} +1 -1
- package/dist/cjs/{resources-503ede36.js → resources-a40b1bd8.js} +1 -1
- package/dist/cjs/{resources-f7e4ffe0.js → resources-c63ba8ae.js} +1 -1
- package/dist/cjs/{resources-b5e1c9a2.js → resources-f2c05495.js} +3 -1
- package/dist/cjs/{ro-37d4aa8c.js → ro-3f511d19.js} +18 -17
- package/dist/cjs/{ru-b53876bf.js → ru-568bae5e.js} +18 -17
- package/dist/cjs/{sk-68447bc6.js → sk-0725ea26.js} +18 -17
- package/dist/cjs/sl-03d708b9.js +166 -0
- package/dist/cjs/{sortableComponent-d3940fd8.js → sortableComponent-f8c22557.js} +5 -5
- package/dist/cjs/{sr-d1ea7784.js → sr-89a291ba.js} +18 -17
- package/dist/cjs/{sv-020d868e.js → sv-bacbb6aa.js} +18 -17
- package/dist/cjs/{t9n-61867878.js → t9n-d4a029c0.js} +3 -3
- package/dist/cjs/{th-e023bc78.js → th-a637e895.js} +18 -17
- package/dist/cjs/{throttle-4de55b2c.js → throttle-9fd1a70c.js} +2 -2
- package/dist/cjs/{tr-d105e160.js → tr-aa7d3b26.js} +18 -17
- package/dist/cjs/{uk-e0a80501.js → uk-5d1e946c.js} +18 -17
- package/dist/cjs/{utils-a0e27530.js → utils-f12311b7.js} +3 -3
- package/dist/cjs/{utils-fa744828.js → utils-ffd17f8a.js} +1 -1
- package/dist/cjs/{vi-88e5a8ba.js → vi-8fb35203.js} +18 -17
- package/dist/cjs/{zh-cn-def72a3e.js → zh-cn-35998c8a.js} +18 -17
- package/dist/cjs/{zh-hk-7a41ad0b.js → zh-hk-3782a612.js} +18 -17
- package/dist/cjs/{zh-tw-4c9b644c.js → zh-tw-45692105.js} +18 -17
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +8 -5
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +5 -4
- package/dist/collection/components/action-group/action-group.css +6 -2
- 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.css +0 -1
- package/dist/collection/components/action-menu/action-menu.js +30 -3
- 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 +4 -3
- 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 +94 -3
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +10 -0
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -4
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +5 -2
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.css +2 -1
- package/dist/collection/components/flow-item/flow-item.js +97 -9
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/assets/icon/projectTemplate16.json +1 -0
- package/dist/collection/components/icon/assets/icon/projectTemplate24.json +1 -0
- package/dist/collection/components/icon/assets/icon/projectTemplate32.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/utils.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +85 -5
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.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 +16 -12
- 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/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +62 -5
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +5 -4
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.css +41 -56
- package/dist/collection/components/pagination/pagination.js +180 -110
- package/dist/collection/components/pagination/resources.js +5 -1
- package/dist/collection/components/panel/assets/panel/t9n/index.d.ts +2 -0
- package/dist/collection/components/panel/assets/panel/t9n/messages.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ar.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_bg.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_bs.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ca.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_cs.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_da.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_de.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_el.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_en.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_es.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_et.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_fi.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_fr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_he.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_hr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_hu.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_id.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_it.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ja.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ko.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_lt.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_lv.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_nl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_no.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pt-BR.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pt-PT.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ro.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ru.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sk.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sv.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_th.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_tr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_uk.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_vi.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-CN.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-HK.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-TW.json +3 -1
- package/dist/collection/components/panel/panel.css +3 -4
- package/dist/collection/components/panel/panel.js +103 -25
- package/dist/collection/components/panel/resources.js +3 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +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/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/stepper.js +12 -12
- package/dist/collection/components/stepper-item/resources.js +15 -0
- package/dist/collection/components/stepper-item/stepper-item.css +12 -0
- package/dist/collection/components/stepper-item/stepper-item.js +4 -4
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +2 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.js +1 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/table-row.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/responsive.js +3 -1
- package/dist/collection/utils/sortableComponent.js +5 -5
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +5 -4
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +6 -4
- package/dist/components/action.js +1 -1
- package/dist/components/ar.js +4 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +8 -5
- 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 +4 -3
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +32 -2
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +20 -6
- package/dist/components/calcite-flow.js +5 -2
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +35 -9
- package/dist/components/calcite-input-time-zone.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 +16 -12
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +30 -3
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +5 -4
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +15 -5
- package/dist/components/calcite-stepper.js +12 -12
- 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-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +30 -14
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +158 -58
- package/dist/components/panel.js +30 -21
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +115 -13
- package/dist/components/sortableComponent.js +5 -5
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +2 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-f97b01a0.js → ExpandToggle-657ba676.js} +9 -8
- package/dist/esm/{FloatingArrow-5fbf6998.js → FloatingArrow-2971a148.js} +2 -2
- package/dist/esm/{Heading-2a42828d.js → Heading-8061f902.js} +2 -2
- package/dist/esm/{app-globals-d60b390d.js → app-globals-af1012ff.js} +2 -2
- package/dist/esm/{ar-3658ebcf.js → ar-32f6fd34.js} +21 -17
- package/dist/esm/{array-2523c38a.js → array-f3663727.js} +1 -1
- package/dist/esm/{bg-75f43087.js → bg-06c7b7e1.js} +18 -17
- package/dist/esm/{browser-260da6ce.js → browser-0c12f4e2.js} +1 -1
- package/dist/esm/{bs-2b62bbdf.js → bs-77468e7b.js} +18 -17
- package/dist/esm/{ca-4151a5c9.js → ca-282ec08c.js} +18 -17
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +22 -19
- package/dist/esm/calcite-action-group.entry.js +14 -14
- package/dist/esm/calcite-action-menu.entry.js +13 -12
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +15 -14
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +45 -15
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +12 -12
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +13 -13
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +19 -19
- package/dist/esm/calcite-date-picker_4.entry.js +14 -14
- package/dist/esm/calcite-dropdown_3.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +29 -18
- package/dist/esm/calcite-flow.entry.js +8 -5
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +19 -19
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +14 -14
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-6c07c959.js → calcite-input-time-picker.calcite-time-picker-a7881272.js} +95 -69
- package/dist/esm/calcite-input-time-picker_2.entry.js +18 -17
- package/dist/esm/calcite-input-time-zone.entry.js +14 -14
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +30 -26
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +41 -14
- package/dist/esm/calcite-option_3.entry.js +15 -14
- package/dist/esm/calcite-pagination.entry.js +161 -64
- package/dist/esm/calcite-panel.entry.js +39 -35
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +34 -23
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +12 -11
- package/dist/esm/calcite-table-cell_2.entry.js +12 -12
- package/dist/esm/calcite-table-row.entry.js +8 -8
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +9 -9
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-9ec24c27.js → conditionalSlot-4e62966e.js} +3 -3
- package/dist/esm/{cs-de49e667.js → cs-4e41824c.js} +18 -17
- package/dist/esm/{da-f2e49e5f.js → da-c329f41c.js} +18 -17
- package/dist/esm/{de-a5589e9b.js → de-a3ff3a8a.js} +18 -17
- package/dist/esm/{de-at-849f8aec.js → de-at-aa66011d.js} +18 -17
- package/dist/esm/{de-ch-081c644b.js → de-ch-082cde5f.js} +18 -17
- package/dist/esm/{debounce-9d0412bf.js → debounce-68078c23.js} +1 -1
- package/dist/esm/{dom-592bc002.js → dom-c618422a.js} +3 -3
- package/dist/esm/{el-68a893e7.js → el-c985698f.js} +18 -17
- package/dist/esm/{en-au-41714dfe.js → en-au-106cb805.js} +18 -17
- package/dist/esm/{en-ca-c53ebe84.js → en-ca-ceade015.js} +18 -17
- package/dist/esm/{en-gb-99f83307.js → en-gb-899b1fca.js} +18 -17
- package/dist/esm/{es-e5a4e598.js → es-1f66ccb7.js} +18 -17
- package/dist/esm/{es-mx-d59e57ab.js → es-mx-696aa070.js} +18 -17
- package/dist/esm/{et-1081f3e6.js → et-0e85c20d.js} +18 -17
- package/dist/esm/{fi-bf67513d.js → fi-689b5e12.js} +18 -17
- package/dist/esm/{filter-5e2bb073.js → filter-facaec3f.js} +2 -2
- package/dist/esm/{floating-ui-81600d96.js → floating-ui-52ead880.js} +32 -16
- package/dist/esm/{focusTrapComponent-d04ff5e1.js → focusTrapComponent-470eec16.js} +2 -2
- package/dist/esm/{form-a71f6c1f.js → form-d9c0e9de.js} +3 -3
- package/dist/esm/{fr-6073c22c.js → fr-5a9f6ed6.js} +18 -17
- package/dist/esm/{fr-ch-84fceff2.js → fr-ch-d447b67d.js} +18 -17
- package/dist/esm/{guid-d19a382a.js → guid-eeb2e4f0.js} +1 -1
- package/dist/esm/{he-589ba4a6.js → he-dfbd2246.js} +18 -17
- package/dist/esm/{hi-0740ade0.js → hi-1fafb4e7.js} +18 -17
- package/dist/esm/{hr-d88877a1.js → hr-c9e36258.js} +18 -17
- package/dist/esm/{hu-e9681e0d.js → hu-983fb9ea.js} +18 -17
- package/dist/esm/{id-bf10072a.js → id-f70d9d30.js} +18 -17
- package/dist/esm/{index-10deba03.js → index-c38f998a.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-02240f7b.js → interactive-f851dd2c.js} +2 -2
- package/dist/esm/{it-d89befab.js → it-69e12314.js} +18 -17
- package/dist/esm/{it-ch-219bdacf.js → it-ch-c70395d5.js} +18 -17
- package/dist/esm/{ja-2c56a79a.js → ja-3dd2fcbb.js} +18 -17
- package/dist/esm/{key-c073457c.js → key-31c9644d.js} +1 -1
- package/dist/esm/{ko-eb5d0a3c.js → ko-b88d5217.js} +19 -18
- package/dist/esm/{label-62feebdd.js → label-993522e8.js} +2 -2
- package/dist/esm/{loadable-baf1c638.js → loadable-73340893.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-73fd251d.js → locale-cd83d9df.js} +4 -4
- package/dist/esm/{lt-a4ed1111.js → lt-967cbac9.js} +18 -17
- package/dist/esm/{lv-3247e9ca.js → lv-00af135f.js} +18 -17
- package/dist/esm/{math-c0554b48.js → math-8edf5722.js} +1 -1
- package/dist/esm/{mk-47807730.js → mk-a63f527e.js} +18 -17
- package/dist/esm/{nb-5a7eff7e.js → nb-6f3a98cd.js} +18 -17
- package/dist/esm/{nl-d9b91835.js → nl-e14ceeae.js} +18 -17
- package/dist/esm/{observers-914efda8.js → observers-94a893ef.js} +1 -1
- package/dist/esm/{openCloseComponent-80582912.js → openCloseComponent-a5a36445.js} +2 -2
- package/dist/esm/{pl-15d879f3.js → pl-53a9f3a6.js} +18 -17
- package/dist/esm/{pt-0e4dde35.js → pt-be668ca4.js} +18 -17
- package/dist/esm/{pt-br-205e257b.js → pt-br-b0e2d2a7.js} +18 -17
- package/dist/esm/{resources-280233a9.js → resources-4fd4045a.js} +3 -1
- package/dist/esm/{resources-4a8608fe.js → resources-759b72df.js} +1 -1
- package/dist/esm/{resources-311491f3.js → resources-7b138dc8.js} +1 -1
- package/dist/esm/{resources-a210418c.js → resources-a6644358.js} +1 -1
- package/dist/esm/{resources-870040ed.js → resources-d146165d.js} +1 -1
- package/dist/esm/{resources-f4441d67.js → resources-e912c593.js} +1 -1
- package/dist/esm/{resources-1f45166a.js → resources-eb076c21.js} +5 -5
- package/dist/esm/{ro-24b58ec4.js → ro-92ea1f28.js} +18 -17
- package/dist/esm/{ru-6da4aafd.js → ru-6ef0dcb9.js} +18 -17
- package/dist/esm/{sk-eab385a0.js → sk-79eef61e.js} +18 -17
- package/dist/esm/sl-a39a54c4.js +164 -0
- package/dist/esm/{sortableComponent-115f27b9.js → sortableComponent-6507ce7e.js} +5 -5
- package/dist/esm/{sr-877484d4.js → sr-60cbae14.js} +18 -17
- package/dist/esm/{sv-0b707d8a.js → sv-0c3b8b88.js} +18 -17
- package/dist/esm/{t9n-f1ec5472.js → t9n-4d25eb9d.js} +3 -3
- package/dist/esm/{th-1da5d6eb.js → th-b2c7049c.js} +18 -17
- package/dist/esm/{throttle-de838e52.js → throttle-607e911d.js} +2 -2
- package/dist/esm/{tr-4355314b.js → tr-4b03568f.js} +18 -17
- package/dist/esm/{uk-565dbbf4.js → uk-c44b1eaf.js} +18 -17
- package/dist/esm/{utils-0bcd6f1a.js → utils-1094b8b0.js} +1 -1
- package/dist/esm/{utils-7f504816.js → utils-470bca47.js} +3 -3
- package/dist/esm/{vi-7bcb41ed.js → vi-d559682b.js} +18 -17
- package/dist/esm/{zh-cn-183d754e.js → zh-cn-7d974c68.js} +18 -17
- package/dist/esm/{zh-hk-78269f1f.js → zh-hk-ad2ef993.js} +18 -17
- package/dist/esm/{zh-tw-9decdb10.js → zh-tw-f7a96f48.js} +18 -17
- package/dist/extras/docs-json.json +290 -42
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +28 -0
- 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/action-menu/action-menu.d.ts +3 -1
- package/dist/types/components/block/block.d.ts +20 -1
- package/dist/types/components/dropdown/resources.d.ts +0 -3
- package/dist/types/components/flow/flow.d.ts +1 -1
- package/dist/types/components/flow-item/flow-item.d.ts +23 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +18 -3
- package/dist/types/components/notice/notice.d.ts +16 -3
- package/dist/types/components/pagination/pagination.d.ts +22 -15
- package/dist/types/components/pagination/resources.d.ts +4 -0
- package/dist/types/components/panel/assets/panel/t9n/index.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +21 -8
- package/dist/types/components/panel/resources.d.ts +2 -0
- package/dist/types/components/stepper/assets/stepper/t9n/index.d.ts +3 -0
- package/dist/types/components/stepper/stepper.d.ts +1 -0
- package/dist/types/components/stepper-item/assets/stepper-item/t9n/index.d.ts +3 -0
- package/dist/types/components/stepper-item/resources.d.ts +10 -0
- package/dist/types/components.d.ts +104 -4
- package/dist/types/preact.d.ts +17 -5
- package/dist/types/utils/openCloseComponent.d.ts +1 -1
- package/dist/types/utils/responsive.d.ts +3 -2
- package/dist/types/utils/sortableComponent.d.ts +2 -0
- package/hydrate/index.js +997 -647
- package/package.json +8 -8
- package/dist/calcite/p-03580e2f.js +0 -6
- package/dist/calcite/p-09a15aa1.js +0 -6
- package/dist/calcite/p-0a0e0abe.js +0 -6
- package/dist/calcite/p-0c8b4dff.entry.js +0 -6
- package/dist/calcite/p-0de5404f.js +0 -6
- package/dist/calcite/p-0fc74e12.entry.js +0 -6
- package/dist/calcite/p-1468a113.js +0 -6
- package/dist/calcite/p-17877905.entry.js +0 -6
- package/dist/calcite/p-1b1a7046.js +0 -6
- package/dist/calcite/p-1c8c3132.js +0 -6
- package/dist/calcite/p-1d62bc0c.entry.js +0 -6
- package/dist/calcite/p-1ec2ec24.js +0 -6
- package/dist/calcite/p-2093a3ab.js +0 -6
- package/dist/calcite/p-20b9309d.entry.js +0 -6
- package/dist/calcite/p-20dad9ce.js +0 -6
- package/dist/calcite/p-23147c3c.js +0 -6
- package/dist/calcite/p-258acdba.entry.js +0 -6
- package/dist/calcite/p-2a3325cb.js +0 -6
- package/dist/calcite/p-2b1d3b12.js +0 -6
- package/dist/calcite/p-313fc7c7.js +0 -6
- package/dist/calcite/p-38c313af.js +0 -6
- package/dist/calcite/p-395ede44.entry.js +0 -6
- package/dist/calcite/p-3976b7d5.entry.js +0 -6
- package/dist/calcite/p-457c2d68.js +0 -6
- package/dist/calcite/p-51694352.js +0 -6
- package/dist/calcite/p-5bd2de07.js +0 -6
- package/dist/calcite/p-6562a6e8.js +0 -6
- package/dist/calcite/p-66dedd3a.entry.js +0 -6
- package/dist/calcite/p-690875f3.js +0 -6
- package/dist/calcite/p-701f812e.entry.js +0 -6
- package/dist/calcite/p-704e2cf1.js +0 -6
- package/dist/calcite/p-7653515f.js +0 -6
- package/dist/calcite/p-77237f9f.entry.js +0 -6
- package/dist/calcite/p-778a8cd1.js +0 -6
- package/dist/calcite/p-826c2567.js +0 -6
- package/dist/calcite/p-840597a1.js +0 -6
- package/dist/calcite/p-8e02e4db.js +0 -6
- package/dist/calcite/p-8fc82a88.entry.js +0 -6
- package/dist/calcite/p-9925a0e8.js +0 -6
- package/dist/calcite/p-998ecccb.js +0 -6
- package/dist/calcite/p-99f605d2.js +0 -6
- package/dist/calcite/p-9a23e769.js +0 -6
- package/dist/calcite/p-9a4401ab.js +0 -6
- package/dist/calcite/p-9ef9ec2b.js +0 -6
- package/dist/calcite/p-9f148024.entry.js +0 -6
- package/dist/calcite/p-9fbb639b.js +0 -6
- package/dist/calcite/p-a1ba88c8.js +0 -6
- package/dist/calcite/p-a3d8f6f7.entry.js +0 -6
- package/dist/calcite/p-a88d817e.js +0 -6
- package/dist/calcite/p-aaf71d92.js +0 -6
- package/dist/calcite/p-ab3c0f08.js +0 -6
- package/dist/calcite/p-af7a3f21.js +0 -6
- package/dist/calcite/p-b0ae1d80.js +0 -6
- package/dist/calcite/p-b2031037.entry.js +0 -6
- package/dist/calcite/p-b2d3c1ec.js +0 -6
- package/dist/calcite/p-b5221f98.js +0 -6
- package/dist/calcite/p-bb927000.js +0 -6
- package/dist/calcite/p-bcbff8c8.entry.js +0 -6
- package/dist/calcite/p-be1fe2c1.js +0 -6
- package/dist/calcite/p-c5e294fa.js +0 -6
- package/dist/calcite/p-c6018b50.js +0 -6
- package/dist/calcite/p-ca2b651c.entry.js +0 -6
- package/dist/calcite/p-cc0147f0.js +0 -6
- package/dist/calcite/p-ccb9d661.js +0 -6
- package/dist/calcite/p-d31542cb.js +0 -6
- package/dist/calcite/p-d3a5f1e3.js +0 -6
- package/dist/calcite/p-d5fca058.entry.js +0 -6
- package/dist/calcite/p-d7ddb6de.entry.js +0 -6
- package/dist/calcite/p-da011af0.entry.js +0 -6
- package/dist/calcite/p-dcd7c865.js +0 -6
- package/dist/calcite/p-de4f921a.entry.js +0 -6
- package/dist/calcite/p-e8306750.js +0 -6
- package/dist/calcite/p-ec8afd59.entry.js +0 -6
- package/dist/calcite/p-ee39ebd8.js +0 -6
- package/dist/calcite/p-f5303a1d.entry.js +0 -6
- package/dist/calcite/p-f63cd813.entry.js +0 -6
- package/dist/calcite/p-f6b8e5f8.js +0 -6
- package/dist/calcite/p-f8aad97f.js +0 -6
- package/dist/calcite/p-faca5234.js +0 -6
- package/dist/calcite/p-fbadc086.js +0 -6
- package/dist/cjs/sl-4cf5d708.js +0 -63
- package/dist/esm/sl-36cbbe4e.js +0 -61
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.9.0-next.
|
|
4
|
+
* v1.9.0-next.11
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -6989,7 +6989,7 @@ const SLOTS$z = {
|
|
|
6989
6989
|
actionsStart: "actions-start",
|
|
6990
6990
|
actionsEnd: "actions-end",
|
|
6991
6991
|
};
|
|
6992
|
-
const CSS$
|
|
6992
|
+
const CSS$1d = {
|
|
6993
6993
|
icon: "icon",
|
|
6994
6994
|
header: "header",
|
|
6995
6995
|
headerContent: "header-content",
|
|
@@ -7057,28 +7057,28 @@ class AccordionItem {
|
|
|
7057
7057
|
// --------------------------------------------------------------------------
|
|
7058
7058
|
renderActionsStart() {
|
|
7059
7059
|
const { el } = this;
|
|
7060
|
-
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$
|
|
7060
|
+
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$1d.actionsStart }, hAsync("slot", { name: SLOTS$z.actionsStart }))) : null;
|
|
7061
7061
|
}
|
|
7062
7062
|
renderActionsEnd() {
|
|
7063
7063
|
const { el } = this;
|
|
7064
|
-
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
7064
|
+
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$1d.actionsEnd }, hAsync("slot", { name: SLOTS$z.actionsEnd }))) : null;
|
|
7065
7065
|
}
|
|
7066
7066
|
render() {
|
|
7067
7067
|
const { iconFlipRtl } = this;
|
|
7068
7068
|
const dir = getElementDir(this.el);
|
|
7069
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7070
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7069
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$1d.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7070
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$1d.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7071
7071
|
const { description } = this;
|
|
7072
7072
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7073
7073
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7074
7074
|
[`icon-type--${this.iconType}`]: true,
|
|
7075
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7075
|
+
} }, hAsync("div", { class: { [CSS$1d.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-controls": IDS$2.section, "aria-expanded": toAriaBoolean(this.expanded), class: CSS$1d.headerContent, id: IDS$2.sectionToggle, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$1d.headerContainer }, iconStartEl, hAsync("div", { class: CSS$1d.headerText }, hAsync("span", { class: CSS$1d.heading }, this.heading), description ? hAsync("span", { class: CSS$1d.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$1d.expandIcon, icon: this.iconType === "chevron"
|
|
7076
7076
|
? "chevronDown"
|
|
7077
7077
|
: this.iconType === "caret"
|
|
7078
7078
|
? "caretDown"
|
|
7079
7079
|
: this.expanded
|
|
7080
7080
|
? "minus"
|
|
7081
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$
|
|
7081
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$1d.content, id: IDS$2.section }, hAsync("slot", null)))));
|
|
7082
7082
|
}
|
|
7083
7083
|
//--------------------------------------------------------------------------
|
|
7084
7084
|
//
|
|
@@ -8000,7 +8000,7 @@ function defaultOnMessagesChange() {
|
|
|
8000
8000
|
mergeMessages(this);
|
|
8001
8001
|
}
|
|
8002
8002
|
|
|
8003
|
-
const CSS$
|
|
8003
|
+
const CSS$1c = {
|
|
8004
8004
|
button: "button",
|
|
8005
8005
|
buttonTextVisible: "button--text-visible",
|
|
8006
8006
|
buttonCompact: "button--compact",
|
|
@@ -8112,14 +8112,14 @@ class Action {
|
|
|
8112
8112
|
renderTextContainer() {
|
|
8113
8113
|
const { text, textEnabled } = this;
|
|
8114
8114
|
const textContainerClasses = {
|
|
8115
|
-
[CSS$
|
|
8116
|
-
[CSS$
|
|
8115
|
+
[CSS$1c.textContainer]: true,
|
|
8116
|
+
[CSS$1c.textContainerVisible]: textEnabled,
|
|
8117
8117
|
};
|
|
8118
8118
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8119
8119
|
}
|
|
8120
8120
|
renderIndicatorText() {
|
|
8121
8121
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8122
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8122
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$1c.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8123
8123
|
}
|
|
8124
8124
|
renderIconContainer() {
|
|
8125
8125
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -8130,18 +8130,18 @@ class Action {
|
|
|
8130
8130
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8131
8131
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8132
8132
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8133
|
-
[CSS$
|
|
8134
|
-
[CSS$
|
|
8133
|
+
[CSS$1c.slotContainer]: true,
|
|
8134
|
+
[CSS$1c.slotContainerHidden]: loading,
|
|
8135
8135
|
} }, hAsync("slot", null)));
|
|
8136
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8136
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$1c.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8137
8137
|
}
|
|
8138
8138
|
render() {
|
|
8139
8139
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8140
8140
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8141
8141
|
const buttonClasses = {
|
|
8142
|
-
[CSS$
|
|
8143
|
-
[CSS$
|
|
8144
|
-
[CSS$
|
|
8142
|
+
[CSS$1c.button]: true,
|
|
8143
|
+
[CSS$1c.buttonTextVisible]: textEnabled,
|
|
8144
|
+
[CSS$1c.buttonCompact]: compact,
|
|
8145
8145
|
};
|
|
8146
8146
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-controls": indicator ? indicatorId : null, "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, "aria-pressed": toAriaBoolean(active), class: buttonClasses, disabled: disabled, id: buttonId,
|
|
8147
8147
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
@@ -9450,14 +9450,14 @@ const SLOTS$x = {
|
|
|
9450
9450
|
menuActions: "menu-actions",
|
|
9451
9451
|
menuTooltip: "menu-tooltip",
|
|
9452
9452
|
};
|
|
9453
|
-
const ICONS$
|
|
9453
|
+
const ICONS$k = {
|
|
9454
9454
|
menu: "ellipsis",
|
|
9455
9455
|
};
|
|
9456
|
-
const CSS$
|
|
9456
|
+
const CSS$1b = {
|
|
9457
9457
|
container: "container",
|
|
9458
9458
|
};
|
|
9459
9459
|
|
|
9460
|
-
const CSS$
|
|
9460
|
+
const CSS$1a = {
|
|
9461
9461
|
menu: "menu",
|
|
9462
9462
|
defaultTrigger: "default-trigger",
|
|
9463
9463
|
};
|
|
@@ -9465,7 +9465,7 @@ const SLOTS$w = {
|
|
|
9465
9465
|
tooltip: "tooltip",
|
|
9466
9466
|
trigger: "trigger",
|
|
9467
9467
|
};
|
|
9468
|
-
const ICONS$
|
|
9468
|
+
const ICONS$j = {
|
|
9469
9469
|
menu: "ellipsis",
|
|
9470
9470
|
};
|
|
9471
9471
|
|
|
@@ -9473,10 +9473,11 @@ const overflowActionsDebounceInMs = 150;
|
|
|
9473
9473
|
const groupBufferPx = 2;
|
|
9474
9474
|
const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
|
|
9475
9475
|
const geActionDimensions = (actions) => {
|
|
9476
|
-
const
|
|
9476
|
+
const actionsNotSlotted = actions.filter((action) => action.slot !== SLOTS$x.menuActions);
|
|
9477
|
+
const actionLen = actionsNotSlotted?.length;
|
|
9477
9478
|
return {
|
|
9478
|
-
actionWidth: actionLen ? getAverage(
|
|
9479
|
-
actionHeight: actionLen ? getAverage(
|
|
9479
|
+
actionWidth: actionLen ? getAverage(actionsNotSlotted.map((action) => action.clientWidth || 0)) : 0,
|
|
9480
|
+
actionHeight: actionLen ? getAverage(actionsNotSlotted.map((action) => action.clientHeight || 0)) : 0,
|
|
9480
9481
|
};
|
|
9481
9482
|
};
|
|
9482
9483
|
const getMaxActionCount = ({ width, actionWidth, layout, height, actionHeight, groupCount, }) => {
|
|
@@ -9519,7 +9520,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
|
9519
9520
|
});
|
|
9520
9521
|
};
|
|
9521
9522
|
|
|
9522
|
-
const ICONS$
|
|
9523
|
+
const ICONS$i = {
|
|
9523
9524
|
chevronsLeft: "chevrons-left",
|
|
9524
9525
|
chevronsRight: "chevrons-right",
|
|
9525
9526
|
};
|
|
@@ -9544,7 +9545,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref, }) => {
|
|
|
9544
9545
|
const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position, tooltip, ref, scale, }) => {
|
|
9545
9546
|
const rtl = getElementDir(el) === "rtl";
|
|
9546
9547
|
const text = expanded ? collapseText : expandText;
|
|
9547
|
-
const icons = [ICONS$
|
|
9548
|
+
const icons = [ICONS$i.chevronsLeft, ICONS$i.chevronsRight];
|
|
9548
9549
|
if (rtl) {
|
|
9549
9550
|
icons.reverse();
|
|
9550
9551
|
}
|
|
@@ -9557,7 +9558,7 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9557
9558
|
return actionNode;
|
|
9558
9559
|
};
|
|
9559
9560
|
|
|
9560
|
-
const CSS$
|
|
9561
|
+
const CSS$19 = {
|
|
9561
9562
|
actionGroupEnd: "action-group--end",
|
|
9562
9563
|
};
|
|
9563
9564
|
const SLOTS$v = {
|
|
@@ -9680,9 +9681,12 @@ class ActionBar {
|
|
|
9680
9681
|
this.updateGroups();
|
|
9681
9682
|
}
|
|
9682
9683
|
overflowDisabledHandler(overflowActionsDisabled) {
|
|
9683
|
-
overflowActionsDisabled
|
|
9684
|
-
|
|
9685
|
-
|
|
9684
|
+
if (overflowActionsDisabled) {
|
|
9685
|
+
this.resizeObserver?.disconnect();
|
|
9686
|
+
return;
|
|
9687
|
+
}
|
|
9688
|
+
this.resizeObserver?.observe(this.el);
|
|
9689
|
+
this.overflowActions();
|
|
9686
9690
|
}
|
|
9687
9691
|
onMessagesChange() {
|
|
9688
9692
|
/* wired up by t9n util */
|
|
@@ -9760,7 +9764,7 @@ class ActionBar {
|
|
|
9760
9764
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
9761
9765
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
9762
9766
|
ref: this.setExpandToggleRef })) : null;
|
|
9763
|
-
return (hAsync("calcite-action-group", { class: CSS$
|
|
9767
|
+
return (hAsync("calcite-action-group", { class: CSS$19.actionGroupEnd, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$v.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$v.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$v.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9764
9768
|
}
|
|
9765
9769
|
render() {
|
|
9766
9770
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9803,7 +9807,7 @@ class ActionBar {
|
|
|
9803
9807
|
}; }
|
|
9804
9808
|
}
|
|
9805
9809
|
|
|
9806
|
-
const actionGroupCss = "/*!@:host*/.sc-calcite-action-group-h{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 **/.sc-calcite-action-group-h *.sc-calcite-action-group{box-sizing:border-box}/*!@:host*/.sc-calcite-action-group-h{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}/*!@.container*/.container.sc-calcite-action-group{display:flex;flex-grow:1;flex-direction:column}/*!@:host([columns=\"1\"])*/[columns=\"1\"].sc-calcite-action-group-h{--calcite-action-group-columns:1}/*!@:host([columns=\"2\"])*/[columns=\"2\"].sc-calcite-action-group-h{--calcite-action-group-columns:2}/*!@:host([columns=\"3\"])*/[columns=\"3\"].sc-calcite-action-group-h{--calcite-action-group-columns:3}/*!@:host([columns=\"4\"])*/[columns=\"4\"].sc-calcite-action-group-h{--calcite-action-group-columns:4}/*!@:host([columns=\"5\"])*/[columns=\"5\"].sc-calcite-action-group-h{--calcite-action-group-columns:5}/*!@:host([columns=\"6\"])*/[columns=\"6\"].sc-calcite-action-group-h{--calcite-action-group-columns:6}/*!@:host(:first-child)*/.sc-calcite-action-group-h:first-child{padding-block-start:0px}/*!@:host([layout=horizontal]),\n:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-action-group-h,[layout=horizontal].sc-calcite-action-group-h .container.sc-calcite-action-group{flex-direction:row}/*!@:host([layout=grid])*/[layout=grid].sc-calcite-action-group-h{display:grid}/*!@:host([layout=grid]) .container*/[layout=grid].sc-calcite-action-group-h .container.sc-calcite-action-group{display:grid;place-content:stretch;
|
|
9810
|
+
const actionGroupCss = "/*!@:host*/.sc-calcite-action-group-h{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 **/.sc-calcite-action-group-h *.sc-calcite-action-group{box-sizing:border-box}/*!@:host*/.sc-calcite-action-group-h{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3;--calcite-action-group-gap:1px;--calcite-action-group-padding:1px}/*!@.container*/.container.sc-calcite-action-group{display:flex;flex-grow:1;flex-direction:column}/*!@:host([columns=\"1\"])*/[columns=\"1\"].sc-calcite-action-group-h{--calcite-action-group-columns:1}/*!@:host([columns=\"2\"])*/[columns=\"2\"].sc-calcite-action-group-h{--calcite-action-group-columns:2}/*!@:host([columns=\"3\"])*/[columns=\"3\"].sc-calcite-action-group-h{--calcite-action-group-columns:3}/*!@:host([columns=\"4\"])*/[columns=\"4\"].sc-calcite-action-group-h{--calcite-action-group-columns:4}/*!@:host([columns=\"5\"])*/[columns=\"5\"].sc-calcite-action-group-h{--calcite-action-group-columns:5}/*!@:host([columns=\"6\"])*/[columns=\"6\"].sc-calcite-action-group-h{--calcite-action-group-columns:6}/*!@:host(:first-child)*/.sc-calcite-action-group-h:first-child{padding-block-start:0px}/*!@:host([layout=horizontal]),\n:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-action-group-h,[layout=horizontal].sc-calcite-action-group-h .container.sc-calcite-action-group{flex-direction:row}/*!@:host([layout=grid])*/[layout=grid].sc-calcite-action-group-h{display:grid}/*!@:host([layout=grid]) .container*/[layout=grid].sc-calcite-action-group-h .container.sc-calcite-action-group{display:grid;place-content:stretch;background-color:var(--calcite-ui-background);gap:var(--calcite-action-group-gap);padding:var(--calcite-action-group-gap);grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}/*!@:host([hidden])*/[hidden].sc-calcite-action-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action-group{display:none}";
|
|
9807
9811
|
|
|
9808
9812
|
/**
|
|
9809
9813
|
* @slot - A slot for adding a group of `calcite-action`s.
|
|
@@ -9885,10 +9889,10 @@ class ActionGroup {
|
|
|
9885
9889
|
// --------------------------------------------------------------------------
|
|
9886
9890
|
renderMenu() {
|
|
9887
9891
|
const { expanded, menuOpen, scale, layout, messages, overlayPositioning, hasMenuActions } = this;
|
|
9888
|
-
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$
|
|
9892
|
+
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$k.menu, scale: scale, slot: SLOTS$w.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$x.menuActions, onSlotchange: this.handleMenuActionsSlotChange }), hAsync("slot", { name: SLOTS$x.menuTooltip, slot: SLOTS$w.tooltip })));
|
|
9889
9893
|
}
|
|
9890
9894
|
render() {
|
|
9891
|
-
return (hAsync("div", { "aria-label": this.label, class: CSS$
|
|
9895
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$1b.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9892
9896
|
}
|
|
9893
9897
|
static get delegatesFocus() { return true; }
|
|
9894
9898
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9927,7 +9931,7 @@ function getRoundRobinIndex(index, total) {
|
|
|
9927
9931
|
return (index + total) % total;
|
|
9928
9932
|
}
|
|
9929
9933
|
|
|
9930
|
-
const actionMenuCss = "/*!@:host*/.sc-calcite-action-menu-h{box-sizing:border-box;display:flex;flex-direction:column;
|
|
9934
|
+
const actionMenuCss = "/*!@:host*/.sc-calcite-action-menu-h{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}/*!@.menu ::slotted(calcite-action)*/.menu .sc-calcite-action-menu-s>calcite-action{margin:0.125rem;display:flex;outline-color:transparent}/*!@.menu ::slotted(calcite-action[active])*/.menu .sc-calcite-action-menu-s>calcite-action[active]{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:0px}/*!@.default-trigger*/.default-trigger.sc-calcite-action-menu{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}/*!@slot[name=trigger]::slotted(calcite-action),\ncalcite-action::slotted([slot=trigger])*/slot[name=trigger].sc-calcite-action-menu-s>calcite-action,calcite-action.sc-calcite-action-menu-s>[slot=trigger]{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}/*!@.menu*/.menu.sc-calcite-action-menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}/*!@:host([hidden])*/[hidden].sc-calcite-action-menu-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action-menu{display:none}";
|
|
9931
9935
|
|
|
9932
9936
|
const SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
|
|
9933
9937
|
/**
|
|
@@ -10111,6 +10115,7 @@ class ActionMenu {
|
|
|
10111
10115
|
this.el.addEventListener("calcitePopoverOpen", this.toggleOpenEnd);
|
|
10112
10116
|
this.open = value;
|
|
10113
10117
|
};
|
|
10118
|
+
this.appearance = "solid";
|
|
10114
10119
|
this.expanded = false;
|
|
10115
10120
|
this.flipPlacements = undefined;
|
|
10116
10121
|
this.label = undefined;
|
|
@@ -10171,8 +10176,8 @@ class ActionMenu {
|
|
|
10171
10176
|
return focusElement(this.menuButtonEl);
|
|
10172
10177
|
}
|
|
10173
10178
|
renderMenuButton() {
|
|
10174
|
-
const { label, scale, expanded } = this;
|
|
10175
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$
|
|
10179
|
+
const { appearance, label, scale, expanded } = this;
|
|
10180
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$1a.defaultTrigger, icon: ICONS$j.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10176
10181
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10177
10182
|
ref: this.setDefaultMenuButtonEl })));
|
|
10178
10183
|
return menuButtonSlot;
|
|
@@ -10181,7 +10186,7 @@ class ActionMenu {
|
|
|
10181
10186
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements, } = this;
|
|
10182
10187
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
10183
10188
|
const activeDescendantId = activeAction?.id || null;
|
|
10184
|
-
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$
|
|
10189
|
+
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$1a.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
10185
10190
|
}
|
|
10186
10191
|
render() {
|
|
10187
10192
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$w.tooltip, onSlotchange: this.updateTooltip })));
|
|
@@ -10200,6 +10205,7 @@ class ActionMenu {
|
|
|
10200
10205
|
"$flags$": 9,
|
|
10201
10206
|
"$tagName$": "calcite-action-menu",
|
|
10202
10207
|
"$members$": {
|
|
10208
|
+
"appearance": [513],
|
|
10203
10209
|
"expanded": [516],
|
|
10204
10210
|
"flipPlacements": [16],
|
|
10205
10211
|
"label": [1],
|
|
@@ -10213,11 +10219,11 @@ class ActionMenu {
|
|
|
10213
10219
|
},
|
|
10214
10220
|
"$listeners$": [[9, "pointerdown", "closeCalciteActionMenuOnClick"]],
|
|
10215
10221
|
"$lazyBundleId$": "-",
|
|
10216
|
-
"$attrsToReflect$": [["expanded", "expanded"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"]]
|
|
10222
|
+
"$attrsToReflect$": [["appearance", "appearance"], ["expanded", "expanded"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"]]
|
|
10217
10223
|
}; }
|
|
10218
10224
|
}
|
|
10219
10225
|
|
|
10220
|
-
const CSS$
|
|
10226
|
+
const CSS$18 = {
|
|
10221
10227
|
actionGroupEnd: "action-group--end",
|
|
10222
10228
|
container: "container",
|
|
10223
10229
|
};
|
|
@@ -10342,10 +10348,10 @@ class ActionPad {
|
|
|
10342
10348
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10343
10349
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10344
10350
|
ref: this.setExpandToggleRef })) : null;
|
|
10345
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
10351
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$18.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10346
10352
|
}
|
|
10347
10353
|
render() {
|
|
10348
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
10354
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$18.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
10349
10355
|
}
|
|
10350
10356
|
static get delegatesFocus() { return true; }
|
|
10351
10357
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10477,7 +10483,7 @@ const SLOTS$t = {
|
|
|
10477
10483
|
message: "message",
|
|
10478
10484
|
link: "link",
|
|
10479
10485
|
};
|
|
10480
|
-
const CSS$
|
|
10486
|
+
const CSS$17 = {
|
|
10481
10487
|
actionsEnd: "actions-end",
|
|
10482
10488
|
container: "container",
|
|
10483
10489
|
close: "alert-close",
|
|
@@ -10593,15 +10599,16 @@ class Alert {
|
|
|
10593
10599
|
connectMessages(this);
|
|
10594
10600
|
const open = this.open;
|
|
10595
10601
|
if (open && !this.queued) {
|
|
10596
|
-
this.openHandler();
|
|
10597
10602
|
this.calciteInternalAlertRegister.emit();
|
|
10598
|
-
onToggleOpenCloseComponent(this);
|
|
10599
10603
|
}
|
|
10600
10604
|
}
|
|
10601
10605
|
async componentWillLoad() {
|
|
10602
10606
|
setUpLoadableComponent(this);
|
|
10603
10607
|
this.requestedIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
10604
10608
|
await setUpMessages(this);
|
|
10609
|
+
if (this.open) {
|
|
10610
|
+
onToggleOpenCloseComponent(this);
|
|
10611
|
+
}
|
|
10605
10612
|
}
|
|
10606
10613
|
componentDidLoad() {
|
|
10607
10614
|
setComponentLoaded(this);
|
|
@@ -10637,10 +10644,10 @@ class Alert {
|
|
|
10637
10644
|
container: true,
|
|
10638
10645
|
queued,
|
|
10639
10646
|
[placement]: true,
|
|
10640
|
-
[CSS$
|
|
10647
|
+
[CSS$17.slottedInShell]: this.slottedInShell,
|
|
10641
10648
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10642
10649
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10643
|
-
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })), hAsync("div", { class: CSS$
|
|
10650
|
+
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })), hAsync("div", { class: CSS$17.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, closeButton, open && !queued && autoClose ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
10644
10651
|
}
|
|
10645
10652
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10646
10653
|
alertSync(event) {
|
|
@@ -11114,7 +11121,7 @@ const IDS$1 = {
|
|
|
11114
11121
|
toggle: "toggle",
|
|
11115
11122
|
header: "header",
|
|
11116
11123
|
};
|
|
11117
|
-
const CSS$
|
|
11124
|
+
const CSS$16 = {
|
|
11118
11125
|
button: "button",
|
|
11119
11126
|
container: "container",
|
|
11120
11127
|
content: "content",
|
|
@@ -11137,7 +11144,7 @@ const SLOTS$s = {
|
|
|
11137
11144
|
control: "control",
|
|
11138
11145
|
headerMenuActions: "header-menu-actions",
|
|
11139
11146
|
};
|
|
11140
|
-
const ICONS$
|
|
11147
|
+
const ICONS$h = {
|
|
11141
11148
|
opened: "chevron-up",
|
|
11142
11149
|
closed: "chevron-down",
|
|
11143
11150
|
valid: "check-circle",
|
|
@@ -11155,7 +11162,12 @@ const blockCss = "/*!@:host*/.sc-calcite-block-h{box-sizing:border-box;backgroun
|
|
|
11155
11162
|
class Block {
|
|
11156
11163
|
constructor(hostRef) {
|
|
11157
11164
|
registerInstance(this, hostRef);
|
|
11165
|
+
this.calciteBlockBeforeClose = createEvent(this, "calciteBlockBeforeClose", 6);
|
|
11166
|
+
this.calciteBlockBeforeOpen = createEvent(this, "calciteBlockBeforeOpen", 6);
|
|
11167
|
+
this.calciteBlockClose = createEvent(this, "calciteBlockClose", 6);
|
|
11168
|
+
this.calciteBlockOpen = createEvent(this, "calciteBlockOpen", 6);
|
|
11158
11169
|
this.calciteBlockToggle = createEvent(this, "calciteBlockToggle", 6);
|
|
11170
|
+
this.openTransitionProp = "opacity";
|
|
11159
11171
|
// --------------------------------------------------------------------------
|
|
11160
11172
|
//
|
|
11161
11173
|
// Private Methods
|
|
@@ -11165,6 +11177,9 @@ class Block {
|
|
|
11165
11177
|
this.open = !this.open;
|
|
11166
11178
|
this.calciteBlockToggle.emit();
|
|
11167
11179
|
};
|
|
11180
|
+
this.setTransitionEl = (el) => {
|
|
11181
|
+
this.transitionEl = el;
|
|
11182
|
+
};
|
|
11168
11183
|
this.collapsible = false;
|
|
11169
11184
|
this.disabled = false;
|
|
11170
11185
|
this.dragHandle = false;
|
|
@@ -11179,6 +11194,9 @@ class Block {
|
|
|
11179
11194
|
this.effectiveLocale = undefined;
|
|
11180
11195
|
this.defaultMessages = undefined;
|
|
11181
11196
|
}
|
|
11197
|
+
openHandler() {
|
|
11198
|
+
onToggleOpenCloseComponent(this);
|
|
11199
|
+
}
|
|
11182
11200
|
onMessagesChange() {
|
|
11183
11201
|
/* wired up by t9n util */
|
|
11184
11202
|
}
|
|
@@ -11195,6 +11213,18 @@ class Block {
|
|
|
11195
11213
|
await componentFocusable(this);
|
|
11196
11214
|
focusFirstTabbable(this.el);
|
|
11197
11215
|
}
|
|
11216
|
+
onBeforeOpen() {
|
|
11217
|
+
this.calciteBlockBeforeOpen.emit();
|
|
11218
|
+
}
|
|
11219
|
+
onOpen() {
|
|
11220
|
+
this.calciteBlockOpen.emit();
|
|
11221
|
+
}
|
|
11222
|
+
onBeforeClose() {
|
|
11223
|
+
this.calciteBlockBeforeClose.emit();
|
|
11224
|
+
}
|
|
11225
|
+
onClose() {
|
|
11226
|
+
this.calciteBlockClose.emit();
|
|
11227
|
+
}
|
|
11198
11228
|
effectiveLocaleChange() {
|
|
11199
11229
|
updateMessages(this);
|
|
11200
11230
|
}
|
|
@@ -11218,6 +11248,9 @@ class Block {
|
|
|
11218
11248
|
async componentWillLoad() {
|
|
11219
11249
|
await setUpMessages(this);
|
|
11220
11250
|
setUpLoadableComponent(this);
|
|
11251
|
+
if (this.open) {
|
|
11252
|
+
onToggleOpenCloseComponent(this);
|
|
11253
|
+
}
|
|
11221
11254
|
}
|
|
11222
11255
|
componentDidLoad() {
|
|
11223
11256
|
setComponentLoaded(this);
|
|
@@ -11238,31 +11271,34 @@ class Block {
|
|
|
11238
11271
|
renderIcon() {
|
|
11239
11272
|
const { loading, messages, status } = this;
|
|
11240
11273
|
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$s.icon);
|
|
11241
|
-
return loading ? (hAsync("div", { class: CSS$
|
|
11242
|
-
[CSS$
|
|
11243
|
-
[CSS$
|
|
11244
|
-
[CSS$
|
|
11245
|
-
}, icon: ICONS$
|
|
11274
|
+
return loading ? (hAsync("div", { class: CSS$16.icon, key: "loader" }, hAsync("calcite-loader", { inline: true, label: messages.loading }))) : !!status ? (hAsync("div", { class: CSS$16.icon, key: "status-icon" }, hAsync("calcite-icon", { class: {
|
|
11275
|
+
[CSS$16.statusIcon]: true,
|
|
11276
|
+
[CSS$16.valid]: status == "valid",
|
|
11277
|
+
[CSS$16.invalid]: status == "invalid",
|
|
11278
|
+
}, icon: ICONS$h[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$16.icon, key: "icon-slot" }, hAsync("slot", { key: "icon-slot", name: SLOTS$s.icon }))) : null;
|
|
11246
11279
|
}
|
|
11247
11280
|
renderTitle() {
|
|
11248
11281
|
const { heading, headingLevel, description } = this;
|
|
11249
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
11282
|
+
return heading || description ? (hAsync("div", { class: CSS$16.title }, hAsync(Heading, { class: CSS$16.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$16.description }, description) : null)) : null;
|
|
11250
11283
|
}
|
|
11251
11284
|
render() {
|
|
11252
11285
|
const { collapsible, el, loading, open, messages } = this;
|
|
11253
11286
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11254
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
11287
|
+
const headerContent = (hAsync("header", { class: CSS$16.header, id: IDS$1.header }, this.renderIcon(), this.renderTitle()));
|
|
11255
11288
|
const hasControl = !!getSlotted(el, SLOTS$s.control);
|
|
11256
11289
|
const hasMenuActions = !!getSlotted(el, SLOTS$s.headerMenuActions);
|
|
11257
|
-
const collapseIcon = open ? ICONS$
|
|
11258
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
11290
|
+
const collapseIcon = open ? ICONS$h.opened : ICONS$h.closed;
|
|
11291
|
+
const headerNode = (hAsync("div", { class: CSS$16.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": IDS$1.content, "aria-describedby": IDS$1.header, "aria-expanded": collapsible ? toAriaBoolean(open) : null, class: CSS$16.toggle, id: IDS$1.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$16.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), hasControl ? (hAsync("div", { class: CSS$16.controlContainer }, hAsync("slot", { name: SLOTS$s.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: messages.options }, hAsync("slot", { name: SLOTS$s.headerMenuActions }))) : null));
|
|
11259
11292
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
11260
|
-
[CSS$
|
|
11261
|
-
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$
|
|
11293
|
+
[CSS$16.container]: true,
|
|
11294
|
+
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$16.content, hidden: !open, id: IDS$1.content,
|
|
11295
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
11296
|
+
ref: this.setTransitionEl }, this.renderScrim()))));
|
|
11262
11297
|
}
|
|
11263
11298
|
static get assetsDirs() { return ["assets"]; }
|
|
11264
11299
|
get el() { return getElement(this); }
|
|
11265
11300
|
static get watchers() { return {
|
|
11301
|
+
"open": ["openHandler"],
|
|
11266
11302
|
"messageOverrides": ["onMessagesChange"],
|
|
11267
11303
|
"effectiveLocale": ["effectiveLocaleChange"]
|
|
11268
11304
|
}; }
|
|
@@ -11296,7 +11332,7 @@ const IDS = {
|
|
|
11296
11332
|
content: "content",
|
|
11297
11333
|
toggle: "toggle",
|
|
11298
11334
|
};
|
|
11299
|
-
const CSS$
|
|
11335
|
+
const CSS$15 = {
|
|
11300
11336
|
content: "content",
|
|
11301
11337
|
focusGuard: "focus-guard",
|
|
11302
11338
|
invalid: "invalid",
|
|
@@ -11310,7 +11346,7 @@ const CSS$14 = {
|
|
|
11310
11346
|
toggleSwitchText: "toggle--switch__text",
|
|
11311
11347
|
valid: "valid",
|
|
11312
11348
|
};
|
|
11313
|
-
const ICONS$
|
|
11349
|
+
const ICONS$g = {
|
|
11314
11350
|
menuOpen: "chevron-down",
|
|
11315
11351
|
menuClosedLeft: "chevron-left",
|
|
11316
11352
|
menuClosedRight: "chevron-right",
|
|
@@ -11398,11 +11434,11 @@ class BlockSection {
|
|
|
11398
11434
|
// --------------------------------------------------------------------------
|
|
11399
11435
|
renderStatusIcon() {
|
|
11400
11436
|
const { status } = this;
|
|
11401
|
-
const statusIcon = ICONS$
|
|
11437
|
+
const statusIcon = ICONS$g[status] ?? false;
|
|
11402
11438
|
const statusIconClasses = {
|
|
11403
|
-
[CSS$
|
|
11404
|
-
[CSS$
|
|
11405
|
-
[CSS$
|
|
11439
|
+
[CSS$15.statusIcon]: true,
|
|
11440
|
+
[CSS$15.valid]: status == "valid",
|
|
11441
|
+
[CSS$15.invalid]: status == "invalid",
|
|
11406
11442
|
};
|
|
11407
11443
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
11408
11444
|
}
|
|
@@ -11410,21 +11446,21 @@ class BlockSection {
|
|
|
11410
11446
|
const { el, messages, open, text, toggleDisplay } = this;
|
|
11411
11447
|
const dir = getElementDir(el);
|
|
11412
11448
|
const arrowIcon = open
|
|
11413
|
-
? ICONS$
|
|
11449
|
+
? ICONS$g.menuOpen
|
|
11414
11450
|
: dir === "rtl"
|
|
11415
|
-
? ICONS$
|
|
11416
|
-
: ICONS$
|
|
11451
|
+
? ICONS$g.menuClosedLeft
|
|
11452
|
+
: ICONS$g.menuClosedRight;
|
|
11417
11453
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11418
11454
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { class: {
|
|
11419
|
-
[CSS$
|
|
11455
|
+
[CSS$15.toggleSwitchContainer]: true,
|
|
11420
11456
|
} }, hAsync("div", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11421
|
-
[CSS$
|
|
11422
|
-
[CSS$
|
|
11423
|
-
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
11424
|
-
[CSS$
|
|
11425
|
-
[CSS$
|
|
11426
|
-
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
11427
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$
|
|
11457
|
+
[CSS$15.toggle]: true,
|
|
11458
|
+
[CSS$15.toggleSwitch]: true,
|
|
11459
|
+
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$15.toggleSwitchContent }, hAsync("span", { class: CSS$15.toggleSwitchText }, text)), this.renderStatusIcon()), hAsync("calcite-label", { class: CSS$15.focusGuard, layout: "inline", tabIndex: -1 }, hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s" })))) : (hAsync("button", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11460
|
+
[CSS$15.sectionHeader]: true,
|
|
11461
|
+
[CSS$15.toggle]: true,
|
|
11462
|
+
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$15.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
11463
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$15.content, hidden: !open, id: IDS.content }, hAsync("slot", null))));
|
|
11428
11464
|
}
|
|
11429
11465
|
static get assetsDirs() { return ["assets"]; }
|
|
11430
11466
|
get el() { return getElement(this); }
|
|
@@ -11854,7 +11890,7 @@ function onLabelDisconnected() {
|
|
|
11854
11890
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11855
11891
|
}
|
|
11856
11892
|
|
|
11857
|
-
const CSS$
|
|
11893
|
+
const CSS$14 = {
|
|
11858
11894
|
buttonLoader: "calcite-button--loader",
|
|
11859
11895
|
content: "content",
|
|
11860
11896
|
contentSlotted: "content--slotted",
|
|
@@ -11982,17 +12018,17 @@ class Button {
|
|
|
11982
12018
|
render() {
|
|
11983
12019
|
const childElType = this.href ? "a" : "button";
|
|
11984
12020
|
const Tag = childElType;
|
|
11985
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
12021
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$14.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$14.loadingIn : CSS$14.loadingOut, inline: true, label: this.messages.loading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
11986
12022
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
11987
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
11988
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
11989
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
12023
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$14.icon]: true, [CSS$14.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
12024
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$14.icon]: true, [CSS$14.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
12025
|
+
const contentEl = (hAsync("span", { class: CSS$14.content, ref: (el) => (this.contentEl = el) }, hAsync("slot", null)));
|
|
11990
12026
|
return (hAsync(Tag, { "aria-label": !this.loading ? getLabelText(this) : this.messages.loading, "aria-live": "polite", class: {
|
|
11991
|
-
[CSS$
|
|
11992
|
-
[CSS$
|
|
11993
|
-
[CSS$
|
|
11994
|
-
[CSS$
|
|
11995
|
-
[CSS$
|
|
12027
|
+
[CSS$14.buttonPadding]: noStartEndIcons,
|
|
12028
|
+
[CSS$14.buttonPaddingShrunk]: !noStartEndIcons,
|
|
12029
|
+
[CSS$14.contentSlotted]: this.hasContent,
|
|
12030
|
+
[CSS$14.iconStartEmpty]: !this.iconStart,
|
|
12031
|
+
[CSS$14.iconEndEmpty]: !this.iconEnd,
|
|
11996
12032
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: this.setChildEl, rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, title: this.tooltipText, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
11997
12033
|
}
|
|
11998
12034
|
//--------------------------------------------------------------------------
|
|
@@ -12307,7 +12343,7 @@ class CalciteMenu {
|
|
|
12307
12343
|
}; }
|
|
12308
12344
|
}
|
|
12309
12345
|
|
|
12310
|
-
const CSS$
|
|
12346
|
+
const CSS$13 = {
|
|
12311
12347
|
container: "container",
|
|
12312
12348
|
content: "content",
|
|
12313
12349
|
dropdownVertical: "dropdown--vertical",
|
|
@@ -12511,54 +12547,54 @@ class CalciteMenuItem {
|
|
|
12511
12547
|
//
|
|
12512
12548
|
//--------------------------------------------------------------------------
|
|
12513
12549
|
renderIconStart() {
|
|
12514
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12550
|
+
return (hAsync("calcite-icon", { class: `${CSS$13.icon} ${CSS$13.iconStart}`, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, key: CSS$13.iconStart, scale: "s" }));
|
|
12515
12551
|
}
|
|
12516
12552
|
renderIconEnd() {
|
|
12517
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12553
|
+
return (hAsync("calcite-icon", { class: `${CSS$13.icon} ${CSS$13.iconEnd}`, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, key: CSS$13.iconEnd, scale: "s" }));
|
|
12518
12554
|
}
|
|
12519
12555
|
renderBreadcrumbIcon(dir) {
|
|
12520
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12556
|
+
return (hAsync("calcite-icon", { class: `${CSS$13.icon} ${CSS$13.iconBreadcrumb}`, icon: dir === "rtl" ? "chevron-left" : "chevron-right", key: CSS$13.iconBreadcrumb, scale: "s" }));
|
|
12521
12557
|
}
|
|
12522
12558
|
renderDropdownIcon(dir) {
|
|
12523
12559
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12524
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12560
|
+
return (hAsync("calcite-icon", { class: `${CSS$13.icon} ${CSS$13.iconDropdown}`, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12525
12561
|
? this.open
|
|
12526
12562
|
? "chevron-up"
|
|
12527
12563
|
: "chevron-down"
|
|
12528
|
-
: dirChevron, key: CSS$
|
|
12564
|
+
: dirChevron, key: CSS$13.iconDropdown, scale: "s" }));
|
|
12529
12565
|
}
|
|
12530
12566
|
renderDropdownAction(dir) {
|
|
12531
12567
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12532
|
-
return (hAsync("calcite-action", { class: CSS$
|
|
12568
|
+
return (hAsync("calcite-action", { class: CSS$13.dropdownAction, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12533
12569
|
? this.open
|
|
12534
12570
|
? "chevron-up"
|
|
12535
12571
|
: "chevron-down"
|
|
12536
|
-
: dirChevron, key: CSS$
|
|
12572
|
+
: dirChevron, key: CSS$13.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12537
12573
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12538
12574
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12539
12575
|
}
|
|
12540
12576
|
renderSubmenuItems(dir) {
|
|
12541
12577
|
return (hAsync("calcite-menu", { class: {
|
|
12542
|
-
[CSS$
|
|
12543
|
-
[CSS$
|
|
12544
|
-
[CSS$
|
|
12578
|
+
[CSS$13.dropdownMenuItems]: true,
|
|
12579
|
+
[CSS$13.open]: this.open,
|
|
12580
|
+
[CSS$13.nested]: !this.isTopLevelItem,
|
|
12545
12581
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
12546
|
-
[CSS$
|
|
12582
|
+
[CSS$13.dropdownVertical]: this.topLevelMenuLayout === "vertical",
|
|
12547
12583
|
}, label: this.messages.submenu, layout: "vertical", role: "menu" }, hAsync("slot", { name: "submenu-item", onSlotchange: this.handleMenuItemSlotChange })));
|
|
12548
12584
|
}
|
|
12549
12585
|
renderHrefIcon(dir) {
|
|
12550
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
12586
|
+
return (hAsync("calcite-icon", { class: CSS$13.hoverHrefIcon, icon: dir === "rtl" ? "arrow-left" : "arrow-right", key: CSS$13.hoverHrefIcon, scale: "s" }));
|
|
12551
12587
|
}
|
|
12552
12588
|
renderItemContent(dir) {
|
|
12553
12589
|
const hasHref = this.href && (this.topLevelMenuLayout === "vertical" || !this.isTopLevelItem);
|
|
12554
|
-
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$
|
|
12590
|
+
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$13.textContainer }, hAsync("span", null, this.text)), hasHref && this.renderHrefIcon(dir), this.iconEnd && this.renderIconEnd(), this.breadcrumb ? this.renderBreadcrumbIcon(dir) : null, !this.href && this.hasSubmenu ? this.renderDropdownIcon(dir) : null));
|
|
12555
12591
|
}
|
|
12556
12592
|
render() {
|
|
12557
12593
|
const dir = getElementDir(this.el);
|
|
12558
12594
|
return (hAsync(Host, { onBlur: this.blurHandler, onFocus: this.focusHandler }, hAsync("li", { class: {
|
|
12559
|
-
[CSS$
|
|
12560
|
-
[CSS$
|
|
12561
|
-
}, role: "none" }, hAsync("div", { class: CSS$
|
|
12595
|
+
[CSS$13.container]: true,
|
|
12596
|
+
[CSS$13.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12597
|
+
}, role: "none" }, hAsync("div", { class: CSS$13.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$13.layoutVertical]: this.layout === "vertical", [CSS$13.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12562
12598
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12563
12599
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12564
12600
|
}
|
|
@@ -12601,7 +12637,7 @@ class CalciteMenuItem {
|
|
|
12601
12637
|
}; }
|
|
12602
12638
|
}
|
|
12603
12639
|
|
|
12604
|
-
const CSS$
|
|
12640
|
+
const CSS$12 = {
|
|
12605
12641
|
container: "container",
|
|
12606
12642
|
containerContent: "container-content",
|
|
12607
12643
|
hasProgress: "progress-bar",
|
|
@@ -12621,7 +12657,7 @@ const SLOTS$r = {
|
|
|
12621
12657
|
navSecondary: "navigation-secondary",
|
|
12622
12658
|
navTertiary: "navigation-tertiary",
|
|
12623
12659
|
};
|
|
12624
|
-
const ICONS$
|
|
12660
|
+
const ICONS$f = {
|
|
12625
12661
|
hamburger: "hamburger",
|
|
12626
12662
|
};
|
|
12627
12663
|
|
|
@@ -12736,7 +12772,7 @@ class CalciteNavigation {
|
|
|
12736
12772
|
//
|
|
12737
12773
|
//--------------------------------------------------------------------------
|
|
12738
12774
|
renderMenuAction() {
|
|
12739
|
-
return (hAsync("slot", { name: SLOTS$r.navigationAction, onSlotchange: this.handleMenuActionSlotChange }, this.navigationAction && (hAsync("calcite-action", { icon: ICONS$
|
|
12775
|
+
return (hAsync("slot", { name: SLOTS$r.navigationAction, onSlotchange: this.handleMenuActionSlotChange }, this.navigationAction && (hAsync("calcite-action", { icon: ICONS$f.hamburger, onClick: this.actionClickHandler, text: this.label,
|
|
12740
12776
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12741
12777
|
ref: (el) => (this.navigationActionEl = el) }))));
|
|
12742
12778
|
}
|
|
@@ -12750,11 +12786,11 @@ class CalciteNavigation {
|
|
|
12750
12786
|
this.navigationAction;
|
|
12751
12787
|
const slotName = this.el.slot;
|
|
12752
12788
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
12753
|
-
[CSS$
|
|
12754
|
-
[CSS$
|
|
12755
|
-
[CSS$
|
|
12756
|
-
[CSS$
|
|
12757
|
-
} }, hAsync("div", { class: { [CSS$
|
|
12789
|
+
[CSS$12.container]: true,
|
|
12790
|
+
[CSS$12.secondary]: slotName === SLOTS$r.navSecondary,
|
|
12791
|
+
[CSS$12.tertiary]: slotName === SLOTS$r.navTertiary,
|
|
12792
|
+
[CSS$12.primary]: primaryLevelHasElements,
|
|
12793
|
+
} }, hAsync("div", { class: { [CSS$12.hide]: !this.progressSlotHasElement, [SLOTS$r.progress]: true } }, hAsync("slot", { name: SLOTS$r.progress, onSlotchange: this.handleProgressSlotChange })), hAsync("div", { class: { [CSS$12.containerContent]: true, [CSS$12.hasProgress]: this.progressSlotHasElement } }, this.renderMenuAction(), hAsync("div", { class: { [CSS$12.hide]: !this.logoSlotHasElements, [SLOTS$r.logo]: true } }, hAsync("slot", { name: SLOTS$r.logo, onSlotchange: this.handleLogoSlotChange })), hAsync("slot", { name: SLOTS$r.contentStart, onSlotchange: this.handleContentStartSlotChange }), hAsync("slot", { name: SLOTS$r.contentCenter, onSlotchange: this.handleContentCenterSlotChange }), hAsync("slot", { name: SLOTS$r.contentEnd, onSlotchange: this.handleContentEndSlotChange }), hAsync("div", { class: { [CSS$12.hide]: !this.userSlotHasElements, [SLOTS$r.user]: true } }, hAsync("slot", { name: SLOTS$r.user, onSlotchange: this.handleUserSlotChange })))), hAsync(Fragment, null, hAsync("slot", { name: SLOTS$r.navSecondary, onSlotchange: this.handleSecondarySlotChange }), hAsync("slot", { name: SLOTS$r.navTertiary, onSlotchange: this.handleTertiarySlotChange }))));
|
|
12758
12794
|
}
|
|
12759
12795
|
get el() { return getElement(this); }
|
|
12760
12796
|
static get style() { return navigationCss; }
|
|
@@ -12781,7 +12817,7 @@ class CalciteNavigation {
|
|
|
12781
12817
|
}; }
|
|
12782
12818
|
}
|
|
12783
12819
|
|
|
12784
|
-
const CSS$
|
|
12820
|
+
const CSS$11 = {
|
|
12785
12821
|
container: "container",
|
|
12786
12822
|
heading: "heading",
|
|
12787
12823
|
description: "description",
|
|
@@ -12834,10 +12870,10 @@ class CalciteNavigationLogo {
|
|
|
12834
12870
|
// --------------------------------------------------------------------------
|
|
12835
12871
|
render() {
|
|
12836
12872
|
const { heading, description, thumbnail } = this;
|
|
12837
|
-
return (hAsync(Host, null, hAsync("a", { class: CSS$
|
|
12838
|
-
[CSS$
|
|
12839
|
-
[CSS$
|
|
12840
|
-
}, key: CSS$
|
|
12873
|
+
return (hAsync(Host, null, hAsync("a", { class: CSS$11.anchor, href: this.href, rel: this.rel, target: this.target }, thumbnail && hAsync("img", { alt: this.label || "", class: CSS$11.image, src: thumbnail }), (heading || description) && (hAsync("div", { class: CSS$11.container }, heading && (hAsync("span", { "aria-label": this.heading, class: {
|
|
12874
|
+
[CSS$11.heading]: true,
|
|
12875
|
+
[CSS$11.standalone]: !this.description,
|
|
12876
|
+
}, key: CSS$11.heading }, heading)), description && (hAsync("span", { "aria-label": this.description, class: CSS$11.description, key: CSS$11.description }, description)))))));
|
|
12841
12877
|
}
|
|
12842
12878
|
static get delegatesFocus() { return true; }
|
|
12843
12879
|
get el() { return getElement(this); }
|
|
@@ -12862,7 +12898,7 @@ class CalciteNavigationLogo {
|
|
|
12862
12898
|
}; }
|
|
12863
12899
|
}
|
|
12864
12900
|
|
|
12865
|
-
const CSS
|
|
12901
|
+
const CSS$10 = {
|
|
12866
12902
|
textContainer: "text-container",
|
|
12867
12903
|
fullName: "full-name",
|
|
12868
12904
|
username: "username",
|
|
@@ -12909,7 +12945,7 @@ class CalciteNavigationUser {
|
|
|
12909
12945
|
//
|
|
12910
12946
|
// --------------------------------------------------------------------------
|
|
12911
12947
|
render() {
|
|
12912
|
-
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS
|
|
12948
|
+
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$10.button }, hAsync("calcite-avatar", { "full-name": this.fullName, label: this.label, thumbnail: this.thumbnail, "user-id": this.userId, username: this.username }), (this.fullName || this.username) && !this.textDisabled && (hAsync("div", { class: CSS$10.textContainer }, this.fullName && (hAsync("span", { class: CSS$10.fullName, key: CSS$10.fullName }, this.fullName)), this.username && (hAsync("span", { class: CSS$10.username, key: CSS$10.username }, this.username)))))));
|
|
12913
12949
|
}
|
|
12914
12950
|
static get delegatesFocus() { return true; }
|
|
12915
12951
|
get el() { return getElement(this); }
|
|
@@ -12933,7 +12969,7 @@ class CalciteNavigationUser {
|
|
|
12933
12969
|
}; }
|
|
12934
12970
|
}
|
|
12935
12971
|
|
|
12936
|
-
const CSS
|
|
12972
|
+
const CSS$$ = {
|
|
12937
12973
|
container: "container",
|
|
12938
12974
|
header: "header",
|
|
12939
12975
|
footer: "footer",
|
|
@@ -13018,7 +13054,7 @@ class Card {
|
|
|
13018
13054
|
render() {
|
|
13019
13055
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
13020
13056
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
13021
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS
|
|
13057
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$$.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
13022
13058
|
}
|
|
13023
13059
|
effectiveLocaleChange() {
|
|
13024
13060
|
updateMessages(this);
|
|
@@ -13028,24 +13064,24 @@ class Card {
|
|
|
13028
13064
|
this.calciteCardSelect.emit();
|
|
13029
13065
|
}
|
|
13030
13066
|
renderThumbnail() {
|
|
13031
|
-
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS
|
|
13067
|
+
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$$.thumbnailWrapper }, hAsync("slot", { name: SLOTS$q.thumbnail }))) : null;
|
|
13032
13068
|
}
|
|
13033
13069
|
renderCheckbox() {
|
|
13034
|
-
return (hAsync("calcite-label", { class: CSS
|
|
13070
|
+
return (hAsync("calcite-label", { class: CSS$$.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: this.messages.select })));
|
|
13035
13071
|
}
|
|
13036
13072
|
renderHeader() {
|
|
13037
13073
|
const { el } = this;
|
|
13038
13074
|
const title = getSlotted(el, SLOTS$q.title);
|
|
13039
13075
|
const subtitle = getSlotted(el, SLOTS$q.subtitle);
|
|
13040
13076
|
const hasHeader = title || subtitle;
|
|
13041
|
-
return hasHeader ? (hAsync("header", { class: CSS
|
|
13077
|
+
return hasHeader ? (hAsync("header", { class: CSS$$.header }, hAsync("slot", { name: SLOTS$q.title }), hAsync("slot", { name: SLOTS$q.subtitle }))) : null;
|
|
13042
13078
|
}
|
|
13043
13079
|
renderFooter() {
|
|
13044
13080
|
const { el } = this;
|
|
13045
13081
|
const startFooter = getSlotted(el, SLOTS$q.footerStart);
|
|
13046
13082
|
const endFooter = getSlotted(el, SLOTS$q.footerEnd);
|
|
13047
13083
|
const hasFooter = startFooter || endFooter;
|
|
13048
|
-
return hasFooter ? (hAsync("footer", { class: CSS
|
|
13084
|
+
return hasFooter ? (hAsync("footer", { class: CSS$$.footer }, hAsync("slot", { name: SLOTS$q.footerStart }), hAsync("slot", { name: SLOTS$q.footerEnd }))) : null;
|
|
13049
13085
|
}
|
|
13050
13086
|
static get assetsDirs() { return ["assets"]; }
|
|
13051
13087
|
get el() { return getElement(this); }
|
|
@@ -13073,7 +13109,7 @@ class Card {
|
|
|
13073
13109
|
}; }
|
|
13074
13110
|
}
|
|
13075
13111
|
|
|
13076
|
-
const checkboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-checkbox-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-checkbox-h *.sc-calcite-checkbox,.sc-calcite-checkbox-h[disabled] .sc-calcite-checkbox-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-checkbox-h{--calcite-checkbox-size:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-checkbox-h{--calcite-checkbox-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-checkbox-h{--calcite-checkbox-size:1rem}/*!@:host*/.sc-calcite-checkbox-h{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}/*!@:host .check-svg,\n:host .toggle*/.sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox,.sc-calcite-checkbox-h .toggle.sc-calcite-checkbox{inline-size:var(--calcite-checkbox-size);block-size:var(--calcite-checkbox-size)}/*!@:host .check-svg*/.sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}/*!@:host([checked]) .check-svg,\n:host([indeterminate]) .check-svg*/[checked].sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox,[indeterminate].sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox{background-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}/*!@:host([hovered]) .toggle .check-svg,\n:host .toggle:hover .check-svg*/[hovered].sc-calcite-checkbox-h .toggle.sc-calcite-checkbox .check-svg.sc-calcite-checkbox,.sc-calcite-checkbox-h .toggle.sc-calcite-checkbox:hover .check-svg.sc-calcite-checkbox{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@.toggle*/.toggle.sc-calcite-checkbox{outline-color:transparent}/*!@.toggle:active, .toggle:focus, .toggle:focus-visible*/.toggle.sc-calcite-checkbox:active,.toggle.sc-calcite-checkbox:focus,.toggle.sc-calcite-checkbox:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-checkbox-h[disabled] .sc-calcite-checkbox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-checkbox-h [calcite-hydrated][disabled].sc-calcite-checkbox{opacity:1}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-checkbox-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([hidden])*/[hidden].sc-calcite-checkbox-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-checkbox{display:none}";
|
|
13112
|
+
const checkboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-checkbox-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-checkbox-h *.sc-calcite-checkbox,.sc-calcite-checkbox-h[disabled] .sc-calcite-checkbox-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-checkbox-h{--calcite-checkbox-size:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-checkbox-h{--calcite-checkbox-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-checkbox-h{--calcite-checkbox-size:1rem}/*!@:host*/.sc-calcite-checkbox-h{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}/*!@:host .check-svg,\n:host .toggle*/.sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox,.sc-calcite-checkbox-h .toggle.sc-calcite-checkbox{inline-size:var(--calcite-checkbox-size);block-size:var(--calcite-checkbox-size)}/*!@:host .check-svg*/.sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}/*!@:host([checked]) .check-svg,\n:host([indeterminate]) .check-svg*/[checked].sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox,[indeterminate].sc-calcite-checkbox-h .check-svg.sc-calcite-checkbox{background-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}/*!@:host([hovered]) .toggle .check-svg,\n:host .toggle:hover .check-svg*/[hovered].sc-calcite-checkbox-h .toggle.sc-calcite-checkbox .check-svg.sc-calcite-checkbox,.sc-calcite-checkbox-h .toggle.sc-calcite-checkbox:hover .check-svg.sc-calcite-checkbox{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@.toggle*/.toggle.sc-calcite-checkbox{position:relative;outline-color:transparent}/*!@.toggle:active, .toggle:focus, .toggle:focus-visible*/.toggle.sc-calcite-checkbox:active,.toggle.sc-calcite-checkbox:focus,.toggle.sc-calcite-checkbox:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.toggle::after*/.toggle.sc-calcite-checkbox::after{content:\"\";inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute;transform:translateX(-50%) translateY(-50%)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-checkbox-h[disabled] .sc-calcite-checkbox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-checkbox-h [calcite-hydrated][disabled].sc-calcite-checkbox{opacity:1}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-checkbox-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([hidden])*/[hidden].sc-calcite-checkbox-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-checkbox{display:none}";
|
|
13077
13113
|
|
|
13078
13114
|
class Checkbox {
|
|
13079
13115
|
constructor(hostRef) {
|
|
@@ -13208,7 +13244,7 @@ class Checkbox {
|
|
|
13208
13244
|
}; }
|
|
13209
13245
|
}
|
|
13210
13246
|
|
|
13211
|
-
const CSS$
|
|
13247
|
+
const CSS$_ = {
|
|
13212
13248
|
title: "title",
|
|
13213
13249
|
close: "close",
|
|
13214
13250
|
imageContainer: "image-container",
|
|
@@ -13227,7 +13263,7 @@ const CSS$Z = {
|
|
|
13227
13263
|
const SLOTS$p = {
|
|
13228
13264
|
image: "image",
|
|
13229
13265
|
};
|
|
13230
|
-
const ICONS$
|
|
13266
|
+
const ICONS$e = {
|
|
13231
13267
|
close: "x",
|
|
13232
13268
|
unchecked: "circle",
|
|
13233
13269
|
checkedSingle: "circle-f",
|
|
@@ -13377,28 +13413,28 @@ class Chip {
|
|
|
13377
13413
|
//
|
|
13378
13414
|
//--------------------------------------------------------------------------
|
|
13379
13415
|
renderChipImage() {
|
|
13380
|
-
return (hAsync("div", { class: CSS$
|
|
13416
|
+
return (hAsync("div", { class: CSS$_.imageContainer }, hAsync("slot", { name: SLOTS$p.image, onSlotchange: this.handleSlotImageChange })));
|
|
13381
13417
|
}
|
|
13382
13418
|
renderSelectionIcon() {
|
|
13383
13419
|
const icon = this.selectionMode === "multiple" && this.selected
|
|
13384
|
-
? ICONS$
|
|
13420
|
+
? ICONS$e.checked
|
|
13385
13421
|
: this.selectionMode === "multiple"
|
|
13386
|
-
? ICONS$
|
|
13422
|
+
? ICONS$e.unchecked
|
|
13387
13423
|
: this.selected
|
|
13388
|
-
? ICONS$
|
|
13424
|
+
? ICONS$e.checkedSingle
|
|
13389
13425
|
: undefined;
|
|
13390
13426
|
return (hAsync("div", { class: {
|
|
13391
|
-
[CSS$
|
|
13392
|
-
[CSS$
|
|
13427
|
+
[CSS$_.selectIcon]: true,
|
|
13428
|
+
[CSS$_.selectIconActive]: this.selectionMode === "multiple" || this.selected,
|
|
13393
13429
|
} }, hAsync("calcite-icon", { icon: icon, scale: this.scale === "l" ? "m" : "s" })));
|
|
13394
13430
|
}
|
|
13395
13431
|
renderCloseButton() {
|
|
13396
|
-
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$
|
|
13432
|
+
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$_.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13397
13433
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13398
|
-
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$
|
|
13434
|
+
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$e.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
13399
13435
|
}
|
|
13400
13436
|
renderIcon() {
|
|
13401
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
13437
|
+
return (hAsync("calcite-icon", { class: CSS$_.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: this.scale === "l" ? "m" : "s" }));
|
|
13402
13438
|
}
|
|
13403
13439
|
render() {
|
|
13404
13440
|
const disableInteraction = this.disabled || (!this.disabled && !this.interactive);
|
|
@@ -13412,21 +13448,21 @@ class Chip {
|
|
|
13412
13448
|
return (hAsync(Host, null, hAsync("div", { "aria-checked": this.selectionMode !== "none" && this.interactive
|
|
13413
13449
|
? toAriaBoolean(this.selected)
|
|
13414
13450
|
: undefined, "aria-disabled": disableInteraction ? toAriaBoolean(this.disabled) : undefined, "aria-label": this.label, class: {
|
|
13415
|
-
[CSS$
|
|
13416
|
-
[CSS$
|
|
13417
|
-
[CSS$
|
|
13418
|
-
[CSS$
|
|
13419
|
-
[CSS$
|
|
13420
|
-
[CSS$
|
|
13421
|
-
[CSS$
|
|
13422
|
-
[CSS$
|
|
13451
|
+
[CSS$_.container]: true,
|
|
13452
|
+
[CSS$_.textSlotted]: this.hasText,
|
|
13453
|
+
[CSS$_.imageSlotted]: this.hasImage,
|
|
13454
|
+
[CSS$_.selectable]: this.selectionMode !== "none",
|
|
13455
|
+
[CSS$_.multiple]: this.selectionMode === "multiple",
|
|
13456
|
+
[CSS$_.closable]: this.closable,
|
|
13457
|
+
[CSS$_.nonInteractive]: !this.interactive,
|
|
13458
|
+
[CSS$_.isCircle]: !this.closable &&
|
|
13423
13459
|
!this.hasText &&
|
|
13424
13460
|
(!this.icon || !this.hasImage) &&
|
|
13425
13461
|
(this.selectionMode === "none" ||
|
|
13426
13462
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13427
13463
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13428
13464
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13429
|
-
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$
|
|
13465
|
+
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$_.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13430
13466
|
}
|
|
13431
13467
|
static get assetsDirs() { return ["assets"]; }
|
|
13432
13468
|
get el() { return getElement(this); }
|
|
@@ -15748,7 +15784,7 @@ function zeroArray(array, length) {
|
|
|
15748
15784
|
|
|
15749
15785
|
var color = Color;
|
|
15750
15786
|
|
|
15751
|
-
const CSS$
|
|
15787
|
+
const CSS$Z = {
|
|
15752
15788
|
channel: "channel",
|
|
15753
15789
|
channels: "channels",
|
|
15754
15790
|
colorField: "color-field",
|
|
@@ -16097,7 +16133,7 @@ class ColorPicker {
|
|
|
16097
16133
|
const { channelMode: activeChannelMode, messages } = this;
|
|
16098
16134
|
const selected = channelMode === activeChannelMode;
|
|
16099
16135
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
16100
|
-
return (hAsync("calcite-tab-title", { class: CSS$
|
|
16136
|
+
return (hAsync("calcite-tab-title", { class: CSS$Z.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
16101
16137
|
};
|
|
16102
16138
|
this.renderChannelsTab = (channelMode) => {
|
|
16103
16139
|
const { allowEmpty, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
|
@@ -16108,7 +16144,7 @@ class ColorPicker {
|
|
|
16108
16144
|
: [messages.hue, messages.saturation, messages.value];
|
|
16109
16145
|
const direction = getElementDir(this.el);
|
|
16110
16146
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
16111
|
-
return (hAsync("calcite-tab", { class: CSS$
|
|
16147
|
+
return (hAsync("calcite-tab", { class: CSS$Z.control, key: channelMode, selected: selected }, hAsync("div", { class: CSS$Z.channels, dir: "ltr" }, channelsToRender.map((channelValue, index) => {
|
|
16112
16148
|
const isAlphaChannel = index === 3;
|
|
16113
16149
|
if (isAlphaChannel) {
|
|
16114
16150
|
channelValue =
|
|
@@ -16119,7 +16155,7 @@ class ColorPicker {
|
|
|
16119
16155
|
}))));
|
|
16120
16156
|
};
|
|
16121
16157
|
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
|
16122
|
-
return (hAsync("calcite-input-number", { class: CSS$
|
|
16158
|
+
return (hAsync("calcite-input-number", { class: CSS$Z.channel, "data-channel-index": index, dir: direction, key: index, label: ariaLabel, lang: this.effectiveLocale, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.handleChannelChange, onCalciteInputNumberInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, scale: this.scale === "l" ? "m" : "s",
|
|
16123
16159
|
// workaround to ensure input borders overlap as desired
|
|
16124
16160
|
// this is because the build transforms margin-left to its
|
|
16125
16161
|
// logical-prop, which is undesired as channels are always ltr
|
|
@@ -16309,7 +16345,7 @@ class ColorPicker {
|
|
|
16309
16345
|
this.shiftKeyChannelAdjustment = 0;
|
|
16310
16346
|
const { key } = event;
|
|
16311
16347
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
16312
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS$
|
|
16348
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$Z.channel))) {
|
|
16313
16349
|
return;
|
|
16314
16350
|
}
|
|
16315
16351
|
const { shiftKey } = event;
|
|
@@ -16401,35 +16437,35 @@ class ColorPicker {
|
|
|
16401
16437
|
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
|
16402
16438
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16403
16439
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16404
|
-
return (hAsync("div", { class: CSS$
|
|
16440
|
+
return (hAsync("div", { class: CSS$Z.container }, hAsync("div", { class: CSS$Z.controlAndScope }, hAsync("canvas", { class: CSS$Z.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16405
16441
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16406
|
-
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$
|
|
16442
|
+
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$Z.scope]: true, [CSS$Z.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16407
16443
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16408
16444
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16409
16445
|
}, tabindex: "0",
|
|
16410
16446
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16411
|
-
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$
|
|
16447
|
+
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$Z.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$Z.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$Z.sliders }, hAsync("div", { class: CSS$Z.controlAndScope }, hAsync("canvas", { class: { [CSS$Z.slider]: true, [CSS$Z.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16412
16448
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16413
|
-
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$
|
|
16449
|
+
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$Z.scope]: true, [CSS$Z.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16414
16450
|
top: `${adjustedHueScopeTop}px`,
|
|
16415
16451
|
left: `${adjustedHueScopeLeft}px`,
|
|
16416
16452
|
}, tabindex: "0",
|
|
16417
16453
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16418
|
-
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$
|
|
16454
|
+
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$Z.controlAndScope }, hAsync("canvas", { class: { [CSS$Z.slider]: true, [CSS$Z.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16419
16455
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16420
|
-
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS$
|
|
16456
|
+
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS$Z.scope]: true, [CSS$Z.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16421
16457
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16422
16458
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16423
16459
|
}, tabindex: "0",
|
|
16424
16460
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16425
16461
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16426
|
-
[CSS$
|
|
16427
|
-
[CSS$
|
|
16428
|
-
} }, hAsync("div", { class: CSS$
|
|
16429
|
-
[CSS$
|
|
16430
|
-
[CSS$
|
|
16431
|
-
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS$
|
|
16432
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$
|
|
16462
|
+
[CSS$Z.controlSection]: true,
|
|
16463
|
+
[CSS$Z.section]: true,
|
|
16464
|
+
} }, hAsync("div", { class: CSS$Z.hexAndChannelsGroup }, noHex ? null : (hAsync("div", { class: CSS$Z.hexOptions }, hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, alphaChannel: alphaChannel, class: CSS$Z.control, messages: messages, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: scale, value: selectedColorInHex }))), noChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
16465
|
+
[CSS$Z.colorModeContainer]: true,
|
|
16466
|
+
[CSS$Z.splitSection]: true,
|
|
16467
|
+
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS$Z.savedColorsSection]: true, [CSS$Z.section]: true } }, hAsync("div", { class: CSS$Z.header }, hAsync("label", null, messages.saved), hAsync("div", { class: CSS$Z.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$Z.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: scale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$Z.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: scale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$Z.savedColors }, [
|
|
16468
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$Z.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 }))),
|
|
16433
16469
|
])) : null))));
|
|
16434
16470
|
}
|
|
16435
16471
|
// --------------------------------------------------------------------------
|
|
@@ -16800,7 +16836,7 @@ class ColorPicker {
|
|
|
16800
16836
|
}; }
|
|
16801
16837
|
}
|
|
16802
16838
|
|
|
16803
|
-
const CSS$
|
|
16839
|
+
const CSS$Y = {
|
|
16804
16840
|
container: "container",
|
|
16805
16841
|
hexInput: "hex-input",
|
|
16806
16842
|
opacityInput: "opacity-input",
|
|
@@ -16968,9 +17004,9 @@ class ColorPickerHexInput {
|
|
|
16968
17004
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
16969
17005
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
16970
17006
|
const inputScale = scale === "l" ? "m" : "s";
|
|
16971
|
-
return (hAsync("div", { class: CSS$
|
|
17007
|
+
return (hAsync("div", { class: CSS$Y.container }, hAsync("calcite-input-text", { class: CSS$Y.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
16972
17008
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16973
|
-
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$
|
|
17009
|
+
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$Y.opacityInput, key: "opacity-input", label: messages?.opacity, max: OPACITY_LIMITS.max, maxLength: 3, min: OPACITY_LIMITS.min, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.onOpacityInputChange, onCalciteInternalInputNumberBlur: this.onOpacityInputBlur, onKeyDown: this.onInputKeyDown, scale: inputScale, suffixText: "%", value: opacityInputValue,
|
|
16974
17010
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16975
17011
|
ref: this.storeOpacityInputRef })) : null));
|
|
16976
17012
|
}
|
|
@@ -17066,7 +17102,7 @@ class ColorPickerHexInput {
|
|
|
17066
17102
|
}; }
|
|
17067
17103
|
}
|
|
17068
17104
|
|
|
17069
|
-
const CSS$
|
|
17105
|
+
const CSS$X = {
|
|
17070
17106
|
swatch: "swatch",
|
|
17071
17107
|
noColorSwatch: "swatch--no-color",
|
|
17072
17108
|
checker: "checker",
|
|
@@ -17104,8 +17140,8 @@ class ColorPickerSwatch {
|
|
|
17104
17140
|
render() {
|
|
17105
17141
|
const isEmpty = !this.internalColor;
|
|
17106
17142
|
const classes = {
|
|
17107
|
-
[CSS$
|
|
17108
|
-
[CSS$
|
|
17143
|
+
[CSS$X.swatch]: true,
|
|
17144
|
+
[CSS$X.noColorSwatch]: isEmpty,
|
|
17109
17145
|
};
|
|
17110
17146
|
return (hAsync("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
17111
17147
|
}
|
|
@@ -17131,7 +17167,7 @@ class ColorPickerSwatch {
|
|
|
17131
17167
|
const alpha = internalColor.alpha();
|
|
17132
17168
|
const hex = hexify(internalColor);
|
|
17133
17169
|
const hexa = hexify(internalColor, alpha < 1);
|
|
17134
|
-
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS$
|
|
17170
|
+
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS$X.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: "0", y: "0" }), hAsync("rect", { class: CSS$X.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: CHECKER_DIMENSIONS.squareSize, y: CHECKER_DIMENSIONS.squareSize }))), hAsync("rect", { fill: "url(#checker)", height: "100%", rx: borderRadius, width: "100%" }), hAsync("rect", { fill: hex, style: {
|
|
17135
17171
|
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
17136
17172
|
}, ...commonSwatchProps }), alpha < 1 ? (hAsync("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
17137
17173
|
}
|
|
@@ -17535,7 +17571,8 @@ const arrow = options => ({
|
|
|
17535
17571
|
placement,
|
|
17536
17572
|
rects,
|
|
17537
17573
|
platform,
|
|
17538
|
-
elements
|
|
17574
|
+
elements,
|
|
17575
|
+
middlewareData
|
|
17539
17576
|
} = state;
|
|
17540
17577
|
// Since `element` is required, we don't Partial<> the type.
|
|
17541
17578
|
const {
|
|
@@ -17583,16 +17620,20 @@ const arrow = options => ({
|
|
|
17583
17620
|
|
|
17584
17621
|
// If the reference is small enough that the arrow's padding causes it to
|
|
17585
17622
|
// to point to nothing for an aligned placement, adjust the offset of the
|
|
17586
|
-
// floating element itself.
|
|
17587
|
-
//
|
|
17588
|
-
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
17589
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1
|
|
17623
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
|
17624
|
+
// a single reset is performed when this is true.
|
|
17625
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
17626
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
17590
17627
|
return {
|
|
17591
|
-
[axis]: coords[axis]
|
|
17628
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
17592
17629
|
data: {
|
|
17593
17630
|
[axis]: offset,
|
|
17594
|
-
centerOffset: center - offset
|
|
17595
|
-
|
|
17631
|
+
centerOffset: center - offset - alignmentOffset,
|
|
17632
|
+
...(shouldAddOffset && {
|
|
17633
|
+
alignmentOffset
|
|
17634
|
+
})
|
|
17635
|
+
},
|
|
17636
|
+
reset: shouldAddOffset
|
|
17596
17637
|
};
|
|
17597
17638
|
}
|
|
17598
17639
|
});
|
|
@@ -17714,7 +17755,7 @@ const flip = function (options) {
|
|
|
17714
17755
|
name: 'flip',
|
|
17715
17756
|
options,
|
|
17716
17757
|
async fn(state) {
|
|
17717
|
-
var _middlewareData$flip;
|
|
17758
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
17718
17759
|
const {
|
|
17719
17760
|
placement,
|
|
17720
17761
|
middlewareData,
|
|
@@ -17732,6 +17773,14 @@ const flip = function (options) {
|
|
|
17732
17773
|
flipAlignment = true,
|
|
17733
17774
|
...detectOverflowOptions
|
|
17734
17775
|
} = evaluate(options, state);
|
|
17776
|
+
|
|
17777
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
17778
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
17779
|
+
// work.
|
|
17780
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
17781
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
17782
|
+
return {};
|
|
17783
|
+
}
|
|
17735
17784
|
const side = getSide(placement);
|
|
17736
17785
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
17737
17786
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
@@ -18132,18 +18181,21 @@ function getNearestOverflowAncestor(node) {
|
|
|
18132
18181
|
}
|
|
18133
18182
|
return getNearestOverflowAncestor(parentNode);
|
|
18134
18183
|
}
|
|
18135
|
-
function getOverflowAncestors(node, list) {
|
|
18184
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
18136
18185
|
var _node$ownerDocument2;
|
|
18137
18186
|
if (list === void 0) {
|
|
18138
18187
|
list = [];
|
|
18139
18188
|
}
|
|
18189
|
+
if (traverseIframes === void 0) {
|
|
18190
|
+
traverseIframes = true;
|
|
18191
|
+
}
|
|
18140
18192
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
18141
18193
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
18142
18194
|
const win = getWindow(scrollableAncestor);
|
|
18143
18195
|
if (isBody) {
|
|
18144
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
18196
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
18145
18197
|
}
|
|
18146
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
18198
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
18147
18199
|
}
|
|
18148
18200
|
|
|
18149
18201
|
function getCssDimensions(element) {
|
|
@@ -18414,7 +18466,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
18414
18466
|
if (cachedResult) {
|
|
18415
18467
|
return cachedResult;
|
|
18416
18468
|
}
|
|
18417
|
-
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
18469
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
18418
18470
|
let currentContainingBlockComputedStyle = null;
|
|
18419
18471
|
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
18420
18472
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
@@ -18860,7 +18912,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
18860
18912
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
18861
18913
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
18862
18914
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
18863
|
-
const CSS$
|
|
18915
|
+
const CSS$W = {
|
|
18864
18916
|
listContainer: "list-container",
|
|
18865
18917
|
};
|
|
18866
18918
|
|
|
@@ -18888,11 +18940,11 @@ function isSingleLike(selectionMode) {
|
|
|
18888
18940
|
return selectionMode.includes("single");
|
|
18889
18941
|
}
|
|
18890
18942
|
|
|
18891
|
-
const CSS$
|
|
18943
|
+
const CSS$V = {
|
|
18892
18944
|
button: "x-button",
|
|
18893
18945
|
};
|
|
18894
18946
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18895
|
-
return (hAsync("button", { "aria-label": label, class: CSS$
|
|
18947
|
+
return (hAsync("button", { "aria-label": label, class: CSS$V.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18896
18948
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
18897
18949
|
ref: ref },
|
|
18898
18950
|
hAsync("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
|
|
@@ -19090,7 +19142,7 @@ class Combobox {
|
|
|
19090
19142
|
event.preventDefault();
|
|
19091
19143
|
return;
|
|
19092
19144
|
}
|
|
19093
|
-
if (composedPath.some((node) => node.classList?.contains(CSS$
|
|
19145
|
+
if (composedPath.some((node) => node.classList?.contains(CSS$V.button))) {
|
|
19094
19146
|
this.clearValue();
|
|
19095
19147
|
event.preventDefault();
|
|
19096
19148
|
return;
|
|
@@ -19698,7 +19750,7 @@ class Combobox {
|
|
|
19698
19750
|
renderFloatingUIContainer() {
|
|
19699
19751
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19700
19752
|
const classes = {
|
|
19701
|
-
[CSS$
|
|
19753
|
+
[CSS$W.listContainer]: true,
|
|
19702
19754
|
[FloatingCSS.animation]: true,
|
|
19703
19755
|
[FloatingCSS.animationActive]: open,
|
|
19704
19756
|
};
|
|
@@ -19797,7 +19849,7 @@ class Combobox {
|
|
|
19797
19849
|
}; }
|
|
19798
19850
|
}
|
|
19799
19851
|
|
|
19800
|
-
const CSS$
|
|
19852
|
+
const CSS$U = {
|
|
19801
19853
|
icon: "icon",
|
|
19802
19854
|
iconActive: "icon--active",
|
|
19803
19855
|
iconIndent: "icon--indent",
|
|
@@ -19876,20 +19928,20 @@ class ComboboxItem {
|
|
|
19876
19928
|
// --------------------------------------------------------------------------
|
|
19877
19929
|
renderIcon(iconPath) {
|
|
19878
19930
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19879
|
-
[CSS$
|
|
19880
|
-
[CSS$
|
|
19881
|
-
[CSS$
|
|
19931
|
+
[CSS$U.custom]: !!this.icon,
|
|
19932
|
+
[CSS$U.iconActive]: this.icon && this.selected,
|
|
19933
|
+
[CSS$U.iconIndent]: true,
|
|
19882
19934
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
19883
19935
|
}
|
|
19884
19936
|
renderSelectIndicator(showDot, iconPath) {
|
|
19885
19937
|
return showDot ? (hAsync("span", { class: {
|
|
19886
|
-
[CSS$
|
|
19887
|
-
[CSS$
|
|
19888
|
-
[CSS$
|
|
19938
|
+
[CSS$U.icon]: true,
|
|
19939
|
+
[CSS$U.dot]: true,
|
|
19940
|
+
[CSS$U.iconIndent]: true,
|
|
19889
19941
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19890
|
-
[CSS$
|
|
19891
|
-
[CSS$
|
|
19892
|
-
[CSS$
|
|
19942
|
+
[CSS$U.icon]: true,
|
|
19943
|
+
[CSS$U.iconActive]: this.selected,
|
|
19944
|
+
[CSS$U.iconIndent]: true,
|
|
19893
19945
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: this.scale === "l" ? "m" : "s" }));
|
|
19894
19946
|
}
|
|
19895
19947
|
renderChildren() {
|
|
@@ -19904,10 +19956,10 @@ class ComboboxItem {
|
|
|
19904
19956
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19905
19957
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
19906
19958
|
const classes = {
|
|
19907
|
-
[CSS$
|
|
19908
|
-
[CSS$
|
|
19909
|
-
[CSS$
|
|
19910
|
-
[CSS$
|
|
19959
|
+
[CSS$U.label]: true,
|
|
19960
|
+
[CSS$U.selected]: this.selected,
|
|
19961
|
+
[CSS$U.active]: this.active,
|
|
19962
|
+
[CSS$U.single]: isSingleSelect,
|
|
19911
19963
|
};
|
|
19912
19964
|
const depth = getDepth$1();
|
|
19913
19965
|
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderSelectIndicator(showDot, iconPath), this.renderIcon(iconPath), hAsync("span", { class: "title" }, this.textLabel)), this.renderChildren())));
|
|
@@ -19940,7 +19992,7 @@ class ComboboxItem {
|
|
|
19940
19992
|
}; }
|
|
19941
19993
|
}
|
|
19942
19994
|
|
|
19943
|
-
const CSS$
|
|
19995
|
+
const CSS$T = {
|
|
19944
19996
|
list: "list",
|
|
19945
19997
|
label: "label",
|
|
19946
19998
|
title: "title",
|
|
@@ -19976,7 +20028,7 @@ class ComboboxItemGroup {
|
|
|
19976
20028
|
render() {
|
|
19977
20029
|
const { el, scale } = this;
|
|
19978
20030
|
const depth = getDepth$1();
|
|
19979
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
20031
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$T.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$T.label]: true }, id: this.guid, role: "presentation", style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("span", { class: CSS$T.title }, this.label)), hAsync("slot", null)));
|
|
19980
20032
|
}
|
|
19981
20033
|
get el() { return getElement(this); }
|
|
19982
20034
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21163,7 +21215,7 @@ class DatePickerMonth {
|
|
|
21163
21215
|
}; }
|
|
21164
21216
|
}
|
|
21165
21217
|
|
|
21166
|
-
const CSS$
|
|
21218
|
+
const CSS$S = {
|
|
21167
21219
|
header: "header",
|
|
21168
21220
|
month: "month",
|
|
21169
21221
|
chevron: "chevron",
|
|
@@ -21263,7 +21315,7 @@ class DatePickerMonthHeader {
|
|
|
21263
21315
|
this.setNextPrevMonthDates();
|
|
21264
21316
|
}
|
|
21265
21317
|
render() {
|
|
21266
|
-
return hAsync("div", { class: CSS$
|
|
21318
|
+
return hAsync("div", { class: CSS$S.header }, this.renderContent());
|
|
21267
21319
|
}
|
|
21268
21320
|
renderContent() {
|
|
21269
21321
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21286,12 +21338,12 @@ class DatePickerMonthHeader {
|
|
|
21286
21338
|
const order = getOrder(unitOrder);
|
|
21287
21339
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21288
21340
|
const suffix = localeData.year?.suffix;
|
|
21289
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
21341
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$S.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: iconScale })), hAsync("div", { class: { text: true, [CSS$S.textReverse]: reverse } }, hAsync(Heading, { class: CSS$S.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$S.yearWrap }, hAsync("input", { "aria-label": messages.year, class: {
|
|
21290
21342
|
year: true,
|
|
21291
|
-
[CSS$
|
|
21343
|
+
[CSS$S.yearSuffix]: !!suffix,
|
|
21292
21344
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21293
21345
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
21294
|
-
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$
|
|
21346
|
+
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$S.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$S.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: iconScale }))));
|
|
21295
21347
|
}
|
|
21296
21348
|
setNextPrevMonthDates() {
|
|
21297
21349
|
if (!this.activeDate) {
|
|
@@ -21793,7 +21845,7 @@ class Dropdown {
|
|
|
21793
21845
|
}; }
|
|
21794
21846
|
}
|
|
21795
21847
|
|
|
21796
|
-
const CSS$
|
|
21848
|
+
const CSS$R = {
|
|
21797
21849
|
container: "container",
|
|
21798
21850
|
containerLink: "container--link",
|
|
21799
21851
|
containerMulti: "container--multi-selection",
|
|
@@ -21841,8 +21893,8 @@ class DropdownGroup {
|
|
|
21841
21893
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21842
21894
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21843
21895
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21844
|
-
[CSS$
|
|
21845
|
-
[`${CSS$
|
|
21896
|
+
[CSS$R.container]: true,
|
|
21897
|
+
[`${CSS$R.container}--${this.scale}`]: true,
|
|
21846
21898
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21847
21899
|
}
|
|
21848
21900
|
//--------------------------------------------------------------------------
|
|
@@ -21936,9 +21988,9 @@ class DropdownItem {
|
|
|
21936
21988
|
}
|
|
21937
21989
|
render() {
|
|
21938
21990
|
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
21939
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
21940
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
21941
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$
|
|
21991
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$R.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
21992
|
+
const contentNode = (hAsync("span", { class: CSS$R.itemContent }, hAsync("slot", null)));
|
|
21993
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$R.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21942
21994
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21943
21995
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21944
21996
|
: this.iconStart
|
|
@@ -21946,7 +21998,7 @@ class DropdownItem {
|
|
|
21946
21998
|
: this.iconEnd
|
|
21947
21999
|
? [contentNode, iconEndEl]
|
|
21948
22000
|
: contentNode;
|
|
21949
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
22001
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$R.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
21950
22002
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
21951
22003
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21952
22004
|
const itemRole = href
|
|
@@ -21958,13 +22010,13 @@ class DropdownItem {
|
|
|
21958
22010
|
: "menuitem";
|
|
21959
22011
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21960
22012
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
21961
|
-
[CSS$
|
|
21962
|
-
[CSS$
|
|
21963
|
-
[`${CSS$
|
|
21964
|
-
[CSS$
|
|
21965
|
-
[CSS$
|
|
21966
|
-
[CSS$
|
|
21967
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$
|
|
22013
|
+
[CSS$R.container]: true,
|
|
22014
|
+
[CSS$R.containerLink]: !!href,
|
|
22015
|
+
[`${CSS$R.container}--${scale}`]: true,
|
|
22016
|
+
[CSS$R.containerMulti]: selectionMode === "multiple",
|
|
22017
|
+
[CSS$R.containerSingle]: selectionMode === "single",
|
|
22018
|
+
[CSS$R.containerNone]: selectionMode === "none",
|
|
22019
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$R.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21968
22020
|
}
|
|
21969
22021
|
//--------------------------------------------------------------------------
|
|
21970
22022
|
//
|
|
@@ -22071,10 +22123,10 @@ class DropdownItem {
|
|
|
22071
22123
|
}; }
|
|
22072
22124
|
}
|
|
22073
22125
|
|
|
22074
|
-
const CSS$
|
|
22126
|
+
const CSS$Q = {
|
|
22075
22127
|
button: "button",
|
|
22076
22128
|
};
|
|
22077
|
-
const ICONS$
|
|
22129
|
+
const ICONS$d = {
|
|
22078
22130
|
plus: "plus",
|
|
22079
22131
|
};
|
|
22080
22132
|
|
|
@@ -22086,7 +22138,7 @@ class Fab {
|
|
|
22086
22138
|
this.appearance = "solid";
|
|
22087
22139
|
this.kind = "brand";
|
|
22088
22140
|
this.disabled = false;
|
|
22089
|
-
this.icon = ICONS$
|
|
22141
|
+
this.icon = ICONS$d.plus;
|
|
22090
22142
|
this.iconFlipRtl = false;
|
|
22091
22143
|
this.label = undefined;
|
|
22092
22144
|
this.loading = false;
|
|
@@ -22132,7 +22184,7 @@ class Fab {
|
|
|
22132
22184
|
render() {
|
|
22133
22185
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22134
22186
|
const title = !textEnabled ? label || text || null : null;
|
|
22135
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22187
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$Q.button, disabled: disabled, iconFlipRtl: iconFlipRtl ? "start" : null, iconStart: icon, kind: kind, label: label, loading: loading, round: true, scale: scale, title: title, type: "button", width: "auto",
|
|
22136
22188
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22137
22189
|
ref: (buttonEl) => {
|
|
22138
22190
|
this.buttonEl = buttonEl;
|
|
@@ -22162,11 +22214,11 @@ class Fab {
|
|
|
22162
22214
|
}; }
|
|
22163
22215
|
}
|
|
22164
22216
|
|
|
22165
|
-
const CSS$
|
|
22217
|
+
const CSS$P = {
|
|
22166
22218
|
container: "container",
|
|
22167
22219
|
searchIcon: "search-icon",
|
|
22168
22220
|
};
|
|
22169
|
-
const ICONS$
|
|
22221
|
+
const ICONS$c = {
|
|
22170
22222
|
search: "search",
|
|
22171
22223
|
close: "x",
|
|
22172
22224
|
};
|
|
@@ -22291,7 +22343,7 @@ class Filter {
|
|
|
22291
22343
|
// --------------------------------------------------------------------------
|
|
22292
22344
|
render() {
|
|
22293
22345
|
const { disabled, scale } = this;
|
|
22294
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22346
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$P.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.messages.label, clearable: true, disabled: disabled, icon: ICONS$c.search, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22295
22347
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22296
22348
|
ref: (el) => {
|
|
22297
22349
|
this.textInput = el;
|
|
@@ -22330,7 +22382,7 @@ class Filter {
|
|
|
22330
22382
|
}; }
|
|
22331
22383
|
}
|
|
22332
22384
|
|
|
22333
|
-
const CSS$
|
|
22385
|
+
const CSS$O = {
|
|
22334
22386
|
frame: "frame",
|
|
22335
22387
|
frameAdvancing: "frame--advancing",
|
|
22336
22388
|
frameRetreating: "frame--retreating",
|
|
@@ -22440,7 +22492,10 @@ class Flow {
|
|
|
22440
22492
|
// Private Methods
|
|
22441
22493
|
//
|
|
22442
22494
|
// --------------------------------------------------------------------------
|
|
22443
|
-
async handleItemBackClick() {
|
|
22495
|
+
async handleItemBackClick(event) {
|
|
22496
|
+
if (event.defaultPrevented) {
|
|
22497
|
+
return;
|
|
22498
|
+
}
|
|
22444
22499
|
await this.back();
|
|
22445
22500
|
return this.setFocus();
|
|
22446
22501
|
}
|
|
@@ -22452,9 +22507,9 @@ class Flow {
|
|
|
22452
22507
|
render() {
|
|
22453
22508
|
const { flowDirection } = this;
|
|
22454
22509
|
const frameDirectionClasses = {
|
|
22455
|
-
[CSS$
|
|
22456
|
-
[CSS$
|
|
22457
|
-
[CSS$
|
|
22510
|
+
[CSS$O.frame]: true,
|
|
22511
|
+
[CSS$O.frameAdvancing]: flowDirection === "advancing",
|
|
22512
|
+
[CSS$O.frameRetreating]: flowDirection === "retreating",
|
|
22458
22513
|
};
|
|
22459
22514
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22460
22515
|
}
|
|
@@ -22477,7 +22532,7 @@ class Flow {
|
|
|
22477
22532
|
}; }
|
|
22478
22533
|
}
|
|
22479
22534
|
|
|
22480
|
-
const CSS$
|
|
22535
|
+
const CSS$N = {
|
|
22481
22536
|
actionBarContainer: "action-bar-container",
|
|
22482
22537
|
backButton: "back-button",
|
|
22483
22538
|
container: "container",
|
|
@@ -22495,11 +22550,13 @@ const CSS$M = {
|
|
|
22495
22550
|
fabContainer: "fab-container",
|
|
22496
22551
|
footer: "footer",
|
|
22497
22552
|
};
|
|
22498
|
-
const ICONS$
|
|
22553
|
+
const ICONS$b = {
|
|
22499
22554
|
close: "x",
|
|
22500
22555
|
menu: "ellipsis",
|
|
22501
22556
|
backLeft: "chevron-left",
|
|
22502
22557
|
backRight: "chevron-right",
|
|
22558
|
+
expand: "chevron-up",
|
|
22559
|
+
collapse: "chevron-down",
|
|
22503
22560
|
};
|
|
22504
22561
|
const SLOTS$n = {
|
|
22505
22562
|
actionBar: "action-bar",
|
|
@@ -22512,10 +22569,10 @@ const SLOTS$n = {
|
|
|
22512
22569
|
footerActions: "footer-actions",
|
|
22513
22570
|
};
|
|
22514
22571
|
|
|
22515
|
-
const CSS$
|
|
22572
|
+
const CSS$M = {
|
|
22516
22573
|
backButton: "back-button",
|
|
22517
22574
|
};
|
|
22518
|
-
const ICONS$
|
|
22575
|
+
const ICONS$a = {
|
|
22519
22576
|
backLeft: "chevron-left",
|
|
22520
22577
|
backRight: "chevron-right",
|
|
22521
22578
|
};
|
|
@@ -22530,7 +22587,7 @@ const SLOTS$m = {
|
|
|
22530
22587
|
footerActions: "footer-actions",
|
|
22531
22588
|
};
|
|
22532
22589
|
|
|
22533
|
-
const flowItemCss = "/*!@:host*/.sc-calcite-flow-item-h{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 **/.sc-calcite-flow-item-h *.sc-calcite-flow-item{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-flow-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-flow-item-h *.sc-calcite-flow-item,.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-flow-item-h{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden
|
|
22590
|
+
const flowItemCss = "/*!@:host*/.sc-calcite-flow-item-h{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 **/.sc-calcite-flow-item-h *.sc-calcite-flow-item{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-flow-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-flow-item-h *.sc-calcite-flow-item,.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-flow-item-h{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-flow-item-h [calcite-hydrated][disabled].sc-calcite-flow-item{opacity:1}/*!@.back-button*/.back-button.sc-calcite-flow-item{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@calcite-panel*/calcite-panel.sc-calcite-flow-item{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}/*!@:host([hidden])*/[hidden].sc-calcite-flow-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-flow-item{display:none}";
|
|
22534
22591
|
|
|
22535
22592
|
/**
|
|
22536
22593
|
* @slot - A slot for adding custom content.
|
|
@@ -22546,9 +22603,10 @@ const flowItemCss = "/*!@:host*/.sc-calcite-flow-item-h{box-sizing:border-box;ba
|
|
|
22546
22603
|
class FlowItem {
|
|
22547
22604
|
constructor(hostRef) {
|
|
22548
22605
|
registerInstance(this, hostRef);
|
|
22549
|
-
this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack",
|
|
22606
|
+
this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 7);
|
|
22550
22607
|
this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
|
|
22551
22608
|
this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
|
|
22609
|
+
this.calciteFlowItemToggle = createEvent(this, "calciteFlowItemToggle", 6);
|
|
22552
22610
|
// --------------------------------------------------------------------------
|
|
22553
22611
|
//
|
|
22554
22612
|
// Private Methods
|
|
@@ -22562,6 +22620,10 @@ class FlowItem {
|
|
|
22562
22620
|
event.stopPropagation();
|
|
22563
22621
|
this.calciteFlowItemClose.emit();
|
|
22564
22622
|
};
|
|
22623
|
+
this.handlePanelToggle = (event) => {
|
|
22624
|
+
event.stopPropagation();
|
|
22625
|
+
this.calciteFlowItemToggle.emit();
|
|
22626
|
+
};
|
|
22565
22627
|
this.backButtonClick = () => {
|
|
22566
22628
|
this.calciteFlowItemBack.emit();
|
|
22567
22629
|
};
|
|
@@ -22573,6 +22635,9 @@ class FlowItem {
|
|
|
22573
22635
|
};
|
|
22574
22636
|
this.closable = false;
|
|
22575
22637
|
this.closed = false;
|
|
22638
|
+
this.collapsed = false;
|
|
22639
|
+
this.collapseDirection = "down";
|
|
22640
|
+
this.collapsible = false;
|
|
22576
22641
|
this.beforeBack = undefined;
|
|
22577
22642
|
this.description = undefined;
|
|
22578
22643
|
this.disabled = false;
|
|
@@ -22624,6 +22689,8 @@ class FlowItem {
|
|
|
22624
22689
|
// --------------------------------------------------------------------------
|
|
22625
22690
|
/**
|
|
22626
22691
|
* Sets focus on the component.
|
|
22692
|
+
*
|
|
22693
|
+
* @returns promise.
|
|
22627
22694
|
*/
|
|
22628
22695
|
async setFocus() {
|
|
22629
22696
|
await componentFocusable(this);
|
|
@@ -22644,7 +22711,8 @@ class FlowItem {
|
|
|
22644
22711
|
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
22645
22712
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
22646
22713
|
* });
|
|
22647
|
-
* @param options
|
|
22714
|
+
* @param options - allows specific coordinates to be defined.
|
|
22715
|
+
* @returns - promise that resolves once the content is scrolled to.
|
|
22648
22716
|
*/
|
|
22649
22717
|
async scrollContentTo(options) {
|
|
22650
22718
|
await this.containerEl?.scrollContentTo(options);
|
|
@@ -22659,14 +22727,14 @@ class FlowItem {
|
|
|
22659
22727
|
const rtl = getElementDir(el) === "rtl";
|
|
22660
22728
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22661
22729
|
const label = messages.back;
|
|
22662
|
-
const icon = rtl ? ICONS$
|
|
22663
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22730
|
+
const icon = rtl ? ICONS$a.backRight : ICONS$a.backLeft;
|
|
22731
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$M.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22664
22732
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22665
22733
|
ref: this.setBackRef })) : null;
|
|
22666
22734
|
}
|
|
22667
22735
|
render() {
|
|
22668
|
-
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22669
|
-
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll,
|
|
22736
|
+
const { collapsed, collapseDirection, collapsible, closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22737
|
+
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, collapseDirection: collapseDirection, collapsed: collapsed, collapsible: collapsible, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll, onCalcitePanelToggle: this.handlePanelToggle,
|
|
22670
22738
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22671
22739
|
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$m.actionBar, slot: SLOTS$n.actionBar }), hAsync("slot", { name: SLOTS$m.headerActionsStart, slot: SLOTS$n.headerActionsStart }), hAsync("slot", { name: SLOTS$m.headerActionsEnd, slot: SLOTS$n.headerActionsEnd }), hAsync("slot", { name: SLOTS$m.headerContent, slot: SLOTS$n.headerContent }), hAsync("slot", { name: SLOTS$m.headerMenuActions, slot: SLOTS$n.headerMenuActions }), hAsync("slot", { name: SLOTS$m.fab, slot: SLOTS$n.fab }), hAsync("slot", { name: SLOTS$m.footerActions, slot: SLOTS$n.footerActions }), hAsync("slot", { name: SLOTS$m.footer, slot: SLOTS$n.footer }), hAsync("slot", null))));
|
|
22672
22740
|
}
|
|
@@ -22683,6 +22751,9 @@ class FlowItem {
|
|
|
22683
22751
|
"$members$": {
|
|
22684
22752
|
"closable": [516],
|
|
22685
22753
|
"closed": [516],
|
|
22754
|
+
"collapsed": [516],
|
|
22755
|
+
"collapseDirection": [1, "collapse-direction"],
|
|
22756
|
+
"collapsible": [516],
|
|
22686
22757
|
"beforeBack": [16],
|
|
22687
22758
|
"description": [1],
|
|
22688
22759
|
"disabled": [516],
|
|
@@ -22700,7 +22771,7 @@ class FlowItem {
|
|
|
22700
22771
|
},
|
|
22701
22772
|
"$listeners$": undefined,
|
|
22702
22773
|
"$lazyBundleId$": "-",
|
|
22703
|
-
"$attrsToReflect$": [["closable", "closable"], ["closed", "closed"], ["disabled", "disabled"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
22774
|
+
"$attrsToReflect$": [["closable", "closable"], ["closed", "closed"], ["collapsed", "collapsed"], ["collapsible", "collapsible"], ["disabled", "disabled"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
22704
22775
|
}; }
|
|
22705
22776
|
}
|
|
22706
22777
|
|
|
@@ -22767,7 +22838,7 @@ function bezier(p0, p1, m0, m1, t) {
|
|
|
22767
22838
|
* @param root0.min
|
|
22768
22839
|
* @param root0.max
|
|
22769
22840
|
*/
|
|
22770
|
-
function translate$
|
|
22841
|
+
function translate$4({ width, height, min, max }) {
|
|
22771
22842
|
const rangeX = max[0] - min[0];
|
|
22772
22843
|
const rangeY = max[1] - min[1];
|
|
22773
22844
|
return (point) => {
|
|
@@ -22873,7 +22944,7 @@ class Graph {
|
|
|
22873
22944
|
if (max > rangeMax[0] || max < rangeMax[0]) {
|
|
22874
22945
|
currentMax = [max, rangeMax[1]];
|
|
22875
22946
|
}
|
|
22876
|
-
const t = translate$
|
|
22947
|
+
const t = translate$4({ min: currentMin, max: currentMax, width, height });
|
|
22877
22948
|
const [hMinX] = t([highlightMin, currentMax[1]]);
|
|
22878
22949
|
const [hMaxX] = t([highlightMax, currentMax[1]]);
|
|
22879
22950
|
const areaPath = area({ data, min: rangeMin, max: rangeMax, t });
|
|
@@ -22924,11 +22995,11 @@ class Graph {
|
|
|
22924
22995
|
}; }
|
|
22925
22996
|
}
|
|
22926
22997
|
|
|
22927
|
-
const CSS$
|
|
22998
|
+
const CSS$L = {
|
|
22928
22999
|
handle: "handle",
|
|
22929
23000
|
handleActivated: "handle--activated",
|
|
22930
23001
|
};
|
|
22931
|
-
const ICONS$
|
|
23002
|
+
const ICONS$9 = {
|
|
22932
23003
|
drag: "drag",
|
|
22933
23004
|
};
|
|
22934
23005
|
|
|
@@ -23047,11 +23118,11 @@ class Handle {
|
|
|
23047
23118
|
render() {
|
|
23048
23119
|
return (
|
|
23049
23120
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23050
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23121
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$L.handle]: true, [CSS$L.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23051
23122
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23052
23123
|
ref: (el) => {
|
|
23053
23124
|
this.handleButton = el;
|
|
23054
|
-
} }, hAsync("calcite-icon", { icon: ICONS$
|
|
23125
|
+
} }, hAsync("calcite-icon", { icon: ICONS$9.drag, scale: "s" })));
|
|
23055
23126
|
}
|
|
23056
23127
|
static get assetsDirs() { return ["assets"]; }
|
|
23057
23128
|
get el() { return getElement(this); }
|
|
@@ -23086,7 +23157,7 @@ class Handle {
|
|
|
23086
23157
|
}; }
|
|
23087
23158
|
}
|
|
23088
23159
|
|
|
23089
|
-
const CSS$
|
|
23160
|
+
const CSS$K = {
|
|
23090
23161
|
icon: "icon",
|
|
23091
23162
|
flipRtl: "flip-rtl",
|
|
23092
23163
|
};
|
|
@@ -23134,7 +23205,7 @@ class Icon {
|
|
|
23134
23205
|
const semantic = !!textLabel;
|
|
23135
23206
|
const paths = [].concat(pathData || "");
|
|
23136
23207
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23137
|
-
[CSS$
|
|
23208
|
+
[CSS$K.flipRtl]: dir === "rtl" && flipRtl,
|
|
23138
23209
|
svg: true,
|
|
23139
23210
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
23140
23211
|
}
|
|
@@ -23180,7 +23251,7 @@ class Icon {
|
|
|
23180
23251
|
}; }
|
|
23181
23252
|
}
|
|
23182
23253
|
|
|
23183
|
-
const CSS$
|
|
23254
|
+
const CSS$J = {
|
|
23184
23255
|
wrapper: "wrapper",
|
|
23185
23256
|
confirmChangesButton: "confirm-changes-button",
|
|
23186
23257
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23330,16 +23401,16 @@ class InlineEditable {
|
|
|
23330
23401
|
updateHostInteraction(this);
|
|
23331
23402
|
}
|
|
23332
23403
|
render() {
|
|
23333
|
-
return (hAsync("div", { class: CSS$
|
|
23404
|
+
return (hAsync("div", { class: CSS$J.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$J.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$J.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$J.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23334
23405
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23335
23406
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23336
23407
|
}, type: "button",
|
|
23337
23408
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23338
23409
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23339
|
-
hAsync("div", { class: CSS$
|
|
23410
|
+
hAsync("div", { class: CSS$J.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$J.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23340
23411
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23341
23412
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23342
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23413
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$J.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23343
23414
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23344
23415
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23345
23416
|
])));
|
|
@@ -23425,7 +23496,7 @@ class InlineEditable {
|
|
|
23425
23496
|
}; }
|
|
23426
23497
|
}
|
|
23427
23498
|
|
|
23428
|
-
const CSS$
|
|
23499
|
+
const CSS$I = {
|
|
23429
23500
|
loader: "loader",
|
|
23430
23501
|
clearButton: "clear-button",
|
|
23431
23502
|
editingEnabled: "editing-enabled",
|
|
@@ -24009,38 +24080,38 @@ class Input {
|
|
|
24009
24080
|
// --------------------------------------------------------------------------
|
|
24010
24081
|
render() {
|
|
24011
24082
|
const dir = getElementDir(this.el);
|
|
24012
|
-
const loader = (hAsync("div", { class: CSS$
|
|
24013
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
24014
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24083
|
+
const loader = (hAsync("div", { class: CSS$I.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24084
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$I.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
24085
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$I.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
24015
24086
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24016
24087
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24017
|
-
[CSS$
|
|
24018
|
-
[CSS$
|
|
24088
|
+
[CSS$I.numberButtonItem]: true,
|
|
24089
|
+
[CSS$I.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24019
24090
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
24020
24091
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24021
|
-
[CSS$
|
|
24022
|
-
[CSS$
|
|
24092
|
+
[CSS$I.numberButtonItem]: true,
|
|
24093
|
+
[CSS$I.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24023
24094
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
24024
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
24025
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
24026
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24095
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$I.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24096
|
+
const prefixText = hAsync("div", { class: CSS$I.prefix }, this.prefixText);
|
|
24097
|
+
const suffixText = hAsync("div", { class: CSS$I.suffix }, this.suffixText);
|
|
24027
24098
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, multiple: this.multiple, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, type: "text", value: this.localizedValue,
|
|
24028
24099
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
24029
24100
|
ref: this.setChildNumberElRef })) : null;
|
|
24030
24101
|
const childEl = this.type !== "number"
|
|
24031
24102
|
? [
|
|
24032
24103
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24033
|
-
[CSS$
|
|
24034
|
-
[CSS$
|
|
24104
|
+
[CSS$I.editingEnabled]: this.editingEnabled,
|
|
24105
|
+
[CSS$I.inlineChild]: !!this.inlineEditableEl,
|
|
24035
24106
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, multiple: this.multiple, name: this.name, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value,
|
|
24036
24107
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
24037
24108
|
ref: this.setChildElRef }),
|
|
24038
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24109
|
+
this.isTextarea ? (hAsync("div", { class: CSS$I.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null,
|
|
24039
24110
|
]
|
|
24040
24111
|
: null;
|
|
24041
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24112
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$I.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24042
24113
|
? numberButtonsHorizontalDown
|
|
24043
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24114
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$I.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$I.actionWrapper }, hAsync("slot", { name: SLOTS$l.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24044
24115
|
? numberButtonsVertical
|
|
24045
24116
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24046
24117
|
? numberButtonsHorizontalUp
|
|
@@ -24115,7 +24186,7 @@ class Input {
|
|
|
24115
24186
|
}; }
|
|
24116
24187
|
}
|
|
24117
24188
|
|
|
24118
|
-
const CSS$
|
|
24189
|
+
const CSS$H = {
|
|
24119
24190
|
assistiveText: "assistive-text",
|
|
24120
24191
|
menu: "menu-container",
|
|
24121
24192
|
menuActive: "menu-container--active",
|
|
@@ -25582,9 +25653,9 @@ class InputDatePicker {
|
|
|
25582
25653
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25583
25654
|
ref: this.setStartWrapper }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-describedby": this.placeholderTextId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25584
25655
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25585
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25586
|
-
[CSS$
|
|
25587
|
-
[CSS$
|
|
25656
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$H.assistiveText, id: this.placeholderTextId }, "Date Format: ", this.localeData?.placeholder)), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), "aria-label": messages.chooseDate, "aria-live": "polite", "aria-modal": "true", class: {
|
|
25657
|
+
[CSS$H.menu]: true,
|
|
25658
|
+
[CSS$H.menuActive]: this.open,
|
|
25588
25659
|
}, id: this.dialogId, role: "dialog",
|
|
25589
25660
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25590
25661
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25606,7 +25677,7 @@ class InputDatePicker {
|
|
|
25606
25677
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25607
25678
|
}
|
|
25608
25679
|
renderToggleIcon(open) {
|
|
25609
|
-
return (hAsync("span", { class: CSS$
|
|
25680
|
+
return (hAsync("span", { class: CSS$H.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25610
25681
|
}
|
|
25611
25682
|
setReferenceEl() {
|
|
25612
25683
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25871,7 +25942,7 @@ class InputMessage {
|
|
|
25871
25942
|
}; }
|
|
25872
25943
|
}
|
|
25873
25944
|
|
|
25874
|
-
const CSS$
|
|
25945
|
+
const CSS$G = {
|
|
25875
25946
|
loader: "loader",
|
|
25876
25947
|
clearButton: "clear-button",
|
|
25877
25948
|
editingEnabled: "editing-enabled",
|
|
@@ -26386,27 +26457,27 @@ class InputNumber {
|
|
|
26386
26457
|
// --------------------------------------------------------------------------
|
|
26387
26458
|
render() {
|
|
26388
26459
|
const dir = getElementDir(this.el);
|
|
26389
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26390
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26391
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26460
|
+
const loader = (hAsync("div", { class: CSS$G.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26461
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$G.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26462
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$G.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26392
26463
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26393
26464
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26394
|
-
[CSS$
|
|
26395
|
-
[CSS$
|
|
26465
|
+
[CSS$G.numberButtonItem]: true,
|
|
26466
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26396
26467
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
26397
26468
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26398
|
-
[CSS$
|
|
26399
|
-
[CSS$
|
|
26469
|
+
[CSS$G.numberButtonItem]: true,
|
|
26470
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26400
26471
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
26401
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26402
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26403
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26472
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$G.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26473
|
+
const prefixText = hAsync("div", { class: CSS$G.prefix }, this.prefixText);
|
|
26474
|
+
const suffixText = hAsync("div", { class: CSS$G.suffix }, this.suffixText);
|
|
26404
26475
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.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, type: "text", value: this.localizedValue,
|
|
26405
26476
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
26406
26477
|
ref: this.setChildNumberElRef }));
|
|
26407
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26478
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$G.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26408
26479
|
? numberButtonsHorizontalDown
|
|
26409
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26480
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$G.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$G.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26410
26481
|
? numberButtonsHorizontalUp
|
|
26411
26482
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26412
26483
|
}
|
|
@@ -26474,7 +26545,7 @@ class InputNumber {
|
|
|
26474
26545
|
}; }
|
|
26475
26546
|
}
|
|
26476
26547
|
|
|
26477
|
-
const CSS$
|
|
26548
|
+
const CSS$F = {
|
|
26478
26549
|
loader: "loader",
|
|
26479
26550
|
clearButton: "clear-button",
|
|
26480
26551
|
editingEnabled: "editing-enabled",
|
|
@@ -26774,18 +26845,18 @@ class InputText {
|
|
|
26774
26845
|
// --------------------------------------------------------------------------
|
|
26775
26846
|
render() {
|
|
26776
26847
|
const dir = getElementDir(this.el);
|
|
26777
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26778
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26779
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26780
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26781
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26848
|
+
const loader = (hAsync("div", { class: CSS$F.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26849
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$F.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26850
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$F.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26851
|
+
const prefixText = hAsync("div", { class: CSS$F.prefix }, this.prefixText);
|
|
26852
|
+
const suffixText = hAsync("div", { class: CSS$F.suffix }, this.suffixText);
|
|
26782
26853
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26783
|
-
[CSS$
|
|
26784
|
-
[CSS$
|
|
26854
|
+
[CSS$F.editingEnabled]: this.editingEnabled,
|
|
26855
|
+
[CSS$F.inlineChild]: !!this.inlineEditableEl,
|
|
26785
26856
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value,
|
|
26786
26857
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
26787
26858
|
ref: this.setChildElRef }));
|
|
26788
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26859
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$F.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$F.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$F.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26789
26860
|
}
|
|
26790
26861
|
static get assetsDirs() { return ["assets"]; }
|
|
26791
26862
|
get el() { return getElement(this); }
|
|
@@ -27101,7 +27172,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27101
27172
|
return isoTimeString;
|
|
27102
27173
|
}
|
|
27103
27174
|
|
|
27104
|
-
const CSS$
|
|
27175
|
+
const CSS$E = {
|
|
27105
27176
|
toggleIcon: "toggle-icon",
|
|
27106
27177
|
};
|
|
27107
27178
|
|
|
@@ -27211,11 +27282,11 @@ var L = 'en'; // global locale
|
|
|
27211
27282
|
var Ls = {}; // global loaded locale
|
|
27212
27283
|
|
|
27213
27284
|
Ls[L] = en;
|
|
27285
|
+
var IS_DAYJS = '$isDayjsObject'; // eslint-disable-next-line no-use-before-define
|
|
27214
27286
|
|
|
27215
27287
|
var isDayjs = function isDayjs(d) {
|
|
27216
|
-
return d instanceof Dayjs;
|
|
27217
|
-
};
|
|
27218
|
-
|
|
27288
|
+
return d instanceof Dayjs || !!(d && d[IS_DAYJS]);
|
|
27289
|
+
};
|
|
27219
27290
|
|
|
27220
27291
|
var parseLocale = function parseLocale(preset, object, isLocal) {
|
|
27221
27292
|
var l;
|
|
@@ -27308,13 +27379,15 @@ var Dayjs = /*#__PURE__*/function () {
|
|
|
27308
27379
|
function Dayjs(cfg) {
|
|
27309
27380
|
this.$L = parseLocale(cfg.locale, null, true);
|
|
27310
27381
|
this.parse(cfg); // for plugin
|
|
27382
|
+
|
|
27383
|
+
this.$x = this.$x || cfg.x || {};
|
|
27384
|
+
this[IS_DAYJS] = true;
|
|
27311
27385
|
}
|
|
27312
27386
|
|
|
27313
27387
|
var _proto = Dayjs.prototype;
|
|
27314
27388
|
|
|
27315
27389
|
_proto.parse = function parse(cfg) {
|
|
27316
27390
|
this.$d = parseDate(cfg);
|
|
27317
|
-
this.$x = cfg.x || {};
|
|
27318
27391
|
this.init();
|
|
27319
27392
|
};
|
|
27320
27393
|
|
|
@@ -28329,12 +28402,17 @@ dayjs.extend(updateLocale);
|
|
|
28329
28402
|
class InputTimePicker {
|
|
28330
28403
|
constructor(hostRef) {
|
|
28331
28404
|
registerInstance(this, hostRef);
|
|
28405
|
+
this.calciteInputTimePickerBeforeClose = createEvent(this, "calciteInputTimePickerBeforeClose", 6);
|
|
28406
|
+
this.calciteInputTimePickerBeforeOpen = createEvent(this, "calciteInputTimePickerBeforeOpen", 6);
|
|
28332
28407
|
this.calciteInputTimePickerChange = createEvent(this, "calciteInputTimePickerChange", 7);
|
|
28408
|
+
this.calciteInputTimePickerClose = createEvent(this, "calciteInputTimePickerClose", 6);
|
|
28409
|
+
this.calciteInputTimePickerOpen = createEvent(this, "calciteInputTimePickerOpen", 6);
|
|
28333
28410
|
this.focusOnOpen = false;
|
|
28334
28411
|
this.dialogId = `time-picker-dialog--${guid()}`;
|
|
28335
28412
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
28336
28413
|
this.userChangedValue = false;
|
|
28337
28414
|
this.referenceElementId = `input-time-picker-${guid()}`;
|
|
28415
|
+
this.openTransitionProp = "opacity";
|
|
28338
28416
|
//--------------------------------------------------------------------------
|
|
28339
28417
|
//
|
|
28340
28418
|
// Event Listeners
|
|
@@ -28407,6 +28485,7 @@ class InputTimePicker {
|
|
|
28407
28485
|
this.focusOnOpen = false;
|
|
28408
28486
|
},
|
|
28409
28487
|
});
|
|
28488
|
+
this.open = false;
|
|
28410
28489
|
};
|
|
28411
28490
|
this.popoverOpenHandler = () => {
|
|
28412
28491
|
activateFocusTrap(this, {
|
|
@@ -28460,8 +28539,9 @@ class InputTimePicker {
|
|
|
28460
28539
|
this.setCalcitePopoverEl = (el) => {
|
|
28461
28540
|
this.popoverEl = el;
|
|
28462
28541
|
};
|
|
28463
|
-
this.
|
|
28542
|
+
this.setInputAndTransitionEl = (el) => {
|
|
28464
28543
|
this.calciteInputEl = el;
|
|
28544
|
+
this.transitionEl = el;
|
|
28465
28545
|
};
|
|
28466
28546
|
this.setCalciteTimePickerEl = (el) => {
|
|
28467
28547
|
this.calciteTimePickerEl = el;
|
|
@@ -28549,12 +28629,13 @@ class InputTimePicker {
|
|
|
28549
28629
|
this.defaultMessages = undefined;
|
|
28550
28630
|
this.effectiveLocale = "";
|
|
28551
28631
|
}
|
|
28552
|
-
openHandler(
|
|
28632
|
+
openHandler(open) {
|
|
28633
|
+
onToggleOpenCloseComponent(this);
|
|
28553
28634
|
if (this.disabled || this.readOnly) {
|
|
28554
28635
|
this.open = false;
|
|
28555
28636
|
return;
|
|
28556
28637
|
}
|
|
28557
|
-
if (
|
|
28638
|
+
if (open) {
|
|
28558
28639
|
this.reposition(true);
|
|
28559
28640
|
}
|
|
28560
28641
|
}
|
|
@@ -28626,6 +28707,18 @@ class InputTimePicker {
|
|
|
28626
28707
|
// Private Methods
|
|
28627
28708
|
//
|
|
28628
28709
|
// --------------------------------------------------------------------------
|
|
28710
|
+
onBeforeOpen() {
|
|
28711
|
+
this.calciteInputTimePickerBeforeOpen.emit();
|
|
28712
|
+
}
|
|
28713
|
+
onOpen() {
|
|
28714
|
+
this.calciteInputTimePickerOpen.emit();
|
|
28715
|
+
}
|
|
28716
|
+
onBeforeClose() {
|
|
28717
|
+
this.calciteInputTimePickerBeforeClose.emit();
|
|
28718
|
+
}
|
|
28719
|
+
onClose() {
|
|
28720
|
+
this.calciteInputTimePickerClose.emit();
|
|
28721
|
+
}
|
|
28629
28722
|
delocalizeTimeString(value) {
|
|
28630
28723
|
// we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
|
|
28631
28724
|
dayjs.locale(this.effectiveLocale.toLowerCase());
|
|
@@ -28834,6 +28927,9 @@ class InputTimePicker {
|
|
|
28834
28927
|
async componentWillLoad() {
|
|
28835
28928
|
setUpLoadableComponent(this);
|
|
28836
28929
|
await Promise.all([setUpMessages(this), this.loadDateTimeLocaleData()]);
|
|
28930
|
+
if (this.open) {
|
|
28931
|
+
onToggleOpenCloseComponent(this);
|
|
28932
|
+
}
|
|
28837
28933
|
}
|
|
28838
28934
|
componentDidLoad() {
|
|
28839
28935
|
setComponentLoaded(this);
|
|
@@ -28867,14 +28963,14 @@ class InputTimePicker {
|
|
|
28867
28963
|
const { disabled, messages, readOnly, dialogId } = this;
|
|
28868
28964
|
return (hAsync(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, step: this.step,
|
|
28869
28965
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
28870
|
-
ref: this.
|
|
28966
|
+
ref: this.setInputAndTransitionEl }), !this.readOnly && this.renderToggleIcon(this.open)), hAsync("calcite-popover", { focusTrapDisabled: true, id: dialogId, label: messages.chooseTime, lang: this.effectiveLocale, onCalcitePopoverClose: this.popoverCloseHandler, onCalcitePopoverOpen: this.popoverOpenHandler, open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, referenceElement: this.referenceElementId, triggerDisabled: true,
|
|
28871
28967
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
28872
28968
|
ref: this.setCalcitePopoverEl }, hAsync("calcite-time-picker", { lang: this.effectiveLocale, messageOverrides: this.messageOverrides, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, scale: this.scale, step: this.step, tabIndex: this.open ? undefined : -1, value: this.value,
|
|
28873
28969
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
28874
28970
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28875
28971
|
}
|
|
28876
28972
|
renderToggleIcon(open) {
|
|
28877
|
-
return (hAsync("span", { class: CSS$
|
|
28973
|
+
return (hAsync("span", { class: CSS$E.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28878
28974
|
}
|
|
28879
28975
|
static get delegatesFocus() { return true; }
|
|
28880
28976
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29114,7 +29210,7 @@ class InputTimeZone {
|
|
|
29114
29210
|
}; }
|
|
29115
29211
|
}
|
|
29116
29212
|
|
|
29117
|
-
const CSS$
|
|
29213
|
+
const CSS$D = {
|
|
29118
29214
|
container: "container",
|
|
29119
29215
|
};
|
|
29120
29216
|
|
|
@@ -29154,7 +29250,7 @@ class Label {
|
|
|
29154
29250
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29155
29251
|
}
|
|
29156
29252
|
render() {
|
|
29157
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
29253
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$D.container }, hAsync("slot", null))));
|
|
29158
29254
|
}
|
|
29159
29255
|
get el() { return getElement(this); }
|
|
29160
29256
|
static get style() { return labelCss; }
|
|
@@ -29289,7 +29385,7 @@ class Link {
|
|
|
29289
29385
|
}; }
|
|
29290
29386
|
}
|
|
29291
29387
|
|
|
29292
|
-
const CSS$
|
|
29388
|
+
const CSS$C = {
|
|
29293
29389
|
container: "container",
|
|
29294
29390
|
containerBorderSelected: "container--border-selected",
|
|
29295
29391
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29319,7 +29415,7 @@ const SLOTS$i = {
|
|
|
29319
29415
|
};
|
|
29320
29416
|
// Set to zero to extend until the end of the table section.
|
|
29321
29417
|
const MAX_COLUMNS = 0;
|
|
29322
|
-
const ICONS$
|
|
29418
|
+
const ICONS$8 = {
|
|
29323
29419
|
selectedMultiple: "check-circle-f",
|
|
29324
29420
|
selectedSingle: "circle-f",
|
|
29325
29421
|
unselected: "blank",
|
|
@@ -29356,7 +29452,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29356
29452
|
}
|
|
29357
29453
|
}
|
|
29358
29454
|
|
|
29359
|
-
const CSS$
|
|
29455
|
+
const CSS$B = {
|
|
29360
29456
|
container: "container",
|
|
29361
29457
|
table: "table",
|
|
29362
29458
|
scrim: "scrim",
|
|
@@ -32392,7 +32488,7 @@ Sortable.mount(new AutoScrollPlugin());
|
|
|
32392
32488
|
Sortable.mount(Remove, Revert);
|
|
32393
32489
|
|
|
32394
32490
|
const sortableComponentSet = new Set();
|
|
32395
|
-
const CSS$
|
|
32491
|
+
const CSS$A = {
|
|
32396
32492
|
ghostClass: "calcite-sortable--ghost",
|
|
32397
32493
|
chosenClass: "calcite-sortable--chosen",
|
|
32398
32494
|
dragClass: "calcite-sortable--drag",
|
|
@@ -32409,16 +32505,16 @@ function connectSortableComponent(component) {
|
|
|
32409
32505
|
const { group, handleSelector: handle, dragSelector: draggable } = component;
|
|
32410
32506
|
component.sortable = Sortable.create(component.el, {
|
|
32411
32507
|
dataIdAttr,
|
|
32412
|
-
...CSS$
|
|
32508
|
+
...CSS$A,
|
|
32413
32509
|
...(!!draggable && { draggable }),
|
|
32414
32510
|
...(!!group && {
|
|
32415
32511
|
group: {
|
|
32416
32512
|
name: group,
|
|
32417
32513
|
...(!!component.canPull && {
|
|
32418
|
-
pull: (to, from, dragEl) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl }),
|
|
32514
|
+
pull: (to, from, dragEl, { newIndex, oldIndex }) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
|
32419
32515
|
}),
|
|
32420
32516
|
...(!!component.canPut && {
|
|
32421
|
-
put: (to, from, dragEl) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl }),
|
|
32517
|
+
put: (to, from, dragEl, { newIndex, oldIndex }) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
|
32422
32518
|
}),
|
|
32423
32519
|
},
|
|
32424
32520
|
}),
|
|
@@ -32431,8 +32527,8 @@ function connectSortableComponent(component) {
|
|
|
32431
32527
|
dragState.active = false;
|
|
32432
32528
|
onDragEnd();
|
|
32433
32529
|
},
|
|
32434
|
-
onSort: ({ from: fromEl, item: dragEl, to: toEl }) => {
|
|
32435
|
-
component.onDragSort({ fromEl, dragEl, toEl });
|
|
32530
|
+
onSort: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
|
|
32531
|
+
component.onDragSort({ fromEl, dragEl, toEl, newIndex, oldIndex });
|
|
32436
32532
|
},
|
|
32437
32533
|
});
|
|
32438
32534
|
}
|
|
@@ -32463,7 +32559,7 @@ function onDragEnd() {
|
|
|
32463
32559
|
Array.from(sortableComponentSet).forEach((component) => component.onDragEnd());
|
|
32464
32560
|
}
|
|
32465
32561
|
|
|
32466
|
-
const CSS$
|
|
32562
|
+
const CSS$z = {
|
|
32467
32563
|
container: "container",
|
|
32468
32564
|
actionsStart: "actions-start",
|
|
32469
32565
|
contentStart: "content-start",
|
|
@@ -32792,9 +32888,9 @@ class List$1 {
|
|
|
32792
32888
|
// --------------------------------------------------------------------------
|
|
32793
32889
|
render() {
|
|
32794
32890
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32795
|
-
return (hAsync("div", { class: CSS$
|
|
32891
|
+
return (hAsync("div", { class: CSS$B.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$B.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$B.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$B.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$B.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$B.stack }, hAsync("slot", { name: SLOTS$h.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS$g.actionsStart }), hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
|
32796
32892
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
32797
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$
|
|
32893
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$B.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
32798
32894
|
}
|
|
32799
32895
|
// --------------------------------------------------------------------------
|
|
32800
32896
|
//
|
|
@@ -32875,26 +32971,28 @@ class List$1 {
|
|
|
32875
32971
|
const { enabledListItems } = this;
|
|
32876
32972
|
const sameParentItems = enabledListItems.filter((item) => item.parentElement === parentEl);
|
|
32877
32973
|
const lastIndex = sameParentItems.length - 1;
|
|
32878
|
-
const
|
|
32974
|
+
const oldIndex = sameParentItems.indexOf(sortItem);
|
|
32879
32975
|
let appendInstead = false;
|
|
32880
|
-
let
|
|
32976
|
+
let newIndex;
|
|
32881
32977
|
if (direction === "up") {
|
|
32882
|
-
if (
|
|
32978
|
+
if (oldIndex === 0) {
|
|
32883
32979
|
appendInstead = true;
|
|
32980
|
+
newIndex = lastIndex;
|
|
32884
32981
|
}
|
|
32885
32982
|
else {
|
|
32886
|
-
|
|
32983
|
+
newIndex = oldIndex - 1;
|
|
32887
32984
|
}
|
|
32888
32985
|
}
|
|
32889
32986
|
else {
|
|
32890
|
-
if (
|
|
32891
|
-
|
|
32987
|
+
if (oldIndex === lastIndex) {
|
|
32988
|
+
newIndex = 0;
|
|
32892
32989
|
}
|
|
32893
|
-
else if (
|
|
32990
|
+
else if (oldIndex === lastIndex - 1) {
|
|
32894
32991
|
appendInstead = true;
|
|
32992
|
+
newIndex = lastIndex;
|
|
32895
32993
|
}
|
|
32896
32994
|
else {
|
|
32897
|
-
|
|
32995
|
+
newIndex = oldIndex + 2;
|
|
32898
32996
|
}
|
|
32899
32997
|
}
|
|
32900
32998
|
this.disconnectObserver();
|
|
@@ -32902,14 +33000,16 @@ class List$1 {
|
|
|
32902
33000
|
parentEl.appendChild(sortItem);
|
|
32903
33001
|
}
|
|
32904
33002
|
else {
|
|
32905
|
-
parentEl.insertBefore(sortItem, sameParentItems[
|
|
33003
|
+
parentEl.insertBefore(sortItem, sameParentItems[newIndex]);
|
|
32906
33004
|
}
|
|
32907
33005
|
this.updateListItems();
|
|
32908
33006
|
this.connectObserver();
|
|
32909
33007
|
this.calciteListOrderChange.emit({
|
|
32910
33008
|
dragEl: sortItem,
|
|
32911
|
-
fromEl:
|
|
32912
|
-
toEl:
|
|
33009
|
+
fromEl: parentEl,
|
|
33010
|
+
toEl: parentEl,
|
|
33011
|
+
newIndex,
|
|
33012
|
+
oldIndex,
|
|
32913
33013
|
});
|
|
32914
33014
|
handle.setFocus().then(() => {
|
|
32915
33015
|
handle.activated = true;
|
|
@@ -33210,47 +33310,47 @@ class ListItem {
|
|
|
33210
33310
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33211
33311
|
return null;
|
|
33212
33312
|
}
|
|
33213
|
-
return (hAsync("td", { class: CSS$
|
|
33313
|
+
return (hAsync("td", { class: CSS$C.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33214
33314
|
? selectionMode === "multiple"
|
|
33215
|
-
? ICONS$
|
|
33216
|
-
: ICONS$
|
|
33217
|
-
: ICONS$
|
|
33315
|
+
? ICONS$8.selectedMultiple
|
|
33316
|
+
: ICONS$8.selectedSingle
|
|
33317
|
+
: ICONS$8.unselected, scale: "s" })));
|
|
33218
33318
|
}
|
|
33219
33319
|
renderDragHandle() {
|
|
33220
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
33320
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$C.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
33221
33321
|
}
|
|
33222
33322
|
renderOpen() {
|
|
33223
33323
|
const { el, open, openable, parentListEl } = this;
|
|
33224
33324
|
const dir = getElementDir(el);
|
|
33225
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
33325
|
+
return openable ? (hAsync("td", { class: CSS$C.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$8.open : dir === "rtl" ? ICONS$8.closedRTL : ICONS$8.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$C.openContainer, key: "open-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: ICONS$8.blank, scale: "s" }))) : null;
|
|
33226
33326
|
}
|
|
33227
33327
|
renderActionsStart() {
|
|
33228
33328
|
const { label, hasActionsStart } = this;
|
|
33229
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33329
|
+
return (hAsync("td", { "aria-label": label, class: CSS$C.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
33230
33330
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33231
33331
|
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33232
33332
|
}
|
|
33233
33333
|
renderActionsEnd() {
|
|
33234
33334
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33235
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33335
|
+
return (hAsync("td", { "aria-label": label, class: CSS$C.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33236
33336
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33237
|
-
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$i.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$
|
|
33337
|
+
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$i.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$8.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
33238
33338
|
}
|
|
33239
33339
|
renderContentStart() {
|
|
33240
33340
|
const { hasContentStart } = this;
|
|
33241
|
-
return (hAsync("div", { class: CSS$
|
|
33341
|
+
return (hAsync("div", { class: CSS$C.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33242
33342
|
}
|
|
33243
33343
|
renderCustomContent() {
|
|
33244
33344
|
const { hasCustomContent } = this;
|
|
33245
|
-
return (hAsync("div", { class: CSS$
|
|
33345
|
+
return (hAsync("div", { class: CSS$C.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33246
33346
|
}
|
|
33247
33347
|
renderContentEnd() {
|
|
33248
33348
|
const { hasContentEnd } = this;
|
|
33249
|
-
return (hAsync("div", { class: CSS$
|
|
33349
|
+
return (hAsync("div", { class: CSS$C.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33250
33350
|
}
|
|
33251
33351
|
renderContentProperties() {
|
|
33252
33352
|
const { label, description, hasCustomContent } = this;
|
|
33253
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33353
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$C.content, key: "content" }, label ? (hAsync("div", { class: CSS$C.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$C.description, key: "description" }, description)) : null)) : null;
|
|
33254
33354
|
}
|
|
33255
33355
|
renderContentContainer() {
|
|
33256
33356
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33262,9 +33362,9 @@ class ListItem {
|
|
|
33262
33362
|
this.renderContentEnd(),
|
|
33263
33363
|
];
|
|
33264
33364
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33265
|
-
[CSS$
|
|
33266
|
-
[CSS$
|
|
33267
|
-
[CSS$
|
|
33365
|
+
[CSS$C.contentContainer]: true,
|
|
33366
|
+
[CSS$C.contentContainerSelectable]: selectionMode !== "none",
|
|
33367
|
+
[CSS$C.contentContainerHasCenterContent]: hasCenterContent,
|
|
33268
33368
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33269
33369
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33270
33370
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -33275,14 +33375,14 @@ class ListItem {
|
|
|
33275
33375
|
const borderSelected = showBorder && selected;
|
|
33276
33376
|
const borderUnselected = showBorder && !selected;
|
|
33277
33377
|
return (hAsync(Host, null, hAsync("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
|
33278
|
-
[CSS$
|
|
33279
|
-
[CSS$
|
|
33280
|
-
[CSS$
|
|
33378
|
+
[CSS$C.container]: true,
|
|
33379
|
+
[CSS$C.containerBorderSelected]: borderSelected,
|
|
33380
|
+
[CSS$C.containerBorderUnselected]: borderUnselected,
|
|
33281
33381
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33282
33382
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33283
33383
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33284
|
-
[CSS$
|
|
33285
|
-
[CSS$
|
|
33384
|
+
[CSS$C.nestedContainer]: true,
|
|
33385
|
+
[CSS$C.nestedContainerHidden]: openable && !open,
|
|
33286
33386
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33287
33387
|
}
|
|
33288
33388
|
// --------------------------------------------------------------------------
|
|
@@ -33372,7 +33472,7 @@ class ListItem {
|
|
|
33372
33472
|
}; }
|
|
33373
33473
|
}
|
|
33374
33474
|
|
|
33375
|
-
const CSS$
|
|
33475
|
+
const CSS$y = {
|
|
33376
33476
|
container: "container",
|
|
33377
33477
|
heading: "heading",
|
|
33378
33478
|
};
|
|
@@ -33421,7 +33521,7 @@ class ListItemGroup {
|
|
|
33421
33521
|
// --------------------------------------------------------------------------
|
|
33422
33522
|
render() {
|
|
33423
33523
|
const { heading, visualLevel } = this;
|
|
33424
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33524
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$y.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$y.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33425
33525
|
}
|
|
33426
33526
|
get el() { return getElement(this); }
|
|
33427
33527
|
static get style() { return listItemGroupCss; }
|
|
@@ -33521,7 +33621,7 @@ class Loader {
|
|
|
33521
33621
|
}; }
|
|
33522
33622
|
}
|
|
33523
33623
|
|
|
33524
|
-
const CSS$
|
|
33624
|
+
const CSS$x = {
|
|
33525
33625
|
container: "container",
|
|
33526
33626
|
fill: "fill",
|
|
33527
33627
|
stepLine: "step-line",
|
|
@@ -33671,16 +33771,16 @@ class Meter {
|
|
|
33671
33771
|
const aboveHighest = value >= highest;
|
|
33672
33772
|
const belowHighest = value < highest;
|
|
33673
33773
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33674
|
-
return CSS$
|
|
33774
|
+
return CSS$x.success;
|
|
33675
33775
|
}
|
|
33676
33776
|
else if (aboveLowest && belowHighest) {
|
|
33677
|
-
return CSS$
|
|
33777
|
+
return CSS$x.warning;
|
|
33678
33778
|
}
|
|
33679
33779
|
else if (aboveHighest) {
|
|
33680
|
-
return CSS$
|
|
33780
|
+
return CSS$x.danger;
|
|
33681
33781
|
}
|
|
33682
33782
|
else {
|
|
33683
|
-
return CSS$
|
|
33783
|
+
return CSS$x.success;
|
|
33684
33784
|
}
|
|
33685
33785
|
}
|
|
33686
33786
|
intersects(el1, el2) {
|
|
@@ -33694,7 +33794,7 @@ class Meter {
|
|
|
33694
33794
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33695
33795
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33696
33796
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33697
|
-
const hiddenClass = CSS$
|
|
33797
|
+
const hiddenClass = CSS$x.labelHidden;
|
|
33698
33798
|
if (lowLabelEl) {
|
|
33699
33799
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33700
33800
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33743,26 +33843,26 @@ class Meter {
|
|
|
33743
33843
|
renderMeterFill() {
|
|
33744
33844
|
const { currentPercent, fillType } = this;
|
|
33745
33845
|
const kindClass = this.getMeterKindCssClass();
|
|
33746
|
-
return (hAsync("div", { class: { [CSS$
|
|
33846
|
+
return (hAsync("div", { class: { [CSS$x.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33747
33847
|
}
|
|
33748
33848
|
renderRangeLine(position) {
|
|
33749
33849
|
const style = { insetInlineStart: `${position}%` };
|
|
33750
|
-
return hAsync("div", { class: CSS$
|
|
33850
|
+
return hAsync("div", { class: CSS$x.stepLine, style: style });
|
|
33751
33851
|
}
|
|
33752
33852
|
renderValueLabel() {
|
|
33753
33853
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33754
33854
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33755
|
-
return (hAsync("div", { class: { [CSS$
|
|
33855
|
+
return (hAsync("div", { class: { [CSS$x.label]: true, [CSS$x.labelValue]: true }, key: "low-label-line",
|
|
33756
33856
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33757
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33857
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$x.unitLabel }, "\u00A0", unitLabel))));
|
|
33758
33858
|
}
|
|
33759
33859
|
renderMinLabel() {
|
|
33760
33860
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33761
33861
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33762
33862
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33763
|
-
return (hAsync("div", { class: { [CSS$
|
|
33863
|
+
return (hAsync("div", { class: { [CSS$x.label]: true, [CSS$x.labelRange]: true }, key: "min-label-line", style: style,
|
|
33764
33864
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33765
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33865
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$x.unitLabel }, "\u00A0", unitLabel))));
|
|
33766
33866
|
}
|
|
33767
33867
|
renderLowLabel() {
|
|
33768
33868
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33772,7 +33872,7 @@ class Meter {
|
|
|
33772
33872
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33773
33873
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33774
33874
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33775
|
-
return (hAsync("div", { class: { [CSS$
|
|
33875
|
+
return (hAsync("div", { class: { [CSS$x.label]: true, [CSS$x.labelRange]: true }, key: "low-label-line", style: style,
|
|
33776
33876
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33777
33877
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33778
33878
|
}
|
|
@@ -33784,7 +33884,7 @@ class Meter {
|
|
|
33784
33884
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33785
33885
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33786
33886
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33787
|
-
return (hAsync("div", { class: { [CSS$
|
|
33887
|
+
return (hAsync("div", { class: { [CSS$x.label]: true, [CSS$x.labelRange]: true }, key: "high-label-line", style: style,
|
|
33788
33888
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33789
33889
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33790
33890
|
}
|
|
@@ -33792,7 +33892,7 @@ class Meter {
|
|
|
33792
33892
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33793
33893
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33794
33894
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33795
|
-
return (hAsync("div", { class: { [CSS$
|
|
33895
|
+
return (hAsync("div", { class: { [CSS$x.label]: true, [CSS$x.labelRange]: true }, key: "max-label-line", style: style,
|
|
33796
33896
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33797
33897
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33798
33898
|
}
|
|
@@ -33806,9 +33906,9 @@ class Meter {
|
|
|
33806
33906
|
? textUnitLabel
|
|
33807
33907
|
: undefined;
|
|
33808
33908
|
return (hAsync(Host, null, hAsync("div", { "aria-label": label, "aria-valuemax": rangeLabelType === "percent" ? maxPercent : max, "aria-valuemin": rangeLabelType === "percent" ? minPercent : min, "aria-valuenow": valueLabelType === "percent" ? currentPercent : value, "aria-valuetext": valueText, class: {
|
|
33809
|
-
[CSS$
|
|
33810
|
-
[CSS$
|
|
33811
|
-
[CSS$
|
|
33909
|
+
[CSS$x.container]: true,
|
|
33910
|
+
[CSS$x.stepsVisible]: rangeLabels,
|
|
33911
|
+
[CSS$x.valueVisible]: valueLabel,
|
|
33812
33912
|
[appearance]: appearance !== "outline-fill",
|
|
33813
33913
|
}, role: "meter",
|
|
33814
33914
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33864,7 +33964,7 @@ class Meter {
|
|
|
33864
33964
|
}; }
|
|
33865
33965
|
}
|
|
33866
33966
|
|
|
33867
|
-
const CSS$
|
|
33967
|
+
const CSS$w = {
|
|
33868
33968
|
modal: "modal",
|
|
33869
33969
|
title: "title",
|
|
33870
33970
|
header: "header",
|
|
@@ -33888,7 +33988,7 @@ const CSS$v = {
|
|
|
33888
33988
|
closingIdle: "modal--closing-idle",
|
|
33889
33989
|
closingActive: "modal--closing-active",
|
|
33890
33990
|
};
|
|
33891
|
-
const ICONS$
|
|
33991
|
+
const ICONS$7 = {
|
|
33892
33992
|
close: "x",
|
|
33893
33993
|
};
|
|
33894
33994
|
const SLOTS$f = {
|
|
@@ -34054,50 +34154,50 @@ class Modal {
|
|
|
34054
34154
|
}
|
|
34055
34155
|
render() {
|
|
34056
34156
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
34057
|
-
[CSS$
|
|
34058
|
-
[CSS$
|
|
34059
|
-
[CSS$
|
|
34060
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
34061
|
-
[CSS$
|
|
34157
|
+
[CSS$w.container]: true,
|
|
34158
|
+
[CSS$w.containerOpen]: this.opened,
|
|
34159
|
+
[CSS$w.slottedInShell]: this.slottedInShell,
|
|
34160
|
+
} }, hAsync("calcite-scrim", { class: CSS$w.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
34161
|
+
[CSS$w.modal]: true,
|
|
34062
34162
|
},
|
|
34063
34163
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34064
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
34065
|
-
[CSS$
|
|
34066
|
-
[CSS$
|
|
34164
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$w.header }, this.renderCloseButton(), hAsync("header", { class: CSS$w.title }, hAsync("slot", { name: CSS$w.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
34165
|
+
[CSS$w.content]: true,
|
|
34166
|
+
[CSS$w.contentNoFooter]: !this.hasFooter,
|
|
34067
34167
|
},
|
|
34068
34168
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34069
34169
|
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$f.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
34070
34170
|
}
|
|
34071
34171
|
renderFooter() {
|
|
34072
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
34172
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$w.footer, key: "footer" }, hAsync("span", { class: CSS$w.back }, hAsync("slot", { name: SLOTS$f.back })), hAsync("span", { class: CSS$w.secondary }, hAsync("slot", { name: SLOTS$f.secondary })), hAsync("span", { class: CSS$w.primary }, hAsync("slot", { name: SLOTS$f.primary })))) : null;
|
|
34073
34173
|
}
|
|
34074
34174
|
renderContentTop() {
|
|
34075
|
-
return (hAsync("div", { class: CSS$
|
|
34175
|
+
return (hAsync("div", { class: CSS$w.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$f.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
34076
34176
|
}
|
|
34077
34177
|
renderContentBottom() {
|
|
34078
|
-
return (hAsync("div", { class: CSS$
|
|
34178
|
+
return (hAsync("div", { class: CSS$w.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$f.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
34079
34179
|
}
|
|
34080
34180
|
renderCloseButton() {
|
|
34081
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34181
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$w.close, key: "button", onClick: this.handleCloseClick, title: this.messages.close,
|
|
34082
34182
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34083
|
-
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$
|
|
34183
|
+
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$7.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
34084
34184
|
}
|
|
34085
34185
|
renderStyle() {
|
|
34086
34186
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34087
|
-
return (hAsync("style", null, `.${CSS$
|
|
34187
|
+
return (hAsync("style", null, `.${CSS$w.container} {
|
|
34088
34188
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34089
34189
|
}
|
|
34090
|
-
.${CSS$
|
|
34190
|
+
.${CSS$w.modal} {
|
|
34091
34191
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34092
34192
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34093
34193
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34094
34194
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34095
34195
|
}
|
|
34096
34196
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34097
|
-
.${CSS$
|
|
34197
|
+
.${CSS$w.container} {
|
|
34098
34198
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34099
34199
|
}
|
|
34100
|
-
.${CSS$
|
|
34200
|
+
.${CSS$w.modal} {
|
|
34101
34201
|
max-block-size: 100% !important;
|
|
34102
34202
|
inline-size: 100% !important;
|
|
34103
34203
|
max-inline-size: 100% !important;
|
|
@@ -34164,20 +34264,20 @@ class Modal {
|
|
|
34164
34264
|
}
|
|
34165
34265
|
}
|
|
34166
34266
|
onBeforeOpen() {
|
|
34167
|
-
this.transitionEl.classList.add(CSS$
|
|
34267
|
+
this.transitionEl.classList.add(CSS$w.openingActive);
|
|
34168
34268
|
this.calciteModalBeforeOpen.emit();
|
|
34169
34269
|
}
|
|
34170
34270
|
onOpen() {
|
|
34171
|
-
this.transitionEl.classList.remove(CSS$
|
|
34271
|
+
this.transitionEl.classList.remove(CSS$w.openingIdle, CSS$w.openingActive);
|
|
34172
34272
|
this.calciteModalOpen.emit();
|
|
34173
34273
|
activateFocusTrap(this);
|
|
34174
34274
|
}
|
|
34175
34275
|
onBeforeClose() {
|
|
34176
|
-
this.transitionEl.classList.add(CSS$
|
|
34276
|
+
this.transitionEl.classList.add(CSS$w.closingActive);
|
|
34177
34277
|
this.calciteModalBeforeClose.emit();
|
|
34178
34278
|
}
|
|
34179
34279
|
onClose() {
|
|
34180
|
-
this.transitionEl.classList.remove(CSS$
|
|
34280
|
+
this.transitionEl.classList.remove(CSS$w.closingIdle, CSS$w.closingActive);
|
|
34181
34281
|
this.calciteModalClose.emit();
|
|
34182
34282
|
deactivateFocusTrap(this);
|
|
34183
34283
|
}
|
|
@@ -34195,10 +34295,10 @@ class Modal {
|
|
|
34195
34295
|
handleOpenedChange(value) {
|
|
34196
34296
|
onToggleOpenCloseComponent(this);
|
|
34197
34297
|
if (value) {
|
|
34198
|
-
this.transitionEl?.classList.add(CSS$
|
|
34298
|
+
this.transitionEl?.classList.add(CSS$w.openingIdle);
|
|
34199
34299
|
}
|
|
34200
34300
|
else {
|
|
34201
|
-
this.transitionEl?.classList.add(CSS$
|
|
34301
|
+
this.transitionEl?.classList.add(CSS$w.closingIdle);
|
|
34202
34302
|
}
|
|
34203
34303
|
}
|
|
34204
34304
|
openModal() {
|
|
@@ -34269,7 +34369,7 @@ const SLOTS$e = {
|
|
|
34269
34369
|
link: "link",
|
|
34270
34370
|
actionsEnd: "actions-end",
|
|
34271
34371
|
};
|
|
34272
|
-
const CSS$
|
|
34372
|
+
const CSS$v = {
|
|
34273
34373
|
actionsEnd: "actions-end",
|
|
34274
34374
|
close: "notice-close",
|
|
34275
34375
|
container: "container",
|
|
@@ -34294,8 +34394,13 @@ const noticeCss = "/*!@:host([scale=s])*/[scale=s].sc-calcite-notice-h{--calcite
|
|
|
34294
34394
|
class Notice {
|
|
34295
34395
|
constructor(hostRef) {
|
|
34296
34396
|
registerInstance(this, hostRef);
|
|
34397
|
+
this.calciteNoticeBeforeClose = createEvent(this, "calciteNoticeBeforeClose", 6);
|
|
34398
|
+
this.calciteNoticeBeforeOpen = createEvent(this, "calciteNoticeBeforeOpen", 6);
|
|
34297
34399
|
this.calciteNoticeClose = createEvent(this, "calciteNoticeClose", 6);
|
|
34298
34400
|
this.calciteNoticeOpen = createEvent(this, "calciteNoticeOpen", 6);
|
|
34401
|
+
this.setTransitionEl = (el) => {
|
|
34402
|
+
this.transitionEl = el;
|
|
34403
|
+
};
|
|
34299
34404
|
//--------------------------------------------------------------------------
|
|
34300
34405
|
//
|
|
34301
34406
|
// Private Methods
|
|
@@ -34303,8 +34408,8 @@ class Notice {
|
|
|
34303
34408
|
//--------------------------------------------------------------------------
|
|
34304
34409
|
this.close = () => {
|
|
34305
34410
|
this.open = false;
|
|
34306
|
-
this.calciteNoticeClose.emit();
|
|
34307
34411
|
};
|
|
34412
|
+
this.openTransitionProp = "opacity";
|
|
34308
34413
|
this.open = false;
|
|
34309
34414
|
this.kind = "brand";
|
|
34310
34415
|
this.closable = false;
|
|
@@ -34317,6 +34422,9 @@ class Notice {
|
|
|
34317
34422
|
this.effectiveLocale = undefined;
|
|
34318
34423
|
this.defaultMessages = undefined;
|
|
34319
34424
|
}
|
|
34425
|
+
openHandler() {
|
|
34426
|
+
onToggleOpenCloseComponent(this);
|
|
34427
|
+
}
|
|
34320
34428
|
onMessagesChange() {
|
|
34321
34429
|
/* wired up by t9n util */
|
|
34322
34430
|
}
|
|
@@ -34342,17 +34450,22 @@ class Notice {
|
|
|
34342
34450
|
setUpLoadableComponent(this);
|
|
34343
34451
|
this.requestedIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
34344
34452
|
await setUpMessages(this);
|
|
34453
|
+
if (this.open) {
|
|
34454
|
+
onToggleOpenCloseComponent(this);
|
|
34455
|
+
}
|
|
34345
34456
|
}
|
|
34346
34457
|
componentDidLoad() {
|
|
34347
34458
|
setComponentLoaded(this);
|
|
34348
34459
|
}
|
|
34349
34460
|
render() {
|
|
34350
34461
|
const { el } = this;
|
|
34351
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34462
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$v.close, onClick: this.close,
|
|
34352
34463
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34353
34464
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
34354
34465
|
const hasActionEnd = getSlotted(el, SLOTS$e.actionsEnd);
|
|
34355
|
-
return (hAsync("div", { class: CSS$
|
|
34466
|
+
return (hAsync("div", { class: CSS$v.container,
|
|
34467
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34468
|
+
ref: this.setTransitionEl }, this.requestedIcon ? (hAsync("div", { class: CSS$v.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$v.content }, hAsync("slot", { name: SLOTS$e.title }), hAsync("slot", { name: SLOTS$e.message }), hAsync("slot", { name: SLOTS$e.link })), hasActionEnd ? (hAsync("div", { class: CSS$v.actionsEnd }, hAsync("slot", { name: SLOTS$e.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34356
34469
|
}
|
|
34357
34470
|
//--------------------------------------------------------------------------
|
|
34358
34471
|
//
|
|
@@ -34373,12 +34486,25 @@ class Notice {
|
|
|
34373
34486
|
this.closeButton.focus();
|
|
34374
34487
|
}
|
|
34375
34488
|
}
|
|
34489
|
+
onBeforeClose() {
|
|
34490
|
+
this.calciteNoticeBeforeClose.emit();
|
|
34491
|
+
}
|
|
34492
|
+
onBeforeOpen() {
|
|
34493
|
+
this.calciteNoticeBeforeOpen.emit();
|
|
34494
|
+
}
|
|
34495
|
+
onClose() {
|
|
34496
|
+
this.calciteNoticeClose.emit();
|
|
34497
|
+
}
|
|
34498
|
+
onOpen() {
|
|
34499
|
+
this.calciteNoticeOpen.emit();
|
|
34500
|
+
}
|
|
34376
34501
|
effectiveLocaleChange() {
|
|
34377
34502
|
updateMessages(this);
|
|
34378
34503
|
}
|
|
34379
34504
|
static get assetsDirs() { return ["assets"]; }
|
|
34380
34505
|
get el() { return getElement(this); }
|
|
34381
34506
|
static get watchers() { return {
|
|
34507
|
+
"open": ["openHandler"],
|
|
34382
34508
|
"messageOverrides": ["onMessagesChange"],
|
|
34383
34509
|
"icon": ["updateRequestedIcon"],
|
|
34384
34510
|
"kind": ["updateRequestedIcon"],
|
|
@@ -34432,12 +34558,13 @@ class Option {
|
|
|
34432
34558
|
//
|
|
34433
34559
|
//--------------------------------------------------------------------------
|
|
34434
34560
|
ensureTextContentDependentProps() {
|
|
34435
|
-
const { el: { textContent }, } = this;
|
|
34436
|
-
if (!
|
|
34561
|
+
const { el: { textContent }, internallySetLabel, internallySetValue, label, value, } = this;
|
|
34562
|
+
if (!label || label === internallySetLabel) {
|
|
34437
34563
|
this.label = textContent;
|
|
34438
34564
|
this.internallySetLabel = textContent;
|
|
34439
34565
|
}
|
|
34440
|
-
if (
|
|
34566
|
+
if (value == null /* intentional loose equals to handle both undefined & null */ ||
|
|
34567
|
+
value === internallySetValue) {
|
|
34441
34568
|
this.value = textContent;
|
|
34442
34569
|
this.internallySetValue = textContent;
|
|
34443
34570
|
}
|
|
@@ -34531,7 +34658,7 @@ class OptionGroup {
|
|
|
34531
34658
|
}; }
|
|
34532
34659
|
}
|
|
34533
34660
|
|
|
34534
|
-
const CSS$
|
|
34661
|
+
const CSS$u = {
|
|
34535
34662
|
page: "page",
|
|
34536
34663
|
selected: "is-selected",
|
|
34537
34664
|
previous: "previous",
|
|
@@ -34541,36 +34668,90 @@ const CSS$t = {
|
|
|
34541
34668
|
ellipsisStart: "ellipsis--start",
|
|
34542
34669
|
ellipsisEnd: "ellipsis--end",
|
|
34543
34670
|
};
|
|
34671
|
+
const ICONS$6 = {
|
|
34672
|
+
next: "chevronRight",
|
|
34673
|
+
previous: "chevronLeft",
|
|
34674
|
+
};
|
|
34544
34675
|
|
|
34545
|
-
|
|
34676
|
+
let getBreakpointsPromise;
|
|
34677
|
+
function breakpointTokenToNumericalValue(style, tokenName) {
|
|
34678
|
+
return parseInt(style.getPropertyValue(tokenName));
|
|
34679
|
+
}
|
|
34680
|
+
/**
|
|
34681
|
+
* This util will return a breakpoints lookup object.
|
|
34682
|
+
*
|
|
34683
|
+
* Note that the breakpoints will be evaluated at the root and cached for reuse.
|
|
34684
|
+
*
|
|
34685
|
+
* @returns {Promise<Breakpoints>} The Breakpoints object.
|
|
34686
|
+
*/
|
|
34687
|
+
async function getBreakpoints() {
|
|
34688
|
+
if (getBreakpointsPromise) {
|
|
34689
|
+
return getBreakpointsPromise;
|
|
34690
|
+
}
|
|
34691
|
+
getBreakpointsPromise = new Promise((resolve) => {
|
|
34692
|
+
requestAnimationFrame(() => {
|
|
34693
|
+
const rootStyles = getComputedStyle(document.body);
|
|
34694
|
+
resolve({
|
|
34695
|
+
width: {
|
|
34696
|
+
large: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-lg"),
|
|
34697
|
+
medium: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-md"),
|
|
34698
|
+
small: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-sm"),
|
|
34699
|
+
xsmall: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-xs"),
|
|
34700
|
+
},
|
|
34701
|
+
});
|
|
34702
|
+
});
|
|
34703
|
+
});
|
|
34704
|
+
return getBreakpointsPromise;
|
|
34705
|
+
}
|
|
34546
34706
|
|
|
34547
|
-
const
|
|
34707
|
+
const paginationCss = "/*!@:host*/.sc-calcite-pagination-h{display:flex;writing-mode:horizontal-tb}/*!@:host([scale=s]) .previous, :host([scale=s]) .next, :host([scale=s]) .page, :host([scale=s]) .ellipsis*/[scale=s].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:1.5rem;padding-inline:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;min-inline-size:1.5rem}/*!@:host([scale=m]) .previous, :host([scale=m]) .next, :host([scale=m]) .page, :host([scale=m]) .ellipsis*/[scale=m].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;min-inline-size:2rem}/*!@:host([scale=l]) .previous, :host([scale=l]) .next, :host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-inline-size:2.75rem}/*!@:host([scale=l]) .previous, :host([scale=l]) .next*/[scale=l].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .next.sc-calcite-pagination{padding-inline:0.625rem}/*!@:host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{padding-inline:0.75rem}/*!@:host button*/.sc-calcite-pagination-h button.sc-calcite-pagination{outline-color:transparent}/*!@:host button:focus*/.sc-calcite-pagination-h button.sc-calcite-pagination:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.previous,\n.next,\n.page,\n.ellipsis*/.previous.sc-calcite-pagination,.next.sc-calcite-pagination,.page.sc-calcite-pagination,.ellipsis.sc-calcite-pagination{margin:0px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity:0;background-color:transparent;padding:0px;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3)}/*!@.previous,\n.next,\n.page*/.previous.sc-calcite-pagination,.next.sc-calcite-pagination,.page.sc-calcite-pagination{cursor:pointer;border-block:2px solid transparent}/*!@.previous:hover,\n.next:hover,\n.page:hover*/.previous.sc-calcite-pagination:hover,.next.sc-calcite-pagination:hover,.page.sc-calcite-pagination:hover{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.page:hover*/.page.sc-calcite-pagination:hover{border-block-end-color:var(--calcite-ui-border-2)}/*!@.page.is-selected*/.page.is-selected.sc-calcite-pagination{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-end-color:var(--calcite-ui-brand)}/*!@.previous:hover,\n.next:hover*/.previous.sc-calcite-pagination:hover,.next.sc-calcite-pagination:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}/*!@.previous:active,\n.next:active*/.previous.sc-calcite-pagination:active,.next.sc-calcite-pagination:active{background-color:var(--calcite-ui-foreground-3)}/*!@.previous.is-disabled,\n.next.is-disabled*/.previous.is-disabled.sc-calcite-pagination,.next.is-disabled.sc-calcite-pagination{pointer-events:none;background-color:transparent}/*!@.previous.is-disabled > calcite-icon,\n.next.is-disabled > calcite-icon*/.previous.is-disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination,.next.is-disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hidden])*/[hidden].sc-calcite-pagination-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-pagination{display:none}";
|
|
34708
|
+
|
|
34709
|
+
const firstAndLastPageCount = 2;
|
|
34710
|
+
const ellipsisCount = 2;
|
|
34711
|
+
const maxItemBreakpoints = {
|
|
34712
|
+
large: 11,
|
|
34713
|
+
medium: 9,
|
|
34714
|
+
small: 7,
|
|
34715
|
+
xsmall: 5,
|
|
34716
|
+
};
|
|
34548
34717
|
class Pagination {
|
|
34549
34718
|
constructor(hostRef) {
|
|
34550
34719
|
registerInstance(this, hostRef);
|
|
34551
34720
|
this.calcitePaginationChange = createEvent(this, "calcitePaginationChange", 6);
|
|
34552
|
-
this.
|
|
34553
|
-
|
|
34721
|
+
this.resizeObserver = createObserver();
|
|
34722
|
+
this.resizeHandler = ({ contentRect: { width } }) => this.setMaxItemsToBreakpoint(width);
|
|
34723
|
+
this.previousClicked = async () => {
|
|
34724
|
+
await this.previousPage();
|
|
34554
34725
|
this.emitUpdate();
|
|
34555
34726
|
};
|
|
34556
|
-
this.nextClicked = () => {
|
|
34557
|
-
this.nextPage();
|
|
34727
|
+
this.nextClicked = async () => {
|
|
34728
|
+
await this.nextPage();
|
|
34729
|
+
this.emitUpdate();
|
|
34730
|
+
};
|
|
34731
|
+
this.handlePageClick = (event) => {
|
|
34732
|
+
const target = event.target;
|
|
34733
|
+
this.startItem = parseInt(target.value, 10);
|
|
34558
34734
|
this.emitUpdate();
|
|
34559
34735
|
};
|
|
34560
34736
|
this.groupSeparator = false;
|
|
34737
|
+
this.messages = undefined;
|
|
34561
34738
|
this.messageOverrides = undefined;
|
|
34562
|
-
this.pageSize = 20;
|
|
34563
34739
|
this.numberingSystem = undefined;
|
|
34740
|
+
this.pageSize = 20;
|
|
34741
|
+
this.scale = "m";
|
|
34564
34742
|
this.startItem = 1;
|
|
34565
34743
|
this.totalItems = 0;
|
|
34566
|
-
this.scale = "m";
|
|
34567
34744
|
this.defaultMessages = undefined;
|
|
34568
34745
|
this.effectiveLocale = "";
|
|
34569
|
-
this.
|
|
34746
|
+
this.maxItems = maxItemBreakpoints.xsmall;
|
|
34747
|
+
this.totalPages = undefined;
|
|
34570
34748
|
}
|
|
34571
34749
|
onMessagesChange() {
|
|
34572
34750
|
/* wired up by t9n util */
|
|
34573
34751
|
}
|
|
34752
|
+
handleTotalPages() {
|
|
34753
|
+
this.totalPages = this.totalItems / this.pageSize;
|
|
34754
|
+
}
|
|
34574
34755
|
effectiveLocaleChange() {
|
|
34575
34756
|
updateMessages(this);
|
|
34576
34757
|
}
|
|
@@ -34589,17 +34770,22 @@ class Pagination {
|
|
|
34589
34770
|
connectedCallback() {
|
|
34590
34771
|
connectLocalized(this);
|
|
34591
34772
|
connectMessages(this);
|
|
34773
|
+
this.resizeObserver?.observe(this.el);
|
|
34592
34774
|
}
|
|
34593
34775
|
async componentWillLoad() {
|
|
34594
|
-
await setUpMessages(this);
|
|
34776
|
+
const [, breakpoints] = await Promise.all([setUpMessages(this), getBreakpoints()]);
|
|
34777
|
+
this.breakpoints = breakpoints;
|
|
34595
34778
|
setUpLoadableComponent(this);
|
|
34779
|
+
this.handleTotalPages();
|
|
34596
34780
|
}
|
|
34597
34781
|
componentDidLoad() {
|
|
34598
34782
|
setComponentLoaded(this);
|
|
34783
|
+
this.setMaxItemsToBreakpoint(this.el.clientWidth);
|
|
34599
34784
|
}
|
|
34600
34785
|
disconnectedCallback() {
|
|
34601
34786
|
disconnectLocalized(this);
|
|
34602
34787
|
disconnectMessages(this);
|
|
34788
|
+
this.resizeObserver?.disconnect();
|
|
34603
34789
|
}
|
|
34604
34790
|
// --------------------------------------------------------------------------
|
|
34605
34791
|
//
|
|
@@ -34624,18 +34810,39 @@ class Pagination {
|
|
|
34624
34810
|
// Private Methods
|
|
34625
34811
|
//
|
|
34626
34812
|
// --------------------------------------------------------------------------
|
|
34813
|
+
setMaxItemsToBreakpoint(width) {
|
|
34814
|
+
const { breakpoints } = this;
|
|
34815
|
+
if (!breakpoints || !width) {
|
|
34816
|
+
return;
|
|
34817
|
+
}
|
|
34818
|
+
if (width >= breakpoints.width.medium) {
|
|
34819
|
+
this.maxItems = maxItemBreakpoints.large;
|
|
34820
|
+
return;
|
|
34821
|
+
}
|
|
34822
|
+
if (width >= breakpoints.width.small) {
|
|
34823
|
+
this.maxItems = maxItemBreakpoints.medium;
|
|
34824
|
+
return;
|
|
34825
|
+
}
|
|
34826
|
+
if (width >= breakpoints.width.xsmall) {
|
|
34827
|
+
this.maxItems = maxItemBreakpoints.small;
|
|
34828
|
+
return;
|
|
34829
|
+
}
|
|
34830
|
+
this.maxItems = maxItemBreakpoints.xsmall;
|
|
34831
|
+
}
|
|
34627
34832
|
getLastStart() {
|
|
34628
|
-
const { totalItems, pageSize } = this;
|
|
34629
|
-
const lastStart = totalItems % pageSize === 0
|
|
34630
|
-
? totalItems - pageSize
|
|
34631
|
-
: Math.floor(totalItems / pageSize) * pageSize;
|
|
34833
|
+
const { totalItems, pageSize, totalPages } = this;
|
|
34834
|
+
const lastStart = totalItems % pageSize === 0 ? totalItems - pageSize : Math.floor(totalPages) * pageSize;
|
|
34632
34835
|
return lastStart + 1;
|
|
34633
34836
|
}
|
|
34634
|
-
|
|
34635
|
-
return
|
|
34837
|
+
showStartEllipsis() {
|
|
34838
|
+
return (this.totalPages > this.maxItems &&
|
|
34839
|
+
Math.floor(this.startItem / this.pageSize) >
|
|
34840
|
+
this.maxItems - firstAndLastPageCount - ellipsisCount);
|
|
34636
34841
|
}
|
|
34637
|
-
|
|
34638
|
-
return (this.
|
|
34842
|
+
showEndEllipsis() {
|
|
34843
|
+
return (this.totalPages > this.maxItems &&
|
|
34844
|
+
(this.totalItems - this.startItem) / this.pageSize >
|
|
34845
|
+
this.maxItems - firstAndLastPageCount - (ellipsisCount - 1));
|
|
34639
34846
|
}
|
|
34640
34847
|
emitUpdate() {
|
|
34641
34848
|
this.calcitePaginationChange.emit();
|
|
@@ -34645,42 +34852,69 @@ class Pagination {
|
|
|
34645
34852
|
// Render Methods
|
|
34646
34853
|
//
|
|
34647
34854
|
//--------------------------------------------------------------------------
|
|
34648
|
-
|
|
34855
|
+
renderEllipsis(type) {
|
|
34856
|
+
return (hAsync("span", { class: {
|
|
34857
|
+
[CSS$u.ellipsis]: true,
|
|
34858
|
+
[CSS$u.ellipsisStart]: type === "start",
|
|
34859
|
+
[CSS$u.ellipsisEnd]: type === "end",
|
|
34860
|
+
}, key: type }, "\u2026"));
|
|
34861
|
+
}
|
|
34862
|
+
renderItems() {
|
|
34863
|
+
const { totalItems, pageSize, startItem, maxItems, totalPages } = this;
|
|
34864
|
+
const items = [];
|
|
34865
|
+
const renderFirstPage = totalItems > pageSize;
|
|
34866
|
+
const renderStartEllipsis = this.showStartEllipsis();
|
|
34867
|
+
const renderEndEllipsis = this.showEndEllipsis();
|
|
34649
34868
|
const lastStart = this.getLastStart();
|
|
34869
|
+
if (renderFirstPage) {
|
|
34870
|
+
items.push(this.renderPage(1));
|
|
34871
|
+
}
|
|
34872
|
+
if (renderStartEllipsis) {
|
|
34873
|
+
items.push(this.renderEllipsis("start"));
|
|
34874
|
+
}
|
|
34875
|
+
const remainingItems = maxItems -
|
|
34876
|
+
firstAndLastPageCount -
|
|
34877
|
+
(renderEndEllipsis ? 1 : 0) -
|
|
34878
|
+
(renderStartEllipsis ? 1 : 0);
|
|
34650
34879
|
let end;
|
|
34651
34880
|
let nextStart;
|
|
34652
34881
|
// if we don't need ellipses render the whole set
|
|
34653
|
-
if (
|
|
34654
|
-
nextStart = 1 +
|
|
34655
|
-
end = lastStart -
|
|
34882
|
+
if (totalPages - 1 <= remainingItems) {
|
|
34883
|
+
nextStart = 1 + pageSize;
|
|
34884
|
+
end = lastStart - pageSize;
|
|
34656
34885
|
}
|
|
34657
34886
|
else {
|
|
34658
34887
|
// if we're within max pages of page 1
|
|
34659
|
-
if (
|
|
34660
|
-
nextStart = 1 +
|
|
34661
|
-
end = 1 +
|
|
34888
|
+
if (startItem / pageSize < remainingItems) {
|
|
34889
|
+
nextStart = 1 + pageSize;
|
|
34890
|
+
end = 1 + remainingItems * pageSize;
|
|
34662
34891
|
}
|
|
34663
34892
|
else {
|
|
34664
34893
|
// if we're within max pages of last page
|
|
34665
|
-
if (
|
|
34666
|
-
nextStart = lastStart -
|
|
34667
|
-
end = lastStart -
|
|
34894
|
+
if (startItem + remainingItems * pageSize >= totalItems) {
|
|
34895
|
+
nextStart = lastStart - remainingItems * pageSize;
|
|
34896
|
+
end = lastStart - pageSize;
|
|
34668
34897
|
}
|
|
34669
34898
|
else {
|
|
34670
|
-
|
|
34671
|
-
|
|
34899
|
+
// if we're within the center pages
|
|
34900
|
+
nextStart = startItem - pageSize * ((remainingItems - 1) / 2);
|
|
34901
|
+
end = startItem + pageSize * ((remainingItems - 1) / 2);
|
|
34672
34902
|
}
|
|
34673
34903
|
}
|
|
34674
34904
|
}
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34678
|
-
|
|
34905
|
+
for (let i = 0; i < remainingItems && nextStart <= end; i++) {
|
|
34906
|
+
items.push(this.renderPage(nextStart));
|
|
34907
|
+
nextStart = nextStart + pageSize;
|
|
34908
|
+
}
|
|
34909
|
+
if (renderEndEllipsis) {
|
|
34910
|
+
items.push(this.renderEllipsis("end"));
|
|
34679
34911
|
}
|
|
34680
|
-
|
|
34912
|
+
items.push(this.renderPage(lastStart));
|
|
34913
|
+
return items;
|
|
34681
34914
|
}
|
|
34682
34915
|
renderPage(start) {
|
|
34683
|
-
const
|
|
34916
|
+
const { pageSize } = this;
|
|
34917
|
+
const page = Math.floor(start / pageSize) + (pageSize === 1 ? 0 : 1);
|
|
34684
34918
|
numberStringFormatter.numberFormatOptions = {
|
|
34685
34919
|
locale: this.effectiveLocale,
|
|
34686
34920
|
numberingSystem: this.numberingSystem,
|
|
@@ -34689,40 +34923,30 @@ class Pagination {
|
|
|
34689
34923
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34690
34924
|
const selected = start === this.startItem;
|
|
34691
34925
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34692
|
-
[CSS$
|
|
34693
|
-
[CSS$
|
|
34694
|
-
}, onClick:
|
|
34695
|
-
this.startItem = start;
|
|
34696
|
-
this.emitUpdate();
|
|
34697
|
-
} }, displayedPage));
|
|
34698
|
-
}
|
|
34699
|
-
renderLeftEllipsis() {
|
|
34700
|
-
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34701
|
-
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisStart}` }, "\u2026");
|
|
34702
|
-
}
|
|
34703
|
-
}
|
|
34704
|
-
renderRightEllipsis() {
|
|
34705
|
-
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34706
|
-
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisEnd}` }, "\u2026");
|
|
34707
|
-
}
|
|
34926
|
+
[CSS$u.page]: true,
|
|
34927
|
+
[CSS$u.selected]: selected,
|
|
34928
|
+
}, onClick: this.handlePageClick, value: start }, displayedPage));
|
|
34708
34929
|
}
|
|
34709
34930
|
render() {
|
|
34710
|
-
const { totalItems, pageSize, startItem } = this;
|
|
34931
|
+
const { totalItems, pageSize, startItem, messages, scale } = this;
|
|
34711
34932
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34712
34933
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
[CSS$
|
|
34716
|
-
|
|
34717
|
-
|
|
34718
|
-
[CSS$
|
|
34719
|
-
|
|
34934
|
+
const iconScale = scale === "l" ? "m" : "s";
|
|
34935
|
+
return (hAsync(Fragment, null, hAsync("button", { "aria-label": messages.previous, class: {
|
|
34936
|
+
[CSS$u.previous]: true,
|
|
34937
|
+
[CSS$u.disabled]: prevDisabled,
|
|
34938
|
+
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.previous, scale: iconScale })), this.renderItems(), hAsync("button", { "aria-label": messages.next, class: {
|
|
34939
|
+
[CSS$u.next]: true,
|
|
34940
|
+
[CSS$u.disabled]: nextDisabled,
|
|
34941
|
+
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.next, scale: iconScale }))));
|
|
34720
34942
|
}
|
|
34721
34943
|
static get delegatesFocus() { return true; }
|
|
34722
34944
|
static get assetsDirs() { return ["assets"]; }
|
|
34723
34945
|
get el() { return getElement(this); }
|
|
34724
34946
|
static get watchers() { return {
|
|
34725
34947
|
"messageOverrides": ["onMessagesChange"],
|
|
34948
|
+
"pageSize": ["handleTotalPages"],
|
|
34949
|
+
"totalItems": ["handleTotalPages"],
|
|
34726
34950
|
"effectiveLocale": ["effectiveLocaleChange", "effectiveLocaleWatcher"]
|
|
34727
34951
|
}; }
|
|
34728
34952
|
static get style() { return paginationCss; }
|
|
@@ -34731,26 +34955,28 @@ class Pagination {
|
|
|
34731
34955
|
"$tagName$": "calcite-pagination",
|
|
34732
34956
|
"$members$": {
|
|
34733
34957
|
"groupSeparator": [516, "group-separator"],
|
|
34958
|
+
"messages": [1040],
|
|
34734
34959
|
"messageOverrides": [1040],
|
|
34735
|
-
"pageSize": [514, "page-size"],
|
|
34736
34960
|
"numberingSystem": [1, "numbering-system"],
|
|
34961
|
+
"pageSize": [514, "page-size"],
|
|
34962
|
+
"scale": [513],
|
|
34737
34963
|
"startItem": [1538, "start-item"],
|
|
34738
34964
|
"totalItems": [514, "total-items"],
|
|
34739
|
-
"scale": [513],
|
|
34740
|
-
"messages": [1040],
|
|
34741
34965
|
"defaultMessages": [32],
|
|
34742
34966
|
"effectiveLocale": [32],
|
|
34967
|
+
"maxItems": [32],
|
|
34968
|
+
"totalPages": [32],
|
|
34743
34969
|
"setFocus": [64],
|
|
34744
34970
|
"nextPage": [64],
|
|
34745
34971
|
"previousPage": [64]
|
|
34746
34972
|
},
|
|
34747
34973
|
"$listeners$": undefined,
|
|
34748
34974
|
"$lazyBundleId$": "-",
|
|
34749
|
-
"$attrsToReflect$": [["groupSeparator", "group-separator"], ["pageSize", "page-size"], ["
|
|
34975
|
+
"$attrsToReflect$": [["groupSeparator", "group-separator"], ["pageSize", "page-size"], ["scale", "scale"], ["startItem", "start-item"], ["totalItems", "total-items"]]
|
|
34750
34976
|
}; }
|
|
34751
34977
|
}
|
|
34752
34978
|
|
|
34753
|
-
const panelCss = "/*!@:host*/.sc-calcite-panel-h{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 **/.sc-calcite-panel-h *.sc-calcite-panel{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-panel-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-panel-h *.sc-calcite-panel,.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>*{pointer-events:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)
|
|
34979
|
+
const panelCss = "/*!@:host*/.sc-calcite-panel-h{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 **/.sc-calcite-panel-h *.sc-calcite-panel{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-panel-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-panel-h *.sc-calcite-panel,.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>*{pointer-events:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>[calcite-hydrated][disabled],[disabled].sc-calcite-panel-h [calcite-hydrated][disabled].sc-calcite-panel{opacity:1}/*!@.header*/.header.sc-calcite-panel{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-panel{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{flex:1 1 auto;padding:0.5rem}/*!@.container*/.container.sc-calcite-panel{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@.header*/.header.sc-calcite-panel{z-index:var(--calcite-app-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-ui-border-3))}/*!@.header-container*/.header-container.sc-calcite-panel{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}/*!@.header-container--border-end*/.header-container--border-end.sc-calcite-panel{border-block-end:1px solid var(--calcite-ui-border-3)}/*!@.action-bar-container*/.action-bar-container.sc-calcite-panel{inline-size:100%}/*!@.action-bar-container ::slotted(calcite-action-bar)*/.action-bar-container .sc-calcite-panel-s>calcite-action-bar{inline-size:100%}/*!@.header-content*/.header-content.sc-calcite-panel{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}/*!@.header-content .heading,\n.header-content .description*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .description.sc-calcite-panel{display:block;overflow-wrap:break-word;padding:0px}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{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*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-block-end:0px}/*!@.header-content .description*/.header-content.sc-calcite-panel .description.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}/*!@.back-button*/.back-button.sc-calcite-panel{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}/*!@.header-actions--end*/.header-actions--end.sc-calcite-panel{margin-inline-start:auto}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-panel{display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-panel-footer-padding, 0.5rem);border-block-start:1px solid var(--calcite-ui-border-3)}/*!@.fab-container*/.fab-container.sc-calcite-panel{position:sticky;inset-block-end:0px;z-index:var(--calcite-app-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-panel{display:none}";
|
|
34754
34980
|
|
|
34755
34981
|
/**
|
|
34756
34982
|
* @slot - A slot for adding custom content.
|
|
@@ -34767,6 +34993,7 @@ class Panel {
|
|
|
34767
34993
|
constructor(hostRef) {
|
|
34768
34994
|
registerInstance(this, hostRef);
|
|
34769
34995
|
this.calcitePanelClose = createEvent(this, "calcitePanelClose", 6);
|
|
34996
|
+
this.calcitePanelToggle = createEvent(this, "calcitePanelToggle", 6);
|
|
34770
34997
|
this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 6);
|
|
34771
34998
|
this.resizeObserver = createObserver();
|
|
34772
34999
|
// --------------------------------------------------------------------------
|
|
@@ -34786,12 +35013,6 @@ class Panel {
|
|
|
34786
35013
|
this.setContainerRef = (node) => {
|
|
34787
35014
|
this.containerEl = node;
|
|
34788
35015
|
};
|
|
34789
|
-
this.setCloseRef = (node) => {
|
|
34790
|
-
this.closeButtonEl = node;
|
|
34791
|
-
};
|
|
34792
|
-
this.setBackRef = (node) => {
|
|
34793
|
-
this.backButtonEl = node;
|
|
34794
|
-
};
|
|
34795
35016
|
this.panelKeyDownHandler = (event) => {
|
|
34796
35017
|
if (this.closable && event.key === "Escape" && !event.defaultPrevented) {
|
|
34797
35018
|
this.close();
|
|
@@ -34802,6 +35023,10 @@ class Panel {
|
|
|
34802
35023
|
this.closed = true;
|
|
34803
35024
|
this.calcitePanelClose.emit();
|
|
34804
35025
|
};
|
|
35026
|
+
this.collapse = () => {
|
|
35027
|
+
this.collapsed = !this.collapsed;
|
|
35028
|
+
this.calcitePanelToggle.emit();
|
|
35029
|
+
};
|
|
34805
35030
|
this.panelScrollHandler = () => {
|
|
34806
35031
|
this.calcitePanelScroll.emit();
|
|
34807
35032
|
};
|
|
@@ -34842,6 +35067,9 @@ class Panel {
|
|
|
34842
35067
|
this.closed = false;
|
|
34843
35068
|
this.disabled = false;
|
|
34844
35069
|
this.closable = false;
|
|
35070
|
+
this.collapsed = false;
|
|
35071
|
+
this.collapseDirection = "down";
|
|
35072
|
+
this.collapsible = false;
|
|
34845
35073
|
this.headingLevel = undefined;
|
|
34846
35074
|
this.loading = false;
|
|
34847
35075
|
this.heading = undefined;
|
|
@@ -34914,7 +35142,8 @@ class Panel {
|
|
|
34914
35142
|
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
34915
35143
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
34916
35144
|
* });
|
|
34917
|
-
* @param options
|
|
35145
|
+
* @param options - allows specific coordinates to be defined.
|
|
35146
|
+
* @returns - promise that resolves once the content is scrolled to.
|
|
34918
35147
|
*/
|
|
34919
35148
|
async scrollContentTo(options) {
|
|
34920
35149
|
this.panelScrollEl?.scrollTo(options);
|
|
@@ -34926,65 +35155,66 @@ class Panel {
|
|
|
34926
35155
|
// --------------------------------------------------------------------------
|
|
34927
35156
|
renderHeaderContent() {
|
|
34928
35157
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
34929
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
34930
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
34931
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
35158
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$N.heading, level: headingLevel }, heading)) : null;
|
|
35159
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$N.description }, description) : null;
|
|
35160
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$N.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
34932
35161
|
}
|
|
34933
35162
|
renderActionBar() {
|
|
34934
|
-
return (hAsync("div", { class: CSS$
|
|
35163
|
+
return (hAsync("div", { class: CSS$N.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
34935
35164
|
}
|
|
34936
|
-
/**
|
|
34937
|
-
* Allows user to override the entire header-content node.
|
|
34938
|
-
*/
|
|
34939
35165
|
renderHeaderSlottedContent() {
|
|
34940
|
-
return (hAsync("div", { class: CSS$
|
|
35166
|
+
return (hAsync("div", { class: CSS$N.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
34941
35167
|
}
|
|
34942
35168
|
renderHeaderStartActions() {
|
|
34943
35169
|
const { hasStartActions } = this;
|
|
34944
|
-
return (hAsync("div", { class: { [CSS$
|
|
35170
|
+
return (hAsync("div", { class: { [CSS$N.headerActionsStart]: true, [CSS$N.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$n.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
34945
35171
|
}
|
|
34946
35172
|
renderHeaderActionsEnd() {
|
|
34947
|
-
const {
|
|
34948
|
-
const
|
|
34949
|
-
const
|
|
34950
|
-
|
|
34951
|
-
|
|
35173
|
+
const { hasEndActions, messages, closable, collapsed, collapseDirection, collapsible, hasMenuItems, } = this;
|
|
35174
|
+
const { collapse, expand, close } = messages;
|
|
35175
|
+
const icons = [ICONS$b.expand, ICONS$b.collapse];
|
|
35176
|
+
if (collapseDirection === "up") {
|
|
35177
|
+
icons.reverse();
|
|
35178
|
+
}
|
|
35179
|
+
const collapseNode = collapsible ? (hAsync("calcite-action", { "aria-expanded": toAriaBoolean(!collapsed), "aria-label": collapse, "data-test": "collapse", icon: collapsed ? icons[0] : icons[1], onClick: this.collapse, text: collapse, title: !collapsed ? expand : collapse })) : null;
|
|
35180
|
+
const closeNode = closable ? (hAsync("calcite-action", { "aria-label": close, "data-test": "close", icon: ICONS$b.close, onClick: this.close, text: close, title: close })) : null;
|
|
34952
35181
|
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34953
|
-
const showContainer = hasEndActions ||
|
|
34954
|
-
return (hAsync("div", { class: { [CSS$
|
|
35182
|
+
const showContainer = hasEndActions || collapseNode || closeNode || hasMenuItems;
|
|
35183
|
+
return (hAsync("div", { class: { [CSS$N.headerActionsEnd]: true, [CSS$N.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), collapseNode, closeNode));
|
|
34955
35184
|
}
|
|
34956
35185
|
renderMenu() {
|
|
34957
35186
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
34958
|
-
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$
|
|
35187
|
+
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$b.menu, slot: SLOTS$w.trigger, text: messages.options }), hAsync("slot", { name: SLOTS$n.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
34959
35188
|
}
|
|
34960
35189
|
renderHeaderNode() {
|
|
34961
|
-
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems, hasActionBar, } = this;
|
|
35190
|
+
const { hasHeaderContent, hasStartActions, hasEndActions, closable, collapsible, hasMenuItems, hasActionBar, } = this;
|
|
34962
35191
|
const headerContentNode = this.renderHeaderContent();
|
|
34963
35192
|
const showHeaderContent = hasHeaderContent ||
|
|
34964
35193
|
!!headerContentNode ||
|
|
34965
35194
|
hasStartActions ||
|
|
34966
35195
|
hasEndActions ||
|
|
35196
|
+
collapsible ||
|
|
34967
35197
|
closable ||
|
|
34968
35198
|
hasMenuItems;
|
|
34969
35199
|
this.showHeaderContent = showHeaderContent;
|
|
34970
|
-
return (hAsync("header", { class: CSS$
|
|
35200
|
+
return (hAsync("header", { class: CSS$N.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$N.headerContainer]: true, [CSS$N.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
34971
35201
|
}
|
|
34972
35202
|
renderFooterNode() {
|
|
34973
35203
|
const { hasFooterContent, hasFooterActions } = this;
|
|
34974
35204
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
34975
|
-
return (hAsync("footer", { class: CSS$
|
|
35205
|
+
return (hAsync("footer", { class: CSS$N.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$n.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$n.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
34976
35206
|
}
|
|
34977
35207
|
renderContent() {
|
|
34978
|
-
return (hAsync("div", { class: CSS$
|
|
35208
|
+
return (hAsync("div", { class: CSS$N.contentWrapper, hidden: this.collapsible && this.collapsed, onScroll: this.panelScrollHandler,
|
|
34979
35209
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34980
35210
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
34981
35211
|
}
|
|
34982
35212
|
renderFab() {
|
|
34983
|
-
return (hAsync("div", { class: CSS$
|
|
35213
|
+
return (hAsync("div", { class: CSS$N.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$n.fab, onSlotchange: this.handleFabSlotChange })));
|
|
34984
35214
|
}
|
|
34985
35215
|
render() {
|
|
34986
35216
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
34987
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
35217
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$N.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
34988
35218
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34989
35219
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
34990
35220
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35003,6 +35233,9 @@ class Panel {
|
|
|
35003
35233
|
"closed": [1540],
|
|
35004
35234
|
"disabled": [516],
|
|
35005
35235
|
"closable": [516],
|
|
35236
|
+
"collapsed": [516],
|
|
35237
|
+
"collapseDirection": [1, "collapse-direction"],
|
|
35238
|
+
"collapsible": [516],
|
|
35006
35239
|
"headingLevel": [514, "heading-level"],
|
|
35007
35240
|
"loading": [516],
|
|
35008
35241
|
"heading": [1],
|
|
@@ -35026,11 +35259,11 @@ class Panel {
|
|
|
35026
35259
|
},
|
|
35027
35260
|
"$listeners$": undefined,
|
|
35028
35261
|
"$lazyBundleId$": "-",
|
|
35029
|
-
"$attrsToReflect$": [["closed", "closed"], ["disabled", "disabled"], ["closable", "closable"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
35262
|
+
"$attrsToReflect$": [["closed", "closed"], ["disabled", "disabled"], ["closable", "closable"], ["collapsed", "collapsed"], ["collapsible", "collapsible"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
35030
35263
|
}; }
|
|
35031
35264
|
}
|
|
35032
35265
|
|
|
35033
|
-
const CSS$
|
|
35266
|
+
const CSS$t = {
|
|
35034
35267
|
sticky: "sticky-pos",
|
|
35035
35268
|
};
|
|
35036
35269
|
var ICON_TYPES$1;
|
|
@@ -35043,7 +35276,7 @@ const SLOTS$d = {
|
|
|
35043
35276
|
menuActions: "menu-actions",
|
|
35044
35277
|
};
|
|
35045
35278
|
|
|
35046
|
-
const CSS$
|
|
35279
|
+
const CSS$s = {
|
|
35047
35280
|
heading: "heading",
|
|
35048
35281
|
container: "container",
|
|
35049
35282
|
indented: "container--indented",
|
|
@@ -35369,7 +35602,7 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35369
35602
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35370
35603
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35371
35604
|
ref: storeAssistiveEl })) : null,
|
|
35372
|
-
hAsync("header", { class: { [CSS$
|
|
35605
|
+
hAsync("header", { class: { [CSS$t.sticky]: true } },
|
|
35373
35606
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35374
35607
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35375
35608
|
ref: setFilterEl })) : null,
|
|
@@ -35560,14 +35793,14 @@ class PickListGroup {
|
|
|
35560
35793
|
const { el, groupTitle, headingLevel } = this;
|
|
35561
35794
|
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
35562
35795
|
const sectionClasses = {
|
|
35563
|
-
[CSS$
|
|
35564
|
-
[CSS$
|
|
35796
|
+
[CSS$s.container]: true,
|
|
35797
|
+
[CSS$s.indented]: hasParentItem,
|
|
35565
35798
|
};
|
|
35566
35799
|
const title = groupTitle;
|
|
35567
35800
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35568
35801
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35569
35802
|
const level = headingLevel || relativeLevel;
|
|
35570
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
35803
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$s.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$c.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
35571
35804
|
}
|
|
35572
35805
|
get el() { return getElement(this); }
|
|
35573
35806
|
static get style() { return pickListGroupCss; }
|
|
@@ -35584,7 +35817,7 @@ class PickListGroup {
|
|
|
35584
35817
|
}; }
|
|
35585
35818
|
}
|
|
35586
35819
|
|
|
35587
|
-
const CSS$
|
|
35820
|
+
const CSS$r = {
|
|
35588
35821
|
actions: "actions",
|
|
35589
35822
|
actionsEnd: "actions--end",
|
|
35590
35823
|
actionsStart: "actions--start",
|
|
@@ -35746,28 +35979,28 @@ class PickListItem {
|
|
|
35746
35979
|
return null;
|
|
35747
35980
|
}
|
|
35748
35981
|
return (hAsync("span", { class: {
|
|
35749
|
-
[CSS$
|
|
35750
|
-
[CSS$
|
|
35982
|
+
[CSS$r.icon]: true,
|
|
35983
|
+
[CSS$r.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35751
35984
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35752
35985
|
}
|
|
35753
35986
|
renderRemoveAction() {
|
|
35754
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
35987
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$r.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$b.actionsEnd, text: this.messages.remove })) : null;
|
|
35755
35988
|
}
|
|
35756
35989
|
renderActionsStart() {
|
|
35757
35990
|
const { el } = this;
|
|
35758
35991
|
const hasActionsStart = getSlotted(el, SLOTS$b.actionsStart);
|
|
35759
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
35992
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$r.actions]: true, [CSS$r.actionsStart]: true } }, hAsync("slot", { name: SLOTS$b.actionsStart }))) : null;
|
|
35760
35993
|
}
|
|
35761
35994
|
renderActionsEnd() {
|
|
35762
35995
|
const { el, removable } = this;
|
|
35763
35996
|
const hasActionsEnd = getSlotted(el, SLOTS$b.actionsEnd);
|
|
35764
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
35997
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$r.actions]: true, [CSS$r.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$b.actionsEnd }), this.renderRemoveAction())) : null;
|
|
35765
35998
|
}
|
|
35766
35999
|
render() {
|
|
35767
36000
|
const { description, label } = this;
|
|
35768
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
36001
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$r.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
35769
36002
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35770
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
36003
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$r.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$r.title }, label), description ? hAsync("span", { class: CSS$r.description }, description) : null)), this.renderActionsEnd()));
|
|
35771
36004
|
}
|
|
35772
36005
|
static get assetsDirs() { return ["assets"]; }
|
|
35773
36006
|
get el() { return getElement(this); }
|
|
@@ -35810,7 +36043,7 @@ class PickListItem {
|
|
|
35810
36043
|
}; }
|
|
35811
36044
|
}
|
|
35812
36045
|
|
|
35813
|
-
const CSS$
|
|
36046
|
+
const CSS$q = {
|
|
35814
36047
|
container: "container",
|
|
35815
36048
|
imageContainer: "image-container",
|
|
35816
36049
|
closeButtonContainer: "close-button-container",
|
|
@@ -35904,7 +36137,7 @@ class PopoverManager {
|
|
|
35904
36137
|
}
|
|
35905
36138
|
}
|
|
35906
36139
|
|
|
35907
|
-
const CSS$
|
|
36140
|
+
const CSS$p = {
|
|
35908
36141
|
arrow: "calcite-floating-ui-arrow",
|
|
35909
36142
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35910
36143
|
};
|
|
@@ -35934,8 +36167,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35934
36167
|
` L${width - svgX},${height}` +
|
|
35935
36168
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35936
36169
|
" Z";
|
|
35937
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35938
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
36170
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$p.arrow, height: width, key: key, ref: ref, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0) },
|
|
36171
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$p.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
35939
36172
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35940
36173
|
};
|
|
35941
36174
|
|
|
@@ -36187,14 +36420,14 @@ class Popover {
|
|
|
36187
36420
|
// --------------------------------------------------------------------------
|
|
36188
36421
|
renderCloseButton() {
|
|
36189
36422
|
const { messages, closable } = this;
|
|
36190
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
36423
|
+
return closable ? (hAsync("div", { class: CSS$q.closeButtonContainer, key: CSS$q.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$q.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
36191
36424
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36192
36425
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
36193
36426
|
}
|
|
36194
36427
|
renderHeader() {
|
|
36195
36428
|
const { heading, headingLevel } = this;
|
|
36196
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36197
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
36429
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$q.heading, level: headingLevel }, heading)) : null;
|
|
36430
|
+
return headingNode ? (hAsync("div", { class: CSS$q.header, key: CSS$q.header }, headingNode, this.renderCloseButton())) : null;
|
|
36198
36431
|
}
|
|
36199
36432
|
render() {
|
|
36200
36433
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36209,9 +36442,9 @@ class Popover {
|
|
|
36209
36442
|
},
|
|
36210
36443
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36211
36444
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36212
|
-
[CSS$
|
|
36213
|
-
[CSS$
|
|
36214
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
36445
|
+
[CSS$q.hasHeader]: !!heading,
|
|
36446
|
+
[CSS$q.container]: true,
|
|
36447
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$q.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
36215
36448
|
}
|
|
36216
36449
|
static get assetsDirs() { return ["assets"]; }
|
|
36217
36450
|
get el() { return getElement(this); }
|
|
@@ -36305,7 +36538,7 @@ class Progress {
|
|
|
36305
36538
|
}; }
|
|
36306
36539
|
}
|
|
36307
36540
|
|
|
36308
|
-
const CSS$
|
|
36541
|
+
const CSS$o = {
|
|
36309
36542
|
container: "container",
|
|
36310
36543
|
};
|
|
36311
36544
|
|
|
@@ -36582,7 +36815,7 @@ class RadioButton {
|
|
|
36582
36815
|
// --------------------------------------------------------------------------
|
|
36583
36816
|
render() {
|
|
36584
36817
|
const tabIndex = this.getTabIndex();
|
|
36585
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
36818
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$o.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
36586
36819
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36587
36820
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36588
36821
|
}
|
|
@@ -37009,7 +37242,7 @@ class Rating {
|
|
|
37009
37242
|
}; }
|
|
37010
37243
|
}
|
|
37011
37244
|
|
|
37012
|
-
const CSS$
|
|
37245
|
+
const CSS$n = {
|
|
37013
37246
|
scrim: "scrim",
|
|
37014
37247
|
content: "content",
|
|
37015
37248
|
};
|
|
@@ -37079,7 +37312,7 @@ class Scrim {
|
|
|
37079
37312
|
// --------------------------------------------------------------------------
|
|
37080
37313
|
render() {
|
|
37081
37314
|
const { hasContent, loading, messages } = this;
|
|
37082
|
-
return (hAsync("div", { class: CSS$
|
|
37315
|
+
return (hAsync("div", { class: CSS$n.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, ref: this.storeLoaderEl, scale: this.loaderScale })) : null, hAsync("div", { class: CSS$n.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
37083
37316
|
}
|
|
37084
37317
|
getScale(size) {
|
|
37085
37318
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37354,7 +37587,7 @@ class SegmentedControl {
|
|
|
37354
37587
|
const SLOTS$a = {
|
|
37355
37588
|
input: "input",
|
|
37356
37589
|
};
|
|
37357
|
-
const CSS$
|
|
37590
|
+
const CSS$m = {
|
|
37358
37591
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37359
37592
|
};
|
|
37360
37593
|
|
|
@@ -37383,8 +37616,8 @@ class SegmentedControlItem {
|
|
|
37383
37616
|
//--------------------------------------------------------------------------
|
|
37384
37617
|
render() {
|
|
37385
37618
|
const { appearance, checked, layout, scale, value } = this;
|
|
37386
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
37387
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
37619
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$m.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37620
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$m.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37388
37621
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37389
37622
|
"label--scale-s": scale === "s",
|
|
37390
37623
|
"label--scale-m": scale === "m",
|
|
@@ -37418,7 +37651,7 @@ class SegmentedControlItem {
|
|
|
37418
37651
|
}; }
|
|
37419
37652
|
}
|
|
37420
37653
|
|
|
37421
|
-
const CSS$
|
|
37654
|
+
const CSS$l = {
|
|
37422
37655
|
icon: "icon",
|
|
37423
37656
|
iconContainer: "icon-container",
|
|
37424
37657
|
select: "select",
|
|
@@ -37605,10 +37838,10 @@ class Select {
|
|
|
37605
37838
|
//
|
|
37606
37839
|
//--------------------------------------------------------------------------
|
|
37607
37840
|
renderChevron() {
|
|
37608
|
-
return (hAsync("div", { class: CSS$
|
|
37841
|
+
return (hAsync("div", { class: CSS$l.iconContainer }, hAsync("calcite-icon", { class: CSS$l.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
37609
37842
|
}
|
|
37610
37843
|
render() {
|
|
37611
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
37844
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$l.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
37612
37845
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
37613
37846
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37614
37847
|
}
|
|
@@ -37639,7 +37872,7 @@ class Select {
|
|
|
37639
37872
|
}; }
|
|
37640
37873
|
}
|
|
37641
37874
|
|
|
37642
|
-
const CSS$
|
|
37875
|
+
const CSS$k = {
|
|
37643
37876
|
scrim: "scrim",
|
|
37644
37877
|
container: "container",
|
|
37645
37878
|
containerOpen: "container--open",
|
|
@@ -37757,12 +37990,12 @@ class Sheet {
|
|
|
37757
37990
|
render() {
|
|
37758
37991
|
const dir = getElementDir(this.el);
|
|
37759
37992
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
37760
|
-
[CSS$
|
|
37761
|
-
[CSS$
|
|
37762
|
-
[CSS$
|
|
37993
|
+
[CSS$k.container]: true,
|
|
37994
|
+
[CSS$k.containerOpen]: this.opened,
|
|
37995
|
+
[CSS$k.containerSlottedInShell]: this.slottedInShell,
|
|
37763
37996
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37764
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
37765
|
-
[CSS$
|
|
37997
|
+
} }, hAsync("calcite-scrim", { class: CSS$k.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37998
|
+
[CSS$k.content]: true,
|
|
37766
37999
|
},
|
|
37767
38000
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
37768
38001
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -37863,7 +38096,7 @@ class Sheet {
|
|
|
37863
38096
|
}; }
|
|
37864
38097
|
}
|
|
37865
38098
|
|
|
37866
|
-
const CSS$
|
|
38099
|
+
const CSS$j = {
|
|
37867
38100
|
main: "main",
|
|
37868
38101
|
content: "content",
|
|
37869
38102
|
contentBehind: "content--behind",
|
|
@@ -37965,7 +38198,7 @@ class Shell {
|
|
|
37965
38198
|
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$9.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
37966
38199
|
}
|
|
37967
38200
|
renderFooter() {
|
|
37968
|
-
return (hAsync("div", { class: CSS$
|
|
38201
|
+
return (hAsync("div", { class: CSS$j.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$9.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
37969
38202
|
}
|
|
37970
38203
|
renderAlerts() {
|
|
37971
38204
|
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$9.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
@@ -37985,21 +38218,21 @@ class Shell {
|
|
|
37985
38218
|
const content = !!this.contentBehind
|
|
37986
38219
|
? [
|
|
37987
38220
|
hAsync("div", { class: {
|
|
37988
|
-
[CSS$
|
|
37989
|
-
[CSS$
|
|
38221
|
+
[CSS$j.content]: true,
|
|
38222
|
+
[CSS$j.contentBehind]: true,
|
|
37990
38223
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
37991
|
-
hAsync("div", { class: CSS$
|
|
38224
|
+
hAsync("div", { class: CSS$j.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
37992
38225
|
]
|
|
37993
38226
|
: [
|
|
37994
|
-
hAsync("div", { class: CSS$
|
|
38227
|
+
hAsync("div", { class: CSS$j.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
37995
38228
|
];
|
|
37996
38229
|
return content;
|
|
37997
38230
|
}
|
|
37998
38231
|
renderMain() {
|
|
37999
|
-
return (hAsync("div", { class: CSS$
|
|
38232
|
+
return (hAsync("div", { class: CSS$j.main }, hAsync("slot", { name: SLOTS$9.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$9.panelEnd })));
|
|
38000
38233
|
}
|
|
38001
38234
|
renderPositionedSlots() {
|
|
38002
|
-
return (hAsync("div", { class: CSS$
|
|
38235
|
+
return (hAsync("div", { class: CSS$j.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38003
38236
|
}
|
|
38004
38237
|
render() {
|
|
38005
38238
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38023,7 +38256,7 @@ class Shell {
|
|
|
38023
38256
|
}; }
|
|
38024
38257
|
}
|
|
38025
38258
|
|
|
38026
|
-
const CSS$
|
|
38259
|
+
const CSS$i = {
|
|
38027
38260
|
actionBarContainer: "action-bar-container",
|
|
38028
38261
|
content: "content",
|
|
38029
38262
|
};
|
|
@@ -38062,9 +38295,9 @@ class ShellCenterRow {
|
|
|
38062
38295
|
// --------------------------------------------------------------------------
|
|
38063
38296
|
render() {
|
|
38064
38297
|
const { el } = this;
|
|
38065
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38298
|
+
const contentNode = (hAsync("div", { class: CSS$i.content }, hAsync("slot", null)));
|
|
38066
38299
|
const actionBar = getSlotted(el, SLOTS$8.actionBar);
|
|
38067
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
38300
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$i.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$8.actionBar }))) : null;
|
|
38068
38301
|
const children = [actionBarNode, contentNode];
|
|
38069
38302
|
if (actionBar?.position === "end") {
|
|
38070
38303
|
children.reverse();
|
|
@@ -38087,7 +38320,7 @@ class ShellCenterRow {
|
|
|
38087
38320
|
}; }
|
|
38088
38321
|
}
|
|
38089
38322
|
|
|
38090
|
-
const CSS$
|
|
38323
|
+
const CSS$h = {
|
|
38091
38324
|
container: "container",
|
|
38092
38325
|
content: "content",
|
|
38093
38326
|
contentHeader: "content__header",
|
|
@@ -38350,7 +38583,7 @@ class ShellPanel {
|
|
|
38350
38583
|
//
|
|
38351
38584
|
// --------------------------------------------------------------------------
|
|
38352
38585
|
renderHeader() {
|
|
38353
|
-
return (hAsync("div", { class: CSS$
|
|
38586
|
+
return (hAsync("div", { class: CSS$h.contentHeader, hidden: !this.hasHeader, key: "header" }, hAsync("slot", { name: SLOTS$7.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38354
38587
|
}
|
|
38355
38588
|
render() {
|
|
38356
38589
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38367,7 +38600,7 @@ class ShellPanel {
|
|
|
38367
38600
|
: null;
|
|
38368
38601
|
const separatorNode = !collapsed && allowResizing ? (hAsync("div", { "aria-label": this.messages.resize, "aria-orientation": layout === "horizontal" ? "vertical" : "horizontal", "aria-valuemax": layout == "horizontal" ? contentHeightMax : contentWidthMax, "aria-valuemin": layout == "horizontal" ? contentHeightMin : contentWidthMin, "aria-valuenow": layout == "horizontal"
|
|
38369
38602
|
? contentHeight ?? initialContentHeight
|
|
38370
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
38603
|
+
: contentWidth ?? initialContentWidth, class: CSS$h.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38371
38604
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38372
38605
|
ref: this.connectSeparator })) : null;
|
|
38373
38606
|
const getAnimationDir = () => {
|
|
@@ -38383,20 +38616,20 @@ class ShellPanel {
|
|
|
38383
38616
|
};
|
|
38384
38617
|
const contentNode = (hAsync("div", { class: {
|
|
38385
38618
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38386
|
-
[CSS$
|
|
38387
|
-
[CSS$
|
|
38388
|
-
[CSS$
|
|
38619
|
+
[CSS$h.content]: true,
|
|
38620
|
+
[CSS$h.contentOverlay]: displayMode === "overlay",
|
|
38621
|
+
[CSS$h.contentFloat]: displayMode === "float",
|
|
38389
38622
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38390
38623
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38391
38624
|
}, hidden: collapsed, key: "content", style: style,
|
|
38392
38625
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38393
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
38626
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$h.contentBody }, hAsync("slot", null)), separatorNode));
|
|
38394
38627
|
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$7.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
38395
38628
|
const mainNodes = [actionBarNode, contentNode];
|
|
38396
38629
|
if (position === "end") {
|
|
38397
38630
|
mainNodes.reverse();
|
|
38398
38631
|
}
|
|
38399
|
-
return hAsync("div", { class: { [CSS$
|
|
38632
|
+
return hAsync("div", { class: { [CSS$h.container]: true } }, mainNodes);
|
|
38400
38633
|
}
|
|
38401
38634
|
// --------------------------------------------------------------------------
|
|
38402
38635
|
//
|
|
@@ -38497,7 +38730,7 @@ class ShellPanel {
|
|
|
38497
38730
|
}; }
|
|
38498
38731
|
}
|
|
38499
38732
|
|
|
38500
|
-
const CSS$
|
|
38733
|
+
const CSS$g = {
|
|
38501
38734
|
handleLabel: "handle__label",
|
|
38502
38735
|
handleLabelMinValue: "handle__label--minValue",
|
|
38503
38736
|
handleLabelValue: "handle__label--value",
|
|
@@ -38696,8 +38929,8 @@ class Slider {
|
|
|
38696
38929
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
38697
38930
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
38698
38931
|
const valueIsRange = isRange(this.value);
|
|
38699
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
38700
|
-
const handleLabelValueClasses = `${CSS$
|
|
38932
|
+
const handleLabelMinValueClasses = `${CSS$g.handleLabel} ${CSS$g.handleLabelMinValue}`;
|
|
38933
|
+
const handleLabelValueClasses = `${CSS$g.handleLabel} ${CSS$g.handleLabelValue}`;
|
|
38701
38934
|
const handle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
38702
38935
|
thumb: true,
|
|
38703
38936
|
"thumb--value": true,
|
|
@@ -38833,8 +39066,8 @@ class Slider {
|
|
|
38833
39066
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
38834
39067
|
const tickLabel = (hAsync("span", { class: {
|
|
38835
39068
|
tick__label: true,
|
|
38836
|
-
[CSS$
|
|
38837
|
-
[CSS$
|
|
39069
|
+
[CSS$g.tickMin]: isMinTickLabel,
|
|
39070
|
+
[CSS$g.tickMax]: isMaxTickLabel,
|
|
38838
39071
|
} }, displayedTickValue));
|
|
38839
39072
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
38840
39073
|
return tickLabel;
|
|
@@ -39392,7 +39625,7 @@ class Slider {
|
|
|
39392
39625
|
}; }
|
|
39393
39626
|
}
|
|
39394
39627
|
|
|
39395
|
-
const CSS$
|
|
39628
|
+
const CSS$f = {
|
|
39396
39629
|
sortItem: "sort-item",
|
|
39397
39630
|
container: "container",
|
|
39398
39631
|
containerHorizontal: "container--horizontal",
|
|
@@ -39526,9 +39759,9 @@ class SortableList {
|
|
|
39526
39759
|
const { layout } = this;
|
|
39527
39760
|
const horizontal = layout === "horizontal" || false;
|
|
39528
39761
|
return (hAsync("div", { class: {
|
|
39529
|
-
[CSS$
|
|
39530
|
-
[CSS$
|
|
39531
|
-
[CSS$
|
|
39762
|
+
[CSS$f.container]: true,
|
|
39763
|
+
[CSS$f.containerVertical]: !horizontal,
|
|
39764
|
+
[CSS$f.containerHorizontal]: horizontal,
|
|
39532
39765
|
} }, hAsync("slot", null)));
|
|
39533
39766
|
}
|
|
39534
39767
|
get el() { return getElement(this); }
|
|
@@ -39552,7 +39785,7 @@ class SortableList {
|
|
|
39552
39785
|
}; }
|
|
39553
39786
|
}
|
|
39554
39787
|
|
|
39555
|
-
const CSS$
|
|
39788
|
+
const CSS$e = {
|
|
39556
39789
|
container: "split-button__container",
|
|
39557
39790
|
dividerContainer: "split-button__divider-container",
|
|
39558
39791
|
divider: "split-button__divider",
|
|
@@ -39631,13 +39864,13 @@ class SplitButton {
|
|
|
39631
39864
|
}
|
|
39632
39865
|
render() {
|
|
39633
39866
|
const widthClasses = {
|
|
39634
|
-
[CSS$
|
|
39635
|
-
[CSS$
|
|
39636
|
-
[CSS$
|
|
39637
|
-
[CSS$
|
|
39867
|
+
[CSS$e.container]: true,
|
|
39868
|
+
[CSS$e.widthAuto]: this.width === "auto",
|
|
39869
|
+
[CSS$e.widthHalf]: this.width === "half",
|
|
39870
|
+
[CSS$e.widthFull]: this.width === "full",
|
|
39638
39871
|
};
|
|
39639
39872
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
39640
|
-
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$
|
|
39873
|
+
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$e.dividerContainer }, hAsync("div", { class: CSS$e.divider })), hAsync("calcite-dropdown", { disabled: this.disabled, onClick: this.calciteSplitButtonSecondaryClickHandler, open: this.active, overlayPositioning: this.overlayPositioning, placement: "bottom-end", scale: this.scale, width: this.scale }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-start": this.dropdownIcon, kind: this.kind, label: this.dropdownLabel, scale: this.scale, slot: "trigger", splitChild: "secondary", type: "button" }), hAsync("slot", null))));
|
|
39641
39874
|
}
|
|
39642
39875
|
get dropdownIcon() {
|
|
39643
39876
|
return this.dropdownIconType === "chevron"
|
|
@@ -39724,25 +39957,25 @@ class Stack {
|
|
|
39724
39957
|
// --------------------------------------------------------------------------
|
|
39725
39958
|
renderActionsStart() {
|
|
39726
39959
|
const { hasActionsStart } = this;
|
|
39727
|
-
return (hAsync("div", { class: CSS$
|
|
39960
|
+
return (hAsync("div", { class: CSS$z.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$g.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
39728
39961
|
}
|
|
39729
39962
|
renderActionsEnd() {
|
|
39730
39963
|
const { hasActionsEnd } = this;
|
|
39731
|
-
return (hAsync("div", { class: CSS$
|
|
39964
|
+
return (hAsync("div", { class: CSS$z.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$g.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
39732
39965
|
}
|
|
39733
39966
|
renderContentStart() {
|
|
39734
39967
|
const { hasContentStart } = this;
|
|
39735
|
-
return (hAsync("div", { class: CSS$
|
|
39968
|
+
return (hAsync("div", { class: CSS$z.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39736
39969
|
}
|
|
39737
39970
|
renderDefaultContent() {
|
|
39738
|
-
return (hAsync("div", { class: CSS$
|
|
39971
|
+
return (hAsync("div", { class: CSS$z.content }, hAsync("slot", null)));
|
|
39739
39972
|
}
|
|
39740
39973
|
renderContentEnd() {
|
|
39741
39974
|
const { hasContentEnd } = this;
|
|
39742
|
-
return (hAsync("div", { class: CSS$
|
|
39975
|
+
return (hAsync("div", { class: CSS$z.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39743
39976
|
}
|
|
39744
39977
|
render() {
|
|
39745
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
39978
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$z.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
39746
39979
|
}
|
|
39747
39980
|
static get style() { return stackCss; }
|
|
39748
39981
|
static get cmpMeta() { return {
|
|
@@ -39777,6 +40010,14 @@ class Stepper {
|
|
|
39777
40010
|
/** list of enabled Stepper items */
|
|
39778
40011
|
this.enabledItems = [];
|
|
39779
40012
|
this.mutationObserver = createObserver();
|
|
40013
|
+
this.handleDefaultSlotChange = (event) => {
|
|
40014
|
+
const slottedItems = slotChangeGetAssignedElements(event);
|
|
40015
|
+
const items = slottedItems.filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
40016
|
+
const spacing = Array(items.length).fill("1fr").join(" ");
|
|
40017
|
+
this.el.style.gridTemplateAreas = spacing;
|
|
40018
|
+
this.el.style.gridTemplateColumns = spacing;
|
|
40019
|
+
this.setStepperItemNumberingSystem();
|
|
40020
|
+
};
|
|
39780
40021
|
this.icon = false;
|
|
39781
40022
|
this.layout = "horizontal";
|
|
39782
40023
|
this.numbered = false;
|
|
@@ -39808,15 +40049,7 @@ class Stepper {
|
|
|
39808
40049
|
}
|
|
39809
40050
|
}
|
|
39810
40051
|
render() {
|
|
39811
|
-
return (hAsync("slot", { onSlotchange:
|
|
39812
|
-
const items = event.currentTarget
|
|
39813
|
-
.assignedElements()
|
|
39814
|
-
.filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
39815
|
-
const spacing = Array(items.length).fill("1fr").join(" ");
|
|
39816
|
-
this.el.style.gridTemplateAreas = spacing;
|
|
39817
|
-
this.el.style.gridTemplateColumns = spacing;
|
|
39818
|
-
this.setStepperItemNumberingSystem();
|
|
39819
|
-
} }));
|
|
40052
|
+
return (hAsync(Host, { "aria-label": "Progress steps", role: "region" }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
39820
40053
|
}
|
|
39821
40054
|
//--------------------------------------------------------------------------
|
|
39822
40055
|
//
|
|
@@ -39985,7 +40218,18 @@ class Stepper {
|
|
|
39985
40218
|
}; }
|
|
39986
40219
|
}
|
|
39987
40220
|
|
|
39988
|
-
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][scale=s]) .stepper-item-header*/[layout=horizontal][scale=s].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .stepper-item-header*/[layout=horizontal][scale=l].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected]) .stepper-item-header*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
40221
|
+
const CSS$d = {
|
|
40222
|
+
container: "container",
|
|
40223
|
+
stepperItemContent: "stepper-item-content",
|
|
40224
|
+
stepperItemDescription: "stepper-item-description",
|
|
40225
|
+
stepperItemHeader: "stepper-item-header",
|
|
40226
|
+
stepperItemHeading: "stepper-item-heading",
|
|
40227
|
+
stepperItemHeaderText: "stepper-item-header-text",
|
|
40228
|
+
stepperItemNumber: "stepper-item-number",
|
|
40229
|
+
visuallyHidden: "visually-hidden",
|
|
40230
|
+
};
|
|
40231
|
+
|
|
40232
|
+
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][scale=s]) .stepper-item-header*/[layout=horizontal][scale=s].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .stepper-item-header*/[layout=horizontal][scale=l].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected]) .stepper-item-header*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@.visually-hidden*/.visually-hidden.sc-calcite-stepper-item{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}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
39989
40233
|
|
|
39990
40234
|
/**
|
|
39991
40235
|
* @slot - A slot for adding custom content.
|
|
@@ -40108,11 +40352,11 @@ class StepperItem {
|
|
|
40108
40352
|
disconnectLocalized(this);
|
|
40109
40353
|
}
|
|
40110
40354
|
render() {
|
|
40111
|
-
return (hAsync(Host, { "aria-
|
|
40355
|
+
return (hAsync(Host, { "aria-current": this.selected ? "step" : "false", onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: CSS$d.container }, this.complete && (hAsync("span", { "aria-live": "polite", class: CSS$d.visuallyHidden }, "Completed step")), hAsync("div", { class: CSS$d.stepperItemHeader, tabIndex:
|
|
40112
40356
|
/* additional tab index logic needed because of display: contents */
|
|
40113
40357
|
this.layout === "horizontal" && !this.disabled ? 0 : null,
|
|
40114
40358
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
40115
|
-
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? hAsync("div", { class:
|
|
40359
|
+
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? (hAsync("div", { class: CSS$d.stepperItemNumber }, this.renderNumbers(), ".")) : null, hAsync("div", { class: CSS$d.stepperItemHeaderText }, hAsync("span", { class: CSS$d.stepperItemHeading }, this.heading), hAsync("span", { class: CSS$d.stepperItemDescription }, this.description))), hAsync("div", { class: CSS$d.stepperItemContent }, hAsync("slot", null)))));
|
|
40116
40360
|
}
|
|
40117
40361
|
//--------------------------------------------------------------------------
|
|
40118
40362
|
//
|
|
@@ -40579,6 +40823,7 @@ class TabNav {
|
|
|
40579
40823
|
}
|
|
40580
40824
|
iconStartChangeHandler() {
|
|
40581
40825
|
this.updateActiveWidth();
|
|
40826
|
+
this.updateOffsetPosition();
|
|
40582
40827
|
}
|
|
40583
40828
|
updateOffsetPosition() {
|
|
40584
40829
|
const dir = getElementDir(this.el);
|
|
@@ -45308,8 +45553,8 @@ class ValueListItem {
|
|
|
45308
45553
|
const { icon, iconFlipRtl } = this;
|
|
45309
45554
|
if (icon === ICON_TYPES$1.grip) {
|
|
45310
45555
|
return (hAsync("span", { class: {
|
|
45311
|
-
[CSS$
|
|
45312
|
-
[CSS$
|
|
45556
|
+
[CSS$r.handle]: true,
|
|
45557
|
+
[CSS$r.handleActivated]: this.handleActivated,
|
|
45313
45558
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => (this.handleEl = el), role: "button", tabindex: "0" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|
|
45314
45559
|
}
|
|
45315
45560
|
}
|
|
@@ -45488,6 +45733,9 @@ var locale$M = {
|
|
|
45488
45733
|
months: months$5,
|
|
45489
45734
|
monthsShort: months$5,
|
|
45490
45735
|
weekStart: 6,
|
|
45736
|
+
meridiem: function meridiem(hour) {
|
|
45737
|
+
return hour > 12 ? 'م' : 'ص';
|
|
45738
|
+
},
|
|
45491
45739
|
relativeTime: {
|
|
45492
45740
|
future: 'بعد %s',
|
|
45493
45741
|
past: 'منذ %s',
|
|
@@ -45675,7 +45923,7 @@ function plural$4(n) {
|
|
|
45675
45923
|
/* eslint-disable */
|
|
45676
45924
|
|
|
45677
45925
|
|
|
45678
|
-
function translate$
|
|
45926
|
+
function translate$3(number, withoutSuffix, key, isFuture) {
|
|
45679
45927
|
var result = number + " ";
|
|
45680
45928
|
|
|
45681
45929
|
switch (key) {
|
|
@@ -45771,17 +46019,17 @@ var locale$I = {
|
|
|
45771
46019
|
relativeTime: {
|
|
45772
46020
|
future: 'za %s',
|
|
45773
46021
|
past: 'před %s',
|
|
45774
|
-
s: translate$
|
|
45775
|
-
m: translate$
|
|
45776
|
-
mm: translate$
|
|
45777
|
-
h: translate$
|
|
45778
|
-
hh: translate$
|
|
45779
|
-
d: translate$
|
|
45780
|
-
dd: translate$
|
|
45781
|
-
M: translate$
|
|
45782
|
-
MM: translate$
|
|
45783
|
-
y: translate$
|
|
45784
|
-
yy: translate$
|
|
46022
|
+
s: translate$3,
|
|
46023
|
+
m: translate$3,
|
|
46024
|
+
mm: translate$3,
|
|
46025
|
+
h: translate$3,
|
|
46026
|
+
hh: translate$3,
|
|
46027
|
+
d: translate$3,
|
|
46028
|
+
dd: translate$3,
|
|
46029
|
+
M: translate$3,
|
|
46030
|
+
MM: translate$3,
|
|
46031
|
+
y: translate$3,
|
|
46032
|
+
yy: translate$3
|
|
45785
46033
|
}
|
|
45786
46034
|
};
|
|
45787
46035
|
dayjs.locale(locale$I, null, true);
|
|
@@ -46977,7 +47225,7 @@ var locale$l = {
|
|
|
46977
47225
|
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
46978
47226
|
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
46979
47227
|
ordinal: function ordinal(n) {
|
|
46980
|
-
return n;
|
|
47228
|
+
return n + "\uC77C";
|
|
46981
47229
|
},
|
|
46982
47230
|
formats: {
|
|
46983
47231
|
LT: 'A h:mm',
|
|
@@ -47273,7 +47521,7 @@ function plural$3(n) {
|
|
|
47273
47521
|
/* eslint-disable */
|
|
47274
47522
|
|
|
47275
47523
|
|
|
47276
|
-
function translate$
|
|
47524
|
+
function translate$2(number, withoutSuffix, key) {
|
|
47277
47525
|
var result = number + " ";
|
|
47278
47526
|
|
|
47279
47527
|
switch (key) {
|
|
@@ -47329,16 +47577,16 @@ var locale$f = {
|
|
|
47329
47577
|
future: 'za %s',
|
|
47330
47578
|
past: '%s temu',
|
|
47331
47579
|
s: 'kilka sekund',
|
|
47332
|
-
m: translate$
|
|
47333
|
-
mm: translate$
|
|
47334
|
-
h: translate$
|
|
47335
|
-
hh: translate$
|
|
47580
|
+
m: translate$2,
|
|
47581
|
+
mm: translate$2,
|
|
47582
|
+
h: translate$2,
|
|
47583
|
+
hh: translate$2,
|
|
47336
47584
|
d: '1 dzień',
|
|
47337
47585
|
dd: '%d dni',
|
|
47338
47586
|
M: 'miesiąc',
|
|
47339
|
-
MM: translate$
|
|
47587
|
+
MM: translate$2,
|
|
47340
47588
|
y: 'rok',
|
|
47341
|
-
yy: translate$
|
|
47589
|
+
yy: translate$2
|
|
47342
47590
|
},
|
|
47343
47591
|
formats: {
|
|
47344
47592
|
LT: 'HH:mm',
|
|
@@ -47596,7 +47844,7 @@ function plural$1(n) {
|
|
|
47596
47844
|
/* eslint-disable */
|
|
47597
47845
|
|
|
47598
47846
|
|
|
47599
|
-
function translate(number, withoutSuffix, key, isFuture) {
|
|
47847
|
+
function translate$1(number, withoutSuffix, key, isFuture) {
|
|
47600
47848
|
var result = number + " ";
|
|
47601
47849
|
|
|
47602
47850
|
switch (key) {
|
|
@@ -47693,17 +47941,17 @@ var locale$a = {
|
|
|
47693
47941
|
future: 'za %s',
|
|
47694
47942
|
// Should be `o %s` (change when moment/moment#5408 is fixed)
|
|
47695
47943
|
past: 'pred %s',
|
|
47696
|
-
s: translate,
|
|
47697
|
-
m: translate,
|
|
47698
|
-
mm: translate,
|
|
47699
|
-
h: translate,
|
|
47700
|
-
hh: translate,
|
|
47701
|
-
d: translate,
|
|
47702
|
-
dd: translate,
|
|
47703
|
-
M: translate,
|
|
47704
|
-
MM: translate,
|
|
47705
|
-
y: translate,
|
|
47706
|
-
yy: translate
|
|
47944
|
+
s: translate$1,
|
|
47945
|
+
m: translate$1,
|
|
47946
|
+
mm: translate$1,
|
|
47947
|
+
h: translate$1,
|
|
47948
|
+
hh: translate$1,
|
|
47949
|
+
d: translate$1,
|
|
47950
|
+
dd: translate$1,
|
|
47951
|
+
M: translate$1,
|
|
47952
|
+
MM: translate$1,
|
|
47953
|
+
y: translate$1,
|
|
47954
|
+
yy: translate$1
|
|
47707
47955
|
}
|
|
47708
47956
|
};
|
|
47709
47957
|
dayjs.locale(locale$a, null, true);
|
|
@@ -47714,6 +47962,107 @@ var sk = /*#__PURE__*/Object.freeze({
|
|
|
47714
47962
|
});
|
|
47715
47963
|
|
|
47716
47964
|
// Slovenian [sl]
|
|
47965
|
+
|
|
47966
|
+
function dual(n) {
|
|
47967
|
+
return n % 100 == 2; // eslint-disable-line
|
|
47968
|
+
}
|
|
47969
|
+
|
|
47970
|
+
function threeFour(n) {
|
|
47971
|
+
return n % 100 == 3 || n % 100 == 4; // eslint-disable-line
|
|
47972
|
+
}
|
|
47973
|
+
/* eslint-disable */
|
|
47974
|
+
|
|
47975
|
+
|
|
47976
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
|
47977
|
+
var result = number + " ";
|
|
47978
|
+
|
|
47979
|
+
switch (key) {
|
|
47980
|
+
case 's':
|
|
47981
|
+
// a few seconds / in a few seconds / a few seconds ago
|
|
47982
|
+
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
|
|
47983
|
+
|
|
47984
|
+
case 'm':
|
|
47985
|
+
// a minute / in a minute / a minute ago
|
|
47986
|
+
return withoutSuffix ? 'ena minuta' : 'eno minuto';
|
|
47987
|
+
|
|
47988
|
+
case 'mm':
|
|
47989
|
+
// 9 minutes / in 9 minutes / 9 minutes ago
|
|
47990
|
+
if (dual(number)) {
|
|
47991
|
+
return result + (withoutSuffix || isFuture ? 'minuti' : 'minutama');
|
|
47992
|
+
}
|
|
47993
|
+
|
|
47994
|
+
if (threeFour(number)) {
|
|
47995
|
+
return result + (withoutSuffix || isFuture ? 'minute' : 'minutami');
|
|
47996
|
+
}
|
|
47997
|
+
|
|
47998
|
+
return result + (withoutSuffix || isFuture ? 'minut' : 'minutami');
|
|
47999
|
+
|
|
48000
|
+
case 'h':
|
|
48001
|
+
// an hour / in an hour / an hour ago
|
|
48002
|
+
return withoutSuffix ? 'ena ura' : isFuture ? 'eno uro' : 'eno uro';
|
|
48003
|
+
|
|
48004
|
+
case 'hh':
|
|
48005
|
+
// 9 hours / in 9 hours / 9 hours ago
|
|
48006
|
+
if (dual(number)) {
|
|
48007
|
+
return result + (withoutSuffix || isFuture ? 'uri' : 'urama');
|
|
48008
|
+
}
|
|
48009
|
+
|
|
48010
|
+
if (threeFour(number)) {
|
|
48011
|
+
return result + (withoutSuffix || isFuture ? 'ure' : 'urami');
|
|
48012
|
+
}
|
|
48013
|
+
|
|
48014
|
+
return result + (withoutSuffix || isFuture ? 'ur' : 'urami');
|
|
48015
|
+
|
|
48016
|
+
case 'd':
|
|
48017
|
+
// a day / in a day / a day ago
|
|
48018
|
+
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
|
|
48019
|
+
|
|
48020
|
+
case 'dd':
|
|
48021
|
+
// 9 days / in 9 days / 9 days ago
|
|
48022
|
+
if (dual(number)) {
|
|
48023
|
+
return result + (withoutSuffix || isFuture ? 'dneva' : 'dnevoma');
|
|
48024
|
+
}
|
|
48025
|
+
|
|
48026
|
+
return result + (withoutSuffix || isFuture ? 'dni' : 'dnevi');
|
|
48027
|
+
|
|
48028
|
+
case 'M':
|
|
48029
|
+
// a month / in a month / a month ago
|
|
48030
|
+
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
|
|
48031
|
+
|
|
48032
|
+
case 'MM':
|
|
48033
|
+
// 9 months / in 9 months / 9 months ago
|
|
48034
|
+
if (dual(number)) {
|
|
48035
|
+
// 2 minutes / in 2 minutes
|
|
48036
|
+
return result + (withoutSuffix || isFuture ? 'meseca' : 'mesecema');
|
|
48037
|
+
}
|
|
48038
|
+
|
|
48039
|
+
if (threeFour(number)) {
|
|
48040
|
+
return result + (withoutSuffix || isFuture ? 'mesece' : 'meseci');
|
|
48041
|
+
}
|
|
48042
|
+
|
|
48043
|
+
return result + (withoutSuffix || isFuture ? 'mesecev' : 'meseci');
|
|
48044
|
+
|
|
48045
|
+
case 'y':
|
|
48046
|
+
// a year / in a year / a year ago
|
|
48047
|
+
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
|
|
48048
|
+
|
|
48049
|
+
case 'yy':
|
|
48050
|
+
// 9 years / in 9 years / 9 years ago
|
|
48051
|
+
if (dual(number)) {
|
|
48052
|
+
// 2 minutes / in 2 minutes
|
|
48053
|
+
return result + (withoutSuffix || isFuture ? 'leti' : 'letoma');
|
|
48054
|
+
}
|
|
48055
|
+
|
|
48056
|
+
if (threeFour(number)) {
|
|
48057
|
+
return result + (withoutSuffix || isFuture ? 'leta' : 'leti');
|
|
48058
|
+
}
|
|
48059
|
+
|
|
48060
|
+
return result + (withoutSuffix || isFuture ? 'let' : 'leti');
|
|
48061
|
+
}
|
|
48062
|
+
}
|
|
48063
|
+
/* eslint-enable */
|
|
48064
|
+
|
|
48065
|
+
|
|
47717
48066
|
var locale$9 = {
|
|
47718
48067
|
name: 'sl',
|
|
47719
48068
|
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
|
@@ -47731,22 +48080,23 @@ var locale$9 = {
|
|
|
47731
48080
|
L: 'DD.MM.YYYY',
|
|
47732
48081
|
LL: 'D. MMMM YYYY',
|
|
47733
48082
|
LLL: 'D. MMMM YYYY H:mm',
|
|
47734
|
-
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
|
48083
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
|
48084
|
+
l: 'D. M. YYYY'
|
|
47735
48085
|
},
|
|
47736
48086
|
relativeTime: {
|
|
47737
48087
|
future: 'čez %s',
|
|
47738
48088
|
past: 'pred %s',
|
|
47739
|
-
s:
|
|
47740
|
-
m:
|
|
47741
|
-
mm:
|
|
47742
|
-
h:
|
|
47743
|
-
hh:
|
|
47744
|
-
d:
|
|
47745
|
-
dd:
|
|
47746
|
-
M:
|
|
47747
|
-
MM:
|
|
47748
|
-
y:
|
|
47749
|
-
yy:
|
|
48089
|
+
s: translate,
|
|
48090
|
+
m: translate,
|
|
48091
|
+
mm: translate,
|
|
48092
|
+
h: translate,
|
|
48093
|
+
hh: translate,
|
|
48094
|
+
d: translate,
|
|
48095
|
+
dd: translate,
|
|
48096
|
+
M: translate,
|
|
48097
|
+
MM: translate,
|
|
48098
|
+
y: translate,
|
|
48099
|
+
yy: translate
|
|
47750
48100
|
}
|
|
47751
48101
|
};
|
|
47752
48102
|
dayjs.locale(locale$9, null, true);
|