@esri/calcite-components 1.7.0-next.1 → 1.7.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/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-c52afb13.js → p-05b5d8ef.js} +2 -2
- package/dist/calcite/{p-864a1151.entry.js → p-07a51cd2.entry.js} +2 -2
- package/dist/calcite/{p-e295f116.js → p-0bca01d9.js} +2 -2
- package/dist/calcite/{p-2f974696.entry.js → p-0f80a22f.entry.js} +2 -2
- package/dist/calcite/{p-6ad6fd05.js → p-0ff7d697.js} +1 -1
- package/dist/calcite/{p-9e16fdd9.js → p-108963df.js} +1 -1
- package/dist/calcite/{p-94c29059.js → p-1263786a.js} +2 -2
- package/dist/calcite/{p-0617ef2e.js → p-138b3927.js} +2 -2
- package/dist/calcite/{p-aa3edd9c.entry.js → p-13c8d32d.entry.js} +2 -2
- package/dist/calcite/{p-c5483999.js → p-14bdc4f6.js} +2 -2
- package/dist/calcite/{p-564f52f2.entry.js → p-15212102.entry.js} +2 -2
- package/dist/calcite/{p-4fc22bfe.entry.js → p-1623b94b.entry.js} +2 -2
- package/dist/calcite/{p-08fdfbc3.js → p-18233d12.js} +1 -1
- package/dist/calcite/{p-b405d46f.js → p-192a88a2.js} +2 -2
- package/dist/calcite/{p-39993eab.entry.js → p-1948f968.entry.js} +2 -2
- package/dist/calcite/{p-76c68997.entry.js → p-1b2f3d2b.entry.js} +2 -2
- package/dist/calcite/p-1be32323.entry.js +6 -0
- package/dist/calcite/{p-1e6bccdb.js → p-201779a8.js} +1 -1
- package/dist/calcite/{p-05f135b6.entry.js → p-206bb0f7.entry.js} +2 -2
- package/dist/calcite/{p-499ec0e2.js → p-21572218.js} +2 -2
- package/dist/calcite/{p-b563c2b7.js → p-21b350a3.js} +1 -1
- package/dist/calcite/{p-01e18e30.entry.js → p-22457d86.entry.js} +2 -2
- package/dist/calcite/{p-a4efea69.entry.js → p-2536212c.entry.js} +2 -2
- package/dist/calcite/{p-027d8d24.entry.js → p-26c81887.entry.js} +2 -2
- package/dist/calcite/{p-c1a2b858.js → p-274a6d34.js} +2 -2
- package/dist/calcite/p-2bd6b106.entry.js +6 -0
- package/dist/calcite/{p-2c8fb3c6.js → p-2f8e108f.js} +2 -2
- package/dist/calcite/{p-1a501d5a.entry.js → p-318716d6.entry.js} +2 -2
- package/dist/calcite/{p-25d0d9f0.js → p-3402cd3e.js} +2 -2
- package/dist/calcite/{p-0bf1965e.entry.js → p-35ad6d75.entry.js} +2 -2
- package/dist/calcite/{p-fa531620.js → p-39f2e30c.js} +2 -2
- package/dist/calcite/{p-5f7d9612.entry.js → p-3d4db3e9.entry.js} +2 -2
- package/dist/calcite/{p-98ca783b.js → p-3e08ad11.js} +2 -2
- package/dist/calcite/p-3ef96e12.entry.js +6 -0
- package/dist/calcite/p-42049338.entry.js +6 -0
- package/dist/calcite/{p-d66da5fc.js → p-42a4804f.js} +2 -2
- package/dist/calcite/p-43368b27.entry.js +6 -0
- package/dist/calcite/p-4455b287.js +6 -0
- package/dist/calcite/{p-9816964b.entry.js → p-4570feca.entry.js} +2 -2
- package/dist/calcite/p-45c4375f.entry.js +6 -0
- package/dist/calcite/p-461a4020.entry.js +6 -0
- package/dist/calcite/p-46238434.entry.js +6 -0
- package/dist/calcite/{p-b5dcca75.entry.js → p-46eebcec.entry.js} +2 -2
- package/dist/calcite/{p-815aba9a.js → p-473de56c.js} +2 -2
- package/dist/calcite/{p-df87a1ee.entry.js → p-480a4cad.entry.js} +2 -2
- package/dist/calcite/{p-2363de21.js → p-48fc2807.js} +2 -2
- package/dist/calcite/{p-8be53c0a.js → p-49000a20.js} +2 -2
- package/dist/calcite/{p-e9549c43.js → p-5382d62c.js} +1 -1
- package/dist/calcite/{p-bc0c6309.entry.js → p-53f86664.entry.js} +2 -2
- package/dist/calcite/{p-2e453e32.js → p-548f16ad.js} +1 -1
- package/dist/calcite/{p-7e1db1e0.js → p-54c67fe8.js} +2 -2
- package/dist/calcite/p-57eec79f.entry.js +6 -0
- package/dist/calcite/{p-1a829f83.entry.js → p-5a80ab44.entry.js} +2 -2
- package/dist/calcite/{p-0f0104ed.entry.js → p-5c57c916.entry.js} +2 -2
- package/dist/calcite/{p-19a239f5.js → p-5cf06f84.js} +2 -2
- package/dist/calcite/p-5d265ce7.js +6 -0
- package/dist/calcite/p-622af511.js +6 -0
- package/dist/calcite/{p-b9a6af16.entry.js → p-63a10aeb.entry.js} +2 -2
- package/dist/calcite/{p-e841b8de.js → p-6421c154.js} +2 -2
- package/dist/calcite/{p-a744c146.js → p-649ca5e6.js} +2 -2
- package/dist/calcite/{p-a6cd85bc.js → p-66537bf8.js} +2 -2
- package/dist/calcite/{p-45d64c3a.js → p-680a8086.js} +1 -1
- package/dist/calcite/{p-797299f7.entry.js → p-6a1ee36d.entry.js} +2 -2
- package/dist/calcite/{p-beda5a17.js → p-705eb548.js} +1 -1
- package/dist/calcite/{p-dcfb4b4f.js → p-70a1e0de.js} +2 -2
- package/dist/calcite/{p-337aa3da.entry.js → p-70e01fbe.entry.js} +2 -2
- package/dist/calcite/{p-30ed49c9.entry.js → p-7182de65.entry.js} +2 -2
- package/dist/calcite/p-730914c4.entry.js +6 -0
- package/dist/calcite/{p-06dacd86.js → p-73f3327e.js} +2 -2
- package/dist/calcite/{p-bc4d6c19.js → p-74a3a69d.js} +1 -1
- package/dist/calcite/{p-3dc10ee3.entry.js → p-76ef6cf0.entry.js} +2 -2
- package/dist/calcite/{p-1fdd975e.js → p-77748fb3.js} +1 -1
- package/dist/calcite/{p-e3777deb.js → p-78c5b148.js} +2 -2
- package/dist/calcite/{p-0fd24b92.js → p-79ae9dac.js} +2 -2
- package/dist/calcite/{p-d1da5baf.js → p-7ab5f2e7.js} +1 -1
- package/dist/calcite/{p-10a9ed6f.entry.js → p-7b08ca67.entry.js} +2 -2
- package/dist/calcite/{p-5ed30681.js → p-8178d068.js} +2 -2
- package/dist/calcite/p-82086edd.entry.js +6 -0
- package/dist/calcite/{p-58ba10d4.js → p-821dade8.js} +2 -2
- package/dist/calcite/{p-a9f32c9a.js → p-82f5deb7.js} +2 -2
- package/dist/calcite/{p-4d79e4bd.js → p-8b129b16.js} +2 -2
- package/dist/calcite/{p-8e1d793e.js → p-8b282a98.js} +2 -2
- package/dist/calcite/{p-e1b781c4.js → p-8b5648bd.js} +2 -2
- package/dist/calcite/{p-73df0c73.entry.js → p-8f0b9368.entry.js} +2 -2
- package/dist/calcite/{p-2935c6e3.js → p-8f7056fa.js} +2 -2
- package/dist/calcite/{p-ae344427.entry.js → p-9047b131.entry.js} +2 -2
- package/dist/calcite/{p-ca99419c.js → p-915a516d.js} +2 -2
- package/dist/calcite/{p-8769fade.js → p-925eaabd.js} +2 -2
- package/dist/calcite/{p-ba8fdc16.js → p-92756d78.js} +2 -2
- package/dist/calcite/{p-268b6dda.js → p-93017de4.js} +2 -2
- package/dist/calcite/{p-0f3d3543.js → p-9428482b.js} +2 -2
- package/dist/calcite/{p-e79f7624.entry.js → p-94831eee.entry.js} +2 -2
- package/dist/calcite/{p-ffd00167.entry.js → p-949d4a7b.entry.js} +2 -2
- package/dist/calcite/{p-37b4e104.entry.js → p-949dbfa9.entry.js} +2 -2
- package/dist/calcite/{p-4b6a3d84.js → p-98de7611.js} +2 -2
- package/dist/calcite/{p-d8af8497.js → p-99180b40.js} +2 -2
- package/dist/calcite/{p-ef28f094.entry.js → p-9a2b1c3a.entry.js} +2 -2
- package/dist/calcite/{p-9480fe3f.js → p-9b8ae774.js} +2 -2
- package/dist/calcite/{p-a9ae3be0.js → p-a528b5f2.js} +2 -2
- package/dist/calcite/{p-bd8f1cc0.entry.js → p-a59c6575.entry.js} +2 -2
- package/dist/calcite/{p-1f3eaf93.entry.js → p-a6d8ae55.entry.js} +2 -2
- package/dist/calcite/{p-95a5217a.js → p-a784cf5a.js} +2 -2
- package/dist/calcite/{p-57549029.js → p-aae8553a.js} +2 -2
- package/dist/calcite/{p-d40a1567.entry.js → p-ad36077d.entry.js} +2 -2
- package/dist/calcite/{p-d1bbd926.entry.js → p-b1a17154.entry.js} +2 -2
- package/dist/calcite/{p-d387ab78.js → p-b1ec7960.js} +1 -1
- package/dist/calcite/{p-6a3b9b99.js → p-b40ac1f0.js} +2 -2
- package/dist/calcite/{p-fa369a8d.js → p-bb4231a4.js} +2 -2
- package/dist/calcite/p-bca88945.entry.js +6 -0
- package/dist/calcite/p-c13cdd78.entry.js +6 -0
- package/dist/calcite/{p-caf68581.entry.js → p-c2511110.entry.js} +2 -2
- package/dist/calcite/{p-1dcce77c.entry.js → p-c2f85b40.entry.js} +2 -2
- package/dist/calcite/{p-0cc0ce6c.entry.js → p-c4066e0b.entry.js} +2 -2
- package/dist/calcite/{p-05bf2762.entry.js → p-c494a7bc.entry.js} +2 -2
- package/dist/calcite/{p-4b02e314.js → p-c78d439d.js} +2 -2
- package/dist/calcite/{p-da80bc8e.js → p-cb532ef3.js} +2 -2
- package/dist/calcite/p-cc51161d.js +6 -0
- package/dist/calcite/{p-39c1239f.js → p-cecd052f.js} +2 -2
- package/dist/calcite/{p-bad1bed2.entry.js → p-cfee63a9.entry.js} +2 -2
- package/dist/calcite/{p-5ccaab39.js → p-d046697d.js} +2 -2
- package/dist/calcite/{p-fb4a7d90.js → p-d0a43d25.js} +2 -2
- package/dist/calcite/{p-7f725ebc.js → p-d14470b6.js} +2 -2
- package/dist/calcite/{p-c51bfd8b.entry.js → p-d1b5951a.entry.js} +2 -2
- package/dist/calcite/{p-aca5edde.js → p-d1c6eaa5.js} +2 -2
- package/dist/calcite/p-d45a7b5d.entry.js +6 -0
- package/dist/calcite/{p-7be96b14.js → p-d525825a.js} +2 -2
- package/dist/calcite/{p-88d3bfd6.js → p-db00654a.js} +2 -2
- package/dist/calcite/p-dfaf9c3a.entry.js +6 -0
- package/dist/calcite/{p-318d475b.js → p-e2325e35.js} +2 -2
- package/dist/calcite/{p-ccc0c441.entry.js → p-e30e8596.entry.js} +2 -2
- package/dist/calcite/{p-0f0a08cd.entry.js → p-e432178c.entry.js} +2 -2
- package/dist/calcite/p-e4563c0f.js +6 -0
- package/dist/calcite/{p-e8a2f2b1.js → p-e5e54e13.js} +2 -2
- package/dist/calcite/{p-4c787639.entry.js → p-e683c339.entry.js} +2 -2
- package/dist/calcite/p-e8e8475c.entry.js +6 -0
- package/dist/calcite/{p-a22dcd94.js → p-eace7dc7.js} +2 -2
- package/dist/calcite/{p-52ec78b8.entry.js → p-eb9171dc.entry.js} +2 -2
- package/dist/calcite/{p-9bc6e682.js → p-ec3cdfa6.js} +1 -1
- package/dist/calcite/{p-85c52e32.entry.js → p-ec5535cc.entry.js} +2 -2
- package/dist/calcite/{p-b60c9d3c.js → p-ed101d67.js} +2 -2
- package/dist/calcite/{p-f96ca0e0.js → p-ed9088c3.js} +2 -2
- package/dist/calcite/p-ee1a3b69.entry.js +6 -0
- package/dist/calcite/{p-446030be.js → p-efb7605b.js} +2 -2
- package/dist/calcite/{p-4c8ab27d.entry.js → p-efc9968c.entry.js} +2 -2
- package/dist/calcite/{p-5034fe06.js → p-f2610828.js} +2 -2
- package/dist/calcite/{p-c47d99db.entry.js → p-f3f93e40.entry.js} +2 -2
- package/dist/calcite/{p-5eaf5010.entry.js → p-f68e1994.entry.js} +2 -2
- package/dist/calcite/{p-98d74b37.js → p-f6992b02.js} +2 -2
- package/dist/calcite/p-fb2641f9.entry.js +6 -0
- package/dist/calcite/{p-26e614b7.js → p-fb9036d4.js} +2 -2
- package/dist/calcite/{p-f2ede9d6.js → p-fcc78b1b.js} +2 -2
- package/dist/calcite/{p-37f55b39.js → p-fcd09e69.js} +3 -3
- package/dist/cjs/{ExpandToggle-8265a6df.js → ExpandToggle-08f5bea4.js} +6 -6
- package/dist/cjs/{FloatingArrow-b5ca6077.js → FloatingArrow-529e5594.js} +2 -2
- package/dist/cjs/{Heading-022a7a25.js → Heading-a6233bf8.js} +2 -2
- package/dist/cjs/{app-globals-33eb529a.js → app-globals-42f9897b.js} +2 -2
- package/dist/cjs/{ar-49434d95.js → ar-21f5845c.js} +15 -15
- package/dist/cjs/{array-5848270e.js → array-a66dd90f.js} +1 -1
- package/dist/cjs/{bg-5d252039.js → bg-bd782895.js} +15 -15
- package/dist/cjs/{bs-9db17f5a.js → bs-a7ffa9ea.js} +15 -15
- package/dist/cjs/{ca-a662d810.js → ca-54321f5a.js} +15 -15
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +19 -18
- package/dist/cjs/calcite-action-group.cjs.entry.js +16 -15
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +18 -17
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +14 -14
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
- 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 +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +15 -15
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +23 -23
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +51 -39
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +57 -53
- 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 +14 -14
- package/dist/cjs/calcite-flow.cjs.entry.js +11 -5
- package/dist/cjs/calcite-graph_2.cjs.entry.js +26 -26
- package/dist/cjs/calcite-handle.cjs.entry.js +11 -11
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +25 -25
- 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-78addba7.js → calcite-input-time-picker.calcite-time-picker-d6b09913.js} +67 -67
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input.cjs.entry.js +15 -15
- 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 +24 -20
- package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
- package/dist/cjs/calcite-menu_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +62 -31
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +13 -13
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +19 -19
- 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 +70 -77
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +49 -22
- package/dist/cjs/calcite-sheet.cjs.entry.js +229 -0
- package/dist/cjs/calcite-shell_3.cjs.entry.js +27 -14
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- 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 +11 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tooltip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tree_2.cjs.entry.js +56 -22
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-92ae3728.js → conditionalSlot-a368502c.js} +3 -3
- package/dist/cjs/{cs-7e9b3c2f.js → cs-6db148f5.js} +15 -15
- package/dist/cjs/{da-8335577e.js → da-c2215024.js} +15 -15
- package/dist/cjs/{de-at-48c4256e.js → de-at-398fb803.js} +15 -15
- package/dist/cjs/{de-ch-41c43781.js → de-ch-c55d6d0d.js} +15 -15
- package/dist/cjs/{de-425433c1.js → de-f1e7fb2d.js} +15 -15
- package/dist/cjs/{debounce-7d77cb87.js → debounce-d1b70c5f.js} +1 -1
- package/dist/cjs/{dom-7487acd7.js → dom-585553d3.js} +3 -3
- package/dist/cjs/{el-10c44be5.js → el-91dab0fd.js} +15 -15
- package/dist/cjs/{en-au-226cb400.js → en-au-549a7d36.js} +15 -15
- package/dist/cjs/{en-ca-1e9edcd9.js → en-ca-24cfe7db.js} +15 -15
- package/dist/cjs/{en-gb-dffa7b85.js → en-gb-69661f5d.js} +15 -15
- package/dist/cjs/{es-aafb79e8.js → es-cd492681.js} +15 -15
- package/dist/cjs/{es-mx-44e3e2a9.js → es-mx-37eb4a8c.js} +15 -15
- package/dist/cjs/{et-e0f4c3ca.js → et-7e5991b8.js} +15 -15
- package/dist/cjs/{fi-dfbaec2f.js → fi-2c462572.js} +15 -15
- package/dist/cjs/{filter-102072d8.js → filter-e5431e50.js} +2 -2
- package/dist/cjs/{floating-ui-8799f01a.js → floating-ui-1c39ee8f.js} +3 -3
- package/dist/cjs/{focusTrapComponent-328576cf.js → focusTrapComponent-b91cf3a6.js} +2 -2
- package/dist/cjs/{form-509b1671.js → form-bac3d43f.js} +3 -3
- package/dist/cjs/{fr-a86ec363.js → fr-230ca1fc.js} +15 -15
- package/dist/cjs/{fr-ch-ed4c9432.js → fr-ch-b9579bf4.js} +15 -15
- package/dist/cjs/{guid-bc4ef7e8.js → guid-2b65834e.js} +1 -1
- package/dist/cjs/{he-e893a27b.js → he-7b447ded.js} +15 -15
- package/dist/cjs/{hi-ed4d25ca.js → hi-0760bc38.js} +15 -15
- package/dist/cjs/{hr-90d9e1c6.js → hr-30d2c331.js} +15 -15
- package/dist/cjs/{hu-a6c55f07.js → hu-91ffa50c.js} +15 -15
- package/dist/cjs/{id-2c74ab10.js → id-527aaa01.js} +15 -15
- package/dist/cjs/{index-142998d3.js → index-35c40ad8.js} +5 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-3295de88.js → interactive-22675a1d.js} +1 -1
- package/dist/cjs/{it-ch-a4263ead.js → it-ch-97467900.js} +15 -15
- package/dist/cjs/{it-33905686.js → it-fa99482e.js} +15 -15
- package/dist/cjs/{ja-f27b3274.js → ja-e80ce1aa.js} +15 -15
- package/dist/cjs/{key-dc499418.js → key-8ce2997b.js} +1 -1
- package/dist/cjs/{ko-3b5b39ca.js → ko-dd620bf4.js} +15 -15
- package/dist/cjs/{label-39f9c585.js → label-b9036973.js} +2 -2
- package/dist/cjs/{loadable-cb368fce.js → loadable-c43556a9.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-99d6b752.js → locale-b814f3ae.js} +4 -4
- package/dist/cjs/{lt-8b22e646.js → lt-ae03491a.js} +15 -15
- package/dist/cjs/{lv-9b9b8357.js → lv-0e986e56.js} +15 -15
- package/dist/cjs/{math-21614d14.js → math-06cb1dc1.js} +1 -1
- package/dist/cjs/{mk-ae45b7cb.js → mk-ebe45ca4.js} +15 -15
- package/dist/cjs/{nb-538c6d63.js → nb-eb0f5bf3.js} +15 -15
- package/dist/cjs/{nl-0e7d71bd.js → nl-0f97e7d7.js} +15 -15
- package/dist/cjs/{observers-f62a2e0a.js → observers-8f18d25d.js} +1 -1
- package/dist/cjs/{openCloseComponent-12d9e8d8.js → openCloseComponent-148a2fc7.js} +2 -2
- package/dist/cjs/{pl-ae3d37d9.js → pl-3e757373.js} +15 -15
- package/dist/cjs/{pt-e1224383.js → pt-72156ecc.js} +15 -15
- package/dist/cjs/{pt-br-d6483c61.js → pt-br-d36847c9.js} +15 -15
- package/dist/cjs/{resources-73b59433.js → resources-12e884d8.js} +1 -1
- package/dist/cjs/{resources-5c003e2b.js → resources-248b08ff.js} +5 -1
- package/dist/cjs/{resources-bb31ff4c.js → resources-3e9635bf.js} +7 -7
- package/dist/cjs/{resources-d7dcc7aa.js → resources-6c4ea6b2.js} +1 -1
- package/dist/cjs/{resources-932fa5dc.js → resources-90de1a6e.js} +1 -1
- package/dist/cjs/{resources-ab8cb2da.js → resources-aa05478e.js} +1 -1
- package/dist/cjs/{resources-118dc727.js → resources-cd9fab35.js} +1 -1
- package/dist/cjs/{ro-6f49a712.js → ro-2293f1c5.js} +15 -15
- package/dist/cjs/{ru-e535cc78.js → ru-d18bd916.js} +15 -15
- package/dist/cjs/{sk-4e280c98.js → sk-f193b625.js} +15 -15
- package/dist/cjs/{sl-ac107091.js → sl-8497afa1.js} +15 -15
- package/dist/cjs/{sortableComponent-acf1b739.js → sortableComponent-6f5e97a3.js} +2 -2
- package/dist/cjs/{sr-f78dcd56.js → sr-82ad493a.js} +15 -15
- package/dist/cjs/{sv-6b758740.js → sv-6464c16e.js} +15 -15
- package/dist/cjs/{t9n-42d79fa0.js → t9n-c43a36c3.js} +3 -3
- package/dist/cjs/{th-0ee86bbe.js → th-ee1577b8.js} +15 -15
- package/dist/cjs/{throttle-792f064c.js → throttle-a69e9999.js} +2 -2
- package/dist/cjs/{tr-8bd79461.js → tr-a0153aa7.js} +15 -15
- package/dist/cjs/{uk-6d6ea7ab.js → uk-f8f27197.js} +15 -15
- package/dist/cjs/{utils-246589f7.js → utils-37b7912b.js} +3 -3
- package/dist/cjs/{utils-93f5e22a.js → utils-ab482d60.js} +1 -1
- package/dist/cjs/{vi-1b9e468d.js → vi-0a8ac901.js} +15 -15
- package/dist/cjs/{zh-cn-b1d6e1ad.js → zh-cn-0d77d480.js} +15 -15
- package/dist/cjs/{zh-hk-3ac0265c.js → zh-hk-efab323e.js} +15 -15
- package/dist/cjs/{zh-tw-323d6eb0.js → zh-tw-1c40b32b.js} +15 -15
- package/dist/collection/collection-manifest.json +6 -0
- 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 +2 -2
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +22 -4
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +11 -1
- package/dist/collection/components/action-group/action-group.js +22 -4
- package/dist/collection/components/action-group/resources.js +4 -1
- package/dist/collection/components/action-menu/action-menu.js +2 -2
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +22 -4
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +3 -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 +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +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.js +2 -2
- package/dist/collection/components/chip/chip.js +3 -3
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.js +8 -8
- package/dist/collection/components/color-picker/color-picker.js +7 -7
- 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 +3 -3
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.css +8 -4
- package/dist/collection/components/combobox/combobox.js +31 -17
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +4 -1
- package/dist/collection/components/combobox-item/combobox-item.js +63 -8
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +28 -4
- 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 +2 -2
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +2 -2
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +36 -28
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +46 -29
- package/dist/collection/components/dropdown-item/dropdown-item.js +63 -12
- package/dist/collection/components/dropdown-item/resources.js +2 -4
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +2 -2
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +8 -2
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +3 -3
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +4 -4
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +8 -8
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +2 -2
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +2 -2
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +4 -4
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +2 -2
- 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 +2 -2
- package/dist/collection/components/list/list.js +11 -4
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- 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.css +28 -26
- 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 +3 -3
- 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.css +5 -5
- package/dist/collection/components/modal/modal.js +74 -24
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +2 -2
- 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 +2 -2
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +4 -4
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -3
- 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 +2 -2
- 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 +4 -4
- 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 +2 -2
- 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.css +1 -2
- package/dist/collection/components/rating/rating.js +59 -67
- 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 +55 -27
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +92 -6
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/sheet/interfaces.js +1 -0
- package/dist/collection/components/{dropdown-group → sheet}/resources.js +6 -4
- package/dist/collection/components/sheet/sheet.css +248 -0
- package/dist/collection/components/sheet/sheet.js +582 -0
- package/dist/collection/components/shell/resources.js +2 -1
- package/dist/collection/components/shell/shell.js +17 -3
- 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 +3 -3
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +14 -14
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.css +6 -3
- 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 +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +4 -4
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +3 -3
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +3 -3
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +21 -12
- 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.css +7 -5
- package/dist/collection/components/tree-item/tree-item.js +32 -5
- 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 +2 -2
- 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/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +9 -4
- package/dist/components/action-menu.js +3 -3
- package/dist/components/action.js +2 -2
- package/dist/components/ar.js +1 -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 +2 -2
- 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 +6 -4
- 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 +6 -4
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +3 -3
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +8 -8
- 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 +7 -7
- package/dist/components/calcite-combobox-item-group.js +4 -5
- 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 +22 -17
- package/dist/components/calcite-dropdown-item.js +11 -27
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +3 -3
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +3 -3
- package/dist/components/calcite-flow.js +8 -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 +4 -4
- package/dist/components/calcite-input-date-picker.js +8 -8
- 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 +4 -4
- package/dist/components/calcite-input-time-zone.js +2 -2
- 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 +5 -5
- package/dist/components/calcite-list.js +7 -3
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +3 -3
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-modal.js +52 -21
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +2 -2
- package/dist/components/calcite-notice.js +2 -2
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +2 -2
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +2 -2
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +3 -3
- package/dist/components/calcite-rating.js +59 -67
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +15 -7
- package/dist/components/calcite-segmented-control.js +33 -11
- package/dist/components/calcite-select.js +3 -3
- package/dist/components/calcite-sheet.d.ts +11 -0
- package/dist/components/calcite-sheet.js +269 -0
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +3 -3
- package/dist/components/calcite-shell.js +17 -3
- package/dist/components/calcite-slider.js +15 -15
- package/dist/components/calcite-sortable-list.js +2 -2
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +3 -3
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +3 -3
- package/dist/components/calcite-tree-item.js +31 -6
- package/dist/components/calcite-tree.js +22 -13
- package/dist/components/calcite-value-list-item.js +3 -3
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +3 -3
- package/dist/components/color-picker-hex-input.js +4 -4
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +11 -9
- package/dist/components/combobox.js +26 -16
- 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 +2 -2
- package/dist/components/date-picker-month.js +2 -2
- 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 +2 -2
- package/dist/components/dropdown.js +14 -8
- 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 +2 -2
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +2 -2
- 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 +2 -2
- 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.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +2 -2
- package/dist/components/input-text.js +2 -2
- package/dist/components/input.js +3 -3
- 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 +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +3 -3
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +2 -2
- 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 +2 -2
- 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/panel.js +4 -4
- package/dist/components/pick-list-item.js +3 -3
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +4 -4
- 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 +12 -12
- package/dist/components/resources3.js +10 -6
- package/dist/components/resources4.js +15 -0
- 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 +6 -6
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- 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 +3 -3
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +4 -4
- package/dist/components/tab.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 +5 -5
- 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 +5 -2
- 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-fce2a522.js → ExpandToggle-059d39d5.js} +6 -6
- package/dist/esm/{FloatingArrow-d22a3d68.js → FloatingArrow-1a3a8fb1.js} +2 -2
- package/dist/esm/{Heading-322edf26.js → Heading-2c064f6d.js} +2 -2
- package/dist/esm/{app-globals-dd93423e.js → app-globals-ac50af69.js} +2 -2
- package/dist/esm/{ar-4fb21f4a.js → ar-50ee327c.js} +15 -15
- package/dist/esm/{array-e7542aea.js → array-9b0e7e30.js} +1 -1
- package/dist/esm/{bg-07ee5c5e.js → bg-24bfe4ba.js} +15 -15
- package/dist/esm/{bs-906447a4.js → bs-f94bc355.js} +15 -15
- package/dist/esm/{ca-9359e6a6.js → ca-54b034e2.js} +15 -15
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +19 -18
- package/dist/esm/calcite-action-group.entry.js +16 -15
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +18 -17
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +14 -14
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +13 -13
- 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 +11 -11
- package/dist/esm/calcite-chip-group.entry.js +15 -15
- package/dist/esm/calcite-chip.entry.js +14 -14
- package/dist/esm/calcite-color-picker_3.entry.js +23 -23
- package/dist/esm/calcite-combobox_3.entry.js +51 -39
- package/dist/esm/calcite-date-picker_4.entry.js +15 -15
- package/dist/esm/calcite-dropdown_3.entry.js +57 -53
- 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 +14 -14
- package/dist/esm/calcite-flow.entry.js +11 -5
- package/dist/esm/calcite-graph_2.entry.js +26 -26
- package/dist/esm/calcite-handle.entry.js +11 -11
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +15 -15
- package/dist/esm/calcite-input-date-picker.entry.js +25 -25
- 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-69d8a448.js → calcite-input-time-picker.calcite-time-picker-c981f064.js} +67 -67
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +14 -14
- package/dist/esm/calcite-input.entry.js +15 -15
- 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 +24 -20
- package/dist/esm/calcite-loader.entry.js +4 -4
- package/dist/esm/calcite-menu_2.entry.js +12 -12
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +62 -31
- package/dist/esm/calcite-navigation_3.entry.js +7 -7
- package/dist/esm/calcite-notice.entry.js +13 -13
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +17 -17
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +19 -19
- 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 +70 -77
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +49 -22
- package/dist/esm/calcite-sheet.entry.js +225 -0
- package/dist/esm/calcite-shell_3.entry.js +27 -14
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- 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 +11 -11
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +15 -15
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +12 -12
- package/dist/esm/calcite-tooltip.entry.js +11 -11
- package/dist/esm/calcite-tree_2.entry.js +56 -22
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-5cc4cc84.js → conditionalSlot-9321fd93.js} +3 -3
- package/dist/esm/{cs-0c66a269.js → cs-20be1604.js} +15 -15
- package/dist/esm/{da-c29a773f.js → da-56577398.js} +15 -15
- package/dist/esm/{de-13162f74.js → de-24bb2d4f.js} +15 -15
- package/dist/esm/{de-at-20abace8.js → de-at-d3af6765.js} +15 -15
- package/dist/esm/{de-ch-23dd6b50.js → de-ch-3c70564e.js} +15 -15
- package/dist/esm/{debounce-95474f0d.js → debounce-0b946ab7.js} +1 -1
- package/dist/esm/{dom-257fb429.js → dom-3c1c1e5f.js} +3 -3
- package/dist/esm/{el-c4f2dbc9.js → el-5af27ffe.js} +15 -15
- package/dist/esm/{en-au-5de53e98.js → en-au-2aaceb59.js} +15 -15
- package/dist/esm/{en-ca-dfc67c86.js → en-ca-4d0e10e0.js} +15 -15
- package/dist/esm/{en-gb-c6dd41e2.js → en-gb-d8d50451.js} +15 -15
- package/dist/esm/{es-64bf9b9b.js → es-2f42a143.js} +15 -15
- package/dist/esm/{es-mx-a8425199.js → es-mx-98372eb6.js} +15 -15
- package/dist/esm/{et-ccbdf960.js → et-73de5a61.js} +15 -15
- package/dist/esm/{fi-34eb9c8c.js → fi-93da7e0e.js} +15 -15
- package/dist/esm/{filter-96875580.js → filter-7d9b809b.js} +2 -2
- package/dist/esm/{floating-ui-39a53610.js → floating-ui-5f3cd3ba.js} +3 -3
- package/dist/esm/{focusTrapComponent-9889bfeb.js → focusTrapComponent-0b9b3079.js} +2 -2
- package/dist/esm/{form-f849dd0a.js → form-0f5c0cd1.js} +3 -3
- package/dist/esm/{fr-cd866644.js → fr-0ff27a9a.js} +15 -15
- package/dist/esm/{fr-ch-c1e6425a.js → fr-ch-fd5d7940.js} +15 -15
- package/dist/esm/{guid-4b604798.js → guid-fb10b804.js} +1 -1
- package/dist/esm/{he-d5a944c0.js → he-5de7061d.js} +15 -15
- package/dist/esm/{hi-d0c824aa.js → hi-c5a4ec29.js} +15 -15
- package/dist/esm/{hr-9ae17a89.js → hr-833b9a94.js} +15 -15
- package/dist/esm/{hu-9b60c3e2.js → hu-37defa54.js} +15 -15
- package/dist/esm/{id-93300f8e.js → id-54c83801.js} +15 -15
- package/dist/esm/{index-12f96d86.js → index-b49f8c8f.js} +5 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-999431b3.js → interactive-ebd6da81.js} +1 -1
- package/dist/esm/{it-063dace2.js → it-28faa4a1.js} +15 -15
- package/dist/esm/{it-ch-7a2acdc9.js → it-ch-91a6bb50.js} +15 -15
- package/dist/esm/{ja-180fb96b.js → ja-a55c6743.js} +15 -15
- package/dist/esm/{key-c4381172.js → key-1c33098e.js} +1 -1
- package/dist/esm/{ko-14d3c687.js → ko-f574d687.js} +15 -15
- package/dist/esm/{label-6c5eadac.js → label-0abb33f9.js} +2 -2
- package/dist/esm/{loadable-871af43e.js → loadable-a2697887.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-5cade090.js → locale-74b3ae87.js} +4 -4
- package/dist/esm/{lt-e6b3fe40.js → lt-8f9a832d.js} +15 -15
- package/dist/esm/{lv-fc4ec840.js → lv-962e1585.js} +15 -15
- package/dist/esm/{math-22a2f19c.js → math-c96e1ceb.js} +1 -1
- package/dist/esm/{mk-dd0c48fd.js → mk-fc4c1794.js} +15 -15
- package/dist/esm/{nb-2e35809b.js → nb-14eb3eee.js} +15 -15
- package/dist/esm/{nl-e5a1400e.js → nl-71fdd384.js} +15 -15
- package/dist/esm/{observers-39183e56.js → observers-2af41f0e.js} +1 -1
- package/dist/esm/{openCloseComponent-3f0f20c5.js → openCloseComponent-4e496b62.js} +2 -2
- package/dist/esm/{pl-dea1e606.js → pl-b50ad77c.js} +15 -15
- package/dist/esm/{pt-br-2df4a571.js → pt-br-c2e0ceae.js} +15 -15
- package/dist/esm/{pt-80735ebf.js → pt-cac18c20.js} +15 -15
- package/dist/esm/{resources-084474bf.js → resources-437af614.js} +1 -1
- package/dist/esm/{resources-eb94cf37.js → resources-8a663088.js} +7 -7
- package/dist/esm/{resources-0138967d.js → resources-a37b5c9b.js} +1 -1
- package/dist/esm/{resources-91af063c.js → resources-bdd6a750.js} +5 -2
- package/dist/esm/{resources-4fafdc57.js → resources-bf522ed4.js} +1 -1
- package/dist/esm/{resources-3387c71e.js → resources-c16cf750.js} +1 -1
- package/dist/esm/{resources-a72ddc26.js → resources-d4c63f3d.js} +1 -1
- package/dist/esm/{ro-807a4190.js → ro-1777d3ae.js} +15 -15
- package/dist/esm/{ru-548b0f95.js → ru-538e52af.js} +15 -15
- package/dist/esm/{sk-8883423d.js → sk-40cc7bc1.js} +15 -15
- package/dist/esm/{sl-ee0e4fd3.js → sl-06d0b428.js} +15 -15
- package/dist/esm/{sortableComponent-971c73fe.js → sortableComponent-e270e658.js} +2 -2
- package/dist/esm/{sr-b530aa38.js → sr-0c6c452d.js} +15 -15
- package/dist/esm/{sv-417d98fa.js → sv-8d1363ed.js} +15 -15
- package/dist/esm/{t9n-fda07909.js → t9n-cac6fb96.js} +3 -3
- package/dist/esm/{th-9c8b350c.js → th-1b41dbba.js} +15 -15
- package/dist/esm/{throttle-f29720f7.js → throttle-38b6f9d9.js} +2 -2
- package/dist/esm/{tr-554bf5c6.js → tr-2d15fc86.js} +15 -15
- package/dist/esm/{uk-92fec74c.js → uk-282cb7ef.js} +15 -15
- package/dist/esm/{utils-95483418.js → utils-2ba50a2f.js} +1 -1
- package/dist/esm/{utils-bf7d553a.js → utils-ec270bce.js} +3 -3
- package/dist/esm/{vi-fd5b52e6.js → vi-e3ae81ae.js} +15 -15
- package/dist/esm/{zh-cn-32301258.js → zh-cn-0b9d1ccf.js} +15 -15
- package/dist/esm/{zh-hk-ee992b29.js → zh-hk-bdc295f3.js} +15 -15
- package/dist/esm/{zh-tw-a9f0360a.js → zh-tw-865bb2a0.js} +15 -15
- package/dist/extras/docs-json.json +422 -36
- package/dist/extras/vscode-data.json +106 -17
- 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-bar/action-bar.d.ts +4 -0
- package/dist/types/components/action-group/action-group.d.ts +4 -0
- package/dist/types/components/action-group/resources.d.ts +3 -0
- package/dist/types/components/action-pad/action-pad.d.ts +4 -0
- package/dist/types/components/combobox/combobox.d.ts +8 -6
- package/dist/types/components/combobox/utils.d.ts +2 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +17 -4
- package/dist/types/components/combobox-item-group/combobox-item-group.d.ts +6 -1
- package/dist/types/components/dropdown/dropdown.d.ts +3 -4
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +13 -7
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +16 -5
- package/dist/types/components/dropdown-item/resources.d.ts +1 -3
- package/dist/types/components/list/list.d.ts +5 -1
- package/dist/types/components/modal/modal.d.ts +10 -9
- package/dist/types/components/rating/interfaces.d.ts +1 -2
- package/dist/types/components/rating/rating.d.ts +10 -7
- package/dist/types/components/segmented-control/segmented-control.d.ts +6 -2
- package/dist/types/components/segmented-control-item/segmented-control-item.d.ts +19 -0
- package/dist/types/components/sheet/interfaces.d.ts +1 -0
- package/dist/types/components/sheet/resources.d.ts +7 -0
- package/dist/types/components/sheet/sheet.d.ts +100 -0
- package/dist/types/components/shell/resources.d.ts +1 -0
- package/dist/types/components/shell/shell.d.ts +4 -0
- package/dist/types/components/tree-item/interfaces.d.ts +5 -0
- package/dist/types/components/tree-item/tree-item.d.ts +5 -3
- package/dist/types/components.d.ts +210 -18
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +898 -524
- package/package.json +2 -2
- package/dist/calcite/p-11498a8e.entry.js +0 -6
- package/dist/calcite/p-16c6fee5.entry.js +0 -6
- package/dist/calcite/p-2f863c7c.entry.js +0 -6
- package/dist/calcite/p-5779712d.entry.js +0 -6
- package/dist/calcite/p-5cc00f13.entry.js +0 -6
- package/dist/calcite/p-7e5aebd4.js +0 -6
- package/dist/calcite/p-8421e849.js +0 -6
- package/dist/calcite/p-8f3f29de.js +0 -6
- package/dist/calcite/p-955131d9.js +0 -6
- package/dist/calcite/p-968eafc8.entry.js +0 -6
- package/dist/calcite/p-9dc8323d.entry.js +0 -6
- package/dist/calcite/p-a2399bc4.entry.js +0 -6
- package/dist/calcite/p-b3414fbe.entry.js +0 -6
- package/dist/calcite/p-bbf680d8.entry.js +0 -6
- package/dist/calcite/p-bca1f78c.entry.js +0 -6
- package/dist/calcite/p-bd6e3e4b.entry.js +0 -6
- package/dist/calcite/p-bf441fe1.js +0 -6
- package/dist/calcite/p-e8868ce7.entry.js +0 -6
- package/dist/calcite/p-ef223b87.entry.js +0 -6
- package/dist/calcite/p-f105d1cd.entry.js +0 -6
- package/dist/calcite/p-f26d9ca9.entry.js +0 -6
- package/dist/calcite/p-fdc98e4c.entry.js +0 -6
- package/dist/types/components/dropdown-group/resources.d.ts +0 -5
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.7.0-next.
|
|
4
|
+
* v1.7.0-next.11
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -7022,7 +7022,7 @@ const SLOTS$y = {
|
|
|
7022
7022
|
actionsStart: "actions-start",
|
|
7023
7023
|
actionsEnd: "actions-end",
|
|
7024
7024
|
};
|
|
7025
|
-
const CSS$
|
|
7025
|
+
const CSS$18 = {
|
|
7026
7026
|
icon: "icon",
|
|
7027
7027
|
header: "header",
|
|
7028
7028
|
headerContent: "header-content",
|
|
@@ -7086,28 +7086,28 @@ class AccordionItem {
|
|
|
7086
7086
|
// --------------------------------------------------------------------------
|
|
7087
7087
|
renderActionsStart() {
|
|
7088
7088
|
const { el } = this;
|
|
7089
|
-
return getSlotted(el, SLOTS$y.actionsStart) ? (hAsync("div", { class: CSS$
|
|
7089
|
+
return getSlotted(el, SLOTS$y.actionsStart) ? (hAsync("div", { class: CSS$18.actionsStart }, hAsync("slot", { name: SLOTS$y.actionsStart }))) : null;
|
|
7090
7090
|
}
|
|
7091
7091
|
renderActionsEnd() {
|
|
7092
7092
|
const { el } = this;
|
|
7093
|
-
return getSlotted(el, SLOTS$y.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
7093
|
+
return getSlotted(el, SLOTS$y.actionsEnd) ? (hAsync("div", { class: CSS$18.actionsEnd }, hAsync("slot", { name: SLOTS$y.actionsEnd }))) : null;
|
|
7094
7094
|
}
|
|
7095
7095
|
render() {
|
|
7096
7096
|
const { iconFlipRtl } = this;
|
|
7097
7097
|
const dir = getElementDir(this.el);
|
|
7098
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7099
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7098
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$18.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7099
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$18.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7100
7100
|
const { description } = this;
|
|
7101
7101
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7102
7102
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7103
7103
|
[`icon-type--${this.iconType}`]: true,
|
|
7104
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7104
|
+
} }, hAsync("div", { class: { [CSS$18.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$18.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$18.headerContainer }, iconStartEl, hAsync("div", { class: CSS$18.headerText }, hAsync("span", { class: CSS$18.heading }, this.heading), description ? hAsync("span", { class: CSS$18.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$18.expandIcon, icon: this.iconType === "chevron"
|
|
7105
7105
|
? "chevronDown"
|
|
7106
7106
|
: this.iconType === "caret"
|
|
7107
7107
|
? "caretDown"
|
|
7108
7108
|
: this.expanded
|
|
7109
7109
|
? "minus"
|
|
7110
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
7110
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$18.content }, hAsync("slot", null)))));
|
|
7111
7111
|
}
|
|
7112
7112
|
//--------------------------------------------------------------------------
|
|
7113
7113
|
//
|
|
@@ -8027,7 +8027,7 @@ function defaultOnMessagesChange() {
|
|
|
8027
8027
|
mergeMessages(this);
|
|
8028
8028
|
}
|
|
8029
8029
|
|
|
8030
|
-
const CSS$
|
|
8030
|
+
const CSS$17 = {
|
|
8031
8031
|
button: "button",
|
|
8032
8032
|
buttonTextVisible: "button--text-visible",
|
|
8033
8033
|
buttonCompact: "button--compact",
|
|
@@ -8138,14 +8138,14 @@ class Action {
|
|
|
8138
8138
|
renderTextContainer() {
|
|
8139
8139
|
const { text, textEnabled } = this;
|
|
8140
8140
|
const textContainerClasses = {
|
|
8141
|
-
[CSS$
|
|
8142
|
-
[CSS$
|
|
8141
|
+
[CSS$17.textContainer]: true,
|
|
8142
|
+
[CSS$17.textContainerVisible]: textEnabled,
|
|
8143
8143
|
};
|
|
8144
8144
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8145
8145
|
}
|
|
8146
8146
|
renderIndicatorText() {
|
|
8147
8147
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8148
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8148
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$17.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8149
8149
|
}
|
|
8150
8150
|
renderIconContainer() {
|
|
8151
8151
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -8156,21 +8156,21 @@ class Action {
|
|
|
8156
8156
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8157
8157
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8158
8158
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8159
|
-
[CSS$
|
|
8160
|
-
[CSS$
|
|
8159
|
+
[CSS$17.slotContainer]: true,
|
|
8160
|
+
[CSS$17.slotContainerHidden]: loading,
|
|
8161
8161
|
} }, hAsync("slot", null)));
|
|
8162
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8162
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$17.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8163
8163
|
}
|
|
8164
8164
|
render() {
|
|
8165
8165
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8166
8166
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8167
8167
|
const buttonClasses = {
|
|
8168
|
-
[CSS$
|
|
8169
|
-
[CSS$
|
|
8170
|
-
[CSS$
|
|
8168
|
+
[CSS$17.button]: true,
|
|
8169
|
+
[CSS$17.buttonTextVisible]: textEnabled,
|
|
8170
|
+
[CSS$17.buttonCompact]: compact,
|
|
8171
8171
|
};
|
|
8172
8172
|
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,
|
|
8173
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
8173
|
+
// 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)
|
|
8174
8174
|
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$x.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8175
8175
|
}
|
|
8176
8176
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9479,6 +9479,9 @@ const SLOTS$w = {
|
|
|
9479
9479
|
const ICONS$j = {
|
|
9480
9480
|
menu: "ellipsis",
|
|
9481
9481
|
};
|
|
9482
|
+
const CSS$16 = {
|
|
9483
|
+
container: "container",
|
|
9484
|
+
};
|
|
9482
9485
|
|
|
9483
9486
|
const CSS$15 = {
|
|
9484
9487
|
menu: "menu",
|
|
@@ -9575,7 +9578,7 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9575
9578
|
const expandIcon = end ? icons[1] : icons[0];
|
|
9576
9579
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
9577
9580
|
const actionNode = (hAsync("calcite-action", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, scale: scale, text: text, textEnabled: expanded, title: !expanded && !tooltip ? text : null,
|
|
9578
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
9581
|
+
// 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)
|
|
9579
9582
|
ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }) }));
|
|
9580
9583
|
return actionNode;
|
|
9581
9584
|
};
|
|
@@ -9676,6 +9679,7 @@ class ActionBar {
|
|
|
9676
9679
|
const tooltips = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-tooltip"));
|
|
9677
9680
|
this.expandTooltip = tooltips[0];
|
|
9678
9681
|
};
|
|
9682
|
+
this.actionsEndGroupLabel = undefined;
|
|
9679
9683
|
this.expandDisabled = false;
|
|
9680
9684
|
this.expanded = false;
|
|
9681
9685
|
this.layout = "vertical";
|
|
@@ -9778,11 +9782,11 @@ class ActionBar {
|
|
|
9778
9782
|
//
|
|
9779
9783
|
// --------------------------------------------------------------------------
|
|
9780
9784
|
renderBottomActionGroup() {
|
|
9781
|
-
const { expanded, expandDisabled, el, position, toggleExpand, scale, layout, messages } = this;
|
|
9785
|
+
const { expanded, expandDisabled, el, position, toggleExpand, scale, layout, messages, actionsEndGroupLabel, } = this;
|
|
9782
9786
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
9783
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
9787
|
+
// 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)
|
|
9784
9788
|
ref: this.setExpandToggleRef })) : null;
|
|
9785
|
-
return (hAsync("calcite-action-group", { class: CSS$14.actionGroupEnd, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$u.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9789
|
+
return (hAsync("calcite-action-group", { class: CSS$14.actionGroupEnd, label: actionsEndGroupLabel, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$u.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9786
9790
|
}
|
|
9787
9791
|
render() {
|
|
9788
9792
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9802,6 +9806,7 @@ class ActionBar {
|
|
|
9802
9806
|
"$flags$": 9,
|
|
9803
9807
|
"$tagName$": "calcite-action-bar",
|
|
9804
9808
|
"$members$": {
|
|
9809
|
+
"actionsEndGroupLabel": [1, "actions-end-group-label"],
|
|
9805
9810
|
"expandDisabled": [516, "expand-disabled"],
|
|
9806
9811
|
"expanded": [1540],
|
|
9807
9812
|
"layout": [513],
|
|
@@ -9824,7 +9829,7 @@ class ActionBar {
|
|
|
9824
9829
|
}; }
|
|
9825
9830
|
}
|
|
9826
9831
|
|
|
9827
|
-
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}/*!@: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])*/[layout=horizontal].sc-calcite-action-group-h{flex-direction:row}/*!@:host([layout=grid])*/[layout=grid].sc-calcite-action-group-h{display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;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}";
|
|
9832
|
+
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-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;gap:1px;background-color:var(--calcite-ui-background);padding:1px;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}";
|
|
9828
9833
|
|
|
9829
9834
|
/**
|
|
9830
9835
|
* @slot - A slot for adding a group of `calcite-action`s.
|
|
@@ -9846,6 +9851,7 @@ class ActionGroup {
|
|
|
9846
9851
|
this.hasMenuActions = slotChangeHasAssignedElement(event);
|
|
9847
9852
|
};
|
|
9848
9853
|
this.expanded = false;
|
|
9854
|
+
this.label = undefined;
|
|
9849
9855
|
this.layout = "vertical";
|
|
9850
9856
|
this.columns = undefined;
|
|
9851
9857
|
this.menuOpen = false;
|
|
@@ -9908,7 +9914,7 @@ class ActionGroup {
|
|
|
9908
9914
|
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$j.menu, scale: scale, slot: SLOTS$v.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$w.menuActions, onSlotchange: this.handleMenuActionsSlotChange }), hAsync("slot", { name: SLOTS$w.menuTooltip, slot: SLOTS$v.tooltip })));
|
|
9909
9915
|
}
|
|
9910
9916
|
render() {
|
|
9911
|
-
return (hAsync(
|
|
9917
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$16.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9912
9918
|
}
|
|
9913
9919
|
static get delegatesFocus() { return true; }
|
|
9914
9920
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9924,6 +9930,7 @@ class ActionGroup {
|
|
|
9924
9930
|
"$tagName$": "calcite-action-group",
|
|
9925
9931
|
"$members$": {
|
|
9926
9932
|
"expanded": [516],
|
|
9933
|
+
"label": [1],
|
|
9927
9934
|
"layout": [513],
|
|
9928
9935
|
"columns": [514],
|
|
9929
9936
|
"menuOpen": [1540, "menu-open"],
|
|
@@ -10192,7 +10199,7 @@ class ActionMenu {
|
|
|
10192
10199
|
renderMenuButton() {
|
|
10193
10200
|
const { label, scale, expanded } = this;
|
|
10194
10201
|
const menuButtonSlot = (hAsync("slot", { name: SLOTS$v.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$15.defaultTrigger, icon: ICONS$i.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10195
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10202
|
+
// 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)
|
|
10196
10203
|
ref: this.setDefaultMenuButtonEl })));
|
|
10197
10204
|
return menuButtonSlot;
|
|
10198
10205
|
}
|
|
@@ -10285,6 +10292,7 @@ class ActionPad {
|
|
|
10285
10292
|
const tooltips = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-tooltip"));
|
|
10286
10293
|
this.expandTooltip = tooltips[0];
|
|
10287
10294
|
};
|
|
10295
|
+
this.actionsEndGroupLabel = undefined;
|
|
10288
10296
|
this.expandDisabled = false;
|
|
10289
10297
|
this.expanded = false;
|
|
10290
10298
|
this.layout = "vertical";
|
|
@@ -10356,11 +10364,11 @@ class ActionPad {
|
|
|
10356
10364
|
//
|
|
10357
10365
|
// --------------------------------------------------------------------------
|
|
10358
10366
|
renderBottomActionGroup() {
|
|
10359
|
-
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout } = this;
|
|
10367
|
+
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout, actionsEndGroupLabel, } = this;
|
|
10360
10368
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10361
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10369
|
+
// 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)
|
|
10362
10370
|
ref: this.setExpandToggleRef })) : null;
|
|
10363
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$13.actionGroupEnd, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$t.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10371
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$13.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$t.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10364
10372
|
}
|
|
10365
10373
|
render() {
|
|
10366
10374
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$13.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
@@ -10379,6 +10387,7 @@ class ActionPad {
|
|
|
10379
10387
|
"$flags$": 25,
|
|
10380
10388
|
"$tagName$": "calcite-action-pad",
|
|
10381
10389
|
"$members$": {
|
|
10390
|
+
"actionsEndGroupLabel": [1, "actions-end-group-label"],
|
|
10382
10391
|
"expandDisabled": [516, "expand-disabled"],
|
|
10383
10392
|
"expanded": [1540],
|
|
10384
10393
|
"layout": [513],
|
|
@@ -10633,7 +10642,7 @@ class Alert {
|
|
|
10633
10642
|
render() {
|
|
10634
10643
|
const { hasEndActions } = this;
|
|
10635
10644
|
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: "alert-close", onClick: this.closeAlert, type: "button",
|
|
10636
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10645
|
+
// 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)
|
|
10637
10646
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
10638
10647
|
numberStringFormatter.numberFormatOptions = {
|
|
10639
10648
|
locale: this.effectiveLocale,
|
|
@@ -10653,7 +10662,7 @@ class Alert {
|
|
|
10653
10662
|
[placement]: true,
|
|
10654
10663
|
[CSS$12.slottedInShell]: this.slottedInShell,
|
|
10655
10664
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10656
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10665
|
+
// 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)
|
|
10657
10666
|
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$s.title }), hAsync("slot", { name: SLOTS$s.message }), hAsync("slot", { name: SLOTS$s.link })), hAsync("div", { class: CSS$12.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, closeButton, open && !queued && autoClose ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
10658
10667
|
}
|
|
10659
10668
|
// when an alert is opened or closed, update queue and determine active alert
|
|
@@ -11878,7 +11887,7 @@ const CSS$$ = {
|
|
|
11878
11887
|
buttonPaddingShrunk: "button-padding--shrunk",
|
|
11879
11888
|
};
|
|
11880
11889
|
|
|
11881
|
-
const buttonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-button-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) *, :host([disabled]) *,\n:host([loading]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[loading].sc-calcite-button-h *.sc-calcite-button,[disabled].sc-calcite-button-h *.sc-calcite-button,.sc-calcite-button-h[loading] .sc-calcite-button-s>*,.sc-calcite-button-h[disabled] .sc-calcite-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-button-h{display:inline-block;inline-size:auto;vertical-align:middle}/*!@:host([round])*/[round].sc-calcite-button-h{border-radius:50px}/*!@:host([round]) a, :host([round]) button*/[round].sc-calcite-button-h a.sc-calcite-button,[round].sc-calcite-button-h button.sc-calcite-button{border-radius:50px}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{outline-color:transparent}/*!@:host button:focus,\n:host a:focus*/.sc-calcite-button-h button.sc-calcite-button:focus,.sc-calcite-button-h a.sc-calcite-button: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 button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@:host button:hover,\n:host a:hover*/.sc-calcite-button-h button.sc-calcite-button:hover,.sc-calcite-button-h a.sc-calcite-button:hover{text-decoration-line:none}/*!@:host button span,\n:host a span*/.sc-calcite-button-h button.sc-calcite-button span.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button span.sc-calcite-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.content*/.content.sc-calcite-button{margin-inline:var(--calcite-button-content-margin-internal)}/*!@.icon-start-empty .content*/.icon-start-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-start:unset}/*!@.icon-end-empty .content*/.icon-end-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-end:unset}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.75rem}/*!@:host([scale=l]) button,\n:host([scale=l]) a*/[scale=l].sc-calcite-button-h button.sc-calcite-button,[scale=l].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:1rem}/*!@:host([width=auto])*/[width=auto].sc-calcite-button-h{inline-size:auto}/*!@:host([width=half])*/[width=half].sc-calcite-button-h{inline-size:50%}/*!@:host([width=full])*/[width=full].sc-calcite-button-h{inline-size:100%}/*!@:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button*/[alignment=center].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=center].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:center}/*!@:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button*/[alignment=start].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=start].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-start}/*!@:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button*/[alignment=end].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=end].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-end}/*!@:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button*/[alignment*=space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment*=space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:space-between}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) .icon--start.sc-calcite-button{margin-inline-end:auto}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) .icon--end.sc-calcite-button{margin-inline-start:auto}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end*/[alignment=center].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[alignment=center].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:var(--calcite-button-content-margin-internal)}/*!@.icon*/.icon.sc-calcite-button{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-button-h[disabled] .sc-calcite-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-button-h [calcite-hydrated][disabled].sc-calcite-button{opacity:1}/*!@:host([loading]) button,\n:host([loading]) a*/[loading].sc-calcite-button-h button.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button{opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}/*!@.calcite-button--loader*/.calcite-button--loader.sc-calcite-button{display:flex}/*!@.calcite-button--loader calcite-loader*/.calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.calcite-button--loader calcite-loader.loading-in*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-in.sc-calcite-button{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@.calcite-button--loader calcite-loader.loading-out*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-out.sc-calcite-button{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader*/[loading].sc-calcite-button-h button.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button,[loading].sc-calcite-button-h a.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin-inline-end:var(--calcite-button-content-margin-internal)}/*!@:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end*/[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button{display:none}/*!@:host([appearance]) button,\n:host([appearance]) a*/[appearance].sc-calcite-button-h button.sc-calcite-button,[appearance].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;border-color:transparent}/*!@:host([kind=brand]) button,\n:host([kind=brand]) a*/[kind=brand].sc-calcite-button-h button.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=brand]) button:hover, :host([kind=brand]) button:focus,\n:host([kind=brand]) a:hover,\n:host([kind=brand]) a:focus*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[kind=brand].sc-calcite-button-h a.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-brand-hover)}/*!@:host([kind=brand]) button:active,\n:host([kind=brand]) a:active*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[kind=brand].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-brand-press)}/*!@:host([kind=brand]) button calcite-loader,\n:host([kind=brand]) a calcite-loader*/[kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button,\n:host([kind=danger]) a*/[kind=danger].sc-calcite-button-h button.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button:hover, :host([kind=danger]) button:focus,\n:host([kind=danger]) a:hover,\n:host([kind=danger]) a:focus*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[kind=danger].sc-calcite-button-h a.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-danger-hover)}/*!@:host([kind=danger]) button:active,\n:host([kind=danger]) a:active*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[kind=danger].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-danger-press)}/*!@:host([kind=danger]) button calcite-loader,\n:host([kind=danger]) a calcite-loader*/[kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=neutral]) button,\n:host([kind=neutral]) a*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}/*!@:host([kind=neutral]) button:hover, :host([kind=neutral]) button:focus,\n:host([kind=neutral]) a:hover,\n:host([kind=neutral]) a:focus*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-foreground-2)}/*!@:host([kind=neutral]) button:active,\n:host([kind=neutral]) a:active*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([kind=neutral]) button calcite-loader,\n:host([kind=neutral]) a calcite-loader*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([kind=inverse]) button,\n:host([kind=inverse]) a*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}/*!@:host([kind=inverse]) button:hover, :host([kind=inverse]) button:focus,\n:host([kind=inverse]) a:hover,\n:host([kind=inverse]) a:focus*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-inverse-hover)}/*!@:host([kind=inverse]) button:active,\n:host([kind=inverse]) a:active*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-inverse-press)}/*!@:host([kind=inverse]) button calcite-loader,\n:host([kind=inverse]) a calcite-loader*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([appearance=outline-fill]) button,\n:host([appearance=outline-fill]) a*/[appearance=outline-fill].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline-fill][kind=brand]) button,\n:host([appearance=outline-fill][kind=brand]) a*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:hover,\n:host([appearance=outline-fill][kind=brand]) a:hover*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline-fill][kind=brand]) button:focus,\n:host([appearance=outline-fill][kind=brand]) a:focus*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:active,\n:host([appearance=outline-fill][kind=brand]) a:active*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill][kind=brand]) button calcite-loader,\n:host([appearance=outline-fill][kind=brand]) a calcite-loader*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=danger]) button,\n:host([appearance=outline-fill][kind=danger]) a*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:hover,\n:host([appearance=outline-fill][kind=danger]) a:hover*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline-fill][kind=danger]) button:focus,\n:host([appearance=outline-fill][kind=danger]) a:focus*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:active,\n:host([appearance=outline-fill][kind=danger]) a:active*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill][kind=danger]) button calcite-loader,\n:host([appearance=outline-fill][kind=danger]) a calcite-loader*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=neutral]) button,\n:host([appearance=outline-fill][kind=neutral]) a*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:hover,\n:host([appearance=outline-fill][kind=neutral]) a:hover*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:focus,\n:host([appearance=outline-fill][kind=neutral]) a:focus*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:active,\n:host([appearance=outline-fill][kind=neutral]) a:active*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button calcite-loader,\n:host([appearance=outline-fill][kind=neutral]) a calcite-loader*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][kind=inverse]) button,\n:host([appearance=outline-fill][kind=inverse]) a*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:hover,\n:host([appearance=outline-fill][kind=inverse]) a:hover*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline-fill][kind=inverse]) button:focus,\n:host([appearance=outline-fill][kind=inverse]) a:focus*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:active,\n:host([appearance=outline-fill][kind=inverse]) a:active*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline-fill][kind=inverse]) button calcite-loader,\n:host([appearance=outline-fill][kind=inverse]) a calcite-loader*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline]) button,\n:host([appearance=outline]) a*/[appearance=outline].sc-calcite-button-h button.sc-calcite-button,[appearance=outline].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline][kind=brand]) button,\n:host([appearance=outline][kind=brand]) a*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:hover,\n:host([appearance=outline][kind=brand]) a:hover*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline][kind=brand]) button:focus,\n:host([appearance=outline][kind=brand]) a:focus*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:active,\n:host([appearance=outline][kind=brand]) a:active*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline][kind=brand]) button calcite-loader,\n:host([appearance=outline][kind=brand]) a calcite-loader*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=danger]) button,\n:host([appearance=outline][kind=danger]) a*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:hover,\n:host([appearance=outline][kind=danger]) a:hover*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline][kind=danger]) button:focus,\n:host([appearance=outline][kind=danger]) a:focus*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:active,\n:host([appearance=outline][kind=danger]) a:active*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline][kind=danger]) button calcite-loader,\n:host([appearance=outline][kind=danger]) a calcite-loader*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=neutral]) button,\n:host([appearance=outline][kind=neutral]) a*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline][kind=neutral]) button:hover,\n:host([appearance=outline][kind=neutral]) a:hover*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:focus,\n:host([appearance=outline][kind=neutral]) a:focus*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:active,\n:host([appearance=outline][kind=neutral]) a:active*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button calcite-loader,\n:host([appearance=outline][kind=neutral]) a calcite-loader*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline][kind=inverse]) button,\n:host([appearance=outline][kind=inverse]) a*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:hover,\n:host([appearance=outline][kind=inverse]) a:hover*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline][kind=inverse]) button:focus,\n:host([appearance=outline][kind=inverse]) a:focus*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:active,\n:host([appearance=outline][kind=inverse]) a:active*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline][kind=inverse]) button calcite-loader,\n:host([appearance=outline][kind=inverse]) a calcite-loader*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][split-child=primary]) button,\n:host([appearance=outline][split-child=primary]) button*/[appearance=outline-fill][split-child=primary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=primary].sc-calcite-button-h button.sc-calcite-button{border-inline-end-width:0;border-inline-start-width:1px}/*!@:host([appearance=outline-fill][split-child=secondary]) button,\n:host([appearance=outline][split-child=secondary]) button*/[appearance=outline-fill][split-child=secondary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=secondary].sc-calcite-button-h button.sc-calcite-button{border-inline-start-width:0;border-inline-end-width:1px}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button{background-color:transparent}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:focus,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:active,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][kind=brand]) button,\n:host([appearance=transparent][kind=brand]) a*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:hover,\n:host([appearance=transparent][kind=brand]) a:hover*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-brand-hover)}/*!@:host([appearance=transparent][kind=brand]) button:focus,\n:host([appearance=transparent][kind=brand]) a:focus*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:active,\n:host([appearance=transparent][kind=brand]) a:active*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-brand-press)}/*!@:host([appearance=transparent][kind=brand]) button calcite-loader,\n:host([appearance=transparent][kind=brand]) a calcite-loader*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=danger]) button,\n:host([appearance=transparent][kind=danger]) a*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:hover,\n:host([appearance=transparent][kind=danger]) a:hover*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-danger-hover)}/*!@:host([appearance=transparent][kind=danger]) button:focus,\n:host([appearance=transparent][kind=danger]) a:focus*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:active,\n:host([appearance=transparent][kind=danger]) a:active*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-danger-press)}/*!@:host([appearance=transparent][kind=danger]) button calcite-loader,\n:host([appearance=transparent][kind=danger]) a calcite-loader*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader*/[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) button.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) a.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted)*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:hover{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].enable-editing-button) button*/[appearance=transparent][kind=neutral].enable-editing-button.sc-calcite-button-h button.sc-calcite-button{background-color:transparent}/*!@:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus*/.confirm-changes-button.sc-calcite-button-h button.sc-calcite-button:focus,.cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:focus,.enable-editing-button.sc-calcite-button-h button.sc-calcite-button:focus{outline-offset:-2px}/*!@:host([appearance=transparent][kind=inverse]) button,\n:host([appearance=transparent][kind=inverse]) a,\n:host([appearance=transparent][kind=inverse]) calcite-loader*/[appearance=transparent][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h a.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted*/[scale=s].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s].sc-calcite-button-h a.content--slotted.sc-calcite-button{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted*/[scale=s][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.5rem}/*!@:host([scale=s]) button,\n:host([scale=s]) a*/[scale=s].sc-calcite-button-h button.sc-calcite-button,[scale=s].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:3px}/*!@:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted*/[scale=m].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:7px}/*!@:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted*/[scale=m][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.75rem}/*!@:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted*/[scale=l].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=l].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .button-padding*/[scale=l].sc-calcite-button-h .button-padding.sc-calcite-button{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}/*!@:host([scale=l]) .button-padding--shrunk*/[scale=l].sc-calcite-button-h .button-padding--shrunk.sc-calcite-button{--calcite-button-padding-y-internal:9px}/*!@:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted)*/[scale=s].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}/*!@:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted)*/[scale=m].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}/*!@:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted)*/[scale=l].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}/*!@:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted)*/[scale=l][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}/*!@:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}/*!@:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:33px}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:1rem}/*!@:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}/*!@:host([hidden])*/[hidden].sc-calcite-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-button{display:none}";
|
|
11890
|
+
const buttonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-button-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) *, :host([disabled]) *,\n:host([loading]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[loading].sc-calcite-button-h *.sc-calcite-button,[disabled].sc-calcite-button-h *.sc-calcite-button,.sc-calcite-button-h[loading] .sc-calcite-button-s>*,.sc-calcite-button-h[disabled] .sc-calcite-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-button-h{display:inline-block;inline-size:auto;vertical-align:middle}/*!@:host([round])*/[round].sc-calcite-button-h{border-radius:50px}/*!@:host([round]) a, :host([round]) button*/[round].sc-calcite-button-h a.sc-calcite-button,[round].sc-calcite-button-h button.sc-calcite-button{border-radius:50px}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{outline-color:transparent}/*!@:host button:focus,\n:host a:focus*/.sc-calcite-button-h button.sc-calcite-button:focus,.sc-calcite-button-h a.sc-calcite-button: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 button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@:host button:hover,\n:host a:hover*/.sc-calcite-button-h button.sc-calcite-button:hover,.sc-calcite-button-h a.sc-calcite-button:hover{text-decoration-line:none}/*!@:host button span,\n:host a span*/.sc-calcite-button-h button.sc-calcite-button span.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button span.sc-calcite-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.content*/.content.sc-calcite-button{margin-inline:var(--calcite-button-content-margin-internal)}/*!@.icon-start-empty .content*/.icon-start-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-start:unset}/*!@.icon-end-empty .content*/.icon-end-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-end:unset}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.75rem}/*!@:host([scale=l]) button,\n:host([scale=l]) a*/[scale=l].sc-calcite-button-h button.sc-calcite-button,[scale=l].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:1rem}/*!@:host([width=auto])*/[width=auto].sc-calcite-button-h{inline-size:auto}/*!@:host([width=half])*/[width=half].sc-calcite-button-h{inline-size:50%}/*!@:host([width=full])*/[width=full].sc-calcite-button-h{inline-size:100%}/*!@:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button*/[alignment=center].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=center].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:center}/*!@:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button*/[alignment=start].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=start].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-start}/*!@:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button*/[alignment=end].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=end].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-end}/*!@:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button*/[alignment*=space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment*=space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:space-between}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) .icon--start.sc-calcite-button{margin-inline-end:auto}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) .icon--end.sc-calcite-button{margin-inline-start:auto}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end*/[alignment=center].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[alignment=center].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:var(--calcite-button-content-margin-internal)}/*!@.icon*/.icon.sc-calcite-button{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-button-h[disabled] .sc-calcite-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-button-h [calcite-hydrated][disabled].sc-calcite-button{opacity:1}/*!@:host([loading]) button,\n:host([loading]) a*/[loading].sc-calcite-button-h button.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button{opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}/*!@.calcite-button--loader*/.calcite-button--loader.sc-calcite-button{display:flex}/*!@.calcite-button--loader calcite-loader*/.calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.calcite-button--loader calcite-loader.loading-in*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-in.sc-calcite-button{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@.calcite-button--loader calcite-loader.loading-out*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-out.sc-calcite-button{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader*/[loading].sc-calcite-button-h button.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button,[loading].sc-calcite-button-h a.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin-inline-end:var(--calcite-button-content-margin-internal)}/*!@:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end*/[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button{display:none}/*!@:host([appearance]) button,\n:host([appearance]) a*/[appearance].sc-calcite-button-h button.sc-calcite-button,[appearance].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;border-color:transparent}/*!@:host([kind=brand]) button,\n:host([kind=brand]) a*/[kind=brand].sc-calcite-button-h button.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=brand]) button:hover, :host([kind=brand]) button:focus,\n:host([kind=brand]) a:hover,\n:host([kind=brand]) a:focus*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[kind=brand].sc-calcite-button-h a.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-brand-hover)}/*!@:host([kind=brand]) button:active,\n:host([kind=brand]) a:active*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[kind=brand].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-brand-press)}/*!@:host([kind=brand]) button calcite-loader,\n:host([kind=brand]) a calcite-loader*/[kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button,\n:host([kind=danger]) a*/[kind=danger].sc-calcite-button-h button.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button:hover, :host([kind=danger]) button:focus,\n:host([kind=danger]) a:hover,\n:host([kind=danger]) a:focus*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[kind=danger].sc-calcite-button-h a.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-danger-hover)}/*!@:host([kind=danger]) button:active,\n:host([kind=danger]) a:active*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[kind=danger].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-danger-press)}/*!@:host([kind=danger]) button calcite-loader,\n:host([kind=danger]) a calcite-loader*/[kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=neutral]) button,\n:host([kind=neutral]) a*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}/*!@:host([kind=neutral]) button:hover, :host([kind=neutral]) button:focus,\n:host([kind=neutral]) a:hover,\n:host([kind=neutral]) a:focus*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-foreground-2)}/*!@:host([kind=neutral]) button:active,\n:host([kind=neutral]) a:active*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([kind=neutral]) button calcite-loader,\n:host([kind=neutral]) a calcite-loader*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([kind=inverse]) button,\n:host([kind=inverse]) a*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}/*!@:host([kind=inverse]) button:hover, :host([kind=inverse]) button:focus,\n:host([kind=inverse]) a:hover,\n:host([kind=inverse]) a:focus*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-inverse-hover)}/*!@:host([kind=inverse]) button:active,\n:host([kind=inverse]) a:active*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-inverse-press)}/*!@:host([kind=inverse]) button calcite-loader,\n:host([kind=inverse]) a calcite-loader*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([appearance=outline-fill]) button,\n:host([appearance=outline-fill]) a*/[appearance=outline-fill].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline-fill][kind=brand]) button,\n:host([appearance=outline-fill][kind=brand]) a*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:hover,\n:host([appearance=outline-fill][kind=brand]) a:hover*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline-fill][kind=brand]) button:focus,\n:host([appearance=outline-fill][kind=brand]) a:focus*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:active,\n:host([appearance=outline-fill][kind=brand]) a:active*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill][kind=brand]) button calcite-loader,\n:host([appearance=outline-fill][kind=brand]) a calcite-loader*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=danger]) button,\n:host([appearance=outline-fill][kind=danger]) a*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:hover,\n:host([appearance=outline-fill][kind=danger]) a:hover*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline-fill][kind=danger]) button:focus,\n:host([appearance=outline-fill][kind=danger]) a:focus*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:active,\n:host([appearance=outline-fill][kind=danger]) a:active*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill][kind=danger]) button calcite-loader,\n:host([appearance=outline-fill][kind=danger]) a calcite-loader*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=neutral]) button,\n:host([appearance=outline-fill][kind=neutral]) a*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline-fill][kind=neutral]) button:hover,\n:host([appearance=outline-fill][kind=neutral]) a:hover*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:focus,\n:host([appearance=outline-fill][kind=neutral]) a:focus*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:active,\n:host([appearance=outline-fill][kind=neutral]) a:active*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button calcite-loader,\n:host([appearance=outline-fill][kind=neutral]) a calcite-loader*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][kind=inverse]) button,\n:host([appearance=outline-fill][kind=inverse]) a*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:hover,\n:host([appearance=outline-fill][kind=inverse]) a:hover*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline-fill][kind=inverse]) button:focus,\n:host([appearance=outline-fill][kind=inverse]) a:focus*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:active,\n:host([appearance=outline-fill][kind=inverse]) a:active*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline-fill][kind=inverse]) button calcite-loader,\n:host([appearance=outline-fill][kind=inverse]) a calcite-loader*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline]) button,\n:host([appearance=outline]) a*/[appearance=outline].sc-calcite-button-h button.sc-calcite-button,[appearance=outline].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline][kind=brand]) button,\n:host([appearance=outline][kind=brand]) a*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:hover,\n:host([appearance=outline][kind=brand]) a:hover*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline][kind=brand]) button:focus,\n:host([appearance=outline][kind=brand]) a:focus*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:active,\n:host([appearance=outline][kind=brand]) a:active*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline][kind=brand]) button calcite-loader,\n:host([appearance=outline][kind=brand]) a calcite-loader*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=danger]) button,\n:host([appearance=outline][kind=danger]) a*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:hover,\n:host([appearance=outline][kind=danger]) a:hover*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline][kind=danger]) button:focus,\n:host([appearance=outline][kind=danger]) a:focus*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:active,\n:host([appearance=outline][kind=danger]) a:active*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline][kind=danger]) button calcite-loader,\n:host([appearance=outline][kind=danger]) a calcite-loader*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=neutral]) button,\n:host([appearance=outline][kind=neutral]) a*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline][kind=neutral]) button:hover,\n:host([appearance=outline][kind=neutral]) a:hover*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:focus,\n:host([appearance=outline][kind=neutral]) a:focus*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:active,\n:host([appearance=outline][kind=neutral]) a:active*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button calcite-loader,\n:host([appearance=outline][kind=neutral]) a calcite-loader*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline][kind=inverse]) button,\n:host([appearance=outline][kind=inverse]) a*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:hover,\n:host([appearance=outline][kind=inverse]) a:hover*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline][kind=inverse]) button:focus,\n:host([appearance=outline][kind=inverse]) a:focus*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:active,\n:host([appearance=outline][kind=inverse]) a:active*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline][kind=inverse]) button calcite-loader,\n:host([appearance=outline][kind=inverse]) a calcite-loader*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][split-child=primary]) button,\n:host([appearance=outline][split-child=primary]) button*/[appearance=outline-fill][split-child=primary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=primary].sc-calcite-button-h button.sc-calcite-button{border-inline-end-width:0;border-inline-start-width:1px}/*!@:host([appearance=outline-fill][split-child=secondary]) button,\n:host([appearance=outline][split-child=secondary]) button*/[appearance=outline-fill][split-child=secondary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=secondary].sc-calcite-button-h button.sc-calcite-button{border-inline-start-width:0;border-inline-end-width:1px}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button{background-color:transparent}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:focus,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:active,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][kind=brand]) button,\n:host([appearance=transparent][kind=brand]) a*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:hover,\n:host([appearance=transparent][kind=brand]) a:hover*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-brand-hover)}/*!@:host([appearance=transparent][kind=brand]) button:focus,\n:host([appearance=transparent][kind=brand]) a:focus*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:active,\n:host([appearance=transparent][kind=brand]) a:active*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-brand-press)}/*!@:host([appearance=transparent][kind=brand]) button calcite-loader,\n:host([appearance=transparent][kind=brand]) a calcite-loader*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=danger]) button,\n:host([appearance=transparent][kind=danger]) a*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:hover,\n:host([appearance=transparent][kind=danger]) a:hover*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-danger-hover)}/*!@:host([appearance=transparent][kind=danger]) button:focus,\n:host([appearance=transparent][kind=danger]) a:focus*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:active,\n:host([appearance=transparent][kind=danger]) a:active*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-danger-press)}/*!@:host([appearance=transparent][kind=danger]) button calcite-loader,\n:host([appearance=transparent][kind=danger]) a calcite-loader*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader*/[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) button.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) a.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted)*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:hover{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].enable-editing-button) button*/[appearance=transparent][kind=neutral].enable-editing-button.sc-calcite-button-h button.sc-calcite-button{background-color:transparent}/*!@:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus*/.confirm-changes-button.sc-calcite-button-h button.sc-calcite-button:focus,.cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:focus,.enable-editing-button.sc-calcite-button-h button.sc-calcite-button:focus{outline-offset:-2px}/*!@:host([appearance=transparent][kind=inverse]) button,\n:host([appearance=transparent][kind=inverse]) a,\n:host([appearance=transparent][kind=inverse]) calcite-loader*/[appearance=transparent][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h a.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted*/[scale=s].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s].sc-calcite-button-h a.content--slotted.sc-calcite-button{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted*/[scale=s][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.5rem}/*!@:host([scale=s]) button,\n:host([scale=s]) a*/[scale=s].sc-calcite-button-h button.sc-calcite-button,[scale=s].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:3px}/*!@:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted*/[scale=m].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:7px}/*!@:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted*/[scale=m][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.75rem}/*!@:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted*/[scale=l].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=l].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .button-padding*/[scale=l].sc-calcite-button-h .button-padding.sc-calcite-button{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}/*!@:host([scale=l]) .button-padding--shrunk*/[scale=l].sc-calcite-button-h .button-padding--shrunk.sc-calcite-button{--calcite-button-padding-y-internal:9px}/*!@:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted)*/[scale=s].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}/*!@:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted)*/[scale=m].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}/*!@:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted)*/[scale=l].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}/*!@:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted)*/[scale=l][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}/*!@:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}/*!@:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:33px}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:1rem}/*!@:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}/*!@:host([hidden])*/[hidden].sc-calcite-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-button{display:none}";
|
|
11882
11891
|
|
|
11883
11892
|
/** Passing a 'href' will render an anchor link, instead of a button. Role will be set to link, or button, depending on this. */
|
|
11884
11893
|
/** It is the consumers responsibility to add aria information, rel, target, for links, and any button attributes for form submission */
|
|
@@ -12543,7 +12552,7 @@ class CalciteMenuItem {
|
|
|
12543
12552
|
? "chevron-up"
|
|
12544
12553
|
: "chevron-down"
|
|
12545
12554
|
: dirChevron, key: CSS$_.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12546
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12555
|
+
// 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)
|
|
12547
12556
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12548
12557
|
}
|
|
12549
12558
|
renderSubmenuItems(dir) {
|
|
@@ -12568,7 +12577,7 @@ class CalciteMenuItem {
|
|
|
12568
12577
|
[CSS$_.container]: true,
|
|
12569
12578
|
[CSS$_.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12570
12579
|
}, role: "none" }, hAsync("div", { class: CSS$_.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$_.layoutVertical]: this.layout === "vertical", [CSS$_.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12571
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12580
|
+
// 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)
|
|
12572
12581
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12573
12582
|
}
|
|
12574
12583
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -12746,7 +12755,7 @@ class CalciteNavigation {
|
|
|
12746
12755
|
//--------------------------------------------------------------------------
|
|
12747
12756
|
renderMenuAction() {
|
|
12748
12757
|
return (hAsync("slot", { name: SLOTS$q.navigationAction, onSlotchange: this.handleMenuActionSlotChange }, this.navigationAction && (hAsync("calcite-action", { icon: ICONS$e.hamburger, onClick: this.actionClickHandler, text: this.label,
|
|
12749
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12758
|
+
// 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)
|
|
12750
12759
|
ref: (el) => (this.navigationActionEl = el) }))));
|
|
12751
12760
|
}
|
|
12752
12761
|
render() {
|
|
@@ -13189,7 +13198,7 @@ class Checkbox {
|
|
|
13189
13198
|
// --------------------------------------------------------------------------
|
|
13190
13199
|
render() {
|
|
13191
13200
|
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, role: "checkbox", tabIndex: this.disabled ? undefined : 0,
|
|
13192
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13201
|
+
// 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)
|
|
13193
13202
|
ref: (toggleEl) => (this.toggleEl = toggleEl) }, hAsync("svg", { "aria-hidden": "true", class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
13194
13203
|
}
|
|
13195
13204
|
get el() { return getElement(this); }
|
|
@@ -13403,7 +13412,7 @@ class Chip {
|
|
|
13403
13412
|
}
|
|
13404
13413
|
renderCloseButton() {
|
|
13405
13414
|
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$V.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13406
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13415
|
+
// 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)
|
|
13407
13416
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$d.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
13408
13417
|
}
|
|
13409
13418
|
renderIcon() {
|
|
@@ -13434,7 +13443,7 @@ class Chip {
|
|
|
13434
13443
|
(this.selectionMode === "none" ||
|
|
13435
13444
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13436
13445
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13437
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13446
|
+
// 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)
|
|
13438
13447
|
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$V.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13439
13448
|
}
|
|
13440
13449
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -13505,7 +13514,7 @@ class ChipGroup {
|
|
|
13505
13514
|
};
|
|
13506
13515
|
this.setSelectedItems = (emit, elToMatch) => {
|
|
13507
13516
|
if (elToMatch) {
|
|
13508
|
-
this.items
|
|
13517
|
+
this.items?.forEach((el) => {
|
|
13509
13518
|
const matchingEl = elToMatch === el;
|
|
13510
13519
|
switch (this.selectionMode) {
|
|
13511
13520
|
case "multiple":
|
|
@@ -13522,7 +13531,7 @@ class ChipGroup {
|
|
|
13522
13531
|
}
|
|
13523
13532
|
});
|
|
13524
13533
|
}
|
|
13525
|
-
this.selectedItems = this.items
|
|
13534
|
+
this.selectedItems = this.items?.filter((el) => el.selected);
|
|
13526
13535
|
if (emit) {
|
|
13527
13536
|
this.calciteChipGroupSelect.emit();
|
|
13528
13537
|
}
|
|
@@ -13565,7 +13574,7 @@ class ChipGroup {
|
|
|
13565
13574
|
//--------------------------------------------------------------------------
|
|
13566
13575
|
calciteInternalChipKeyEventListener(event) {
|
|
13567
13576
|
if (event.composedPath().includes(this.el)) {
|
|
13568
|
-
const interactiveItems = this.items
|
|
13577
|
+
const interactiveItems = this.items?.filter((el) => !el.disabled);
|
|
13569
13578
|
switch (event.detail.key) {
|
|
13570
13579
|
case "ArrowRight":
|
|
13571
13580
|
focusElementInGroup(interactiveItems, event.detail.target, "next");
|
|
@@ -13584,18 +13593,18 @@ class ChipGroup {
|
|
|
13584
13593
|
}
|
|
13585
13594
|
calciteChipCloseListener(event) {
|
|
13586
13595
|
const item = event.target;
|
|
13587
|
-
if (this.items
|
|
13588
|
-
if (this.items
|
|
13596
|
+
if (this.items?.includes(item)) {
|
|
13597
|
+
if (this.items?.indexOf(item) > 0) {
|
|
13589
13598
|
focusElementInGroup(this.items, item, "previous");
|
|
13590
13599
|
}
|
|
13591
|
-
else if (this.items
|
|
13600
|
+
else if (this.items?.indexOf(item) === 0) {
|
|
13592
13601
|
focusElementInGroup(this.items, item, "next");
|
|
13593
13602
|
}
|
|
13594
13603
|
else {
|
|
13595
13604
|
focusElementInGroup(this.items, item, "first");
|
|
13596
13605
|
}
|
|
13597
13606
|
}
|
|
13598
|
-
this.items = this.items
|
|
13607
|
+
this.items = this.items?.filter((el) => el !== item);
|
|
13599
13608
|
}
|
|
13600
13609
|
calciteChipSelectListener(event) {
|
|
13601
13610
|
if (event.composedPath().includes(this.el)) {
|
|
@@ -16396,26 +16405,26 @@ class ColorPicker {
|
|
|
16396
16405
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16397
16406
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16398
16407
|
return (hAsync("div", { class: CSS$U.container }, hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: CSS$U.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16399
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16408
|
+
// 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)
|
|
16400
16409
|
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$U.scope]: true, [CSS$U.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16401
16410
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16402
16411
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16403
16412
|
}, tabindex: "0",
|
|
16404
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16413
|
+
// 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)
|
|
16405
16414
|
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$U.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$U.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$U.sliders }, hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: { [CSS$U.slider]: true, [CSS$U.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16406
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16415
|
+
// 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)
|
|
16407
16416
|
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$U.scope]: true, [CSS$U.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16408
16417
|
top: `${adjustedHueScopeTop}px`,
|
|
16409
16418
|
left: `${adjustedHueScopeLeft}px`,
|
|
16410
16419
|
}, tabindex: "0",
|
|
16411
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16420
|
+
// 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)
|
|
16412
16421
|
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: { [CSS$U.slider]: true, [CSS$U.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16413
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16422
|
+
// 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)
|
|
16414
16423
|
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$U.scope]: true, [CSS$U.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16415
16424
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16416
16425
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16417
16426
|
}, tabindex: "0",
|
|
16418
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16427
|
+
// 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)
|
|
16419
16428
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16420
16429
|
[CSS$U.controlSection]: true,
|
|
16421
16430
|
[CSS$U.section]: true,
|
|
@@ -16963,9 +16972,9 @@ class ColorPickerHexInput {
|
|
|
16963
16972
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
16964
16973
|
const inputScale = scale === "l" ? "m" : "s";
|
|
16965
16974
|
return (hAsync("div", { class: CSS$T.container }, hAsync("calcite-input-text", { class: CSS$T.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
16966
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16975
|
+
// 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)
|
|
16967
16976
|
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$T.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,
|
|
16968
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16977
|
+
// 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)
|
|
16969
16978
|
ref: this.storeOpacityInputRef })) : null));
|
|
16970
16979
|
}
|
|
16971
16980
|
//--------------------------------------------------------------------------
|
|
@@ -18878,18 +18887,21 @@ function getDepth$1(element) {
|
|
|
18878
18887
|
return 0;
|
|
18879
18888
|
}
|
|
18880
18889
|
}
|
|
18890
|
+
function isSingleLike(selectionMode) {
|
|
18891
|
+
return selectionMode.includes("single");
|
|
18892
|
+
}
|
|
18881
18893
|
|
|
18882
18894
|
const CSS$Q = {
|
|
18883
18895
|
button: "x-button",
|
|
18884
18896
|
};
|
|
18885
18897
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18886
18898
|
return (hAsync("button", { "aria-label": label, class: CSS$Q.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18887
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
18899
|
+
// 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)
|
|
18888
18900
|
ref: ref },
|
|
18889
18901
|
hAsync("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
|
|
18890
18902
|
}
|
|
18891
18903
|
|
|
18892
|
-
const comboboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-combobox-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-combobox-h *.sc-calcite-combobox,.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>*{pointer-events:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1rem;block-size:1rem}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1.5rem;block-size:1.5rem}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:2rem;block-size:2rem}/*!@.x-button*/.x-button.sc-calcite-combobox{margin:0px;display:flex;cursor:pointer;-webkit-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-radius:50%;border-color:transparent;background-color:var(--calcite-ui-foreground-2)}/*!@.x-button:active, .x-button:hover*/.x-button.sc-calcite-combobox:active,.x-button.sc-calcite-combobox:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}/*!@.x-button:active*/.x-button.sc-calcite-combobox:active{border-style:solid;border-color:var(--calcite-ui-brand)}/*!@.x-button calcite-icon*/.x-button.sc-calcite-combobox calcite-icon.sc-calcite-combobox{color:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:
|
|
18904
|
+
const comboboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-combobox-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-combobox-h *.sc-calcite-combobox,.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>*{pointer-events:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1rem;block-size:1rem}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1.5rem;block-size:1.5rem}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:2rem;block-size:2rem}/*!@.x-button*/.x-button.sc-calcite-combobox{margin:0px;display:flex;cursor:pointer;-webkit-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-radius:50%;border-color:transparent;background-color:var(--calcite-ui-foreground-2)}/*!@.x-button:active, .x-button:hover*/.x-button.sc-calcite-combobox:active,.x-button.sc-calcite-combobox:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}/*!@.x-button:active*/.x-button.sc-calcite-combobox:active{border-style:solid;border-color:var(--calcite-ui-brand)}/*!@.x-button calcite-icon*/.x-button.sc-calcite-combobox calcite-icon.sc-calcite-combobox{color:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.25rem - 1px)}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-combobox-h{font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.5rem - 1px)}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-combobox-h{font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:1.5rem;--calcite-internal-combobox-input-margin-block:calc(0.625rem - 1px)}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:1rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper,\n.wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{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 )}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{padding:0px;margin-block:var(--calcite-internal-combobox-input-margin-block)}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:flex;flex-grow:1;align-items:center}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{flex:1 1 0%;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--icon*/.label--icon.sc-calcite-combobox{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end,\n.icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:flex;inline-size:1rem;cursor:pointer;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{flex:none}/*!@.floating-ui-container*/.floating-ui-container.sc-calcite-combobox{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}/*!@.floating-ui-container .calcite-floating-ui-anim*/.floating-ui-container.sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}/*!@.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=bottom].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(-5px)}/*!@.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=top].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(5px)}/*!@.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=left].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(5px)}/*!@.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=right].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(-5px)}/*!@.floating-ui-container[data-placement] .calcite-floating-ui-anim--active*/.floating-ui-container[data-placement].sc-calcite-combobox .calcite-floating-ui-anim--active.sc-calcite-combobox{opacity:1;transform:translate(0)}/*!@.floating-ui-container--active*/.floating-ui-container--active.sc-calcite-combobox{visibility:visible}@media (forced-colors: active){/*!@.wrapper,\n .floating-ui-container--active*/.wrapper.sc-calcite-combobox,.floating-ui-container--active.sc-calcite-combobox{border:1px solid canvasText}}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@.list-container*/.list-container.sc-calcite-combobox{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{block-size:0px;overflow:hidden}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-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-combobox-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-combobox{display:none}/*!@::slotted(calcite-combobox-item-group:not(:first-child))*/.sc-calcite-combobox-s>calcite-combobox-item-group:not(:first-child){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}";
|
|
18893
18905
|
|
|
18894
18906
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
18895
18907
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -19097,7 +19109,7 @@ class Combobox {
|
|
|
19097
19109
|
if (this.allowCustomValues && this.text.trim().length) {
|
|
19098
19110
|
this.addCustomChip(this.text);
|
|
19099
19111
|
}
|
|
19100
|
-
if (this.selectionMode
|
|
19112
|
+
if (isSingleLike(this.selectionMode)) {
|
|
19101
19113
|
if (this.textInput) {
|
|
19102
19114
|
this.textInput.value = "";
|
|
19103
19115
|
}
|
|
@@ -19168,6 +19180,10 @@ class Combobox {
|
|
|
19168
19180
|
this.selectedItems = this.getSelectedItems();
|
|
19169
19181
|
this.filteredItems = this.getFilteredItems();
|
|
19170
19182
|
this.needsIcon = this.getNeedsIcon();
|
|
19183
|
+
this.items.forEach((item) => {
|
|
19184
|
+
item.selectionMode = this.selectionMode;
|
|
19185
|
+
item.scale = this.scale;
|
|
19186
|
+
});
|
|
19171
19187
|
if (!this.allowCustomValues) {
|
|
19172
19188
|
this.setMaxScrollerHeight();
|
|
19173
19189
|
}
|
|
@@ -19254,6 +19270,9 @@ class Combobox {
|
|
|
19254
19270
|
overlayPositioningHandler() {
|
|
19255
19271
|
this.reposition(true);
|
|
19256
19272
|
}
|
|
19273
|
+
handlePropsChange() {
|
|
19274
|
+
this.updateItems();
|
|
19275
|
+
}
|
|
19257
19276
|
valueHandler(value) {
|
|
19258
19277
|
if (!this.internalValueChangeFlag) {
|
|
19259
19278
|
const items = this.getItems();
|
|
@@ -19338,12 +19357,13 @@ class Combobox {
|
|
|
19338
19357
|
connectInteractive(this);
|
|
19339
19358
|
connectLocalized(this);
|
|
19340
19359
|
connectMessages(this);
|
|
19360
|
+
connectLabel(this);
|
|
19361
|
+
connectForm(this);
|
|
19341
19362
|
this.internalValueChangeFlag = true;
|
|
19342
19363
|
this.value = this.getValue();
|
|
19343
19364
|
this.internalValueChangeFlag = false;
|
|
19344
19365
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
19345
|
-
|
|
19346
|
-
connectForm(this);
|
|
19366
|
+
this.updateItems();
|
|
19347
19367
|
this.setFilteredPlacements();
|
|
19348
19368
|
this.reposition(true);
|
|
19349
19369
|
if (this.open) {
|
|
@@ -19537,7 +19557,7 @@ class Combobox {
|
|
|
19537
19557
|
}));
|
|
19538
19558
|
}
|
|
19539
19559
|
getNeedsIcon() {
|
|
19540
|
-
return this.selectionMode
|
|
19560
|
+
return isSingleLike(this.selectionMode) && this.items.some((item) => item.icon);
|
|
19541
19561
|
}
|
|
19542
19562
|
resetText() {
|
|
19543
19563
|
if (this.textInput) {
|
|
@@ -19640,7 +19660,7 @@ class Combobox {
|
|
|
19640
19660
|
}
|
|
19641
19661
|
}
|
|
19642
19662
|
isMulti() {
|
|
19643
|
-
return this.selectionMode !== "single";
|
|
19663
|
+
return this.selectionMode !== "single" && this.selectionMode !== "single-persist";
|
|
19644
19664
|
}
|
|
19645
19665
|
//--------------------------------------------------------------------------
|
|
19646
19666
|
//
|
|
@@ -19662,7 +19682,7 @@ class Combobox {
|
|
|
19662
19682
|
}
|
|
19663
19683
|
renderInput() {
|
|
19664
19684
|
const { guid, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
|
19665
|
-
const single = selectionMode
|
|
19685
|
+
const single = isSingleLike(selectionMode);
|
|
19666
19686
|
const selectedItem = selectedItems[0];
|
|
19667
19687
|
const showLabel = !open && single && !!selectedItem;
|
|
19668
19688
|
return (hAsync("span", { class: {
|
|
@@ -19678,7 +19698,7 @@ class Combobox {
|
|
|
19678
19698
|
"input--hidden": showLabel,
|
|
19679
19699
|
"input--icon": !!this.placeholderIcon,
|
|
19680
19700
|
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, type: "text",
|
|
19681
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19701
|
+
// 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)
|
|
19682
19702
|
ref: (el) => (this.textInput = el) })));
|
|
19683
19703
|
}
|
|
19684
19704
|
renderListBoxOptions() {
|
|
@@ -19695,16 +19715,16 @@ class Combobox {
|
|
|
19695
19715
|
"floating-ui-container": true,
|
|
19696
19716
|
"floating-ui-container--active": open,
|
|
19697
19717
|
},
|
|
19698
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19718
|
+
// 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)
|
|
19699
19719
|
ref: setFloatingEl }, hAsync("div", { class: classes,
|
|
19700
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19720
|
+
// 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)
|
|
19701
19721
|
ref: setContainerEl }, hAsync("ul", { class: { list: true, "list--hide": !open } }, hAsync("slot", null)))));
|
|
19702
19722
|
}
|
|
19703
19723
|
renderIconStart() {
|
|
19704
19724
|
const { selectedItems, placeholderIcon, selectionMode, placeholderIconFlipRtl } = this;
|
|
19705
19725
|
const selectedItem = selectedItems[0];
|
|
19706
19726
|
const selectedIcon = selectedItem?.icon;
|
|
19707
|
-
const singleSelectionMode = selectionMode
|
|
19727
|
+
const singleSelectionMode = isSingleLike(selectionMode);
|
|
19708
19728
|
const iconAtStart = !this.open && selectedItem
|
|
19709
19729
|
? !!selectedIcon && singleSelectionMode
|
|
19710
19730
|
: !!this.placeholderIcon && (!selectedItem || singleSelectionMode);
|
|
@@ -19716,14 +19736,14 @@ class Combobox {
|
|
|
19716
19736
|
}
|
|
19717
19737
|
render() {
|
|
19718
19738
|
const { guid, label, open } = this;
|
|
19719
|
-
const single = this.selectionMode
|
|
19739
|
+
const single = isSingleLike(this.selectionMode);
|
|
19720
19740
|
const isClearable = !this.clearDisabled && this.value?.length > 0;
|
|
19721
19741
|
return (hAsync(Host, { onClick: this.comboboxFocusHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "listbox", "aria-label": getLabelText(this), "aria-live": "polite", "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
19722
19742
|
wrapper: true,
|
|
19723
19743
|
"wrapper--single": single || !this.selectedItems.length,
|
|
19724
19744
|
"wrapper--active": open,
|
|
19725
19745
|
}, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, role: "combobox",
|
|
19726
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19746
|
+
// 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)
|
|
19727
19747
|
ref: this.setReferenceEl }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), isClearable ? (hAsync(XButton, { disabled: this.disabled, key: "close-button", label: this.messages.clear, scale: this.scale })) : null, this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderFloatingUIContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
19728
19748
|
}
|
|
19729
19749
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -19733,6 +19753,8 @@ class Combobox {
|
|
|
19733
19753
|
"disabled": ["handleDisabledChange"],
|
|
19734
19754
|
"maxItems": ["maxItemsHandler"],
|
|
19735
19755
|
"overlayPositioning": ["overlayPositioningHandler"],
|
|
19756
|
+
"selectionMode": ["handlePropsChange"],
|
|
19757
|
+
"scale": ["handlePropsChange"],
|
|
19736
19758
|
"value": ["valueHandler"],
|
|
19737
19759
|
"messageOverrides": ["onMessagesChange"],
|
|
19738
19760
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
@@ -19807,8 +19829,6 @@ class ComboboxItem {
|
|
|
19807
19829
|
constructor(hostRef) {
|
|
19808
19830
|
registerInstance(this, hostRef);
|
|
19809
19831
|
this.calciteComboboxItemChange = createEvent(this, "calciteComboboxItemChange", 6);
|
|
19810
|
-
/** Specifies the scale of the combobox-item controlled by parent, defaults to m */
|
|
19811
|
-
this.scale = "m";
|
|
19812
19832
|
this.itemClickHandler = (event) => {
|
|
19813
19833
|
event.preventDefault();
|
|
19814
19834
|
this.toggleSelected();
|
|
@@ -19823,6 +19843,8 @@ class ComboboxItem {
|
|
|
19823
19843
|
this.textLabel = undefined;
|
|
19824
19844
|
this.value = undefined;
|
|
19825
19845
|
this.filterDisabled = undefined;
|
|
19846
|
+
this.selectionMode = "multiple";
|
|
19847
|
+
this.scale = "m";
|
|
19826
19848
|
}
|
|
19827
19849
|
selectedWatchHandler() {
|
|
19828
19850
|
this.calciteComboboxItemChange.emit();
|
|
@@ -19834,7 +19856,6 @@ class ComboboxItem {
|
|
|
19834
19856
|
// --------------------------------------------------------------------------
|
|
19835
19857
|
connectedCallback() {
|
|
19836
19858
|
this.ancestors = getAncestors(this.el);
|
|
19837
|
-
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
19838
19859
|
connectConditionalSlotComponent(this);
|
|
19839
19860
|
connectInteractive(this);
|
|
19840
19861
|
}
|
|
@@ -19851,7 +19872,8 @@ class ComboboxItem {
|
|
|
19851
19872
|
//
|
|
19852
19873
|
// --------------------------------------------------------------------------
|
|
19853
19874
|
toggleSelected() {
|
|
19854
|
-
|
|
19875
|
+
const isSinglePersistSelect = this.selectionMode === "single-persist";
|
|
19876
|
+
if (this.disabled || (isSinglePersistSelect && this.selected)) {
|
|
19855
19877
|
return;
|
|
19856
19878
|
}
|
|
19857
19879
|
this.selected = !this.selected;
|
|
@@ -19886,7 +19908,7 @@ class ComboboxItem {
|
|
|
19886
19908
|
return null;
|
|
19887
19909
|
}
|
|
19888
19910
|
render() {
|
|
19889
|
-
const isSingleSelect =
|
|
19911
|
+
const isSingleSelect = isSingleLike(this.selectionMode);
|
|
19890
19912
|
const showDot = isSingleSelect && !this.disabled;
|
|
19891
19913
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19892
19914
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
@@ -19917,11 +19939,13 @@ class ComboboxItem {
|
|
|
19917
19939
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
19918
19940
|
"textLabel": [513, "text-label"],
|
|
19919
19941
|
"value": [8],
|
|
19920
|
-
"filterDisabled": [516, "filter-disabled"]
|
|
19942
|
+
"filterDisabled": [516, "filter-disabled"],
|
|
19943
|
+
"selectionMode": [513, "selection-mode"],
|
|
19944
|
+
"scale": [1]
|
|
19921
19945
|
},
|
|
19922
19946
|
"$listeners$": undefined,
|
|
19923
19947
|
"$lazyBundleId$": "-",
|
|
19924
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"], ["active", "active"], ["guid", "guid"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["textLabel", "text-label"], ["filterDisabled", "filter-disabled"]]
|
|
19948
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"], ["active", "active"], ["guid", "guid"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["textLabel", "text-label"], ["filterDisabled", "filter-disabled"], ["selectionMode", "selection-mode"]]
|
|
19925
19949
|
}; }
|
|
19926
19950
|
}
|
|
19927
19951
|
|
|
@@ -19940,10 +19964,10 @@ class ComboboxItemGroup {
|
|
|
19940
19964
|
constructor(hostRef) {
|
|
19941
19965
|
registerInstance(this, hostRef);
|
|
19942
19966
|
this.guid = guid();
|
|
19943
|
-
this.scale = "m";
|
|
19944
19967
|
this.afterEmptyGroup = false;
|
|
19945
19968
|
this.ancestors = undefined;
|
|
19946
19969
|
this.label = undefined;
|
|
19970
|
+
this.scale = "m";
|
|
19947
19971
|
}
|
|
19948
19972
|
// --------------------------------------------------------------------------
|
|
19949
19973
|
//
|
|
@@ -19952,7 +19976,6 @@ class ComboboxItemGroup {
|
|
|
19952
19976
|
// --------------------------------------------------------------------------
|
|
19953
19977
|
connectedCallback() {
|
|
19954
19978
|
this.ancestors = getAncestors(this.el);
|
|
19955
|
-
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
19956
19979
|
}
|
|
19957
19980
|
// --------------------------------------------------------------------------
|
|
19958
19981
|
//
|
|
@@ -19972,7 +19995,8 @@ class ComboboxItemGroup {
|
|
|
19972
19995
|
"$members$": {
|
|
19973
19996
|
"afterEmptyGroup": [516, "after-empty-group"],
|
|
19974
19997
|
"ancestors": [1040],
|
|
19975
|
-
"label": [1]
|
|
19998
|
+
"label": [1],
|
|
19999
|
+
"scale": [1]
|
|
19976
20000
|
},
|
|
19977
20001
|
"$listeners$": undefined,
|
|
19978
20002
|
"$lazyBundleId$": "-",
|
|
@@ -21078,7 +21102,7 @@ class DatePickerMonth {
|
|
|
21078
21102
|
"focused--start": isFocusedOnStart,
|
|
21079
21103
|
"focused--end": !isFocusedOnStart,
|
|
21080
21104
|
}, currentMonth: currentMonth, dateTimeFormat: this.dateTimeFormat, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeEdge: dayInWeek === 0 ? "start" : dayInWeek === 6 ? "end" : undefined, rangeHover: this.isRangeHover(date), scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date,
|
|
21081
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21105
|
+
// 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)
|
|
21082
21106
|
ref: (el) => {
|
|
21083
21107
|
// when moving via keyboard, focus must be updated on active date
|
|
21084
21108
|
if (ref && active && this.activeFocus) {
|
|
@@ -21265,7 +21289,7 @@ class DatePickerMonthHeader {
|
|
|
21265
21289
|
year: true,
|
|
21266
21290
|
[CSS$N.yearSuffix]: !!suffix,
|
|
21267
21291
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21268
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21292
|
+
// 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)
|
|
21269
21293
|
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$N.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$N.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 }))));
|
|
21270
21294
|
}
|
|
21271
21295
|
setNextPrevMonthDates() {
|
|
@@ -21396,6 +21420,7 @@ class Dropdown {
|
|
|
21396
21420
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
21397
21421
|
this.updateSelectedItems();
|
|
21398
21422
|
this.reposition(true);
|
|
21423
|
+
this.items.forEach((item) => (item.scale = this.scale));
|
|
21399
21424
|
};
|
|
21400
21425
|
this.updateGroups = (event) => {
|
|
21401
21426
|
const groups = event.target
|
|
@@ -21497,10 +21522,10 @@ class Dropdown {
|
|
|
21497
21522
|
this.maxItems = 0;
|
|
21498
21523
|
this.overlayPositioning = "absolute";
|
|
21499
21524
|
this.placement = defaultMenuPlacement;
|
|
21500
|
-
this.scale = "m";
|
|
21501
21525
|
this.selectedItems = [];
|
|
21502
21526
|
this.type = "click";
|
|
21503
21527
|
this.width = undefined;
|
|
21528
|
+
this.scale = "m";
|
|
21504
21529
|
}
|
|
21505
21530
|
openHandler(value) {
|
|
21506
21531
|
if (!this.disabled) {
|
|
@@ -21530,6 +21555,9 @@ class Dropdown {
|
|
|
21530
21555
|
placementHandler() {
|
|
21531
21556
|
this.reposition(true);
|
|
21532
21557
|
}
|
|
21558
|
+
handlePropsChange() {
|
|
21559
|
+
this.updateItems();
|
|
21560
|
+
}
|
|
21533
21561
|
//--------------------------------------------------------------------------
|
|
21534
21562
|
//
|
|
21535
21563
|
// Public Methods
|
|
@@ -21554,6 +21582,7 @@ class Dropdown {
|
|
|
21554
21582
|
onToggleOpenCloseComponent(this);
|
|
21555
21583
|
}
|
|
21556
21584
|
connectInteractive(this);
|
|
21585
|
+
this.updateItems();
|
|
21557
21586
|
}
|
|
21558
21587
|
componentWillLoad() {
|
|
21559
21588
|
setUpLoadableComponent(this);
|
|
@@ -21574,15 +21603,15 @@ class Dropdown {
|
|
|
21574
21603
|
render() {
|
|
21575
21604
|
const { open, guid } = this;
|
|
21576
21605
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
21577
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21606
|
+
// 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)
|
|
21578
21607
|
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$n.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper",
|
|
21579
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21608
|
+
// 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)
|
|
21580
21609
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
21581
21610
|
["calcite-dropdown-content"]: true,
|
|
21582
21611
|
[FloatingCSS.animation]: true,
|
|
21583
21612
|
[FloatingCSS.animationActive]: open,
|
|
21584
21613
|
}, id: `${guid}-menu`, role: "menu",
|
|
21585
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21614
|
+
// 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)
|
|
21586
21615
|
ref: this.setScrollerAndTransitionEl }, hAsync("slot", { onSlotchange: this.updateGroups })))));
|
|
21587
21616
|
}
|
|
21588
21617
|
//--------------------------------------------------------------------------
|
|
@@ -21736,7 +21765,8 @@ class Dropdown {
|
|
|
21736
21765
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
21737
21766
|
"maxItems": ["maxItemsHandler"],
|
|
21738
21767
|
"overlayPositioning": ["overlayPositioningHandler"],
|
|
21739
|
-
"placement": ["placementHandler"]
|
|
21768
|
+
"placement": ["placementHandler"],
|
|
21769
|
+
"scale": ["handlePropsChange"]
|
|
21740
21770
|
}; }
|
|
21741
21771
|
static get style() { return dropdownCss; }
|
|
21742
21772
|
static get cmpMeta() { return {
|
|
@@ -21750,23 +21780,30 @@ class Dropdown {
|
|
|
21750
21780
|
"maxItems": [514, "max-items"],
|
|
21751
21781
|
"overlayPositioning": [513, "overlay-positioning"],
|
|
21752
21782
|
"placement": [513],
|
|
21753
|
-
"scale": [513],
|
|
21754
21783
|
"selectedItems": [1040],
|
|
21755
21784
|
"type": [513],
|
|
21756
21785
|
"width": [513],
|
|
21786
|
+
"scale": [513],
|
|
21757
21787
|
"setFocus": [64],
|
|
21758
21788
|
"reposition": [64]
|
|
21759
21789
|
},
|
|
21760
21790
|
"$listeners$": [[9, "pointerdown", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "pointerenter", "pointerEnterHandler"], [1, "pointerleave", "pointerLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
21761
21791
|
"$lazyBundleId$": "-",
|
|
21762
|
-
"$attrsToReflect$": [["open", "open"], ["closeOnSelectDisabled", "close-on-select-disabled"], ["disabled", "disabled"], ["maxItems", "max-items"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["
|
|
21792
|
+
"$attrsToReflect$": [["open", "open"], ["closeOnSelectDisabled", "close-on-select-disabled"], ["disabled", "disabled"], ["maxItems", "max-items"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["type", "type"], ["width", "width"], ["scale", "scale"]]
|
|
21763
21793
|
}; }
|
|
21764
21794
|
}
|
|
21765
21795
|
|
|
21766
21796
|
const CSS$M = {
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21797
|
+
container: "container",
|
|
21798
|
+
containerLink: "container--link",
|
|
21799
|
+
containerMulti: "container--multi-selection",
|
|
21800
|
+
containerSingle: "container--single-selection",
|
|
21801
|
+
containerNone: "container--none-selection",
|
|
21802
|
+
icon: "dropdown-item-icon",
|
|
21803
|
+
iconEnd: "dropdown-item-icon-end",
|
|
21804
|
+
iconStart: "dropdown-item-icon-start",
|
|
21805
|
+
itemContent: "dropdown-item-content",
|
|
21806
|
+
link: "dropdown-link",
|
|
21770
21807
|
};
|
|
21771
21808
|
|
|
21772
21809
|
const dropdownGroupCss = "/*!@:host*/.sc-calcite-dropdown-group-h{position:relative;display:block}/*!@.container*/.container.sc-calcite-dropdown-group{text-align:start}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.dropdown-separator*/.dropdown-separator.sc-calcite-dropdown-group{display:block;block-size:1px;background-color:var(--calcite-ui-border-3)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-dropdown-group{display:none}";
|
|
@@ -21778,28 +21815,35 @@ class DropdownGroup {
|
|
|
21778
21815
|
constructor(hostRef) {
|
|
21779
21816
|
registerInstance(this, hostRef);
|
|
21780
21817
|
this.calciteInternalDropdownItemChange = createEvent(this, "calciteInternalDropdownItemChange", 6);
|
|
21818
|
+
this.updateItems = () => {
|
|
21819
|
+
Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach((item) => (item.selectionMode = this.selectionMode));
|
|
21820
|
+
};
|
|
21821
|
+
this.mutationObserver = createObserver();
|
|
21781
21822
|
this.groupTitle = undefined;
|
|
21823
|
+
this.scale = "m";
|
|
21782
21824
|
this.selectionMode = "single";
|
|
21783
|
-
|
|
21825
|
+
}
|
|
21826
|
+
handlePropsChange() {
|
|
21827
|
+
this.updateItems();
|
|
21784
21828
|
}
|
|
21785
21829
|
//--------------------------------------------------------------------------
|
|
21786
21830
|
//
|
|
21787
21831
|
// Lifecycle
|
|
21788
21832
|
//
|
|
21789
21833
|
//--------------------------------------------------------------------------
|
|
21834
|
+
connectedCallback() {
|
|
21835
|
+
this.updateItems();
|
|
21836
|
+
}
|
|
21790
21837
|
componentWillLoad() {
|
|
21791
21838
|
this.groupPosition = this.getGroupPosition();
|
|
21792
21839
|
}
|
|
21793
21840
|
render() {
|
|
21794
|
-
const scale = this.scale || getElementProp(this.el, "scale", "m");
|
|
21795
21841
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21796
21842
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21797
21843
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21798
|
-
container: true,
|
|
21799
|
-
[CSS$M.
|
|
21800
|
-
|
|
21801
|
-
[CSS$M.containerLarge]: scale === "l",
|
|
21802
|
-
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21844
|
+
[CSS$M.container]: true,
|
|
21845
|
+
[`${CSS$M.container}--${this.scale}`]: true,
|
|
21846
|
+
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21803
21847
|
}
|
|
21804
21848
|
//--------------------------------------------------------------------------
|
|
21805
21849
|
//
|
|
@@ -21824,36 +21868,24 @@ class DropdownGroup {
|
|
|
21824
21868
|
}
|
|
21825
21869
|
static get delegatesFocus() { return true; }
|
|
21826
21870
|
get el() { return getElement(this); }
|
|
21871
|
+
static get watchers() { return {
|
|
21872
|
+
"selectionMode": ["handlePropsChange"]
|
|
21873
|
+
}; }
|
|
21827
21874
|
static get style() { return dropdownGroupCss; }
|
|
21828
21875
|
static get cmpMeta() { return {
|
|
21829
21876
|
"$flags$": 25,
|
|
21830
21877
|
"$tagName$": "calcite-dropdown-group",
|
|
21831
21878
|
"$members$": {
|
|
21832
21879
|
"groupTitle": [513, "group-title"],
|
|
21833
|
-
"
|
|
21834
|
-
"
|
|
21880
|
+
"scale": [1],
|
|
21881
|
+
"selectionMode": [513, "selection-mode"]
|
|
21835
21882
|
},
|
|
21836
21883
|
"$listeners$": [[0, "calciteInternalDropdownItemSelect", "updateActiveItemOnChange"]],
|
|
21837
21884
|
"$lazyBundleId$": "-",
|
|
21838
|
-
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"]
|
|
21885
|
+
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"]]
|
|
21839
21886
|
}; }
|
|
21840
21887
|
}
|
|
21841
21888
|
|
|
21842
|
-
const CSS$L = {
|
|
21843
|
-
containerLink: "container--link",
|
|
21844
|
-
containerSmall: "container--s",
|
|
21845
|
-
containerMedium: "container--m",
|
|
21846
|
-
containerLarge: "container--l",
|
|
21847
|
-
containerMulti: "container--multi-selection",
|
|
21848
|
-
containerSingle: "container--single-selection",
|
|
21849
|
-
containerNone: "container--none-selection",
|
|
21850
|
-
icon: "dropdown-item-icon",
|
|
21851
|
-
iconEnd: "dropdown-item-icon-end",
|
|
21852
|
-
iconStart: "dropdown-item-icon-start",
|
|
21853
|
-
itemContent: "dropdown-item-content",
|
|
21854
|
-
link: "dropdown-link",
|
|
21855
|
-
};
|
|
21856
|
-
|
|
21857
21889
|
const dropdownItemCss = "/*!@.container--s*/.container--s.sc-calcite-dropdown-item{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-item{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-item{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}/*!@.container--s.container--none-selection*/.container--s.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.25rem}/*!@.container--s.container--none-selection .dropdown-link*/.container--s.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@.container--m.container--none-selection*/.container--m.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.5rem}/*!@.container--m.container--none-selection .dropdown-link*/.container--m.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@.container--l.container--none-selection*/.container--l.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.75rem}/*!@.container--l.container--none-selection .dropdown-link*/.container--l.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@:host*/.sc-calcite-dropdown-item-h{position:relative;display:flex;flex-grow:1;align-items:center}/*!@.container*/.container.sc-calcite-dropdown-item{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}/*!@.dropdown-item-content*/.dropdown-item-content.sc-calcite-dropdown-item{flex:1 1 auto;padding-block:0.125rem;padding-inline-end:auto;padding-inline-start:0.25rem}/*!@:host,\n.container--link a*/.sc-calcite-dropdown-item-h,.container--link.sc-calcite-dropdown-item a.sc-calcite-dropdown-item{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-dropdown-item-h:focus{outline:2px solid transparent;outline-offset:2px;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 )}/*!@.container--link*/.container--link.sc-calcite-dropdown-item{padding:0px}/*!@.container--link a*/.container--link.sc-calcite-dropdown-item a.sc-calcite-dropdown-item{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@.container--s .dropdown-link*/.container--s.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}/*!@.container--m .dropdown-link*/.container--m.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}/*!@.container--l .dropdown-link*/.container--l.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}/*!@:host(:hover) .container,\n:host(:active) .container*/.sc-calcite-dropdown-item-h:hover .container.sc-calcite-dropdown-item,.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration-line:none}/*!@:host(:hover) .container--link .dropdown-link,\n:host(:active) .container--link .dropdown-link*/.sc-calcite-dropdown-item-h:hover .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item,.sc-calcite-dropdown-item-h:active .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .container*/.sc-calcite-dropdown-item-h:focus .container.sc-calcite-dropdown-item{color:var(--calcite-ui-text-1);text-decoration-line:none}/*!@:host(:active) .container*/.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host(:hover) .container:before,\n:host(:active) .container:before,\n:host(:focus) .container:before*/.sc-calcite-dropdown-item-h:hover .container.sc-calcite-dropdown-item:before,.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item:before,.sc-calcite-dropdown-item-h:focus .container.sc-calcite-dropdown-item:before{opacity:1}/*!@:host([selected]) .container:not(.container--none-selection),\n:host([selected]) .container--link .dropdown-link*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection),[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container:not(.container--none-selection):before,\n:host([selected]) .container--link .dropdown-link:before*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection):before,[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item:before{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selected]) .container:not(.container--none-selection) calcite-icon,\n:host([selected]) .container--link .dropdown-link calcite-icon*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection) calcite-icon.sc-calcite-dropdown-item,[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item calcite-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-brand)}/*!@.container--multi-selection:before,\n.container--none-selection:before*/.container--multi-selection.sc-calcite-dropdown-item:before,.container--none-selection.sc-calcite-dropdown-item:before{display:none}/*!@.container--s:before*/.container--s.sc-calcite-dropdown-item:before{inset-inline-start:0.5rem}/*!@.container--m:before*/.container--m.sc-calcite-dropdown-item:before{inset-inline-start:0.75rem}/*!@.container--l:before*/.container--l.sc-calcite-dropdown-item:before{inset-inline-start:1rem}/*!@.dropdown-item-icon*/.dropdown-item-icon.sc-calcite-dropdown-item{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}/*!@.container--s .dropdown-item-icon*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.25rem}/*!@.container--m .dropdown-item-icon*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.5rem}/*!@.container--l .dropdown-item-icon*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.75rem}/*!@:host(:hover) .dropdown-item-icon*/.sc-calcite-dropdown-item-h:hover .dropdown-item-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-border-1);opacity:1}/*!@:host([selected]) .dropdown-item-icon*/[selected].sc-calcite-dropdown-item-h .dropdown-item-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-brand);opacity:1}/*!@.container--s .dropdown-item-icon-start*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:0.5rem;margin-inline-start:0.25rem}/*!@.container--s .dropdown-item-icon-end*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:0.5rem}/*!@.container--m .dropdown-item-icon-start*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:0.75rem;margin-inline-start:0.25rem}/*!@.container--m .dropdown-item-icon-end*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:0.75rem}/*!@.container--l .dropdown-item-icon-start*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:1rem;margin-inline-start:0.25rem}/*!@.container--l .dropdown-item-icon-end*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:1rem}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-dropdown-item{display:none}";
|
|
21858
21890
|
|
|
21859
21891
|
/**
|
|
@@ -21866,8 +21898,6 @@ class DropdownItem {
|
|
|
21866
21898
|
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 6);
|
|
21867
21899
|
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 6);
|
|
21868
21900
|
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 6);
|
|
21869
|
-
/** Specifies the scale of dropdown-item controlled by the parent, defaults to m */
|
|
21870
|
-
this.scale = "m";
|
|
21871
21901
|
this.selected = false;
|
|
21872
21902
|
this.iconFlipRtl = undefined;
|
|
21873
21903
|
this.iconStart = undefined;
|
|
@@ -21876,6 +21906,8 @@ class DropdownItem {
|
|
|
21876
21906
|
this.label = undefined;
|
|
21877
21907
|
this.rel = undefined;
|
|
21878
21908
|
this.target = undefined;
|
|
21909
|
+
this.selectionMode = "single";
|
|
21910
|
+
this.scale = "m";
|
|
21879
21911
|
}
|
|
21880
21912
|
//--------------------------------------------------------------------------
|
|
21881
21913
|
//
|
|
@@ -21903,11 +21935,10 @@ class DropdownItem {
|
|
|
21903
21935
|
this.initialize();
|
|
21904
21936
|
}
|
|
21905
21937
|
render() {
|
|
21906
|
-
const
|
|
21907
|
-
const {
|
|
21908
|
-
const
|
|
21909
|
-
const
|
|
21910
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$L.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21938
|
+
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
21939
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$M.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
21940
|
+
const contentNode = (hAsync("span", { class: CSS$M.itemContent }, hAsync("slot", null)));
|
|
21941
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$M.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21911
21942
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21912
21943
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21913
21944
|
: this.iconStart
|
|
@@ -21915,8 +21946,8 @@ class DropdownItem {
|
|
|
21915
21946
|
: this.iconEnd
|
|
21916
21947
|
? [contentNode, iconEndEl]
|
|
21917
21948
|
: contentNode;
|
|
21918
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
21919
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21949
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$M.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
21950
|
+
// 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)
|
|
21920
21951
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21921
21952
|
const itemRole = href
|
|
21922
21953
|
? null
|
|
@@ -21927,15 +21958,13 @@ class DropdownItem {
|
|
|
21927
21958
|
: "menuitem";
|
|
21928
21959
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21929
21960
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
21930
|
-
container: true,
|
|
21931
|
-
[CSS$
|
|
21932
|
-
[CSS$
|
|
21933
|
-
[CSS$
|
|
21934
|
-
[CSS$
|
|
21935
|
-
[CSS$
|
|
21936
|
-
|
|
21937
|
-
[CSS$L.containerNone]: selectionMode === "none",
|
|
21938
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$L.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21961
|
+
[CSS$M.container]: true,
|
|
21962
|
+
[CSS$M.containerLink]: !!href,
|
|
21963
|
+
[`${CSS$M.container}--${scale}`]: true,
|
|
21964
|
+
[CSS$M.containerMulti]: selectionMode === "multiple",
|
|
21965
|
+
[CSS$M.containerSingle]: selectionMode === "single",
|
|
21966
|
+
[CSS$M.containerNone]: selectionMode === "none",
|
|
21967
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$M.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21939
21968
|
}
|
|
21940
21969
|
//--------------------------------------------------------------------------
|
|
21941
21970
|
//
|
|
@@ -21986,7 +22015,6 @@ class DropdownItem {
|
|
|
21986
22015
|
//
|
|
21987
22016
|
//--------------------------------------------------------------------------
|
|
21988
22017
|
initialize() {
|
|
21989
|
-
this.selectionMode = getElementProp(this.el, "selection-mode", "single");
|
|
21990
22018
|
this.parentDropdownGroupEl = this.el.closest("calcite-dropdown-group");
|
|
21991
22019
|
if (this.selectionMode === "none") {
|
|
21992
22020
|
this.selected = false;
|
|
@@ -22033,6 +22061,8 @@ class DropdownItem {
|
|
|
22033
22061
|
"label": [1],
|
|
22034
22062
|
"rel": [513],
|
|
22035
22063
|
"target": [513],
|
|
22064
|
+
"selectionMode": [1, "selection-mode"],
|
|
22065
|
+
"scale": [1],
|
|
22036
22066
|
"setFocus": [64]
|
|
22037
22067
|
},
|
|
22038
22068
|
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteInternalDropdownItemChange", "updateActiveItemOnChange"]],
|
|
@@ -22041,7 +22071,7 @@ class DropdownItem {
|
|
|
22041
22071
|
}; }
|
|
22042
22072
|
}
|
|
22043
22073
|
|
|
22044
|
-
const CSS$
|
|
22074
|
+
const CSS$L = {
|
|
22045
22075
|
button: "button",
|
|
22046
22076
|
};
|
|
22047
22077
|
const ICONS$c = {
|
|
@@ -22102,8 +22132,8 @@ class Fab {
|
|
|
22102
22132
|
render() {
|
|
22103
22133
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22104
22134
|
const title = !textEnabled ? label || text || null : null;
|
|
22105
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22106
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22135
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$L.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
|
+
// 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)
|
|
22107
22137
|
ref: (buttonEl) => {
|
|
22108
22138
|
this.buttonEl = buttonEl;
|
|
22109
22139
|
} }, this.textEnabled ? this.text : null));
|
|
@@ -22132,7 +22162,7 @@ class Fab {
|
|
|
22132
22162
|
}; }
|
|
22133
22163
|
}
|
|
22134
22164
|
|
|
22135
|
-
const CSS$
|
|
22165
|
+
const CSS$K = {
|
|
22136
22166
|
container: "container",
|
|
22137
22167
|
searchIcon: "search-icon",
|
|
22138
22168
|
};
|
|
@@ -22261,8 +22291,8 @@ class Filter {
|
|
|
22261
22291
|
// --------------------------------------------------------------------------
|
|
22262
22292
|
render() {
|
|
22263
22293
|
const { disabled, scale } = this;
|
|
22264
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22265
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22294
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$K.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.messages.label, clearable: true, disabled: disabled, icon: ICONS$b.search, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22295
|
+
// 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)
|
|
22266
22296
|
ref: (el) => {
|
|
22267
22297
|
this.textInput = el;
|
|
22268
22298
|
} })))));
|
|
@@ -22300,7 +22330,7 @@ class Filter {
|
|
|
22300
22330
|
}; }
|
|
22301
22331
|
}
|
|
22302
22332
|
|
|
22303
|
-
const CSS$
|
|
22333
|
+
const CSS$J = {
|
|
22304
22334
|
frame: "frame",
|
|
22305
22335
|
frameAdvancing: "frame--advancing",
|
|
22306
22336
|
frameRetreating: "frame--retreating",
|
|
@@ -22367,7 +22397,13 @@ class Flow {
|
|
|
22367
22397
|
const beforeBack = lastItem.beforeBack
|
|
22368
22398
|
? lastItem.beforeBack
|
|
22369
22399
|
: () => Promise.resolve();
|
|
22370
|
-
|
|
22400
|
+
try {
|
|
22401
|
+
await beforeBack.call(lastItem);
|
|
22402
|
+
}
|
|
22403
|
+
catch (_error) {
|
|
22404
|
+
// back prevented
|
|
22405
|
+
return;
|
|
22406
|
+
}
|
|
22371
22407
|
lastItem.remove();
|
|
22372
22408
|
return lastItem;
|
|
22373
22409
|
}
|
|
@@ -22415,9 +22451,9 @@ class Flow {
|
|
|
22415
22451
|
render() {
|
|
22416
22452
|
const { flowDirection } = this;
|
|
22417
22453
|
const frameDirectionClasses = {
|
|
22418
|
-
[CSS$
|
|
22419
|
-
[CSS$
|
|
22420
|
-
[CSS$
|
|
22454
|
+
[CSS$J.frame]: true,
|
|
22455
|
+
[CSS$J.frameAdvancing]: flowDirection === "advancing",
|
|
22456
|
+
[CSS$J.frameRetreating]: flowDirection === "retreating",
|
|
22421
22457
|
};
|
|
22422
22458
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22423
22459
|
}
|
|
@@ -22439,7 +22475,7 @@ class Flow {
|
|
|
22439
22475
|
}; }
|
|
22440
22476
|
}
|
|
22441
22477
|
|
|
22442
|
-
const CSS$
|
|
22478
|
+
const CSS$I = {
|
|
22443
22479
|
actionBarContainer: "action-bar-container",
|
|
22444
22480
|
backButton: "back-button",
|
|
22445
22481
|
container: "container",
|
|
@@ -22474,7 +22510,7 @@ const SLOTS$m = {
|
|
|
22474
22510
|
footerActions: "footer-actions",
|
|
22475
22511
|
};
|
|
22476
22512
|
|
|
22477
|
-
const CSS$
|
|
22513
|
+
const CSS$H = {
|
|
22478
22514
|
backButton: "back-button",
|
|
22479
22515
|
};
|
|
22480
22516
|
const ICONS$9 = {
|
|
@@ -22622,14 +22658,14 @@ class FlowItem {
|
|
|
22622
22658
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22623
22659
|
const label = messages.back;
|
|
22624
22660
|
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
22625
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22626
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22661
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$H.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22662
|
+
// 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)
|
|
22627
22663
|
ref: this.setBackRef })) : null;
|
|
22628
22664
|
}
|
|
22629
22665
|
render() {
|
|
22630
22666
|
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22631
22667
|
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,
|
|
22632
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22668
|
+
// 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)
|
|
22633
22669
|
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$l.actionBar, slot: SLOTS$m.actionBar }), hAsync("slot", { name: SLOTS$l.headerActionsStart, slot: SLOTS$m.headerActionsStart }), hAsync("slot", { name: SLOTS$l.headerActionsEnd, slot: SLOTS$m.headerActionsEnd }), hAsync("slot", { name: SLOTS$l.headerContent, slot: SLOTS$m.headerContent }), hAsync("slot", { name: SLOTS$l.headerMenuActions, slot: SLOTS$m.headerMenuActions }), hAsync("slot", { name: SLOTS$l.fab, slot: SLOTS$m.fab }), hAsync("slot", { name: SLOTS$l.footerActions, slot: SLOTS$m.footerActions }), hAsync("slot", { name: SLOTS$l.footer, slot: SLOTS$m.footer }), hAsync("slot", null))));
|
|
22634
22670
|
}
|
|
22635
22671
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -22886,7 +22922,7 @@ class Graph {
|
|
|
22886
22922
|
}; }
|
|
22887
22923
|
}
|
|
22888
22924
|
|
|
22889
|
-
const CSS$
|
|
22925
|
+
const CSS$G = {
|
|
22890
22926
|
handle: "handle",
|
|
22891
22927
|
handleActivated: "handle--activated",
|
|
22892
22928
|
};
|
|
@@ -23009,8 +23045,8 @@ class Handle {
|
|
|
23009
23045
|
render() {
|
|
23010
23046
|
return (
|
|
23011
23047
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23012
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23013
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23048
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$G.handle]: true, [CSS$G.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23049
|
+
// 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)
|
|
23014
23050
|
ref: (el) => {
|
|
23015
23051
|
this.handleButton = el;
|
|
23016
23052
|
} }, hAsync("calcite-icon", { icon: ICONS$8.drag, scale: "s" })));
|
|
@@ -23048,7 +23084,7 @@ class Handle {
|
|
|
23048
23084
|
}; }
|
|
23049
23085
|
}
|
|
23050
23086
|
|
|
23051
|
-
const CSS$
|
|
23087
|
+
const CSS$F = {
|
|
23052
23088
|
icon: "icon",
|
|
23053
23089
|
flipRtl: "flip-rtl",
|
|
23054
23090
|
};
|
|
@@ -23096,7 +23132,7 @@ class Icon {
|
|
|
23096
23132
|
const semantic = !!textLabel;
|
|
23097
23133
|
const paths = [].concat(pathData || "");
|
|
23098
23134
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23099
|
-
[CSS$
|
|
23135
|
+
[CSS$F.flipRtl]: dir === "rtl" && flipRtl,
|
|
23100
23136
|
svg: true,
|
|
23101
23137
|
}, 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 }))))));
|
|
23102
23138
|
}
|
|
@@ -23142,7 +23178,7 @@ class Icon {
|
|
|
23142
23178
|
}; }
|
|
23143
23179
|
}
|
|
23144
23180
|
|
|
23145
|
-
const CSS$
|
|
23181
|
+
const CSS$E = {
|
|
23146
23182
|
wrapper: "wrapper",
|
|
23147
23183
|
confirmChangesButton: "confirm-changes-button",
|
|
23148
23184
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23292,17 +23328,17 @@ class InlineEditable {
|
|
|
23292
23328
|
updateHostInteraction(this);
|
|
23293
23329
|
}
|
|
23294
23330
|
render() {
|
|
23295
|
-
return (hAsync("div", { class: CSS$
|
|
23331
|
+
return (hAsync("div", { class: CSS$E.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$E.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$E.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$E.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23296
23332
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23297
23333
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23298
23334
|
}, type: "button",
|
|
23299
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23335
|
+
// 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)
|
|
23300
23336
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23301
|
-
hAsync("div", { class: CSS$
|
|
23302
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23337
|
+
hAsync("div", { class: CSS$E.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$E.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23338
|
+
// 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)
|
|
23303
23339
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23304
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23305
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23340
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$E.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23341
|
+
// 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)
|
|
23306
23342
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23307
23343
|
])));
|
|
23308
23344
|
}
|
|
@@ -23387,7 +23423,7 @@ class InlineEditable {
|
|
|
23387
23423
|
}; }
|
|
23388
23424
|
}
|
|
23389
23425
|
|
|
23390
|
-
const CSS$
|
|
23426
|
+
const CSS$D = {
|
|
23391
23427
|
loader: "loader",
|
|
23392
23428
|
clearButton: "clear-button",
|
|
23393
23429
|
editingEnabled: "editing-enabled",
|
|
@@ -23971,38 +24007,38 @@ class Input {
|
|
|
23971
24007
|
// --------------------------------------------------------------------------
|
|
23972
24008
|
render() {
|
|
23973
24009
|
const dir = getElementDir(this.el);
|
|
23974
|
-
const loader = (hAsync("div", { class: CSS$
|
|
23975
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
23976
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24010
|
+
const loader = (hAsync("div", { class: CSS$D.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24011
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$D.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
24012
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$D.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
23977
24013
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
23978
24014
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
23979
|
-
[CSS$
|
|
23980
|
-
[CSS$
|
|
24015
|
+
[CSS$D.numberButtonItem]: true,
|
|
24016
|
+
[CSS$D.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
23981
24017
|
}, "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" })));
|
|
23982
24018
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
23983
|
-
[CSS$
|
|
23984
|
-
[CSS$
|
|
24019
|
+
[CSS$D.numberButtonItem]: true,
|
|
24020
|
+
[CSS$D.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
23985
24021
|
}, "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" })));
|
|
23986
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
23987
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
23988
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24022
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$D.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24023
|
+
const prefixText = hAsync("div", { class: CSS$D.prefix }, this.prefixText);
|
|
24024
|
+
const suffixText = hAsync("div", { class: CSS$D.suffix }, this.suffixText);
|
|
23989
24025
|
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,
|
|
23990
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
24026
|
+
// 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)
|
|
23991
24027
|
ref: this.setChildNumberElRef })) : null;
|
|
23992
24028
|
const childEl = this.type !== "number"
|
|
23993
24029
|
? [
|
|
23994
24030
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
23995
|
-
[CSS$
|
|
23996
|
-
[CSS$
|
|
24031
|
+
[CSS$D.editingEnabled]: this.editingEnabled,
|
|
24032
|
+
[CSS$D.inlineChild]: !!this.inlineEditableEl,
|
|
23997
24033
|
}, 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,
|
|
23998
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
24034
|
+
// 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)
|
|
23999
24035
|
ref: this.setChildElRef }),
|
|
24000
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24036
|
+
this.isTextarea ? (hAsync("div", { class: CSS$D.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null,
|
|
24001
24037
|
]
|
|
24002
24038
|
: null;
|
|
24003
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24039
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$D.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24004
24040
|
? numberButtonsHorizontalDown
|
|
24005
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24041
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$D.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$D.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24006
24042
|
? numberButtonsVertical
|
|
24007
24043
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24008
24044
|
? numberButtonsHorizontalUp
|
|
@@ -24077,7 +24113,7 @@ class Input {
|
|
|
24077
24113
|
}; }
|
|
24078
24114
|
}
|
|
24079
24115
|
|
|
24080
|
-
const CSS$
|
|
24116
|
+
const CSS$C = {
|
|
24081
24117
|
assistiveText: "assistive-text",
|
|
24082
24118
|
menu: "menu-container",
|
|
24083
24119
|
menuActive: "menu-container--active",
|
|
@@ -25509,34 +25545,34 @@ class InputDatePicker {
|
|
|
25509
25545
|
useGrouping: false,
|
|
25510
25546
|
};
|
|
25511
25547
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler }, this.localeData && (hAsync("div", { class: "input-container" }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick,
|
|
25512
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25548
|
+
// 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)
|
|
25513
25549
|
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",
|
|
25514
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25515
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25516
|
-
[CSS$
|
|
25517
|
-
[CSS$
|
|
25550
|
+
// 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)
|
|
25551
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$C.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: {
|
|
25552
|
+
[CSS$C.menu]: true,
|
|
25553
|
+
[CSS$C.menuActive]: this.open,
|
|
25518
25554
|
}, id: this.dialogId, role: "dialog",
|
|
25519
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25555
|
+
// 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)
|
|
25520
25556
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
25521
25557
|
["calendar-picker-wrapper"]: true,
|
|
25522
25558
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
25523
25559
|
[FloatingCSS.animation]: true,
|
|
25524
25560
|
[FloatingCSS.animationActive]: this.open,
|
|
25525
25561
|
},
|
|
25526
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25562
|
+
// 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)
|
|
25527
25563
|
ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, headingLevel: this.headingLevel, max: this.max, maxAsDate: this.maxAsDate, messageOverrides: this.messageOverrides, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, tabIndex: this.open ? undefined : -1, valueAsDate: this.valueAsDate,
|
|
25528
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25564
|
+
// 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)
|
|
25529
25565
|
ref: this.setDatePickerRef }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: this.scale === "l" ? "m" : "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: this.scale === "l" ? "m" : "s" }))), this.range && (hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick,
|
|
25530
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25566
|
+
// 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)
|
|
25531
25567
|
ref: this.setEndWrapper }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: {
|
|
25532
25568
|
input: true,
|
|
25533
25569
|
"border-top-color-one": this.layout === "vertical" && this.range,
|
|
25534
25570
|
}, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25535
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25571
|
+
// 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)
|
|
25536
25572
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25537
25573
|
}
|
|
25538
25574
|
renderToggleIcon(open) {
|
|
25539
|
-
return (hAsync("span", { class: CSS$
|
|
25575
|
+
return (hAsync("span", { class: CSS$C.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25540
25576
|
}
|
|
25541
25577
|
setReferenceEl() {
|
|
25542
25578
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25784,7 +25820,7 @@ class InputMessage {
|
|
|
25784
25820
|
}; }
|
|
25785
25821
|
}
|
|
25786
25822
|
|
|
25787
|
-
const CSS$
|
|
25823
|
+
const CSS$B = {
|
|
25788
25824
|
loader: "loader",
|
|
25789
25825
|
clearButton: "clear-button",
|
|
25790
25826
|
editingEnabled: "editing-enabled",
|
|
@@ -26293,27 +26329,27 @@ class InputNumber {
|
|
|
26293
26329
|
// --------------------------------------------------------------------------
|
|
26294
26330
|
render() {
|
|
26295
26331
|
const dir = getElementDir(this.el);
|
|
26296
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26297
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26298
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26332
|
+
const loader = (hAsync("div", { class: CSS$B.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26333
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$B.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26334
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$B.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26299
26335
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26300
26336
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26301
|
-
[CSS$
|
|
26302
|
-
[CSS$
|
|
26337
|
+
[CSS$B.numberButtonItem]: true,
|
|
26338
|
+
[CSS$B.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26303
26339
|
}, "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" })));
|
|
26304
26340
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26305
|
-
[CSS$
|
|
26306
|
-
[CSS$
|
|
26341
|
+
[CSS$B.numberButtonItem]: true,
|
|
26342
|
+
[CSS$B.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26307
26343
|
}, "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" })));
|
|
26308
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26309
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26310
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26344
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$B.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26345
|
+
const prefixText = hAsync("div", { class: CSS$B.prefix }, this.prefixText);
|
|
26346
|
+
const suffixText = hAsync("div", { class: CSS$B.suffix }, this.suffixText);
|
|
26311
26347
|
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,
|
|
26312
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
26348
|
+
// 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)
|
|
26313
26349
|
ref: this.setChildNumberElRef }));
|
|
26314
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26350
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$B.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26315
26351
|
? numberButtonsHorizontalDown
|
|
26316
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26352
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$B.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$B.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26317
26353
|
? numberButtonsHorizontalUp
|
|
26318
26354
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26319
26355
|
}
|
|
@@ -26380,7 +26416,7 @@ class InputNumber {
|
|
|
26380
26416
|
}; }
|
|
26381
26417
|
}
|
|
26382
26418
|
|
|
26383
|
-
const CSS$
|
|
26419
|
+
const CSS$A = {
|
|
26384
26420
|
loader: "loader",
|
|
26385
26421
|
clearButton: "clear-button",
|
|
26386
26422
|
editingEnabled: "editing-enabled",
|
|
@@ -26680,18 +26716,18 @@ class InputText {
|
|
|
26680
26716
|
// --------------------------------------------------------------------------
|
|
26681
26717
|
render() {
|
|
26682
26718
|
const dir = getElementDir(this.el);
|
|
26683
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26684
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26685
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26686
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26687
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26719
|
+
const loader = (hAsync("div", { class: CSS$A.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26720
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$A.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26721
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$A.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26722
|
+
const prefixText = hAsync("div", { class: CSS$A.prefix }, this.prefixText);
|
|
26723
|
+
const suffixText = hAsync("div", { class: CSS$A.suffix }, this.suffixText);
|
|
26688
26724
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26689
|
-
[CSS$
|
|
26690
|
-
[CSS$
|
|
26725
|
+
[CSS$A.editingEnabled]: this.editingEnabled,
|
|
26726
|
+
[CSS$A.inlineChild]: !!this.inlineEditableEl,
|
|
26691
26727
|
}, 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,
|
|
26692
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
26728
|
+
// 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)
|
|
26693
26729
|
ref: this.setChildElRef }));
|
|
26694
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26730
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$A.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$A.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$A.actionWrapper }, hAsync("slot", { name: SLOTS$i.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26695
26731
|
}
|
|
26696
26732
|
static get assetsDirs() { return ["assets"]; }
|
|
26697
26733
|
get el() { return getElement(this); }
|
|
@@ -26929,7 +26965,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
26929
26965
|
return isoTimeString;
|
|
26930
26966
|
}
|
|
26931
26967
|
|
|
26932
|
-
const CSS$
|
|
26968
|
+
const CSS$z = {
|
|
26933
26969
|
toggleIcon: "toggle-icon",
|
|
26934
26970
|
};
|
|
26935
26971
|
|
|
@@ -28593,15 +28629,15 @@ class InputTimePicker {
|
|
|
28593
28629
|
render() {
|
|
28594
28630
|
const { disabled, messages, readOnly, dialogId } = this;
|
|
28595
28631
|
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,
|
|
28596
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28632
|
+
// 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)
|
|
28597
28633
|
ref: this.setCalciteInputEl }), !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,
|
|
28598
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28634
|
+
// 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)
|
|
28599
28635
|
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,
|
|
28600
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28636
|
+
// 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)
|
|
28601
28637
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28602
28638
|
}
|
|
28603
28639
|
renderToggleIcon(open) {
|
|
28604
|
-
return (hAsync("span", { class: CSS$
|
|
28640
|
+
return (hAsync("span", { class: CSS$z.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28605
28641
|
}
|
|
28606
28642
|
static get delegatesFocus() { return true; }
|
|
28607
28643
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -28804,7 +28840,7 @@ class InputTimeZone {
|
|
|
28804
28840
|
}
|
|
28805
28841
|
render() {
|
|
28806
28842
|
return (hAsync(Host, null, hAsync("calcite-combobox", { clearDisabled: true, disabled: this.disabled, label: this.messages.chooseTimeZone, lang: this.effectiveLocale, onCalciteComboboxBeforeClose: this.onComboboxBeforeClose, onCalciteComboboxBeforeOpen: this.onComboboxBeforeOpen, onCalciteComboboxChange: this.onComboboxChange, onCalciteComboboxClose: this.onComboboxClose, onCalciteComboboxOpen: this.onComboboxOpen, open: this.open, overlayPositioning: this.overlayPositioning, scale: this.scale, selectionMode: "single",
|
|
28807
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28843
|
+
// 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)
|
|
28808
28844
|
ref: this.setComboboxRef }, this.timeZoneGroups.map((group) => {
|
|
28809
28845
|
const selected = this.selectedTimeZoneGroup === group;
|
|
28810
28846
|
const label = group.offsetLabel;
|
|
@@ -28845,7 +28881,7 @@ class InputTimeZone {
|
|
|
28845
28881
|
}; }
|
|
28846
28882
|
}
|
|
28847
28883
|
|
|
28848
|
-
const CSS$
|
|
28884
|
+
const CSS$y = {
|
|
28849
28885
|
container: "container",
|
|
28850
28886
|
};
|
|
28851
28887
|
|
|
@@ -28885,7 +28921,7 @@ class Label {
|
|
|
28885
28921
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
28886
28922
|
}
|
|
28887
28923
|
render() {
|
|
28888
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
28924
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$y.container }, hAsync("slot", null))));
|
|
28889
28925
|
}
|
|
28890
28926
|
get el() { return getElement(this); }
|
|
28891
28927
|
static get style() { return labelCss; }
|
|
@@ -28971,7 +29007,7 @@ class Link {
|
|
|
28971
29007
|
This works around that issue for now.
|
|
28972
29008
|
*/
|
|
28973
29009
|
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, onClick: this.childElClickHandler, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target,
|
|
28974
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
29010
|
+
// 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)
|
|
28975
29011
|
ref: this.storeTagRef }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
28976
29012
|
}
|
|
28977
29013
|
//--------------------------------------------------------------------------
|
|
@@ -29020,7 +29056,7 @@ class Link {
|
|
|
29020
29056
|
}; }
|
|
29021
29057
|
}
|
|
29022
29058
|
|
|
29023
|
-
const CSS$
|
|
29059
|
+
const CSS$x = {
|
|
29024
29060
|
container: "container",
|
|
29025
29061
|
containerBorderSelected: "container--border-selected",
|
|
29026
29062
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29087,7 +29123,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29087
29123
|
}
|
|
29088
29124
|
}
|
|
29089
29125
|
|
|
29090
|
-
const CSS$
|
|
29126
|
+
const CSS$w = {
|
|
29091
29127
|
container: "container",
|
|
29092
29128
|
table: "table",
|
|
29093
29129
|
scrim: "scrim",
|
|
@@ -32198,7 +32234,7 @@ function onSortingEnd(activeComponent) {
|
|
|
32198
32234
|
getNestedSortableComponents(activeComponent).forEach((component) => inactiveSortableComponentSet.delete(component));
|
|
32199
32235
|
}
|
|
32200
32236
|
|
|
32201
|
-
const CSS$
|
|
32237
|
+
const CSS$v = {
|
|
32202
32238
|
container: "container",
|
|
32203
32239
|
actionsStart: "actions-start",
|
|
32204
32240
|
contentStart: "content-start",
|
|
@@ -32502,7 +32538,11 @@ class List$1 {
|
|
|
32502
32538
|
// Public Methods
|
|
32503
32539
|
//
|
|
32504
32540
|
// --------------------------------------------------------------------------
|
|
32505
|
-
/**
|
|
32541
|
+
/**
|
|
32542
|
+
* Sets focus on the component's first focusable element.
|
|
32543
|
+
*
|
|
32544
|
+
* @returns {Promise<void>}
|
|
32545
|
+
*/
|
|
32506
32546
|
async setFocus() {
|
|
32507
32547
|
await componentFocusable(this);
|
|
32508
32548
|
if (this.filterEnabled) {
|
|
@@ -32517,9 +32557,9 @@ class List$1 {
|
|
|
32517
32557
|
// --------------------------------------------------------------------------
|
|
32518
32558
|
render() {
|
|
32519
32559
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32520
|
-
return (hAsync("div", { class: CSS$
|
|
32521
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32522
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$g.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$f.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$
|
|
32560
|
+
return (hAsync("div", { class: CSS$w.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$w.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$w.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$w.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$w.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$w.stack }, hAsync("slot", { name: SLOTS$g.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS$f.actionsStart }), hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
|
32561
|
+
// 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)
|
|
32562
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$g.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$f.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$w.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
32523
32563
|
}
|
|
32524
32564
|
// --------------------------------------------------------------------------
|
|
32525
32565
|
//
|
|
@@ -32934,47 +32974,47 @@ class ListItem {
|
|
|
32934
32974
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
32935
32975
|
return null;
|
|
32936
32976
|
}
|
|
32937
|
-
return (hAsync("td", { class: CSS$
|
|
32977
|
+
return (hAsync("td", { class: CSS$x.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
32938
32978
|
? selectionMode === "multiple"
|
|
32939
32979
|
? ICONS$7.selectedMultiple
|
|
32940
32980
|
: ICONS$7.selectedSingle
|
|
32941
32981
|
: ICONS$7.unselected, scale: "s" })));
|
|
32942
32982
|
}
|
|
32943
32983
|
renderDragHandle() {
|
|
32944
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
32984
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$x.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
32945
32985
|
}
|
|
32946
32986
|
renderOpen() {
|
|
32947
32987
|
const { el, open, openable, parentListEl } = this;
|
|
32948
32988
|
const dir = getElementDir(el);
|
|
32949
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
32989
|
+
return openable ? (hAsync("td", { class: CSS$x.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$7.open : dir === "rtl" ? ICONS$7.closedRTL : ICONS$7.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$x.openContainer, key: "open-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: ICONS$7.blank, scale: "s" }))) : null;
|
|
32950
32990
|
}
|
|
32951
32991
|
renderActionsStart() {
|
|
32952
32992
|
const { label, hasActionsStart } = this;
|
|
32953
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
32954
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32993
|
+
return (hAsync("td", { "aria-label": label, class: CSS$x.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
32994
|
+
// 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)
|
|
32955
32995
|
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$h.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
32956
32996
|
}
|
|
32957
32997
|
renderActionsEnd() {
|
|
32958
32998
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
32959
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
32960
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32999
|
+
return (hAsync("td", { "aria-label": label, class: CSS$x.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33000
|
+
// 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)
|
|
32961
33001
|
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$h.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$7.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
32962
33002
|
}
|
|
32963
33003
|
renderContentStart() {
|
|
32964
33004
|
const { hasContentStart } = this;
|
|
32965
|
-
return (hAsync("div", { class: CSS$
|
|
33005
|
+
return (hAsync("div", { class: CSS$x.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$h.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
32966
33006
|
}
|
|
32967
33007
|
renderCustomContent() {
|
|
32968
33008
|
const { hasCustomContent } = this;
|
|
32969
|
-
return (hAsync("div", { class: CSS$
|
|
33009
|
+
return (hAsync("div", { class: CSS$x.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$h.content, onSlotchange: this.handleContentSlotChange })));
|
|
32970
33010
|
}
|
|
32971
33011
|
renderContentEnd() {
|
|
32972
33012
|
const { hasContentEnd } = this;
|
|
32973
|
-
return (hAsync("div", { class: CSS$
|
|
33013
|
+
return (hAsync("div", { class: CSS$x.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$h.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
32974
33014
|
}
|
|
32975
33015
|
renderContentProperties() {
|
|
32976
33016
|
const { label, description, hasCustomContent } = this;
|
|
32977
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33017
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$x.content, key: "content" }, label ? (hAsync("div", { class: CSS$x.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$x.description, key: "description" }, description)) : null)) : null;
|
|
32978
33018
|
}
|
|
32979
33019
|
renderContentContainer() {
|
|
32980
33020
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -32986,11 +33026,11 @@ class ListItem {
|
|
|
32986
33026
|
this.renderContentEnd(),
|
|
32987
33027
|
];
|
|
32988
33028
|
return (hAsync("td", { "aria-label": label, class: {
|
|
32989
|
-
[CSS$
|
|
32990
|
-
[CSS$
|
|
32991
|
-
[CSS$
|
|
33029
|
+
[CSS$x.contentContainer]: true,
|
|
33030
|
+
[CSS$x.contentContainerSelectable]: selectionMode !== "none",
|
|
33031
|
+
[CSS$x.contentContainerHasCenterContent]: hasCenterContent,
|
|
32992
33032
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
32993
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33033
|
+
// 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)
|
|
32994
33034
|
ref: (el) => (this.contentEl = el) }, content));
|
|
32995
33035
|
}
|
|
32996
33036
|
render() {
|
|
@@ -32999,14 +33039,14 @@ class ListItem {
|
|
|
32999
33039
|
const borderSelected = showBorder && selected;
|
|
33000
33040
|
const borderUnselected = showBorder && !selected;
|
|
33001
33041
|
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: {
|
|
33002
|
-
[CSS$
|
|
33003
|
-
[CSS$
|
|
33004
|
-
[CSS$
|
|
33042
|
+
[CSS$x.container]: true,
|
|
33043
|
+
[CSS$x.containerBorderSelected]: borderSelected,
|
|
33044
|
+
[CSS$x.containerBorderUnselected]: borderUnselected,
|
|
33005
33045
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33006
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33046
|
+
// 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)
|
|
33007
33047
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33008
|
-
[CSS$
|
|
33009
|
-
[CSS$
|
|
33048
|
+
[CSS$x.nestedContainer]: true,
|
|
33049
|
+
[CSS$x.nestedContainerHidden]: openable && !open,
|
|
33010
33050
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33011
33051
|
}
|
|
33012
33052
|
// --------------------------------------------------------------------------
|
|
@@ -33096,7 +33136,7 @@ class ListItem {
|
|
|
33096
33136
|
}; }
|
|
33097
33137
|
}
|
|
33098
33138
|
|
|
33099
|
-
const CSS$
|
|
33139
|
+
const CSS$u = {
|
|
33100
33140
|
container: "container",
|
|
33101
33141
|
heading: "heading",
|
|
33102
33142
|
};
|
|
@@ -33145,7 +33185,7 @@ class ListItemGroup {
|
|
|
33145
33185
|
// --------------------------------------------------------------------------
|
|
33146
33186
|
render() {
|
|
33147
33187
|
const { heading, visualLevel } = this;
|
|
33148
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33188
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$u.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$u.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33149
33189
|
}
|
|
33150
33190
|
get el() { return getElement(this); }
|
|
33151
33191
|
static get style() { return listItemGroupCss; }
|
|
@@ -33163,7 +33203,7 @@ class ListItemGroup {
|
|
|
33163
33203
|
}; }
|
|
33164
33204
|
}
|
|
33165
33205
|
|
|
33166
|
-
const loaderCss = "@charset \"UTF-8\";@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0}}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:flex}/*!@.loader__text*/.loader__text.sc-calcite-loader{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}/*!@.loader__percentage*/.loader__percentage.sc-calcite-loader{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}/*!@.loader__svgs*/.loader__svgs.sc-calcite-loader{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);
|
|
33206
|
+
const loaderCss = "@charset \"UTF-8\";@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0}}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:flex}/*!@.loader__text*/.loader__text.sc-calcite-loader{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}/*!@.loader__percentage*/.loader__percentage.sc-calcite-loader{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}/*!@.loader__svgs*/.loader__svgs.sc-calcite-loader{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise}/*!@.loader__svg*/.loader__svg.sc-calcite-loader{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}@supports (display: grid){/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{animation-name:loader-offset-1}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{animation-name:loader-offset-2}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{animation-name:loader-offset-3}}/*!@:host([type=determinate])*/[type=determinate].sc-calcite-loader-h{animation:none;stroke:var(--calcite-ui-border-3)}/*!@:host([type=determinate]) .loader__svgs*/[type=determinate].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{animation:none}/*!@:host([type=determinate]) .loader__svg--3*/[type=determinate].sc-calcite-loader-h .loader__svg--3.sc-calcite-loader{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}/*!@:host([inline])*/[inline].sc-calcite-loader-h{position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}/*!@:host([inline]) .loader__svgs*/[inline].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([inline]) .loader__svg*/[inline].sc-calcite-loader-h .loader__svg.sc-calcite-loader{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([complete])*/[complete].sc-calcite-loader-h{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}/*!@:host([complete]) .loader__svgs*/[complete].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}/*!@:host([complete]) .loader__percentage*/[complete].sc-calcite-loader-h .loader__percentage.sc-calcite-loader{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}/*!@:host([hidden])*/[hidden].sc-calcite-loader-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-loader{display:none}";
|
|
33167
33207
|
|
|
33168
33208
|
class Loader {
|
|
33169
33209
|
constructor(hostRef) {
|
|
@@ -33245,7 +33285,7 @@ class Loader {
|
|
|
33245
33285
|
}; }
|
|
33246
33286
|
}
|
|
33247
33287
|
|
|
33248
|
-
const CSS$
|
|
33288
|
+
const CSS$t = {
|
|
33249
33289
|
container: "container",
|
|
33250
33290
|
fill: "fill",
|
|
33251
33291
|
stepLine: "step-line",
|
|
@@ -33395,16 +33435,16 @@ class Meter {
|
|
|
33395
33435
|
const aboveHighest = value >= highest;
|
|
33396
33436
|
const belowHighest = value < highest;
|
|
33397
33437
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33398
|
-
return CSS$
|
|
33438
|
+
return CSS$t.success;
|
|
33399
33439
|
}
|
|
33400
33440
|
else if (aboveLowest && belowHighest) {
|
|
33401
|
-
return CSS$
|
|
33441
|
+
return CSS$t.warning;
|
|
33402
33442
|
}
|
|
33403
33443
|
else if (aboveHighest) {
|
|
33404
|
-
return CSS$
|
|
33444
|
+
return CSS$t.danger;
|
|
33405
33445
|
}
|
|
33406
33446
|
else {
|
|
33407
|
-
return CSS$
|
|
33447
|
+
return CSS$t.success;
|
|
33408
33448
|
}
|
|
33409
33449
|
}
|
|
33410
33450
|
intersects(el1, el2) {
|
|
@@ -33418,7 +33458,7 @@ class Meter {
|
|
|
33418
33458
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33419
33459
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33420
33460
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33421
|
-
const hiddenClass = CSS$
|
|
33461
|
+
const hiddenClass = CSS$t.labelHidden;
|
|
33422
33462
|
if (lowLabelEl) {
|
|
33423
33463
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33424
33464
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33467,26 +33507,26 @@ class Meter {
|
|
|
33467
33507
|
renderMeterFill() {
|
|
33468
33508
|
const { currentPercent, fillType } = this;
|
|
33469
33509
|
const kindClass = this.getMeterKindCssClass();
|
|
33470
|
-
return (hAsync("div", { class: { [CSS$
|
|
33510
|
+
return (hAsync("div", { class: { [CSS$t.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33471
33511
|
}
|
|
33472
33512
|
renderRangeLine(position) {
|
|
33473
33513
|
const style = { insetInlineStart: `${position}%` };
|
|
33474
|
-
return hAsync("div", { class: CSS$
|
|
33514
|
+
return hAsync("div", { class: CSS$t.stepLine, style: style });
|
|
33475
33515
|
}
|
|
33476
33516
|
renderValueLabel() {
|
|
33477
33517
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33478
33518
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33479
|
-
return (hAsync("div", { class: { [CSS$
|
|
33519
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelValue]: true }, key: "low-label-line",
|
|
33480
33520
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33481
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33521
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$t.unitLabel }, "\u00A0", unitLabel))));
|
|
33482
33522
|
}
|
|
33483
33523
|
renderMinLabel() {
|
|
33484
33524
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33485
33525
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33486
33526
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33487
|
-
return (hAsync("div", { class: { [CSS$
|
|
33527
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "min-label-line", style: style,
|
|
33488
33528
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33489
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33529
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$t.unitLabel }, "\u00A0", unitLabel))));
|
|
33490
33530
|
}
|
|
33491
33531
|
renderLowLabel() {
|
|
33492
33532
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33496,7 +33536,7 @@ class Meter {
|
|
|
33496
33536
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33497
33537
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33498
33538
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33499
|
-
return (hAsync("div", { class: { [CSS$
|
|
33539
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "low-label-line", style: style,
|
|
33500
33540
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33501
33541
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33502
33542
|
}
|
|
@@ -33508,7 +33548,7 @@ class Meter {
|
|
|
33508
33548
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33509
33549
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33510
33550
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33511
|
-
return (hAsync("div", { class: { [CSS$
|
|
33551
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "high-label-line", style: style,
|
|
33512
33552
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33513
33553
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33514
33554
|
}
|
|
@@ -33516,7 +33556,7 @@ class Meter {
|
|
|
33516
33556
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33517
33557
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33518
33558
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33519
|
-
return (hAsync("div", { class: { [CSS$
|
|
33559
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "max-label-line", style: style,
|
|
33520
33560
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33521
33561
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33522
33562
|
}
|
|
@@ -33530,9 +33570,9 @@ class Meter {
|
|
|
33530
33570
|
? textUnitLabel
|
|
33531
33571
|
: undefined;
|
|
33532
33572
|
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: {
|
|
33533
|
-
[CSS$
|
|
33534
|
-
[CSS$
|
|
33535
|
-
[CSS$
|
|
33573
|
+
[CSS$t.container]: true,
|
|
33574
|
+
[CSS$t.stepsVisible]: rangeLabels,
|
|
33575
|
+
[CSS$t.valueVisible]: valueLabel,
|
|
33536
33576
|
[appearance]: appearance !== "outline-fill",
|
|
33537
33577
|
}, role: "meter",
|
|
33538
33578
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33588,7 +33628,7 @@ class Meter {
|
|
|
33588
33628
|
}; }
|
|
33589
33629
|
}
|
|
33590
33630
|
|
|
33591
|
-
const CSS$
|
|
33631
|
+
const CSS$s = {
|
|
33592
33632
|
modal: "modal",
|
|
33593
33633
|
title: "title",
|
|
33594
33634
|
header: "header",
|
|
@@ -33625,7 +33665,7 @@ const SLOTS$e = {
|
|
|
33625
33665
|
primary: "primary",
|
|
33626
33666
|
};
|
|
33627
33667
|
|
|
33628
|
-
const modalCss = "/*!@:host*/.sc-calcite-modal-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}/*!@.content-top[hidden],\n.content-bottom[hidden]*/.content-top[hidden].sc-calcite-modal,.content-bottom[hidden].sc-calcite-modal{display:none}/*!@.container*/.container.sc-calcite-modal{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([open])*/[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open*/.container--open.sc-calcite-modal{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open .modal*/.container--open.sc-calcite-modal .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-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 )}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}/*!@.content-top,\n.content-bottom*/.content-top.sc-calcite-modal,.content-bottom.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}/*!@.content-top*/.content-top.sc-calcite-modal{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}/*!@.content-bottom*/.content-bottom.sc-calcite-modal{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}/*!@.content-top:not(.header ~ .content-top)*/.content-top.sc-calcite-modal:not(.header~.content-top).sc-calcite-modal{border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}/*!@.content-bottom:not(.content-bottom ~ .footer),\n.content--no-footer*/.content-bottom.sc-calcite-modal:not(.content-bottom~.footer).sc-calcite-modal,.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-context-text-internal)}/*!@.footer*/.footer.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked]) .container*/[width=s][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked]) .container*/[width=m][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked]) .container*/[width=l][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([open][fullscreen]) .header,\n:host([open][fullscreen]) .footer,\n:host([open][fullscreen]) .content-top,\n:host([open][fullscreen]) .content-bottom*/[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .content-top.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .content-bottom.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:var(--calcite-modal-height, auto)}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}/*!@:host([kind=brand]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-brand)}/*!@:host([kind=danger]) .modal*/[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([kind=info]) .modal*/[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([kind=success]) .modal*/[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .modal*/[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-warning)}/*!@:host([kind=brand]) .modal,\n:host([kind=danger]) .modal,\n:host([kind=info]) .modal,\n:host([kind=success]) .modal,\n:host([kind=warning]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([kind=brand]) .header,\n:host([kind=brand]) .content-top,\n:host([kind=danger]) .header,\n:host([kind=danger]) .content-top,\n:host([kind=info]) .header,\n:host([kind=info]) .content-top,\n:host([kind=success]) .header,\n:host([kind=success]) .content-top,\n:host([kind=warning]) .header,\n:host([kind=warning]) .content-top*/[kind=brand].sc-calcite-modal-h .header.sc-calcite-modal,[kind=brand].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .header.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=info].sc-calcite-modal-h .header.sc-calcite-modal,[kind=info].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=success].sc-calcite-modal-h .header.sc-calcite-modal,[kind=success].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .header.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .content-top.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@* slot[name=header]::slotted(content-top),\n * content-top::slotted([slot=header])*/* slot[name=header].sc-calcite-modal-s>content-top,* content-top.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{flex-direction:column}/*!@.back,\n .secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-modal{position:absolute;pointer-events:auto}/*!@.container.slotted-in-shell calcite-scrim*/.container.slotted-in-shell.sc-calcite-modal calcite-scrim.sc-calcite-modal{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-modal{display:none}";
|
|
33668
|
+
const modalCss = "/*!@:host*/.sc-calcite-modal-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}/*!@.content-top[hidden],\n.content-bottom[hidden]*/.content-top[hidden].sc-calcite-modal,.content-bottom[hidden].sc-calcite-modal{display:none}/*!@.container*/.container.sc-calcite-modal{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([opened])*/[opened].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open*/.container--open.sc-calcite-modal{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open .modal*/.container--open.sc-calcite-modal .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-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 )}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}/*!@.content-top,\n.content-bottom*/.content-top.sc-calcite-modal,.content-bottom.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}/*!@.content-top*/.content-top.sc-calcite-modal{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}/*!@.content-bottom*/.content-bottom.sc-calcite-modal{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}/*!@.content-top:not(.header ~ .content-top)*/.content-top.sc-calcite-modal:not(.header~.content-top).sc-calcite-modal{border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}/*!@.content-bottom:not(.content-bottom ~ .footer),\n.content--no-footer*/.content-bottom.sc-calcite-modal:not(.content-bottom~.footer).sc-calcite-modal,.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-context-text-internal)}/*!@.footer*/.footer.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked]) .container*/[width=s][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked]) .container*/[width=m][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked]) .container*/[width=l][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([opened][fullscreen]) .header,\n:host([opened][fullscreen]) .footer,\n:host([opened][fullscreen]) .content-top,\n:host([opened][fullscreen]) .content-bottom*/[opened][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .content-top.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .content-bottom.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:var(--calcite-modal-height, auto)}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}/*!@:host([kind=brand]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-brand)}/*!@:host([kind=danger]) .modal*/[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([kind=info]) .modal*/[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([kind=success]) .modal*/[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .modal*/[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-warning)}/*!@:host([kind=brand]) .modal,\n:host([kind=danger]) .modal,\n:host([kind=info]) .modal,\n:host([kind=success]) .modal,\n:host([kind=warning]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([kind=brand]) .header,\n:host([kind=brand]) .content-top,\n:host([kind=danger]) .header,\n:host([kind=danger]) .content-top,\n:host([kind=info]) .header,\n:host([kind=info]) .content-top,\n:host([kind=success]) .header,\n:host([kind=success]) .content-top,\n:host([kind=warning]) .header,\n:host([kind=warning]) .content-top*/[kind=brand].sc-calcite-modal-h .header.sc-calcite-modal,[kind=brand].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .header.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=info].sc-calcite-modal-h .header.sc-calcite-modal,[kind=info].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=success].sc-calcite-modal-h .header.sc-calcite-modal,[kind=success].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .header.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .content-top.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@* slot[name=header]::slotted(content-top),\n * content-top::slotted([slot=header])*/* slot[name=header].sc-calcite-modal-s>content-top,* content-top.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{flex-direction:column}/*!@.back,\n .secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-modal{position:absolute;pointer-events:auto}/*!@.container.slotted-in-shell calcite-scrim*/.container.slotted-in-shell.sc-calcite-modal calcite-scrim.sc-calcite-modal{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-modal{display:none}";
|
|
33629
33669
|
|
|
33630
33670
|
/**
|
|
33631
33671
|
* @slot header - A slot for adding header text.
|
|
@@ -33643,6 +33683,12 @@ class Modal {
|
|
|
33643
33683
|
this.calciteModalClose = createEvent(this, "calciteModalClose", 6);
|
|
33644
33684
|
this.calciteModalBeforeOpen = createEvent(this, "calciteModalBeforeOpen", 6);
|
|
33645
33685
|
this.calciteModalOpen = createEvent(this, "calciteModalOpen", 6);
|
|
33686
|
+
//--------------------------------------------------------------------------
|
|
33687
|
+
//
|
|
33688
|
+
// Private Properties/ State
|
|
33689
|
+
//
|
|
33690
|
+
//--------------------------------------------------------------------------
|
|
33691
|
+
this.ignoreOpenChange = false;
|
|
33646
33692
|
this.mutationObserver = createObserver();
|
|
33647
33693
|
this.cssVarObserver = createObserver();
|
|
33648
33694
|
this.openTransitionProp = "opacity";
|
|
@@ -33662,15 +33708,32 @@ class Modal {
|
|
|
33662
33708
|
if (this.outsideCloseDisabled) {
|
|
33663
33709
|
return;
|
|
33664
33710
|
}
|
|
33665
|
-
this.
|
|
33711
|
+
this.closeModal();
|
|
33666
33712
|
};
|
|
33667
33713
|
/** Close the modal, first running the `beforeClose` method */
|
|
33668
|
-
this.
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33714
|
+
this.closeModal = async () => {
|
|
33715
|
+
if (this.ignoreOpenChange) {
|
|
33716
|
+
return;
|
|
33717
|
+
}
|
|
33718
|
+
if (this.beforeClose) {
|
|
33719
|
+
try {
|
|
33720
|
+
await this.beforeClose(this.el);
|
|
33721
|
+
}
|
|
33722
|
+
catch (_error) {
|
|
33723
|
+
// close prevented
|
|
33724
|
+
requestAnimationFrame(() => {
|
|
33725
|
+
this.ignoreOpenChange = true;
|
|
33726
|
+
this.open = true;
|
|
33727
|
+
this.ignoreOpenChange = false;
|
|
33728
|
+
});
|
|
33729
|
+
return;
|
|
33730
|
+
}
|
|
33731
|
+
}
|
|
33732
|
+
this.ignoreOpenChange = true;
|
|
33733
|
+
this.open = false;
|
|
33734
|
+
this.opened = false;
|
|
33735
|
+
this.removeOverflowHiddenClass();
|
|
33736
|
+
this.ignoreOpenChange = false;
|
|
33674
33737
|
};
|
|
33675
33738
|
this.handleMutationObserver = () => {
|
|
33676
33739
|
this.updateFooterVisibility();
|
|
@@ -33690,7 +33753,8 @@ class Modal {
|
|
|
33690
33753
|
this.hasContentBottom = slotChangeHasAssignedElement(event);
|
|
33691
33754
|
};
|
|
33692
33755
|
this.open = false;
|
|
33693
|
-
this.
|
|
33756
|
+
this.opened = false;
|
|
33757
|
+
this.beforeClose = undefined;
|
|
33694
33758
|
this.closeButtonDisabled = false;
|
|
33695
33759
|
this.focusTrapDisabled = false;
|
|
33696
33760
|
this.outsideCloseDisabled = false;
|
|
@@ -33708,7 +33772,6 @@ class Modal {
|
|
|
33708
33772
|
this.hasFooter = true;
|
|
33709
33773
|
this.hasContentTop = false;
|
|
33710
33774
|
this.hasContentBottom = false;
|
|
33711
|
-
this.isOpen = false;
|
|
33712
33775
|
this.effectiveLocale = undefined;
|
|
33713
33776
|
this.defaultMessages = undefined;
|
|
33714
33777
|
}
|
|
@@ -33760,50 +33823,50 @@ class Modal {
|
|
|
33760
33823
|
}
|
|
33761
33824
|
render() {
|
|
33762
33825
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
33763
|
-
[CSS$
|
|
33764
|
-
[CSS$
|
|
33765
|
-
[CSS$
|
|
33766
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
33767
|
-
[CSS$
|
|
33826
|
+
[CSS$s.container]: true,
|
|
33827
|
+
[CSS$s.containerOpen]: this.opened,
|
|
33828
|
+
[CSS$s.slottedInShell]: this.slottedInShell,
|
|
33829
|
+
} }, hAsync("calcite-scrim", { class: CSS$s.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
33830
|
+
[CSS$s.modal]: true,
|
|
33768
33831
|
},
|
|
33769
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33770
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
33771
|
-
[CSS$
|
|
33772
|
-
[CSS$
|
|
33832
|
+
// 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)
|
|
33833
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$s.header }, this.renderCloseButton(), hAsync("header", { class: CSS$s.title }, hAsync("slot", { name: CSS$s.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
33834
|
+
[CSS$s.content]: true,
|
|
33835
|
+
[CSS$s.contentNoFooter]: !this.hasFooter,
|
|
33773
33836
|
},
|
|
33774
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33837
|
+
// 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)
|
|
33775
33838
|
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
33776
33839
|
}
|
|
33777
33840
|
renderFooter() {
|
|
33778
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
33841
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$s.footer, key: "footer" }, hAsync("span", { class: CSS$s.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$s.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$s.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
33779
33842
|
}
|
|
33780
33843
|
renderContentTop() {
|
|
33781
|
-
return (hAsync("div", { class: CSS$
|
|
33844
|
+
return (hAsync("div", { class: CSS$s.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$e.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
33782
33845
|
}
|
|
33783
33846
|
renderContentBottom() {
|
|
33784
|
-
return (hAsync("div", { class: CSS$
|
|
33847
|
+
return (hAsync("div", { class: CSS$s.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$e.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
33785
33848
|
}
|
|
33786
33849
|
renderCloseButton() {
|
|
33787
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
33788
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33850
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$s.close, key: "button", onClick: this.closeModal, title: this.messages.close,
|
|
33851
|
+
// 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)
|
|
33789
33852
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
33790
33853
|
}
|
|
33791
33854
|
renderStyle() {
|
|
33792
33855
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
33793
|
-
return (hAsync("style", null, `.${CSS$
|
|
33856
|
+
return (hAsync("style", null, `.${CSS$s.container} {
|
|
33794
33857
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
33795
33858
|
}
|
|
33796
|
-
.${CSS$
|
|
33859
|
+
.${CSS$s.modal} {
|
|
33797
33860
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
33798
33861
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
33799
33862
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
33800
33863
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
33801
33864
|
}
|
|
33802
33865
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
33803
|
-
.${CSS$
|
|
33866
|
+
.${CSS$s.container} {
|
|
33804
33867
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
33805
33868
|
}
|
|
33806
|
-
.${CSS$
|
|
33869
|
+
.${CSS$s.modal} {
|
|
33807
33870
|
max-block-size: 100% !important;
|
|
33808
33871
|
inline-size: 100% !important;
|
|
33809
33872
|
max-inline-size: 100% !important;
|
|
@@ -33829,7 +33892,7 @@ class Modal {
|
|
|
33829
33892
|
//--------------------------------------------------------------------------
|
|
33830
33893
|
handleEscape(event) {
|
|
33831
33894
|
if (this.open && !this.escapeDisabled && event.key === "Escape" && !event.defaultPrevented) {
|
|
33832
|
-
this.
|
|
33895
|
+
this.closeModal();
|
|
33833
33896
|
event.preventDefault();
|
|
33834
33897
|
}
|
|
33835
33898
|
}
|
|
@@ -33870,39 +33933,46 @@ class Modal {
|
|
|
33870
33933
|
}
|
|
33871
33934
|
}
|
|
33872
33935
|
onBeforeOpen() {
|
|
33873
|
-
this.transitionEl.classList.add(CSS$
|
|
33936
|
+
this.transitionEl.classList.add(CSS$s.openingActive);
|
|
33874
33937
|
this.calciteModalBeforeOpen.emit();
|
|
33875
33938
|
}
|
|
33876
33939
|
onOpen() {
|
|
33877
|
-
this.transitionEl.classList.remove(CSS$
|
|
33940
|
+
this.transitionEl.classList.remove(CSS$s.openingIdle, CSS$s.openingActive);
|
|
33878
33941
|
this.calciteModalOpen.emit();
|
|
33879
33942
|
activateFocusTrap(this);
|
|
33880
33943
|
}
|
|
33881
33944
|
onBeforeClose() {
|
|
33882
|
-
this.transitionEl.classList.add(CSS$
|
|
33945
|
+
this.transitionEl.classList.add(CSS$s.closingActive);
|
|
33883
33946
|
this.calciteModalBeforeClose.emit();
|
|
33884
33947
|
}
|
|
33885
33948
|
onClose() {
|
|
33886
|
-
this.transitionEl.classList.remove(CSS$
|
|
33949
|
+
this.transitionEl.classList.remove(CSS$s.closingIdle, CSS$s.closingActive);
|
|
33887
33950
|
this.calciteModalClose.emit();
|
|
33888
33951
|
deactivateFocusTrap(this);
|
|
33889
33952
|
}
|
|
33890
33953
|
async toggleModal(value) {
|
|
33954
|
+
if (this.ignoreOpenChange) {
|
|
33955
|
+
return;
|
|
33956
|
+
}
|
|
33891
33957
|
onToggleOpenCloseComponent(this);
|
|
33892
33958
|
if (value) {
|
|
33893
|
-
this.transitionEl?.classList.add(CSS$
|
|
33959
|
+
this.transitionEl?.classList.add(CSS$s.openingIdle);
|
|
33894
33960
|
this.openModal();
|
|
33895
33961
|
}
|
|
33896
33962
|
else {
|
|
33897
|
-
this.transitionEl?.classList.add(CSS$
|
|
33898
|
-
this.
|
|
33963
|
+
this.transitionEl?.classList.add(CSS$s.closingIdle);
|
|
33964
|
+
this.closeModal();
|
|
33899
33965
|
}
|
|
33900
33966
|
}
|
|
33901
33967
|
/** Open the modal */
|
|
33902
33968
|
openModal() {
|
|
33969
|
+
if (this.ignoreOpenChange) {
|
|
33970
|
+
return;
|
|
33971
|
+
}
|
|
33972
|
+
this.ignoreOpenChange = true;
|
|
33903
33973
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
33904
33974
|
this.open = true;
|
|
33905
|
-
this.
|
|
33975
|
+
this.opened = true;
|
|
33906
33976
|
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
33907
33977
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
33908
33978
|
this.titleId = ensureId(titleEl);
|
|
@@ -33912,6 +33982,7 @@ class Modal {
|
|
|
33912
33982
|
// use an inline style instead of a utility class to avoid global class declarations.
|
|
33913
33983
|
document.documentElement.style.setProperty("overflow", "hidden");
|
|
33914
33984
|
}
|
|
33985
|
+
this.ignoreOpenChange = false;
|
|
33915
33986
|
}
|
|
33916
33987
|
removeOverflowHiddenClass() {
|
|
33917
33988
|
document.documentElement.style.setProperty("overflow", this.initialOverflowCSS);
|
|
@@ -33930,6 +34001,7 @@ class Modal {
|
|
|
33930
34001
|
"$tagName$": "calcite-modal",
|
|
33931
34002
|
"$members$": {
|
|
33932
34003
|
"open": [1540],
|
|
34004
|
+
"opened": [1540],
|
|
33933
34005
|
"beforeClose": [16],
|
|
33934
34006
|
"closeButtonDisabled": [516, "close-button-disabled"],
|
|
33935
34007
|
"focusTrapDisabled": [516, "focus-trap-disabled"],
|
|
@@ -33948,7 +34020,6 @@ class Modal {
|
|
|
33948
34020
|
"hasFooter": [32],
|
|
33949
34021
|
"hasContentTop": [32],
|
|
33950
34022
|
"hasContentBottom": [32],
|
|
33951
|
-
"isOpen": [32],
|
|
33952
34023
|
"effectiveLocale": [32],
|
|
33953
34024
|
"defaultMessages": [32],
|
|
33954
34025
|
"setFocus": [64],
|
|
@@ -33957,7 +34028,7 @@ class Modal {
|
|
|
33957
34028
|
},
|
|
33958
34029
|
"$listeners$": [[8, "keydown", "handleEscape"]],
|
|
33959
34030
|
"$lazyBundleId$": "-",
|
|
33960
|
-
"$attrsToReflect$": [["open", "open"], ["closeButtonDisabled", "close-button-disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["outsideCloseDisabled", "outside-close-disabled"], ["docked", "docked"], ["escapeDisabled", "escape-disabled"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["kind", "kind"]]
|
|
34031
|
+
"$attrsToReflect$": [["open", "open"], ["opened", "opened"], ["closeButtonDisabled", "close-button-disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["outsideCloseDisabled", "outside-close-disabled"], ["docked", "docked"], ["escapeDisabled", "escape-disabled"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["kind", "kind"]]
|
|
33961
34032
|
}; }
|
|
33962
34033
|
}
|
|
33963
34034
|
|
|
@@ -33967,7 +34038,7 @@ const SLOTS$d = {
|
|
|
33967
34038
|
link: "link",
|
|
33968
34039
|
actionsEnd: "actions-end",
|
|
33969
34040
|
};
|
|
33970
|
-
const CSS$
|
|
34041
|
+
const CSS$r = {
|
|
33971
34042
|
actionsEnd: "actions-end",
|
|
33972
34043
|
close: "notice-close",
|
|
33973
34044
|
container: "container",
|
|
@@ -34046,11 +34117,11 @@ class Notice {
|
|
|
34046
34117
|
}
|
|
34047
34118
|
render() {
|
|
34048
34119
|
const { el } = this;
|
|
34049
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34050
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34120
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$r.close, onClick: this.close,
|
|
34121
|
+
// 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)
|
|
34051
34122
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
34052
34123
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
34053
|
-
return (hAsync("div", { class: CSS$
|
|
34124
|
+
return (hAsync("div", { class: CSS$r.container }, this.requestedIcon ? (hAsync("div", { class: CSS$r.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$r.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$r.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34054
34125
|
}
|
|
34055
34126
|
//--------------------------------------------------------------------------
|
|
34056
34127
|
//
|
|
@@ -34229,7 +34300,7 @@ class OptionGroup {
|
|
|
34229
34300
|
}; }
|
|
34230
34301
|
}
|
|
34231
34302
|
|
|
34232
|
-
const CSS$
|
|
34303
|
+
const CSS$q = {
|
|
34233
34304
|
page: "page",
|
|
34234
34305
|
selected: "is-selected",
|
|
34235
34306
|
previous: "previous",
|
|
@@ -34387,8 +34458,8 @@ class Pagination {
|
|
|
34387
34458
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34388
34459
|
const selected = start === this.startItem;
|
|
34389
34460
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34390
|
-
[CSS$
|
|
34391
|
-
[CSS$
|
|
34461
|
+
[CSS$q.page]: true,
|
|
34462
|
+
[CSS$q.selected]: selected,
|
|
34392
34463
|
}, onClick: () => {
|
|
34393
34464
|
this.startItem = start;
|
|
34394
34465
|
this.emitUpdate();
|
|
@@ -34396,12 +34467,12 @@ class Pagination {
|
|
|
34396
34467
|
}
|
|
34397
34468
|
renderLeftEllipsis() {
|
|
34398
34469
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34399
|
-
return hAsync("span", { class: `${CSS$
|
|
34470
|
+
return hAsync("span", { class: `${CSS$q.ellipsis} ${CSS$q.ellipsisStart}` }, "\u2026");
|
|
34400
34471
|
}
|
|
34401
34472
|
}
|
|
34402
34473
|
renderRightEllipsis() {
|
|
34403
34474
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34404
|
-
return hAsync("span", { class: `${CSS$
|
|
34475
|
+
return hAsync("span", { class: `${CSS$q.ellipsis} ${CSS$q.ellipsisEnd}` }, "\u2026");
|
|
34405
34476
|
}
|
|
34406
34477
|
}
|
|
34407
34478
|
render() {
|
|
@@ -34409,11 +34480,11 @@ class Pagination {
|
|
|
34409
34480
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34410
34481
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34411
34482
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
34412
|
-
[CSS$
|
|
34413
|
-
[CSS$
|
|
34483
|
+
[CSS$q.previous]: true,
|
|
34484
|
+
[CSS$q.disabled]: prevDisabled,
|
|
34414
34485
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: this.scale === "l" ? "m" : "s" })), totalItems > pageSize ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.messages.next, class: {
|
|
34415
|
-
[CSS$
|
|
34416
|
-
[CSS$
|
|
34486
|
+
[CSS$q.next]: true,
|
|
34487
|
+
[CSS$q.disabled]: nextDisabled,
|
|
34417
34488
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
34418
34489
|
}
|
|
34419
34490
|
static get delegatesFocus() { return true; }
|
|
@@ -34624,32 +34695,32 @@ class Panel {
|
|
|
34624
34695
|
// --------------------------------------------------------------------------
|
|
34625
34696
|
renderHeaderContent() {
|
|
34626
34697
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
34627
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
34628
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
34629
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
34698
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$I.heading, level: headingLevel }, heading)) : null;
|
|
34699
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$I.description }, description) : null;
|
|
34700
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$I.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
34630
34701
|
}
|
|
34631
34702
|
renderActionBar() {
|
|
34632
|
-
return (hAsync("div", { class: CSS$
|
|
34703
|
+
return (hAsync("div", { class: CSS$I.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$m.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
34633
34704
|
}
|
|
34634
34705
|
/**
|
|
34635
34706
|
* Allows user to override the entire header-content node.
|
|
34636
34707
|
*/
|
|
34637
34708
|
renderHeaderSlottedContent() {
|
|
34638
|
-
return (hAsync("div", { class: CSS$
|
|
34709
|
+
return (hAsync("div", { class: CSS$I.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$m.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
34639
34710
|
}
|
|
34640
34711
|
renderHeaderStartActions() {
|
|
34641
34712
|
const { hasStartActions } = this;
|
|
34642
|
-
return (hAsync("div", { class: { [CSS$
|
|
34713
|
+
return (hAsync("div", { class: { [CSS$I.headerActionsStart]: true, [CSS$I.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$m.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
34643
34714
|
}
|
|
34644
34715
|
renderHeaderActionsEnd() {
|
|
34645
34716
|
const { close, hasEndActions, messages, closable, hasMenuItems } = this;
|
|
34646
34717
|
const text = messages.close;
|
|
34647
34718
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, "data-test": "close", icon: ICONS$a.close, onClick: close, text: text, title: text,
|
|
34648
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34719
|
+
// 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)
|
|
34649
34720
|
ref: this.setCloseRef })) : null;
|
|
34650
34721
|
const slotNode = (hAsync("slot", { name: SLOTS$m.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34651
34722
|
const showContainer = hasEndActions || closableNode || hasMenuItems;
|
|
34652
|
-
return (hAsync("div", { class: { [CSS$
|
|
34723
|
+
return (hAsync("div", { class: { [CSS$I.headerActionsEnd]: true, [CSS$I.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), closableNode));
|
|
34653
34724
|
}
|
|
34654
34725
|
renderMenu() {
|
|
34655
34726
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
@@ -34665,25 +34736,25 @@ class Panel {
|
|
|
34665
34736
|
closable ||
|
|
34666
34737
|
hasMenuItems;
|
|
34667
34738
|
this.showHeaderContent = showHeaderContent;
|
|
34668
|
-
return (hAsync("header", { class: CSS$
|
|
34739
|
+
return (hAsync("header", { class: CSS$I.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$I.headerContainer]: true, [CSS$I.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
34669
34740
|
}
|
|
34670
34741
|
renderFooterNode() {
|
|
34671
34742
|
const { hasFooterContent, hasFooterActions } = this;
|
|
34672
34743
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
34673
|
-
return (hAsync("footer", { class: CSS$
|
|
34744
|
+
return (hAsync("footer", { class: CSS$I.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$m.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$m.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
34674
34745
|
}
|
|
34675
34746
|
renderContent() {
|
|
34676
|
-
return (hAsync("div", { class: CSS$
|
|
34677
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34747
|
+
return (hAsync("div", { class: CSS$I.contentWrapper, onScroll: this.panelScrollHandler,
|
|
34748
|
+
// 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)
|
|
34678
34749
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
34679
34750
|
}
|
|
34680
34751
|
renderFab() {
|
|
34681
|
-
return (hAsync("div", { class: CSS$
|
|
34752
|
+
return (hAsync("div", { class: CSS$I.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$m.fab, onSlotchange: this.handleFabSlotChange })));
|
|
34682
34753
|
}
|
|
34683
34754
|
render() {
|
|
34684
34755
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
34685
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
34686
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34756
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$I.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
34757
|
+
// 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)
|
|
34687
34758
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
34688
34759
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
34689
34760
|
}
|
|
@@ -34728,7 +34799,7 @@ class Panel {
|
|
|
34728
34799
|
}; }
|
|
34729
34800
|
}
|
|
34730
34801
|
|
|
34731
|
-
const CSS$
|
|
34802
|
+
const CSS$p = {
|
|
34732
34803
|
sticky: "sticky-pos",
|
|
34733
34804
|
};
|
|
34734
34805
|
var ICON_TYPES$1;
|
|
@@ -34741,7 +34812,7 @@ const SLOTS$c = {
|
|
|
34741
34812
|
menuActions: "menu-actions",
|
|
34742
34813
|
};
|
|
34743
34814
|
|
|
34744
|
-
const CSS$
|
|
34815
|
+
const CSS$o = {
|
|
34745
34816
|
heading: "heading",
|
|
34746
34817
|
container: "container",
|
|
34747
34818
|
indented: "container--indented",
|
|
@@ -35065,11 +35136,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35065
35136
|
return (hAsync(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
|
|
35066
35137
|
hAsync("section", null,
|
|
35067
35138
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35068
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35139
|
+
// 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)
|
|
35069
35140
|
ref: storeAssistiveEl })) : null,
|
|
35070
|
-
hAsync("header", { class: { [CSS$
|
|
35141
|
+
hAsync("header", { class: { [CSS$p.sticky]: true } },
|
|
35071
35142
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35072
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35143
|
+
// 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)
|
|
35073
35144
|
ref: setFilterEl })) : null,
|
|
35074
35145
|
hAsync("slot", { name: SLOTS$c.menuActions })),
|
|
35075
35146
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
@@ -35258,14 +35329,14 @@ class PickListGroup {
|
|
|
35258
35329
|
const { el, groupTitle, headingLevel } = this;
|
|
35259
35330
|
const hasParentItem = getSlotted(el, SLOTS$b.parentItem) !== null;
|
|
35260
35331
|
const sectionClasses = {
|
|
35261
|
-
[CSS$
|
|
35262
|
-
[CSS$
|
|
35332
|
+
[CSS$o.container]: true,
|
|
35333
|
+
[CSS$o.indented]: hasParentItem,
|
|
35263
35334
|
};
|
|
35264
35335
|
const title = groupTitle;
|
|
35265
35336
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35266
35337
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35267
35338
|
const level = headingLevel || relativeLevel;
|
|
35268
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
35339
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$o.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$b.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
35269
35340
|
}
|
|
35270
35341
|
get el() { return getElement(this); }
|
|
35271
35342
|
static get style() { return pickListGroupCss; }
|
|
@@ -35282,7 +35353,7 @@ class PickListGroup {
|
|
|
35282
35353
|
}; }
|
|
35283
35354
|
}
|
|
35284
35355
|
|
|
35285
|
-
const CSS$
|
|
35356
|
+
const CSS$n = {
|
|
35286
35357
|
actions: "actions",
|
|
35287
35358
|
actionsEnd: "actions--end",
|
|
35288
35359
|
actionsStart: "actions--start",
|
|
@@ -35444,28 +35515,28 @@ class PickListItem {
|
|
|
35444
35515
|
return null;
|
|
35445
35516
|
}
|
|
35446
35517
|
return (hAsync("span", { class: {
|
|
35447
|
-
[CSS$
|
|
35448
|
-
[CSS$
|
|
35518
|
+
[CSS$n.icon]: true,
|
|
35519
|
+
[CSS$n.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35449
35520
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35450
35521
|
}
|
|
35451
35522
|
renderRemoveAction() {
|
|
35452
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
35523
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$n.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$a.actionsEnd, text: this.messages.remove })) : null;
|
|
35453
35524
|
}
|
|
35454
35525
|
renderActionsStart() {
|
|
35455
35526
|
const { el } = this;
|
|
35456
35527
|
const hasActionsStart = getSlotted(el, SLOTS$a.actionsStart);
|
|
35457
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
35528
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$n.actions]: true, [CSS$n.actionsStart]: true } }, hAsync("slot", { name: SLOTS$a.actionsStart }))) : null;
|
|
35458
35529
|
}
|
|
35459
35530
|
renderActionsEnd() {
|
|
35460
35531
|
const { el, removable } = this;
|
|
35461
35532
|
const hasActionsEnd = getSlotted(el, SLOTS$a.actionsEnd);
|
|
35462
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
35533
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$n.actions]: true, [CSS$n.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$a.actionsEnd }), this.renderRemoveAction())) : null;
|
|
35463
35534
|
}
|
|
35464
35535
|
render() {
|
|
35465
35536
|
const { description, label } = this;
|
|
35466
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
35467
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35468
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
35537
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$n.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
35538
|
+
// 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)
|
|
35539
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$n.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$n.title }, label), description ? hAsync("span", { class: CSS$n.description }, description) : null)), this.renderActionsEnd()));
|
|
35469
35540
|
}
|
|
35470
35541
|
static get assetsDirs() { return ["assets"]; }
|
|
35471
35542
|
get el() { return getElement(this); }
|
|
@@ -35508,7 +35579,7 @@ class PickListItem {
|
|
|
35508
35579
|
}; }
|
|
35509
35580
|
}
|
|
35510
35581
|
|
|
35511
|
-
const CSS$
|
|
35582
|
+
const CSS$m = {
|
|
35512
35583
|
container: "container",
|
|
35513
35584
|
imageContainer: "image-container",
|
|
35514
35585
|
closeButtonContainer: "close-button-container",
|
|
@@ -35602,7 +35673,7 @@ class PopoverManager {
|
|
|
35602
35673
|
}
|
|
35603
35674
|
}
|
|
35604
35675
|
|
|
35605
|
-
const CSS$
|
|
35676
|
+
const CSS$l = {
|
|
35606
35677
|
arrow: "calcite-floating-ui-arrow",
|
|
35607
35678
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35608
35679
|
};
|
|
@@ -35632,8 +35703,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35632
35703
|
` L${width - svgX},${height}` +
|
|
35633
35704
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35634
35705
|
" Z";
|
|
35635
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35636
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
35706
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$l.arrow, height: width, key: key, ref: ref, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0) },
|
|
35707
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$l.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
35637
35708
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35638
35709
|
};
|
|
35639
35710
|
|
|
@@ -35885,31 +35956,31 @@ class Popover {
|
|
|
35885
35956
|
// --------------------------------------------------------------------------
|
|
35886
35957
|
renderCloseButton() {
|
|
35887
35958
|
const { messages, closable } = this;
|
|
35888
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
35889
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35959
|
+
return closable ? (hAsync("div", { class: CSS$m.closeButtonContainer, key: CSS$m.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$m.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
35960
|
+
// 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)
|
|
35890
35961
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
35891
35962
|
}
|
|
35892
35963
|
renderHeader() {
|
|
35893
35964
|
const { heading, headingLevel } = this;
|
|
35894
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
35895
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
35965
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$m.heading, level: headingLevel }, heading)) : null;
|
|
35966
|
+
return headingNode ? (hAsync("div", { class: CSS$m.header, key: CSS$m.header }, headingNode, this.renderCloseButton())) : null;
|
|
35896
35967
|
}
|
|
35897
35968
|
render() {
|
|
35898
35969
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
35899
35970
|
const displayed = effectiveReferenceElement && open;
|
|
35900
35971
|
const hidden = !displayed;
|
|
35901
35972
|
const arrowNode = !pointerDisabled ? (hAsync(FloatingArrow, { floatingLayout: floatingLayout, key: "floating-arrow",
|
|
35902
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35973
|
+
// 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)
|
|
35903
35974
|
ref: this.storeArrowEl })) : null;
|
|
35904
35975
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
35905
35976
|
[FloatingCSS.animation]: true,
|
|
35906
35977
|
[FloatingCSS.animationActive]: displayed,
|
|
35907
35978
|
},
|
|
35908
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35979
|
+
// 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)
|
|
35909
35980
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
35910
|
-
[CSS$
|
|
35911
|
-
[CSS$
|
|
35912
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
35981
|
+
[CSS$m.hasHeader]: !!heading,
|
|
35982
|
+
[CSS$m.container]: true,
|
|
35983
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$m.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
35913
35984
|
}
|
|
35914
35985
|
static get assetsDirs() { return ["assets"]; }
|
|
35915
35986
|
get el() { return getElement(this); }
|
|
@@ -36003,7 +36074,7 @@ class Progress {
|
|
|
36003
36074
|
}; }
|
|
36004
36075
|
}
|
|
36005
36076
|
|
|
36006
|
-
const CSS$
|
|
36077
|
+
const CSS$k = {
|
|
36007
36078
|
container: "container",
|
|
36008
36079
|
};
|
|
36009
36080
|
|
|
@@ -36280,8 +36351,8 @@ class RadioButton {
|
|
|
36280
36351
|
// --------------------------------------------------------------------------
|
|
36281
36352
|
render() {
|
|
36282
36353
|
const tabIndex = this.getTabIndex();
|
|
36283
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
36284
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
36354
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$k.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
36355
|
+
// 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)
|
|
36285
36356
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36286
36357
|
}
|
|
36287
36358
|
get el() { return getElement(this); }
|
|
@@ -36454,7 +36525,7 @@ const StarIcon = ({ full, scale, partial }) => (hAsync("calcite-icon", { ...{
|
|
|
36454
36525
|
scale,
|
|
36455
36526
|
} }));
|
|
36456
36527
|
|
|
36457
|
-
const ratingCss = "/*!@:host([disabled])*/[disabled].sc-calcite-rating-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([read-only]) *, :host([disabled]) *,\n:host([read-only]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[read-only].sc-calcite-rating-h *.sc-calcite-rating,[disabled].sc-calcite-rating-h *.sc-calcite-rating,.sc-calcite-rating-h[read-only] .sc-calcite-rating-s>*,.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>*{pointer-events:none}/*!@:host*/.sc-calcite-rating-h{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>[calcite-hydrated][disabled],[disabled].sc-calcite-rating-h [calcite-hydrated][disabled].sc-calcite-rating{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-rating-h{block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-rating-h{block-size:2rem;--calcite-rating-spacing-unit:0.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-rating-h{block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}/*!@.fieldset*/.fieldset.sc-calcite-rating{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing-unit)}/*!@.wrapper*/.wrapper.sc-calcite-rating{display:inline-block}/*!@.star*/.star.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-ui-border-input)}/*!@.
|
|
36528
|
+
const ratingCss = "/*!@:host([disabled])*/[disabled].sc-calcite-rating-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([read-only]) *, :host([disabled]) *,\n:host([read-only]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[read-only].sc-calcite-rating-h *.sc-calcite-rating,[disabled].sc-calcite-rating-h *.sc-calcite-rating,.sc-calcite-rating-h[read-only] .sc-calcite-rating-s>*,.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>*{pointer-events:none}/*!@:host*/.sc-calcite-rating-h{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>[calcite-hydrated][disabled],[disabled].sc-calcite-rating-h [calcite-hydrated][disabled].sc-calcite-rating{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-rating-h{block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-rating-h{block-size:2rem;--calcite-rating-spacing-unit:0.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-rating-h{block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}/*!@.fieldset*/.fieldset.sc-calcite-rating{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing-unit)}/*!@.wrapper*/.wrapper.sc-calcite-rating{display:inline-block}/*!@.star*/.star.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-ui-border-input)}/*!@.star:focus*/.star.sc-calcite-rating: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 )}/*!@.average,\n.fraction*/.average.sc-calcite-rating,.fraction.sc-calcite-rating{color:var(--calcite-ui-warning)}/*!@.hovered,\n.selected*/.hovered.sc-calcite-rating,.selected.sc-calcite-rating{color:var(--calcite-ui-brand)}/*!@.fraction*/.fraction.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}/*!@calcite-chip*/calcite-chip.sc-calcite-rating{pointer-events:none;cursor:default}/*!@.number--average*/.number--average.sc-calcite-rating{font-weight:bold}/*!@.number--count*/.number--count.sc-calcite-rating{color:var(--calcite-ui-text-2);font-style:italic}/*!@.number--count:not(:first-child)*/.number--count.sc-calcite-rating:not(:first-child){margin-inline-start:var(--calcite-rating-spacing-unit)}/*!@.visually-hidden*/.visually-hidden.sc-calcite-rating{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}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-rating-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-rating-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-rating{display:none}";
|
|
36458
36529
|
|
|
36459
36530
|
class Rating {
|
|
36460
36531
|
constructor(hostRef) {
|
|
@@ -36466,29 +36537,12 @@ class Rating {
|
|
|
36466
36537
|
this.handleRatingPointerOut = () => {
|
|
36467
36538
|
this.isKeyboardInteraction = true;
|
|
36468
36539
|
this.hoverValue = null;
|
|
36469
|
-
this.focusValue = null;
|
|
36470
|
-
this.hasFocus = false;
|
|
36471
|
-
};
|
|
36472
|
-
this.handleRatingFocusIn = () => {
|
|
36473
|
-
const selectedInput = this.value > 0 ? this.value - 1 : 0;
|
|
36474
|
-
const focusInput = this.inputRefs[selectedInput];
|
|
36475
|
-
const focusValue = Number(focusInput.value);
|
|
36476
|
-
focusInput.select();
|
|
36477
|
-
this.focusValue = focusValue;
|
|
36478
|
-
this.hoverValue = focusValue;
|
|
36479
|
-
this.hasFocus = true;
|
|
36480
|
-
};
|
|
36481
|
-
this.handleRatingFocusLeave = () => {
|
|
36482
|
-
this.focusValue = null;
|
|
36483
|
-
this.hoverValue = null;
|
|
36484
|
-
this.hasFocus = false;
|
|
36485
36540
|
};
|
|
36486
36541
|
this.handleHostKeyDown = () => {
|
|
36487
36542
|
this.isKeyboardInteraction = true;
|
|
36488
36543
|
};
|
|
36489
|
-
this.
|
|
36490
|
-
const
|
|
36491
|
-
const inputVal = Number(target.value);
|
|
36544
|
+
this.handleLabelKeyDown = (event) => {
|
|
36545
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36492
36546
|
const key = event.key;
|
|
36493
36547
|
const numberKey = key == " " ? undefined : Number(key);
|
|
36494
36548
|
this.emit = true;
|
|
@@ -36496,20 +36550,20 @@ class Rating {
|
|
|
36496
36550
|
switch (key) {
|
|
36497
36551
|
case "Enter":
|
|
36498
36552
|
case " ":
|
|
36499
|
-
this.value = !this.required && this.value ===
|
|
36553
|
+
this.value = !this.required && this.value === inputValue ? 0 : inputValue;
|
|
36500
36554
|
break;
|
|
36501
36555
|
case "ArrowLeft":
|
|
36502
|
-
this.value =
|
|
36556
|
+
this.value = this.getPreviousRatingValue(inputValue);
|
|
36557
|
+
this.updateFocus();
|
|
36558
|
+
event.preventDefault();
|
|
36503
36559
|
break;
|
|
36504
36560
|
case "ArrowRight":
|
|
36505
|
-
this.value =
|
|
36561
|
+
this.value = this.getNextRatingValue(inputValue);
|
|
36562
|
+
this.updateFocus();
|
|
36563
|
+
event.preventDefault();
|
|
36506
36564
|
break;
|
|
36507
36565
|
case "Tab":
|
|
36508
|
-
|
|
36509
|
-
this.hasFocus = false;
|
|
36510
|
-
this.focusValue = null;
|
|
36511
|
-
this.hoverValue = null;
|
|
36512
|
-
}
|
|
36566
|
+
this.hoverValue = null;
|
|
36513
36567
|
}
|
|
36514
36568
|
}
|
|
36515
36569
|
else {
|
|
@@ -36519,33 +36573,42 @@ class Rating {
|
|
|
36519
36573
|
else if (this.required && numberKey > 0 && numberKey <= this.max) {
|
|
36520
36574
|
this.value = numberKey;
|
|
36521
36575
|
}
|
|
36576
|
+
this.updateFocus();
|
|
36522
36577
|
}
|
|
36523
36578
|
};
|
|
36524
36579
|
this.handleInputChange = (event) => {
|
|
36525
36580
|
if (this.isKeyboardInteraction === true) {
|
|
36526
36581
|
const inputVal = Number(event.target["value"]);
|
|
36527
|
-
this.focusValue = inputVal;
|
|
36528
36582
|
this.hoverValue = inputVal;
|
|
36529
36583
|
this.value = inputVal;
|
|
36530
36584
|
}
|
|
36531
36585
|
};
|
|
36532
36586
|
this.handleLabelPointerOver = (event) => {
|
|
36533
|
-
|
|
36534
|
-
const newPointerValue = Number(target.firstChild["value"] || 0);
|
|
36535
|
-
this.hoverValue = newPointerValue;
|
|
36536
|
-
this.focusValue = null;
|
|
36587
|
+
this.hoverValue = this.getValueFromLabelEvent(event);
|
|
36537
36588
|
};
|
|
36538
36589
|
this.handleLabelPointerDown = (event) => {
|
|
36539
36590
|
const target = event.currentTarget;
|
|
36540
|
-
const
|
|
36541
|
-
this.
|
|
36542
|
-
this.hoverValue = null;
|
|
36591
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36592
|
+
this.hoverValue = inputValue;
|
|
36543
36593
|
this.emit = true;
|
|
36544
|
-
this.value = !this.required && this.value ===
|
|
36594
|
+
this.value = !this.required && this.value === inputValue ? 0 : inputValue;
|
|
36595
|
+
target.focus();
|
|
36596
|
+
};
|
|
36597
|
+
this.handleLabelClick = (event) => {
|
|
36598
|
+
//preventing pointerdown event will supress any compatability mouse events except for click event.
|
|
36599
|
+
event.preventDefault();
|
|
36600
|
+
};
|
|
36601
|
+
this.handleLabelFocus = (event) => {
|
|
36602
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36603
|
+
this.hoverValue = inputValue;
|
|
36604
|
+
};
|
|
36605
|
+
this.setLabelEl = (el) => {
|
|
36606
|
+
this.labelElements.push(el);
|
|
36545
36607
|
};
|
|
36546
36608
|
this.emit = false;
|
|
36547
36609
|
this.guid = `calcite-ratings-${guid()}`;
|
|
36548
36610
|
this.isKeyboardInteraction = true;
|
|
36611
|
+
this.labelElements = [];
|
|
36549
36612
|
this.max = 5;
|
|
36550
36613
|
this.average = undefined;
|
|
36551
36614
|
this.count = undefined;
|
|
@@ -36562,15 +36625,12 @@ class Rating {
|
|
|
36562
36625
|
this.effectiveLocale = "";
|
|
36563
36626
|
this.defaultMessages = undefined;
|
|
36564
36627
|
this.hoverValue = undefined;
|
|
36565
|
-
this.focusValue = undefined;
|
|
36566
|
-
this.hasFocus = undefined;
|
|
36567
36628
|
}
|
|
36568
36629
|
onMessagesChange() {
|
|
36569
36630
|
/* wired up by t9n util */
|
|
36570
36631
|
}
|
|
36571
36632
|
handleValueUpdate(newValue) {
|
|
36572
36633
|
this.hoverValue = newValue;
|
|
36573
|
-
this.focusValue = newValue;
|
|
36574
36634
|
if (this.emit) {
|
|
36575
36635
|
this.calciteRatingChange.emit();
|
|
36576
36636
|
}
|
|
@@ -36594,39 +36654,28 @@ class Rating {
|
|
|
36594
36654
|
async componentWillLoad() {
|
|
36595
36655
|
await setUpMessages(this);
|
|
36596
36656
|
setUpLoadableComponent(this);
|
|
36597
|
-
this.inputRefs = Array(this.max);
|
|
36598
36657
|
}
|
|
36599
36658
|
componentWillRender() {
|
|
36600
36659
|
this.starsMap = Array.from({ length: this.max }, (_, i) => {
|
|
36601
36660
|
const value = i + 1;
|
|
36602
|
-
const average = !this.
|
|
36603
|
-
!this.hoverValue &&
|
|
36604
|
-
this.average &&
|
|
36605
|
-
!this.value &&
|
|
36606
|
-
value <= this.average;
|
|
36661
|
+
const average = !this.hoverValue && this.average && !this.value && value <= this.average;
|
|
36607
36662
|
const checked = value === this.value;
|
|
36608
|
-
const focused = this.isKeyboardInteraction && this.hasFocus && this.focusValue === value;
|
|
36609
36663
|
const fraction = this.average && this.average + 1 - value;
|
|
36610
36664
|
const hovered = value <= this.hoverValue;
|
|
36611
36665
|
const id = `${this.guid}-${value}`;
|
|
36612
|
-
const partial = !this.
|
|
36613
|
-
!this.hoverValue &&
|
|
36614
|
-
!this.value &&
|
|
36615
|
-
!hovered &&
|
|
36616
|
-
fraction > 0 &&
|
|
36617
|
-
fraction < 1;
|
|
36666
|
+
const partial = !this.hoverValue && !this.value && !hovered && fraction > 0 && fraction < 1;
|
|
36618
36667
|
const selected = this.value >= value;
|
|
36668
|
+
const tabIndex = this.getTabIndex(value);
|
|
36619
36669
|
return {
|
|
36620
36670
|
average,
|
|
36621
36671
|
checked,
|
|
36622
|
-
focused,
|
|
36623
36672
|
fraction,
|
|
36624
36673
|
hovered,
|
|
36625
36674
|
id,
|
|
36626
|
-
idx: i,
|
|
36627
36675
|
partial,
|
|
36628
36676
|
selected,
|
|
36629
36677
|
value,
|
|
36678
|
+
tabIndex,
|
|
36630
36679
|
};
|
|
36631
36680
|
});
|
|
36632
36681
|
}
|
|
@@ -36644,21 +36693,16 @@ class Rating {
|
|
|
36644
36693
|
updateHostInteraction(this);
|
|
36645
36694
|
}
|
|
36646
36695
|
render() {
|
|
36647
|
-
return (hAsync(Host, {
|
|
36696
|
+
return (hAsync(Host, { onKeyDown: this.handleHostKeyDown, onPointerOut: this.handleRatingPointerOut, onPointerOver: this.handleRatingPointerOver }, hAsync("span", { class: "wrapper" }, hAsync("fieldset", { class: "fieldset", disabled: this.disabled }, hAsync("legend", { class: "visually-hidden" }, this.messages.rating), this.starsMap.map(({ average, checked, fraction, hovered, id, partial, selected, value, tabIndex }) => {
|
|
36648
36697
|
return (hAsync("label", { class: {
|
|
36649
36698
|
star: true,
|
|
36650
|
-
focused,
|
|
36651
36699
|
selected,
|
|
36652
36700
|
hovered,
|
|
36653
36701
|
average,
|
|
36654
36702
|
partial,
|
|
36655
|
-
},
|
|
36703
|
+
}, "data-value": value, htmlFor: id, onClick: this.handleLabelClick, onFocus: this.handleLabelFocus, onKeyDown: this.handleLabelKeyDown, onPointerDown: this.handleLabelPointerDown, onPointerOver: this.handleLabelPointerOver, tabIndex: tabIndex,
|
|
36656
36704
|
// eslint-disable-next-line react/jsx-sort-props
|
|
36657
|
-
ref: (
|
|
36658
|
-
this.inputRefs[idx] = el;
|
|
36659
|
-
return ((value === 1 || value === this.value) &&
|
|
36660
|
-
(this.inputFocusRef = el));
|
|
36661
|
-
} }), hAsync(StarIcon, { full: selected || average, scale: this.scale }), partial && (hAsync("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, hAsync(StarIcon, { full: true, partial: true, scale: this.scale }))), hAsync("span", { class: "visually-hidden" }, this.messages.stars.replace("{num}", `${value}`))));
|
|
36705
|
+
ref: this.setLabelEl }, hAsync("input", { checked: checked, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: id, name: this.guid, onChange: this.handleInputChange, tabIndex: -1, type: "radio", value: value }), hAsync(StarIcon, { full: selected || average, scale: this.scale }), partial && (hAsync("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, hAsync(StarIcon, { full: true, partial: true, scale: this.scale }))), hAsync("span", { class: "visually-hidden" }, this.messages.stars.replace("{num}", `${value}`))));
|
|
36662
36706
|
}), (this.count || this.average) && this.showChip ? (hAsync("calcite-chip", { scale: this.scale, value: this.count?.toString() }, !!this.average && hAsync("span", { class: "number--average" }, this.average.toString()), !!this.count && hAsync("span", { class: "number--count" }, "(", this.count?.toString(), ")"))) : null), hAsync(HiddenFormInputSlot, { component: this }))));
|
|
36663
36707
|
}
|
|
36664
36708
|
//--------------------------------------------------------------------------
|
|
@@ -36669,6 +36713,26 @@ class Rating {
|
|
|
36669
36713
|
onLabelClick() {
|
|
36670
36714
|
this.setFocus();
|
|
36671
36715
|
}
|
|
36716
|
+
updateFocus() {
|
|
36717
|
+
this.hoverValue = this.value;
|
|
36718
|
+
this.labelElements[this.value - 1].focus();
|
|
36719
|
+
}
|
|
36720
|
+
getTabIndex(value) {
|
|
36721
|
+
if (this.readOnly || (this.value !== value && (this.value || value !== 1))) {
|
|
36722
|
+
return -1;
|
|
36723
|
+
}
|
|
36724
|
+
return 0;
|
|
36725
|
+
}
|
|
36726
|
+
getValueFromLabelEvent(event) {
|
|
36727
|
+
const target = event.currentTarget;
|
|
36728
|
+
return Number(target.getAttribute("data-value"));
|
|
36729
|
+
}
|
|
36730
|
+
getNextRatingValue(currentValue) {
|
|
36731
|
+
return currentValue === 5 ? 1 : currentValue + 1;
|
|
36732
|
+
}
|
|
36733
|
+
getPreviousRatingValue(currentValue) {
|
|
36734
|
+
return currentValue === 1 ? 5 : currentValue - 1;
|
|
36735
|
+
}
|
|
36672
36736
|
//--------------------------------------------------------------------------
|
|
36673
36737
|
//
|
|
36674
36738
|
// Public Methods
|
|
@@ -36677,7 +36741,7 @@ class Rating {
|
|
|
36677
36741
|
/** Sets focus on the component. */
|
|
36678
36742
|
async setFocus() {
|
|
36679
36743
|
await componentFocusable(this);
|
|
36680
|
-
this.
|
|
36744
|
+
focusFirstTabbable(this.el);
|
|
36681
36745
|
}
|
|
36682
36746
|
static get assetsDirs() { return ["assets"]; }
|
|
36683
36747
|
get el() { return getElement(this); }
|
|
@@ -36706,8 +36770,6 @@ class Rating {
|
|
|
36706
36770
|
"effectiveLocale": [32],
|
|
36707
36771
|
"defaultMessages": [32],
|
|
36708
36772
|
"hoverValue": [32],
|
|
36709
|
-
"focusValue": [32],
|
|
36710
|
-
"hasFocus": [32],
|
|
36711
36773
|
"setFocus": [64]
|
|
36712
36774
|
},
|
|
36713
36775
|
"$listeners$": undefined,
|
|
@@ -36716,7 +36778,7 @@ class Rating {
|
|
|
36716
36778
|
}; }
|
|
36717
36779
|
}
|
|
36718
36780
|
|
|
36719
|
-
const CSS$
|
|
36781
|
+
const CSS$j = {
|
|
36720
36782
|
scrim: "scrim",
|
|
36721
36783
|
content: "content",
|
|
36722
36784
|
};
|
|
@@ -36786,7 +36848,7 @@ class Scrim {
|
|
|
36786
36848
|
// --------------------------------------------------------------------------
|
|
36787
36849
|
render() {
|
|
36788
36850
|
const { hasContent, loading, messages } = this;
|
|
36789
|
-
return (hAsync("div", { class: CSS$
|
|
36851
|
+
return (hAsync("div", { class: CSS$j.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, ref: this.storeLoaderEl, scale: this.loaderScale })) : null, hAsync("div", { class: CSS$j.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
36790
36852
|
}
|
|
36791
36853
|
getScale(size) {
|
|
36792
36854
|
if (size < BREAKPOINTS.s) {
|
|
@@ -36853,17 +36915,21 @@ class SegmentedControl {
|
|
|
36853
36915
|
this.selectItem(event.target, true);
|
|
36854
36916
|
}
|
|
36855
36917
|
};
|
|
36918
|
+
this.mutationObserver = createObserver();
|
|
36856
36919
|
this.appearance = "solid";
|
|
36857
36920
|
this.disabled = false;
|
|
36858
36921
|
this.form = undefined;
|
|
36859
36922
|
this.required = false;
|
|
36860
|
-
this.layout = "horizontal";
|
|
36861
36923
|
this.name = undefined;
|
|
36924
|
+
this.layout = "horizontal";
|
|
36862
36925
|
this.scale = "m";
|
|
36863
36926
|
this.value = null;
|
|
36864
36927
|
this.selectedItem = undefined;
|
|
36865
36928
|
this.width = "auto";
|
|
36866
36929
|
}
|
|
36930
|
+
handlePropsChange() {
|
|
36931
|
+
this.handleItemPropChange();
|
|
36932
|
+
}
|
|
36867
36933
|
valueHandler(value) {
|
|
36868
36934
|
const items = this.getItems();
|
|
36869
36935
|
items.forEach((item) => (item.checked = item.value === value));
|
|
@@ -36889,14 +36955,7 @@ class SegmentedControl {
|
|
|
36889
36955
|
//--------------------------------------------------------------------------
|
|
36890
36956
|
componentWillLoad() {
|
|
36891
36957
|
setUpLoadableComponent(this);
|
|
36892
|
-
|
|
36893
|
-
const lastChecked = items.filter((item) => item.checked).pop();
|
|
36894
|
-
if (lastChecked) {
|
|
36895
|
-
this.selectItem(lastChecked);
|
|
36896
|
-
}
|
|
36897
|
-
else if (items[0]) {
|
|
36898
|
-
items[0].tabIndex = 0;
|
|
36899
|
-
}
|
|
36958
|
+
this.setUpItems();
|
|
36900
36959
|
}
|
|
36901
36960
|
componentDidLoad() {
|
|
36902
36961
|
afterConnectDefaultValueSet(this, this.value);
|
|
@@ -36906,11 +36965,14 @@ class SegmentedControl {
|
|
|
36906
36965
|
connectInteractive(this);
|
|
36907
36966
|
connectLabel(this);
|
|
36908
36967
|
connectForm(this);
|
|
36968
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
36969
|
+
this.handleItemPropChange();
|
|
36909
36970
|
}
|
|
36910
36971
|
disconnectedCallback() {
|
|
36911
36972
|
disconnectInteractive(this);
|
|
36912
36973
|
disconnectLabel(this);
|
|
36913
36974
|
disconnectForm(this);
|
|
36975
|
+
this.mutationObserver?.unobserve(this.el);
|
|
36914
36976
|
}
|
|
36915
36977
|
componentDidRender() {
|
|
36916
36978
|
updateHostInteraction(this);
|
|
@@ -36977,6 +37039,14 @@ class SegmentedControl {
|
|
|
36977
37039
|
await componentFocusable(this);
|
|
36978
37040
|
(this.selectedItem || this.getItems()[0])?.focus();
|
|
36979
37041
|
}
|
|
37042
|
+
handleItemPropChange() {
|
|
37043
|
+
const items = this.getItems();
|
|
37044
|
+
items.forEach((item) => {
|
|
37045
|
+
item.appearance = this.appearance;
|
|
37046
|
+
item.layout = this.layout;
|
|
37047
|
+
item.scale = this.scale;
|
|
37048
|
+
});
|
|
37049
|
+
}
|
|
36980
37050
|
//--------------------------------------------------------------------------
|
|
36981
37051
|
//
|
|
36982
37052
|
// Private Methods
|
|
@@ -37009,8 +37079,21 @@ class SegmentedControl {
|
|
|
37009
37079
|
});
|
|
37010
37080
|
this.selectedItem = match;
|
|
37011
37081
|
}
|
|
37082
|
+
setUpItems() {
|
|
37083
|
+
const items = this.getItems();
|
|
37084
|
+
const lastChecked = items.filter((item) => item.checked).pop();
|
|
37085
|
+
if (lastChecked) {
|
|
37086
|
+
this.selectItem(lastChecked);
|
|
37087
|
+
}
|
|
37088
|
+
else if (items[0]) {
|
|
37089
|
+
items[0].tabIndex = 0;
|
|
37090
|
+
}
|
|
37091
|
+
}
|
|
37012
37092
|
get el() { return getElement(this); }
|
|
37013
37093
|
static get watchers() { return {
|
|
37094
|
+
"appearance": ["handlePropsChange"],
|
|
37095
|
+
"layout": ["handlePropsChange"],
|
|
37096
|
+
"scale": ["handlePropsChange"],
|
|
37014
37097
|
"value": ["valueHandler"],
|
|
37015
37098
|
"selectedItem": ["handleSelectedItemChange"]
|
|
37016
37099
|
}; }
|
|
@@ -37023,8 +37106,8 @@ class SegmentedControl {
|
|
|
37023
37106
|
"disabled": [516],
|
|
37024
37107
|
"form": [513],
|
|
37025
37108
|
"required": [516],
|
|
37026
|
-
"layout": [513],
|
|
37027
37109
|
"name": [513],
|
|
37110
|
+
"layout": [513],
|
|
37028
37111
|
"scale": [513],
|
|
37029
37112
|
"value": [1025],
|
|
37030
37113
|
"selectedItem": [1040],
|
|
@@ -37033,14 +37116,14 @@ class SegmentedControl {
|
|
|
37033
37116
|
},
|
|
37034
37117
|
"$listeners$": [[0, "calciteInternalSegmentedControlItemChange", "handleSelected"], [0, "keydown", "handleKeyDown"]],
|
|
37035
37118
|
"$lazyBundleId$": "-",
|
|
37036
|
-
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["form", "form"], ["required", "required"], ["
|
|
37119
|
+
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["form", "form"], ["required", "required"], ["name", "name"], ["layout", "layout"], ["scale", "scale"], ["width", "width"]]
|
|
37037
37120
|
}; }
|
|
37038
37121
|
}
|
|
37039
37122
|
|
|
37040
37123
|
const SLOTS$9 = {
|
|
37041
37124
|
input: "input",
|
|
37042
37125
|
};
|
|
37043
|
-
const CSS$
|
|
37126
|
+
const CSS$i = {
|
|
37044
37127
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37045
37128
|
};
|
|
37046
37129
|
|
|
@@ -37055,17 +37138,22 @@ class SegmentedControlItem {
|
|
|
37055
37138
|
this.iconStart = undefined;
|
|
37056
37139
|
this.iconEnd = undefined;
|
|
37057
37140
|
this.value = undefined;
|
|
37141
|
+
this.appearance = "solid";
|
|
37142
|
+
this.layout = "horizontal";
|
|
37143
|
+
this.scale = "m";
|
|
37058
37144
|
}
|
|
37059
37145
|
handleCheckedChange() {
|
|
37060
37146
|
this.calciteInternalSegmentedControlItemChange.emit();
|
|
37061
37147
|
}
|
|
37148
|
+
//--------------------------------------------------------------------------
|
|
37149
|
+
//
|
|
37150
|
+
// Lifecycle
|
|
37151
|
+
//
|
|
37152
|
+
//--------------------------------------------------------------------------
|
|
37062
37153
|
render() {
|
|
37063
|
-
const { checked, value } = this;
|
|
37064
|
-
const
|
|
37065
|
-
const
|
|
37066
|
-
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
37067
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$h.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37068
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$h.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37154
|
+
const { appearance, checked, layout, scale, value } = this;
|
|
37155
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$i.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37156
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$i.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37069
37157
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37070
37158
|
"label--scale-s": scale === "s",
|
|
37071
37159
|
"label--scale-m": scale === "m",
|
|
@@ -37088,7 +37176,10 @@ class SegmentedControlItem {
|
|
|
37088
37176
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
37089
37177
|
"iconStart": [513, "icon-start"],
|
|
37090
37178
|
"iconEnd": [513, "icon-end"],
|
|
37091
|
-
"value": [1032]
|
|
37179
|
+
"value": [1032],
|
|
37180
|
+
"appearance": [1],
|
|
37181
|
+
"layout": [1],
|
|
37182
|
+
"scale": [1]
|
|
37092
37183
|
},
|
|
37093
37184
|
"$listeners$": undefined,
|
|
37094
37185
|
"$lazyBundleId$": "-",
|
|
@@ -37096,7 +37187,7 @@ class SegmentedControlItem {
|
|
|
37096
37187
|
}; }
|
|
37097
37188
|
}
|
|
37098
37189
|
|
|
37099
|
-
const CSS$
|
|
37190
|
+
const CSS$h = {
|
|
37100
37191
|
icon: "icon",
|
|
37101
37192
|
iconContainer: "icon-container",
|
|
37102
37193
|
select: "select",
|
|
@@ -37283,11 +37374,11 @@ class Select {
|
|
|
37283
37374
|
//
|
|
37284
37375
|
//--------------------------------------------------------------------------
|
|
37285
37376
|
renderChevron() {
|
|
37286
|
-
return (hAsync("div", { class: CSS$
|
|
37377
|
+
return (hAsync("div", { class: CSS$h.iconContainer }, hAsync("calcite-icon", { class: CSS$h.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
37287
37378
|
}
|
|
37288
37379
|
render() {
|
|
37289
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
37290
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
37380
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$h.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
37381
|
+
// 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)
|
|
37291
37382
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37292
37383
|
}
|
|
37293
37384
|
get el() { return getElement(this); }
|
|
@@ -37317,6 +37408,239 @@ class Select {
|
|
|
37317
37408
|
}; }
|
|
37318
37409
|
}
|
|
37319
37410
|
|
|
37411
|
+
const CSS$g = {
|
|
37412
|
+
scrim: "scrim",
|
|
37413
|
+
container: "container",
|
|
37414
|
+
containerOpen: "container--open",
|
|
37415
|
+
content: "content",
|
|
37416
|
+
containerSlottedInShell: "container--slotted-in-shell",
|
|
37417
|
+
};
|
|
37418
|
+
|
|
37419
|
+
const sheetCss = "/*!@:host*/.sc-calcite-sheet-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.calcite--rtl*/.calcite--rtl.sc-calcite-sheet{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.container*/.container.sc-calcite-sheet{visibility:hidden;position:fixed;z-index:var(--calcite-app-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([position=inline-start]) .container*/[position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}/*!@:host([position=inline-end]) .container*/[position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}/*!@:host([position=block-start]) .container*/[position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}/*!@:host([position=block-end]) .container*/[position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host([display-mode=overlay][position=inline-start]) .container*/[display-mode=overlay][position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}/*!@:host([display-mode=overlay][position=inline-end]) .container*/[display-mode=overlay][position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}/*!@:host([display-mode=overlay][position=block-start]) .container*/[display-mode=overlay][position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}/*!@:host([display-mode=overlay][position=block-end]) .container*/[display-mode=overlay][position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}/*!@:host([position^=inline]) .container,\n:host([position^=inline]) .content*/[position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=inline].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}/*!@:host([position^=block]) .container,\n:host([position^=block]) .content*/[position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=block].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}/*!@:host([display-mode=float][position^=inline]) .container*/[display-mode=float][position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}/*!@:host([display-mode=float][position^=block]) .container*/[display-mode=float][position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}/*!@:host([position^=inline][width-scale=s])*/[position^=inline][width-scale=s].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 20vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 20vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 20vw)}/*!@:host([position^=inline][width-scale=m])*/[position^=inline][width-scale=m].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 30vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 30vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 30vw)}/*!@:host([position^=inline][width-scale=l])*/[position^=inline][width-scale=l].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 40vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 40vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 40vw)}/*!@:host([position^=block][height-scale=s])*/[position^=block][height-scale=s].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 20vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 30vh)}/*!@:host([position^=block][height-scale=m])*/[position^=block][height-scale=m].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 40vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 50vh)}/*!@:host([position^=block][height-scale=l])*/[position^=block][height-scale=l].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 70vh)}/*!@.scrim*/.scrim.sc-calcite-sheet{--calcite-scrim-background:var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@:host([opened])*/[opened].sc-calcite-sheet-h{visibility:visible !important}/*!@.content*/.content.sc-calcite-sheet{position:relative;z-index:var(--calcite-app-z-index-modal);box-sizing:border-box;display:block;max-block-size:100%;max-inline-size:100%;overflow-y:hidden;padding:0px;background-color:var(--calcite-ui-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:var(--calcite-sheet-hidden-position-internal)}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{transform:translate3d(0, 0, 0)}/*!@:host([display-mode=float]) .content,\n:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .content.sc-calcite-sheet,[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{border-radius:0.25rem}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{padding:0.75rem}/*!@.container--open*/.container--open.sc-calcite-sheet{visibility:visible;opacity:1;transition-delay:0ms}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@:host([position=inline-start]) .content,\n:host([position=inline-end]) .content*/[position=inline-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=inline-end].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:100%}/*!@:host([position=block-start]) .content,\n:host([position=block-end]) .content*/[position=block-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=block-end].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:100%}/*!@:host([position]) .container--slotted-in-shell*/[position].sc-calcite-sheet-h .container--slotted-in-shell.sc-calcite-sheet{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}/*!@:host([position]) .container--slotted-in-shell calcite-scrim*/[position].sc-calcite-sheet-h .container--slotted-in-shell.sc-calcite-sheet calcite-scrim.sc-calcite-sheet{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-sheet-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-sheet{display:none}";
|
|
37420
|
+
|
|
37421
|
+
class Sheet {
|
|
37422
|
+
constructor(hostRef) {
|
|
37423
|
+
registerInstance(this, hostRef);
|
|
37424
|
+
this.calciteSheetBeforeClose = createEvent(this, "calciteSheetBeforeClose", 6);
|
|
37425
|
+
this.calciteSheetClose = createEvent(this, "calciteSheetClose", 6);
|
|
37426
|
+
this.calciteSheetBeforeOpen = createEvent(this, "calciteSheetBeforeOpen", 6);
|
|
37427
|
+
this.calciteSheetOpen = createEvent(this, "calciteSheetOpen", 6);
|
|
37428
|
+
//--------------------------------------------------------------------------
|
|
37429
|
+
//
|
|
37430
|
+
// Private Properties/ State
|
|
37431
|
+
//
|
|
37432
|
+
//--------------------------------------------------------------------------
|
|
37433
|
+
this.openTransitionProp = "opacity";
|
|
37434
|
+
this.ignoreOpenChange = false;
|
|
37435
|
+
this.mutationObserver = createObserver();
|
|
37436
|
+
this.setTransitionEl = (el) => {
|
|
37437
|
+
this.transitionEl = el;
|
|
37438
|
+
this.contentId = ensureId(el);
|
|
37439
|
+
};
|
|
37440
|
+
this.openEnd = () => {
|
|
37441
|
+
this.setFocus();
|
|
37442
|
+
this.el.removeEventListener("calciteSheetOpen", this.openEnd);
|
|
37443
|
+
};
|
|
37444
|
+
this.handleOutsideClose = () => {
|
|
37445
|
+
if (this.outsideCloseDisabled) {
|
|
37446
|
+
return;
|
|
37447
|
+
}
|
|
37448
|
+
this.closeSheet();
|
|
37449
|
+
};
|
|
37450
|
+
this.closeSheet = async () => {
|
|
37451
|
+
if (this.ignoreOpenChange) {
|
|
37452
|
+
return;
|
|
37453
|
+
}
|
|
37454
|
+
if (this.beforeClose) {
|
|
37455
|
+
try {
|
|
37456
|
+
await this.beforeClose(this.el);
|
|
37457
|
+
}
|
|
37458
|
+
catch (_error) {
|
|
37459
|
+
// close prevented
|
|
37460
|
+
requestAnimationFrame(() => {
|
|
37461
|
+
this.ignoreOpenChange = true;
|
|
37462
|
+
this.open = true;
|
|
37463
|
+
this.ignoreOpenChange = false;
|
|
37464
|
+
});
|
|
37465
|
+
return;
|
|
37466
|
+
}
|
|
37467
|
+
}
|
|
37468
|
+
this.ignoreOpenChange = true;
|
|
37469
|
+
this.open = false;
|
|
37470
|
+
this.opened = false;
|
|
37471
|
+
this.removeOverflowHiddenClass();
|
|
37472
|
+
this.ignoreOpenChange = false;
|
|
37473
|
+
};
|
|
37474
|
+
this.beforeClose = undefined;
|
|
37475
|
+
this.displayMode = "overlay";
|
|
37476
|
+
this.escapeDisabled = false;
|
|
37477
|
+
this.heightScale = "m";
|
|
37478
|
+
this.focusTrapDisabled = false;
|
|
37479
|
+
this.label = undefined;
|
|
37480
|
+
this.open = false;
|
|
37481
|
+
this.opened = false;
|
|
37482
|
+
this.outsideCloseDisabled = false;
|
|
37483
|
+
this.position = "inline-start";
|
|
37484
|
+
this.slottedInShell = undefined;
|
|
37485
|
+
this.widthScale = "m";
|
|
37486
|
+
}
|
|
37487
|
+
handleFocusTrapDisabled(focusTrapDisabled) {
|
|
37488
|
+
if (!this.open) {
|
|
37489
|
+
return;
|
|
37490
|
+
}
|
|
37491
|
+
focusTrapDisabled ? deactivateFocusTrap(this) : activateFocusTrap(this);
|
|
37492
|
+
}
|
|
37493
|
+
async toggleSheet(value) {
|
|
37494
|
+
if (this.ignoreOpenChange) {
|
|
37495
|
+
return;
|
|
37496
|
+
}
|
|
37497
|
+
onToggleOpenCloseComponent(this);
|
|
37498
|
+
if (value) {
|
|
37499
|
+
this.openSheet();
|
|
37500
|
+
}
|
|
37501
|
+
else {
|
|
37502
|
+
this.closeSheet();
|
|
37503
|
+
}
|
|
37504
|
+
}
|
|
37505
|
+
//--------------------------------------------------------------------------
|
|
37506
|
+
//
|
|
37507
|
+
// Lifecycle
|
|
37508
|
+
//
|
|
37509
|
+
//--------------------------------------------------------------------------
|
|
37510
|
+
async componentWillLoad() {
|
|
37511
|
+
setUpLoadableComponent(this);
|
|
37512
|
+
// when sheet initially renders, if active was set we need to open as watcher doesn't fire
|
|
37513
|
+
if (this.open) {
|
|
37514
|
+
onToggleOpenCloseComponent(this);
|
|
37515
|
+
requestAnimationFrame(() => this.openSheet());
|
|
37516
|
+
}
|
|
37517
|
+
}
|
|
37518
|
+
componentDidLoad() {
|
|
37519
|
+
setComponentLoaded(this);
|
|
37520
|
+
}
|
|
37521
|
+
connectedCallback() {
|
|
37522
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
37523
|
+
connectFocusTrap(this);
|
|
37524
|
+
}
|
|
37525
|
+
disconnectedCallback() {
|
|
37526
|
+
this.removeOverflowHiddenClass();
|
|
37527
|
+
this.mutationObserver?.disconnect();
|
|
37528
|
+
deactivateFocusTrap(this);
|
|
37529
|
+
this.slottedInShell = false;
|
|
37530
|
+
}
|
|
37531
|
+
render() {
|
|
37532
|
+
const dir = getElementDir(this.el);
|
|
37533
|
+
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
37534
|
+
[CSS$g.container]: true,
|
|
37535
|
+
[CSS$g.containerOpen]: this.opened,
|
|
37536
|
+
[CSS$g.containerSlottedInShell]: this.slottedInShell,
|
|
37537
|
+
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37538
|
+
} }, hAsync("calcite-scrim", { class: CSS$g.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37539
|
+
[CSS$g.content]: true,
|
|
37540
|
+
},
|
|
37541
|
+
// 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)
|
|
37542
|
+
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
37543
|
+
}
|
|
37544
|
+
//--------------------------------------------------------------------------
|
|
37545
|
+
//
|
|
37546
|
+
// Event Listeners
|
|
37547
|
+
//
|
|
37548
|
+
//--------------------------------------------------------------------------
|
|
37549
|
+
handleEscape(event) {
|
|
37550
|
+
if (this.open && !this.escapeDisabled && event.key === "Escape" && !event.defaultPrevented) {
|
|
37551
|
+
this.closeSheet();
|
|
37552
|
+
event.preventDefault();
|
|
37553
|
+
}
|
|
37554
|
+
}
|
|
37555
|
+
//--------------------------------------------------------------------------
|
|
37556
|
+
//
|
|
37557
|
+
// Public Methods
|
|
37558
|
+
//
|
|
37559
|
+
//--------------------------------------------------------------------------
|
|
37560
|
+
/**
|
|
37561
|
+
* Sets focus on the component's "close" button (the first focusable item).
|
|
37562
|
+
*
|
|
37563
|
+
*/
|
|
37564
|
+
async setFocus() {
|
|
37565
|
+
await componentFocusable(this);
|
|
37566
|
+
focusFirstTabbable(this.el);
|
|
37567
|
+
}
|
|
37568
|
+
/**
|
|
37569
|
+
* Updates the element(s) that are used within the focus-trap of the component.
|
|
37570
|
+
*/
|
|
37571
|
+
async updateFocusTrapElements() {
|
|
37572
|
+
updateFocusTrapElements(this);
|
|
37573
|
+
}
|
|
37574
|
+
//--------------------------------------------------------------------------
|
|
37575
|
+
//
|
|
37576
|
+
// Private Methods
|
|
37577
|
+
//
|
|
37578
|
+
//--------------------------------------------------------------------------
|
|
37579
|
+
onBeforeOpen() {
|
|
37580
|
+
this.calciteSheetBeforeOpen.emit();
|
|
37581
|
+
}
|
|
37582
|
+
onOpen() {
|
|
37583
|
+
this.calciteSheetOpen.emit();
|
|
37584
|
+
activateFocusTrap(this);
|
|
37585
|
+
}
|
|
37586
|
+
onBeforeClose() {
|
|
37587
|
+
this.calciteSheetBeforeClose.emit();
|
|
37588
|
+
}
|
|
37589
|
+
onClose() {
|
|
37590
|
+
this.calciteSheetClose.emit();
|
|
37591
|
+
deactivateFocusTrap(this);
|
|
37592
|
+
}
|
|
37593
|
+
openSheet() {
|
|
37594
|
+
if (this.ignoreOpenChange) {
|
|
37595
|
+
return;
|
|
37596
|
+
}
|
|
37597
|
+
this.el.addEventListener("calciteSheetOpen", this.openEnd);
|
|
37598
|
+
this.open = true;
|
|
37599
|
+
this.opened = true;
|
|
37600
|
+
if (!this.slottedInShell) {
|
|
37601
|
+
this.initialOverflowCSS = document.documentElement.style.overflow;
|
|
37602
|
+
// use an inline style instead of a utility class to avoid global class declarations.
|
|
37603
|
+
document.documentElement.style.setProperty("overflow", "hidden");
|
|
37604
|
+
}
|
|
37605
|
+
this.ignoreOpenChange = false;
|
|
37606
|
+
}
|
|
37607
|
+
removeOverflowHiddenClass() {
|
|
37608
|
+
document.documentElement.style.setProperty("overflow", this.initialOverflowCSS);
|
|
37609
|
+
}
|
|
37610
|
+
handleMutationObserver() {
|
|
37611
|
+
this.updateFocusTrapElements();
|
|
37612
|
+
}
|
|
37613
|
+
get el() { return getElement(this); }
|
|
37614
|
+
static get watchers() { return {
|
|
37615
|
+
"focusTrapDisabled": ["handleFocusTrapDisabled"],
|
|
37616
|
+
"open": ["toggleSheet"]
|
|
37617
|
+
}; }
|
|
37618
|
+
static get style() { return sheetCss; }
|
|
37619
|
+
static get cmpMeta() { return {
|
|
37620
|
+
"$flags$": 9,
|
|
37621
|
+
"$tagName$": "calcite-sheet",
|
|
37622
|
+
"$members$": {
|
|
37623
|
+
"beforeClose": [16],
|
|
37624
|
+
"displayMode": [513, "display-mode"],
|
|
37625
|
+
"escapeDisabled": [516, "escape-disabled"],
|
|
37626
|
+
"heightScale": [513, "height-scale"],
|
|
37627
|
+
"focusTrapDisabled": [516, "focus-trap-disabled"],
|
|
37628
|
+
"label": [1],
|
|
37629
|
+
"open": [1540],
|
|
37630
|
+
"opened": [1540],
|
|
37631
|
+
"outsideCloseDisabled": [516, "outside-close-disabled"],
|
|
37632
|
+
"position": [513],
|
|
37633
|
+
"slottedInShell": [4, "slotted-in-shell"],
|
|
37634
|
+
"widthScale": [513, "width-scale"],
|
|
37635
|
+
"setFocus": [64],
|
|
37636
|
+
"updateFocusTrapElements": [64]
|
|
37637
|
+
},
|
|
37638
|
+
"$listeners$": [[8, "keydown", "handleEscape"]],
|
|
37639
|
+
"$lazyBundleId$": "-",
|
|
37640
|
+
"$attrsToReflect$": [["displayMode", "display-mode"], ["escapeDisabled", "escape-disabled"], ["heightScale", "height-scale"], ["focusTrapDisabled", "focus-trap-disabled"], ["open", "open"], ["opened", "opened"], ["outsideCloseDisabled", "outside-close-disabled"], ["position", "position"], ["widthScale", "width-scale"]]
|
|
37641
|
+
}; }
|
|
37642
|
+
}
|
|
37643
|
+
|
|
37320
37644
|
const CSS$f = {
|
|
37321
37645
|
main: "main",
|
|
37322
37646
|
content: "content",
|
|
@@ -37335,6 +37659,7 @@ const SLOTS$8 = {
|
|
|
37335
37659
|
header: "header",
|
|
37336
37660
|
footer: "footer",
|
|
37337
37661
|
alerts: "alerts",
|
|
37662
|
+
sheets: "sheets",
|
|
37338
37663
|
modals: "modals",
|
|
37339
37664
|
};
|
|
37340
37665
|
|
|
@@ -37351,6 +37676,7 @@ const shellCss = "/*!@:host*/.sc-calcite-shell-h{box-sizing:border-box;backgroun
|
|
|
37351
37676
|
* @slot center-row - [Deprecated] Use the `"panel-bottom"` slot instead. A slot for adding the bottom `calcite-shell-center-row`.
|
|
37352
37677
|
* @slot modals - A slot for adding `calcite-modal` components. When placed in this slot, the modal position will be constrained to the extent of the shell.
|
|
37353
37678
|
* @slot alerts - A slot for adding `calcite-alert` components. When placed in this slot, the alert position will be constrained to the extent of the shell.
|
|
37679
|
+
* @slot sheets - A slot for adding `calcite-sheet` components. When placed in this slot, the alert position will be constrained to the extent of the shell.
|
|
37354
37680
|
*/
|
|
37355
37681
|
class Shell {
|
|
37356
37682
|
constructor(hostRef) {
|
|
@@ -37374,6 +37700,14 @@ class Shell {
|
|
|
37374
37700
|
}
|
|
37375
37701
|
});
|
|
37376
37702
|
};
|
|
37703
|
+
this.handleSheetsSlotChange = (event) => {
|
|
37704
|
+
this.hasSheets = !!slotChangeHasAssignedElement(event);
|
|
37705
|
+
slotChangeGetAssignedElements(event)?.map((el) => {
|
|
37706
|
+
if (el.nodeName === "CALCITE-SHEET") {
|
|
37707
|
+
el.slottedInShell = true;
|
|
37708
|
+
}
|
|
37709
|
+
});
|
|
37710
|
+
};
|
|
37377
37711
|
this.handleModalsSlotChange = (event) => {
|
|
37378
37712
|
this.hasModals = !!slotChangeHasAssignedElement(event);
|
|
37379
37713
|
slotChangeGetAssignedElements(event)?.map((el) => {
|
|
@@ -37387,6 +37721,7 @@ class Shell {
|
|
|
37387
37721
|
this.hasFooter = false;
|
|
37388
37722
|
this.hasAlerts = false;
|
|
37389
37723
|
this.hasModals = false;
|
|
37724
|
+
this.hasSheets = false;
|
|
37390
37725
|
}
|
|
37391
37726
|
// --------------------------------------------------------------------------
|
|
37392
37727
|
//
|
|
@@ -37413,6 +37748,9 @@ class Shell {
|
|
|
37413
37748
|
renderAlerts() {
|
|
37414
37749
|
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$8.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
37415
37750
|
}
|
|
37751
|
+
renderSheets() {
|
|
37752
|
+
return (hAsync("div", { hidden: !this.hasSheets }, hAsync("slot", { key: "sheets", name: SLOTS$8.sheets, onSlotchange: this.handleSheetsSlotChange })));
|
|
37753
|
+
}
|
|
37416
37754
|
renderModals() {
|
|
37417
37755
|
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$8.modals, onSlotchange: this.handleModalsSlotChange })));
|
|
37418
37756
|
}
|
|
@@ -37439,7 +37777,7 @@ class Shell {
|
|
|
37439
37777
|
return (hAsync("div", { class: CSS$f.main }, hAsync("slot", { name: SLOTS$8.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$8.panelEnd })));
|
|
37440
37778
|
}
|
|
37441
37779
|
renderPositionedSlots() {
|
|
37442
|
-
return (hAsync("div", { class: CSS$f.positionedSlotWrapper }, this.renderAlerts(), this.renderModals()));
|
|
37780
|
+
return (hAsync("div", { class: CSS$f.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
37443
37781
|
}
|
|
37444
37782
|
render() {
|
|
37445
37783
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -37454,7 +37792,8 @@ class Shell {
|
|
|
37454
37792
|
"hasHeader": [32],
|
|
37455
37793
|
"hasFooter": [32],
|
|
37456
37794
|
"hasAlerts": [32],
|
|
37457
|
-
"hasModals": [32]
|
|
37795
|
+
"hasModals": [32],
|
|
37796
|
+
"hasSheets": [32]
|
|
37458
37797
|
},
|
|
37459
37798
|
"$listeners$": undefined,
|
|
37460
37799
|
"$lazyBundleId$": "-",
|
|
@@ -37807,7 +38146,7 @@ class ShellPanel {
|
|
|
37807
38146
|
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"
|
|
37808
38147
|
? contentHeight ?? initialContentHeight
|
|
37809
38148
|
: contentWidth ?? initialContentWidth, class: CSS$d.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
37810
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38149
|
+
// 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)
|
|
37811
38150
|
ref: this.connectSeparator })) : null;
|
|
37812
38151
|
const getAnimationDir = () => {
|
|
37813
38152
|
if (layout === "horizontal") {
|
|
@@ -37828,7 +38167,7 @@ class ShellPanel {
|
|
|
37828
38167
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
37829
38168
|
[getAnimationDir()]: displayMode === "overlay",
|
|
37830
38169
|
}, hidden: collapsed, key: "content", style: style,
|
|
37831
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38170
|
+
// 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)
|
|
37832
38171
|
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$d.contentBody }, hAsync("slot", null)), separatorNode));
|
|
37833
38172
|
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$6.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
37834
38173
|
const mainNodes = [actionBarNode, contentNode];
|
|
@@ -38142,21 +38481,21 @@ class Slider {
|
|
|
38142
38481
|
"thumb--value": true,
|
|
38143
38482
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38144
38483
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38145
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38484
|
+
// 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)
|
|
38146
38485
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" })));
|
|
38147
38486
|
const labeledHandle = (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: {
|
|
38148
38487
|
thumb: true,
|
|
38149
38488
|
"thumb--value": true,
|
|
38150
38489
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38151
38490
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38152
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38491
|
+
// 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)
|
|
38153
38492
|
ref: (el) => (this.maxHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" })));
|
|
38154
38493
|
const histogramLabeledHandle = (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: {
|
|
38155
38494
|
thumb: true,
|
|
38156
38495
|
"thumb--value": true,
|
|
38157
38496
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38158
38497
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38159
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38498
|
+
// 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)
|
|
38160
38499
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
38161
38500
|
const preciseHandle = (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: {
|
|
38162
38501
|
thumb: true,
|
|
@@ -38164,7 +38503,7 @@ class Slider {
|
|
|
38164
38503
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38165
38504
|
"thumb--precise": true,
|
|
38166
38505
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38167
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38506
|
+
// 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)
|
|
38168
38507
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
38169
38508
|
const histogramPreciseHandle = (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: {
|
|
38170
38509
|
thumb: true,
|
|
@@ -38172,7 +38511,7 @@ class Slider {
|
|
|
38172
38511
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38173
38512
|
"thumb--precise": true,
|
|
38174
38513
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38175
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38514
|
+
// 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)
|
|
38176
38515
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
38177
38516
|
const labeledPreciseHandle = (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: {
|
|
38178
38517
|
thumb: true,
|
|
@@ -38180,7 +38519,7 @@ class Slider {
|
|
|
38180
38519
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38181
38520
|
"thumb--precise": true,
|
|
38182
38521
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38183
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38522
|
+
// 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)
|
|
38184
38523
|
ref: (el) => (this.maxHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
38185
38524
|
const histogramLabeledPreciseHandle = (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: {
|
|
38186
38525
|
thumb: true,
|
|
@@ -38188,28 +38527,28 @@ class Slider {
|
|
|
38188
38527
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38189
38528
|
"thumb--precise": true,
|
|
38190
38529
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38191
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38530
|
+
// 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)
|
|
38192
38531
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
38193
38532
|
const minHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38194
38533
|
thumb: true,
|
|
38195
38534
|
"thumb--minValue": true,
|
|
38196
38535
|
"thumb--active": this.dragProp === "minValue",
|
|
38197
38536
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38198
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38537
|
+
// 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)
|
|
38199
38538
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle" })));
|
|
38200
38539
|
const minLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38201
38540
|
thumb: true,
|
|
38202
38541
|
"thumb--minValue": true,
|
|
38203
38542
|
"thumb--active": this.dragProp === "minValue",
|
|
38204
38543
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38205
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38544
|
+
// 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)
|
|
38206
38545
|
ref: (el) => (this.minHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue), hAsync("div", { class: "handle" })));
|
|
38207
38546
|
const minHistogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38208
38547
|
thumb: true,
|
|
38209
38548
|
"thumb--minValue": true,
|
|
38210
38549
|
"thumb--active": this.dragProp === "minValue",
|
|
38211
38550
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38212
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38551
|
+
// 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)
|
|
38213
38552
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
38214
38553
|
const minPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38215
38554
|
thumb: true,
|
|
@@ -38217,7 +38556,7 @@ class Slider {
|
|
|
38217
38556
|
"thumb--active": this.dragProp === "minValue",
|
|
38218
38557
|
"thumb--precise": true,
|
|
38219
38558
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38220
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38559
|
+
// 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)
|
|
38221
38560
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
38222
38561
|
const minLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38223
38562
|
thumb: true,
|
|
@@ -38225,14 +38564,14 @@ class Slider {
|
|
|
38225
38564
|
"thumb--active": this.dragProp === "minValue",
|
|
38226
38565
|
"thumb--precise": true,
|
|
38227
38566
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38228
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38567
|
+
// 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)
|
|
38229
38568
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
38230
38569
|
return (hAsync(Host, { id: id, onTouchStart: this.handleTouchStart }, hAsync("div", { "aria-label": getLabelText(this), class: {
|
|
38231
38570
|
["container"]: true,
|
|
38232
38571
|
["container--range"]: valueIsRange,
|
|
38233
38572
|
[`scale--${this.scale}`]: true,
|
|
38234
38573
|
} }, this.renderGraph(), hAsync("div", { class: "track",
|
|
38235
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38574
|
+
// 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)
|
|
38236
38575
|
ref: this.storeTrackRef }, hAsync("div", { class: "track__range", onPointerDown: (event) => this.pointerDownDragStart(event, "minMaxValue"), style: {
|
|
38237
38576
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
38238
38577
|
right: `${mirror ? minInterval : 100 - maxInterval}%`,
|
|
@@ -38994,7 +39333,7 @@ const CSS$a = {
|
|
|
38994
39333
|
widthFull: "width-full",
|
|
38995
39334
|
};
|
|
38996
39335
|
|
|
38997
|
-
const splitButtonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-split-button-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-split-button-h *.sc-calcite-split-button,.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-split-button-h{display:inline-block}/*!@:host .split-button__container*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button{display:flex;align-items:stretch}/*!@:host .split-button__container > calcite-dropdown > calcite-button*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button>calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{block-size:100%;vertical-align:top}/*!@:host:host([kind=brand])*/.sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=danger])*/.sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=neutral])*/.sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host:host([kind=inverse])*/.sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]):host([kind=brand])*/[appearance=transparent].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand)}/*!@:host([appearance=transparent]):host([kind=danger])*/[appearance=transparent].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger)}/*!@:host([appearance=transparent]):host([kind=neutral])*/[appearance=transparent].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent]):host([kind=inverse])*/[appearance=transparent].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-foreground-1);--calcite-split-button-background:transparent}/*!@:host([appearance=outline])
|
|
39336
|
+
const splitButtonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-split-button-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-split-button-h *.sc-calcite-split-button,.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-split-button-h{display:inline-block}/*!@:host .split-button__container*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button{display:flex;align-items:stretch}/*!@:host .split-button__container > calcite-dropdown > calcite-button*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button>calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{block-size:100%;vertical-align:top}/*!@:host:host([kind=brand])*/.sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=danger])*/.sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=neutral])*/.sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host:host([kind=inverse])*/.sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]):host([kind=brand])*/[appearance=transparent].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=danger])*/[appearance=transparent].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=neutral])*/[appearance=transparent].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-text-1);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=inverse])*/[appearance=transparent].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-foreground-1);--calcite-split-button-background:transparent}/*!@:host([appearance=outline])*/[appearance=outline].sc-calcite-split-button-h{--calcite-split-button-background:transparent}/*!@:host([appearance=outline-fill])*/[appearance=outline-fill].sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-1)}/*!@:host([appearance=outline]):host([kind=brand]),\n:host([appearance=outline-fill]):host([kind=brand])*/[appearance=outline].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand)}/*!@:host([appearance=outline]):host([kind=danger]),\n:host([appearance=outline-fill]):host([kind=danger])*/[appearance=outline].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger)}/*!@:host([appearance=outline]):host([kind=neutral]),\n:host([appearance=outline-fill]):host([kind=neutral])*/[appearance=outline].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-border-1);--calcite-split-button-background:var(--calcite-ui-border-1)}/*!@:host([appearance=outline]):host([kind=inverse]),\n:host([appearance=outline-fill]):host([kind=inverse])*/[appearance=outline].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-inverse)}/*!@.width-auto*/.width-auto.sc-calcite-split-button{inline-size:auto}/*!@.width-half*/.width-half.sc-calcite-split-button{inline-size:50%}/*!@.width-full*/.width-full.sc-calcite-split-button{inline-size:100%}/*!@.split-button__divider-container*/.split-button__divider-container.sc-calcite-split-button{display:flex;inline-size:1px;align-items:stretch;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background-color:var(--calcite-split-button-background)}/*!@.split-button__divider*/.split-button__divider.sc-calcite-split-button{margin-block:0.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]) .split-button__divider-container,\n:host([appearance=outline]) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button{border-block:1px solid var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]):hover .split-button__divider-container,\n:host([appearance=outline]):hover .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]:hover) .split-button__divider-container,\n:host([appearance=outline]:hover) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]:focus-within):host([kind=brand]),\n:host([appearance=outline]:focus-within):host([kind=brand])*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=brand]),[appearance=outline].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=brand]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill]:focus-within):host([kind=danger]),\n:host([appearance=outline]:focus-within):host([kind=danger])*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=danger]),[appearance=outline].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=danger]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill]:focus-within) .split-button__divider-container,\n:host([appearance=outline]:focus-within) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:focus-within .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([disabled]) .split-button__divider-container*/[disabled].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) calcite-dropdown > calcite-button*/[disabled].sc-calcite-split-button-h calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-split-button-h [calcite-hydrated][disabled].sc-calcite-split-button{opacity:1}/*!@:host([hidden])*/[hidden].sc-calcite-split-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-split-button{display:none}";
|
|
38998
39337
|
|
|
38999
39338
|
/**
|
|
39000
39339
|
* @slot - A slot for adding `calcite-dropdown` content.
|
|
@@ -39157,25 +39496,25 @@ class Stack {
|
|
|
39157
39496
|
// --------------------------------------------------------------------------
|
|
39158
39497
|
renderActionsStart() {
|
|
39159
39498
|
const { hasActionsStart } = this;
|
|
39160
|
-
return (hAsync("div", { class: CSS$
|
|
39499
|
+
return (hAsync("div", { class: CSS$v.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$f.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
39161
39500
|
}
|
|
39162
39501
|
renderActionsEnd() {
|
|
39163
39502
|
const { hasActionsEnd } = this;
|
|
39164
|
-
return (hAsync("div", { class: CSS$
|
|
39503
|
+
return (hAsync("div", { class: CSS$v.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$f.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
39165
39504
|
}
|
|
39166
39505
|
renderContentStart() {
|
|
39167
39506
|
const { hasContentStart } = this;
|
|
39168
|
-
return (hAsync("div", { class: CSS$
|
|
39507
|
+
return (hAsync("div", { class: CSS$v.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$f.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39169
39508
|
}
|
|
39170
39509
|
renderDefaultContent() {
|
|
39171
|
-
return (hAsync("div", { class: CSS$
|
|
39510
|
+
return (hAsync("div", { class: CSS$v.content }, hAsync("slot", null)));
|
|
39172
39511
|
}
|
|
39173
39512
|
renderContentEnd() {
|
|
39174
39513
|
const { hasContentEnd } = this;
|
|
39175
|
-
return (hAsync("div", { class: CSS$
|
|
39514
|
+
return (hAsync("div", { class: CSS$v.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39176
39515
|
}
|
|
39177
39516
|
render() {
|
|
39178
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
39517
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$v.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
39179
39518
|
}
|
|
39180
39519
|
static get style() { return stackCss; }
|
|
39181
39520
|
static get cmpMeta() { return {
|
|
@@ -39528,7 +39867,7 @@ class StepperItem {
|
|
|
39528
39867
|
return (hAsync(Host, { "aria-expanded": toAriaBoolean(this.selected), onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "container" }, hAsync("div", { class: "stepper-item-header", tabIndex:
|
|
39529
39868
|
/* additional tab index logic needed because of display: contents */
|
|
39530
39869
|
this.layout === "horizontal" && !this.disabled ? 0 : null,
|
|
39531
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
39870
|
+
// 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)
|
|
39532
39871
|
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? hAsync("div", { class: "stepper-item-number" }, this.renderNumbers(), ".") : null, hAsync("div", { class: "stepper-item-header-text" }, hAsync("span", { class: "stepper-item-heading" }, this.heading), hAsync("span", { class: "stepper-item-description" }, this.description))), hAsync("div", { class: "stepper-item-content" }, hAsync("slot", null)))));
|
|
39533
39872
|
}
|
|
39534
39873
|
//--------------------------------------------------------------------------
|
|
@@ -39702,7 +40041,7 @@ class Switch {
|
|
|
39702
40041
|
// --------------------------------------------------------------------------
|
|
39703
40042
|
render() {
|
|
39704
40043
|
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "container", role: "switch", tabIndex: 0,
|
|
39705
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40044
|
+
// 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)
|
|
39706
40045
|
ref: this.setSwitchEl }, hAsync("div", { class: "track" }, hAsync("div", { class: "handle" })), hAsync(HiddenFormInputSlot, { component: this }))));
|
|
39707
40046
|
}
|
|
39708
40047
|
get el() { return getElement(this); }
|
|
@@ -39936,11 +40275,11 @@ class TabNav {
|
|
|
39936
40275
|
const offset = `${this.indicatorOffset}px`;
|
|
39937
40276
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
39938
40277
|
return (hAsync(Host, { role: "tablist" }, hAsync("div", { class: "tab-nav", onScroll: this.handleContainerScroll,
|
|
39939
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40278
|
+
// 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)
|
|
39940
40279
|
ref: (el) => (this.tabNavEl = el) }, hAsync("slot", null), hAsync("div", { class: "tab-nav-active-indicator-container",
|
|
39941
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40280
|
+
// 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)
|
|
39942
40281
|
ref: (el) => (this.activeIndicatorContainerEl = el) }, hAsync("div", { class: "tab-nav-active-indicator", style: indicatorStyle,
|
|
39943
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40282
|
+
// 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)
|
|
39944
40283
|
ref: (el) => (this.activeIndicatorEl = el) })))));
|
|
39945
40284
|
}
|
|
39946
40285
|
//--------------------------------------------------------------------------
|
|
@@ -40199,13 +40538,13 @@ class TabTitle {
|
|
|
40199
40538
|
container: true,
|
|
40200
40539
|
[CSS$9.iconPresent]: !!this.iconStart || !!this.iconEnd,
|
|
40201
40540
|
}, hidden: closed,
|
|
40202
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40541
|
+
// 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)
|
|
40203
40542
|
ref: (el) => this.resizeObserver?.observe(el) }, hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentHasText]: this.hasText } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null), this.renderCloseButton())));
|
|
40204
40543
|
}
|
|
40205
40544
|
renderCloseButton() {
|
|
40206
40545
|
const { closable, messages } = this;
|
|
40207
40546
|
return closable ? (hAsync("button", { "aria-label": messages.close, class: CSS$9.closeButton, disabled: false, key: CSS$9.closeButton, onClick: this.closeClickHandler, title: messages.close, type: "button",
|
|
40208
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40547
|
+
// 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)
|
|
40209
40548
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$4.close, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
40210
40549
|
}
|
|
40211
40550
|
async componentDidLoad() {
|
|
@@ -40649,7 +40988,7 @@ class TextArea {
|
|
|
40649
40988
|
[CSS$8.blockSizeFull]: !hasFooter,
|
|
40650
40989
|
[CSS$8.borderColor]: !hasFooter,
|
|
40651
40990
|
}, cols: this.columns, disabled: this.disabled, name: this.name, onChange: this.handleChange, onInput: this.handleInput, placeholder: this.placeholder, readonly: this.readOnly, required: this.required, rows: this.rows, value: this.value, wrap: this.wrap,
|
|
40652
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40991
|
+
// 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)
|
|
40653
40992
|
ref: this.setTextAreaEl }), hAsync("span", { class: { [CSS$8.content]: true } }, hAsync("slot", { onSlotchange: this.contentSlotChangeHandler })), hAsync("footer", { class: {
|
|
40654
40993
|
[CSS$8.footer]: true,
|
|
40655
40994
|
[CSS$8.readOnly]: this.readOnly,
|
|
@@ -41715,7 +42054,7 @@ class TimePicker {
|
|
|
41715
42054
|
[CSS$6.input]: true,
|
|
41716
42055
|
[CSS$6.hour]: true,
|
|
41717
42056
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41718
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42057
|
+
// 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)
|
|
41719
42058
|
ref: this.setHourEl }, this.localizedHour || "--"), hAsync("span", { "aria-label": this.messages.hourDown, class: {
|
|
41720
42059
|
[CSS$6.button]: true,
|
|
41721
42060
|
[CSS$6.buttonHourDown]: true,
|
|
@@ -41727,7 +42066,7 @@ class TimePicker {
|
|
|
41727
42066
|
[CSS$6.input]: true,
|
|
41728
42067
|
[CSS$6.minute]: true,
|
|
41729
42068
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41730
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42069
|
+
// 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)
|
|
41731
42070
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), hAsync("span", { "aria-label": this.messages.minuteDown, class: {
|
|
41732
42071
|
[CSS$6.button]: true,
|
|
41733
42072
|
[CSS$6.buttonMinuteDown]: true,
|
|
@@ -41738,7 +42077,7 @@ class TimePicker {
|
|
|
41738
42077
|
[CSS$6.input]: true,
|
|
41739
42078
|
[CSS$6.second]: true,
|
|
41740
42079
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41741
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42080
|
+
// 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)
|
|
41742
42081
|
ref: this.setSecondEl }, this.localizedSecond || "--"), hAsync("span", { "aria-label": this.messages.secondDown, class: {
|
|
41743
42082
|
[CSS$6.button]: true,
|
|
41744
42083
|
[CSS$6.buttonSecondDown]: true,
|
|
@@ -41753,7 +42092,7 @@ class TimePicker {
|
|
|
41753
42092
|
[CSS$6.input]: true,
|
|
41754
42093
|
[CSS$6.meridiem]: true,
|
|
41755
42094
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41756
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42095
|
+
// 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)
|
|
41757
42096
|
ref: this.setMeridiemEl }, this.localizedMeridiem || "--"), hAsync("span", { "aria-label": this.messages.meridiemDown, class: {
|
|
41758
42097
|
[CSS$6.button]: true,
|
|
41759
42098
|
[CSS$6.buttonMeridiemDown]: true,
|
|
@@ -42135,7 +42474,7 @@ class TipManager {
|
|
|
42135
42474
|
return null;
|
|
42136
42475
|
}
|
|
42137
42476
|
return (hAsync("section", { "aria-hidden": toAriaBoolean(closed), class: CSS$4.container, hidden: closed, onKeyDown: this.tipManagerKeyDownHandler, tabIndex: 0,
|
|
42138
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42477
|
+
// 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)
|
|
42139
42478
|
ref: this.storeContainerRef }, hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: headingLevel }, groupTitle), hAsync("calcite-action", { class: CSS$4.close, onClick: this.hideTipManager, scale: "m", text: closeLabel }, hAsync("calcite-icon", { icon: ICONS$2.close, scale: "m" }))), hAsync("div", { class: {
|
|
42140
42479
|
[CSS$4.tipContainer]: true,
|
|
42141
42480
|
[CSS$4.tipContainerAdvancing]: !closed && direction === "advancing",
|
|
@@ -42566,9 +42905,9 @@ class Tooltip {
|
|
|
42566
42905
|
[FloatingCSS.animation]: true,
|
|
42567
42906
|
[FloatingCSS.animationActive]: displayed,
|
|
42568
42907
|
},
|
|
42569
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42908
|
+
// 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)
|
|
42570
42909
|
ref: this.setTransitionEl }, hAsync(FloatingArrow, { floatingLayout: floatingLayout,
|
|
42571
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42910
|
+
// 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)
|
|
42572
42911
|
ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$3.container }, hAsync("slot", null)))));
|
|
42573
42912
|
}
|
|
42574
42913
|
get el() { return getElement(this); }
|
|
@@ -42820,7 +43159,8 @@ class Tree {
|
|
|
42820
43159
|
}
|
|
42821
43160
|
updateAncestorTree(event) {
|
|
42822
43161
|
const item = event.target;
|
|
42823
|
-
|
|
43162
|
+
const updateItem = event.detail.updateItem;
|
|
43163
|
+
if (item.disabled || (item.indeterminate && !updateItem)) {
|
|
42824
43164
|
return;
|
|
42825
43165
|
}
|
|
42826
43166
|
const ancestors = [];
|
|
@@ -42832,9 +43172,13 @@ class Tree {
|
|
|
42832
43172
|
const childItems = Array.from(item.querySelectorAll("calcite-tree-item:not([disabled])"));
|
|
42833
43173
|
const childItemsWithNoChildren = childItems.filter((child) => !child.hasChildren);
|
|
42834
43174
|
const childItemsWithChildren = childItems.filter((child) => child.hasChildren);
|
|
42835
|
-
|
|
42836
|
-
|
|
42837
|
-
: !item.selected;
|
|
43175
|
+
let futureSelected;
|
|
43176
|
+
if (updateItem) {
|
|
43177
|
+
futureSelected = item.hasChildren ? !(item.selected || item.indeterminate) : !item.selected;
|
|
43178
|
+
}
|
|
43179
|
+
else {
|
|
43180
|
+
futureSelected = item.selected;
|
|
43181
|
+
}
|
|
42838
43182
|
childItemsWithNoChildren.forEach((el) => {
|
|
42839
43183
|
el.selected = futureSelected;
|
|
42840
43184
|
el.indeterminate = false;
|
|
@@ -42849,12 +43193,14 @@ class Tree {
|
|
|
42849
43193
|
const directChildItems = Array.from(el.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));
|
|
42850
43194
|
updateItemState(directChildItems, el);
|
|
42851
43195
|
});
|
|
42852
|
-
if (
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
|
|
43196
|
+
if (updateItem) {
|
|
43197
|
+
if (item.hasChildren) {
|
|
43198
|
+
updateItemState(childItems, item);
|
|
43199
|
+
}
|
|
43200
|
+
else {
|
|
43201
|
+
item.selected = futureSelected;
|
|
43202
|
+
item.indeterminate = false;
|
|
43203
|
+
}
|
|
42858
43204
|
}
|
|
42859
43205
|
ancestors.forEach((ancestor) => {
|
|
42860
43206
|
const descendants = nodeListToArray(ancestor.querySelectorAll("calcite-tree-item"));
|
|
@@ -42869,7 +43215,9 @@ class Tree {
|
|
|
42869
43215
|
ancestor.selected = !indeterminate;
|
|
42870
43216
|
});
|
|
42871
43217
|
this.selectedItems = nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected);
|
|
42872
|
-
|
|
43218
|
+
if (updateItem) {
|
|
43219
|
+
this.calciteTreeSelect.emit();
|
|
43220
|
+
}
|
|
42873
43221
|
}
|
|
42874
43222
|
// --------------------------------------------------------------------------
|
|
42875
43223
|
//
|
|
@@ -42921,7 +43269,7 @@ const ICONS$1 = {
|
|
|
42921
43269
|
blank: "blank",
|
|
42922
43270
|
};
|
|
42923
43271
|
|
|
42924
|
-
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-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-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex;justify-content:space-between}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline-color:transparent}/*!@:host:focus, :host:active*/.sc-calcite-tree-item-h:focus,.sc-calcite-tree-item-h:active{outline:2px solid transparent;outline-offset:2px;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(:focus:not([disabled]))*/.sc-calcite-tree-item-h:focus:not([disabled]){outline:2px solid transparent;outline-offset:2px;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 )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
43272
|
+
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-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-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline:2px solid transparent;outline-offset:2px}/*!@:host .node-container*/.sc-calcite-tree-item-h .node-container.sc-calcite-tree-item{outline-color:transparent}/*!@:host:focus .node-container, :host:active .node-container*/.sc-calcite-tree-item-h:focus .node-container.sc-calcite-tree-item,.sc-calcite-tree-item-h:active .node-container.sc-calcite-tree-item{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(:focus:not([disabled])) .node-container*/.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item{outline:2px solid transparent;outline-offset:2px;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 )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
42925
43273
|
|
|
42926
43274
|
/**
|
|
42927
43275
|
* @slot - A slot for adding text.
|
|
@@ -42937,6 +43285,7 @@ class TreeItem {
|
|
|
42937
43285
|
this.expanded = !this.expanded;
|
|
42938
43286
|
};
|
|
42939
43287
|
this.childrenClickHandler = (event) => event.stopPropagation();
|
|
43288
|
+
this.userChangedValue = false;
|
|
42940
43289
|
this.updateParentIsExpanded = (el, expanded) => {
|
|
42941
43290
|
const items = getSlotted(el, SLOTS$1.children, {
|
|
42942
43291
|
all: true,
|
|
@@ -42959,12 +43308,24 @@ class TreeItem {
|
|
|
42959
43308
|
this.scale = undefined;
|
|
42960
43309
|
this.indeterminate = false;
|
|
42961
43310
|
this.selectionMode = undefined;
|
|
42962
|
-
this.updateAfterInitialRender = false;
|
|
42963
43311
|
this.hasEndActions = false;
|
|
43312
|
+
this.updateAfterInitialRender = false;
|
|
42964
43313
|
}
|
|
42965
43314
|
expandedHandler(newValue) {
|
|
42966
43315
|
this.updateParentIsExpanded(this.el, newValue);
|
|
42967
43316
|
}
|
|
43317
|
+
handleSelectedChange(value) {
|
|
43318
|
+
if (this.selectionMode === "ancestors" && !this.userChangedValue) {
|
|
43319
|
+
if (value) {
|
|
43320
|
+
this.indeterminate = false;
|
|
43321
|
+
}
|
|
43322
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
43323
|
+
modifyCurrentSelection: true,
|
|
43324
|
+
forceToggle: false,
|
|
43325
|
+
updateItem: false,
|
|
43326
|
+
});
|
|
43327
|
+
}
|
|
43328
|
+
}
|
|
42968
43329
|
getSelectionMode() {
|
|
42969
43330
|
this.isSelectionMultiLike =
|
|
42970
43331
|
this.selectionMode === "multiple" || this.selectionMode === "multichildren";
|
|
@@ -43050,7 +43411,7 @@ class TreeItem {
|
|
|
43050
43411
|
[CSS$2.nodeContainer]: true,
|
|
43051
43412
|
[CSS_UTILITY.rtl]: rtl,
|
|
43052
43413
|
}, "data-selection-mode": this.selectionMode,
|
|
43053
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
43414
|
+
// 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)
|
|
43054
43415
|
ref: (el) => (this.defaultSlotWrapper = el) }, chevron, itemIndicator, this.iconStart ? iconStartEl : null, checkbox ? checkbox : defaultSlotNode), hAsync("div", { class: CSS$2.actionsEnd, hidden: !hasEndActions, ref: (el) => (this.actionSlotWrapper = el) }, slotNode)), hAsync("div", { class: {
|
|
43055
43416
|
[CSS$2.childrenContainer]: true,
|
|
43056
43417
|
[CSS_UTILITY.rtl]: rtl,
|
|
@@ -43075,7 +43436,9 @@ class TreeItem {
|
|
|
43075
43436
|
this.calciteInternalTreeItemSelect.emit({
|
|
43076
43437
|
modifyCurrentSelection: this.selectionMode === "ancestors" || this.isSelectionMultiLike,
|
|
43077
43438
|
forceToggle: false,
|
|
43439
|
+
updateItem: true,
|
|
43078
43440
|
});
|
|
43441
|
+
this.userChangedValue = true;
|
|
43079
43442
|
}
|
|
43080
43443
|
keyDownHandler(event) {
|
|
43081
43444
|
let root;
|
|
@@ -43087,9 +43450,11 @@ class TreeItem {
|
|
|
43087
43450
|
if (this.selectionMode === "none") {
|
|
43088
43451
|
return;
|
|
43089
43452
|
}
|
|
43453
|
+
this.userChangedValue = true;
|
|
43090
43454
|
this.calciteInternalTreeItemSelect.emit({
|
|
43091
43455
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
43092
43456
|
forceToggle: false,
|
|
43457
|
+
updateItem: true,
|
|
43093
43458
|
});
|
|
43094
43459
|
event.preventDefault();
|
|
43095
43460
|
break;
|
|
@@ -43099,6 +43464,7 @@ class TreeItem {
|
|
|
43099
43464
|
}
|
|
43100
43465
|
// activates a node, i.e., performs its default action. For parent nodes, one possible default action is to open or close the node. In single-select trees where selection does not follow focus (see note below), the default action is typically to select the focused node.
|
|
43101
43466
|
const link = nodeListToArray(this.el.children).find((el) => el.matches("a"));
|
|
43467
|
+
this.userChangedValue = true;
|
|
43102
43468
|
if (link) {
|
|
43103
43469
|
link.click();
|
|
43104
43470
|
this.selected = true;
|
|
@@ -43107,6 +43473,7 @@ class TreeItem {
|
|
|
43107
43473
|
this.calciteInternalTreeItemSelect.emit({
|
|
43108
43474
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
43109
43475
|
forceToggle: false,
|
|
43476
|
+
updateItem: true,
|
|
43110
43477
|
});
|
|
43111
43478
|
}
|
|
43112
43479
|
event.preventDefault();
|
|
@@ -43159,6 +43526,11 @@ class TreeItem {
|
|
|
43159
43526
|
else if (selectedSiblings.length > 0) {
|
|
43160
43527
|
parentItem.indeterminate = true;
|
|
43161
43528
|
}
|
|
43529
|
+
const childItems = Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])"));
|
|
43530
|
+
childItems.forEach((item) => {
|
|
43531
|
+
item.selected = true;
|
|
43532
|
+
item.indeterminate = false;
|
|
43533
|
+
});
|
|
43162
43534
|
}
|
|
43163
43535
|
else if (this.indeterminate) {
|
|
43164
43536
|
const parentItem = this.parentTreeItem;
|
|
@@ -43168,6 +43540,7 @@ class TreeItem {
|
|
|
43168
43540
|
get el() { return getElement(this); }
|
|
43169
43541
|
static get watchers() { return {
|
|
43170
43542
|
"expanded": ["expandedHandler"],
|
|
43543
|
+
"selected": ["handleSelectedChange"],
|
|
43171
43544
|
"selectionMode": ["getSelectionMode"]
|
|
43172
43545
|
}; }
|
|
43173
43546
|
static get style() { return treeItemCss; }
|
|
@@ -43187,8 +43560,8 @@ class TreeItem {
|
|
|
43187
43560
|
"scale": [1537],
|
|
43188
43561
|
"indeterminate": [516],
|
|
43189
43562
|
"selectionMode": [1537, "selection-mode"],
|
|
43190
|
-
"
|
|
43191
|
-
"
|
|
43563
|
+
"hasEndActions": [32],
|
|
43564
|
+
"updateAfterInitialRender": [32]
|
|
43192
43565
|
},
|
|
43193
43566
|
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"]],
|
|
43194
43567
|
"$lazyBundleId$": "-",
|
|
@@ -43626,14 +43999,14 @@ class ValueListItem {
|
|
|
43626
43999
|
const { icon, iconFlipRtl } = this;
|
|
43627
44000
|
if (icon === ICON_TYPES$1.grip) {
|
|
43628
44001
|
return (hAsync("span", { class: {
|
|
43629
|
-
[CSS$
|
|
43630
|
-
[CSS$
|
|
44002
|
+
[CSS$n.handle]: true,
|
|
44003
|
+
[CSS$n.handleActivated]: this.handleActivated,
|
|
43631
44004
|
}, "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" })));
|
|
43632
44005
|
}
|
|
43633
44006
|
}
|
|
43634
44007
|
render() {
|
|
43635
44008
|
return (hAsync(Host, { id: this.el.id || this.guid }, this.renderHandle(), hAsync("calcite-pick-list-item", { description: this.description, deselectDisabled: this.deselectDisabled, disabled: this.disabled, label: this.label, metadata: this.metadata, nonInteractive: this.nonInteractive, onCalciteListItemChange: this.handleSelectChange, removable: this.removable, selected: this.selected, value: this.value,
|
|
43636
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
44009
|
+
// 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)
|
|
43637
44010
|
ref: this.getPickListRef }, this.renderActionsStart(), this.renderActionsEnd())));
|
|
43638
44011
|
}
|
|
43639
44012
|
get el() { return getElement(this); }
|
|
@@ -43738,6 +44111,7 @@ registerComponents([
|
|
|
43738
44111
|
SegmentedControl,
|
|
43739
44112
|
SegmentedControlItem,
|
|
43740
44113
|
Select,
|
|
44114
|
+
Sheet,
|
|
43741
44115
|
Shell,
|
|
43742
44116
|
ShellCenterRow,
|
|
43743
44117
|
ShellPanel,
|