@esri/calcite-components 1.0.0-beta.74 → 1.0.0-beta.75
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 +1 -1
- package/dist/calcite/p-0164361f.system.entry.js +5 -0
- package/dist/calcite/{p-e1944963.js → p-01b7adb5.js} +1 -1
- package/dist/calcite/{p-f95fb85f.entry.js → p-04bf684c.entry.js} +1 -1
- package/dist/calcite/p-06dbe76a.system.entry.js +5 -0
- package/dist/calcite/p-06fbc0f2.system.entry.js +5 -0
- package/dist/calcite/p-08be120f.entry.js +5 -0
- package/dist/calcite/p-0a5d059d.js +5 -0
- package/dist/calcite/p-0a85cd8c.system.entry.js +5 -0
- package/dist/calcite/{p-8b145872.system.entry.js → p-0b552c00.system.entry.js} +1 -1
- package/dist/calcite/{p-e690993e.system.entry.js → p-0cb38659.system.entry.js} +1 -1
- package/dist/calcite/{p-a348ffb1.system.entry.js → p-10b1b39a.system.entry.js} +1 -1
- package/dist/calcite/{p-99d29b5c.system.entry.js → p-12142a2c.system.entry.js} +1 -1
- package/dist/calcite/p-146d8510.entry.js +5 -0
- package/dist/calcite/{p-d5d91f34.system.entry.js → p-14ca5cdf.system.entry.js} +1 -1
- package/dist/calcite/{p-3d4c34e5.js → p-14e47d1b.js} +1 -1
- package/dist/calcite/{p-21f26f77.entry.js → p-1668089f.entry.js} +1 -1
- package/dist/calcite/{p-8ebed170.system.entry.js → p-1804c868.system.entry.js} +1 -1
- package/dist/calcite/{p-fbcaa23c.system.js → p-1a3a366d.system.js} +1 -1
- package/dist/calcite/{p-6515e0a5.entry.js → p-20e3fc50.entry.js} +1 -1
- package/dist/calcite/{p-46b63d75.entry.js → p-2218fef5.entry.js} +1 -1
- package/dist/calcite/{p-38e64c6b.entry.js → p-2297db38.entry.js} +1 -1
- package/dist/calcite/p-243985d8.system.entry.js +5 -0
- package/dist/calcite/p-2e324a56.system.entry.js +5 -0
- package/dist/calcite/{p-e2094dff.system.entry.js → p-2e351904.system.entry.js} +1 -1
- package/dist/calcite/{p-1894562d.system.entry.js → p-32d61433.system.entry.js} +1 -1
- package/dist/calcite/p-39d4d1b1.system.entry.js +5 -0
- package/dist/calcite/p-3cdf0ad5.system.entry.js +5 -0
- package/dist/calcite/{p-897fc280.system.entry.js → p-40c3d7a6.system.entry.js} +1 -1
- package/dist/calcite/{p-52871e84.system.js → p-44aa1db4.system.js} +1 -1
- package/dist/calcite/{p-16cfe8e8.entry.js → p-49782820.entry.js} +1 -1
- package/dist/calcite/p-500300b5.entry.js +5 -0
- package/dist/calcite/{p-e0fa3b13.system.entry.js → p-54bb21f5.system.entry.js} +1 -1
- package/dist/calcite/{p-4d22b788.entry.js → p-54edaa0d.entry.js} +1 -1
- package/dist/calcite/{p-51a85436.entry.js → p-58eb8460.entry.js} +1 -1
- package/dist/calcite/p-5a77fd17.entry.js +5 -0
- package/dist/calcite/{p-b80ab9ba.entry.js → p-5b8404de.entry.js} +1 -1
- package/dist/calcite/{p-f09810e7.entry.js → p-5d12a140.entry.js} +1 -1
- package/dist/calcite/{p-f5469b62.system.entry.js → p-5d7da300.system.entry.js} +1 -1
- package/dist/calcite/p-5f5bfaa5.entry.js +5 -0
- package/dist/calcite/p-617c3f30.system.entry.js +5 -0
- package/dist/calcite/p-63f8783a.entry.js +5 -0
- package/dist/calcite/p-647d22ef.js +5 -0
- package/dist/calcite/p-64a5e88c.entry.js +5 -0
- package/dist/calcite/{p-f90b2e7f.entry.js → p-6969dabb.entry.js} +1 -1
- package/dist/calcite/p-6afd69dc.system.entry.js +5 -0
- package/dist/calcite/p-6fb9fef5.entry.js +5 -0
- package/dist/calcite/{p-14ff4cbd.system.js → p-70dd483b.system.js} +1 -1
- package/dist/calcite/p-7165e37e.entry.js +5 -0
- package/dist/calcite/p-754809de.entry.js +5 -0
- package/dist/calcite/{p-02589ad3.system.entry.js → p-7743a8d0.system.entry.js} +1 -1
- package/dist/calcite/{p-799f0655.entry.js → p-786b8250.entry.js} +1 -1
- package/dist/calcite/p-78725919.entry.js +5 -0
- package/dist/calcite/p-7a6c932d.system.entry.js +5 -0
- package/dist/calcite/p-7bdeb3ba.system.entry.js +5 -0
- package/dist/calcite/{p-e6d14bc5.system.entry.js → p-7d4316a1.system.entry.js} +1 -1
- package/dist/calcite/{p-d1794edd.entry.js → p-82491929.entry.js} +1 -1
- package/dist/calcite/p-8604c625.system.entry.js +5 -0
- package/dist/calcite/{p-436d9f0e.system.entry.js → p-86b63ebb.system.entry.js} +1 -1
- package/dist/calcite/{p-10f1a096.system.entry.js → p-8709d314.system.entry.js} +1 -1
- package/dist/calcite/p-8ba8a357.system.js +5 -0
- package/dist/calcite/{p-bda51610.entry.js → p-8e4aa7f7.entry.js} +1 -1
- package/dist/calcite/p-8f2c68f4.system.entry.js +5 -0
- package/dist/calcite/p-8f3a3e4e.js +5 -0
- package/dist/calcite/{p-7f5bd070.system.entry.js → p-900e18a5.system.entry.js} +1 -1
- package/dist/calcite/{p-e606e9ae.system.entry.js → p-92d9b81d.system.entry.js} +1 -1
- package/dist/calcite/p-9716c57c.entry.js +5 -0
- package/dist/calcite/p-97375cc0.entry.js +5 -0
- package/dist/calcite/p-99422223.system.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9a7c4812.js +5 -0
- package/dist/calcite/{p-45bfe5bf.system.entry.js → p-9ca6c750.system.entry.js} +1 -1
- package/dist/calcite/p-9d7102c0.entry.js +5 -0
- package/dist/calcite/p-9e2c9752.entry.js +5 -0
- package/dist/calcite/p-9f49c4fe.system.entry.js +5 -0
- package/dist/calcite/p-a50e52f1.entry.js +5 -0
- package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
- package/dist/calcite/p-ab14b0a2.system.js +5 -0
- package/dist/calcite/p-abe7730b.entry.js +5 -0
- package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
- package/dist/calcite/{p-132d55c2.entry.js → p-af669f43.entry.js} +1 -1
- package/dist/calcite/{p-8f4ea148.system.entry.js → p-af84fa29.system.entry.js} +1 -1
- package/dist/calcite/p-b002b038.entry.js +5 -0
- package/dist/calcite/p-b86f0930.system.entry.js +5 -0
- package/dist/calcite/p-b9a47a94.system.entry.js +5 -0
- package/dist/calcite/p-b9adf89d.system.entry.js +5 -0
- package/dist/calcite/{p-eea18662.entry.js → p-baca86e3.entry.js} +1 -1
- package/dist/calcite/p-bd576ae0.system.entry.js +5 -0
- package/dist/calcite/{p-209f2049.entry.js → p-bde80af8.entry.js} +1 -1
- package/dist/calcite/p-be231b84.entry.js +5 -0
- package/dist/calcite/{p-51550014.entry.js → p-c1c37da9.entry.js} +1 -1
- package/dist/calcite/p-c5463268.system.entry.js +5 -0
- package/dist/calcite/p-c5b3d90c.entry.js +5 -0
- package/dist/calcite/p-c6cb0aa2.entry.js +5 -0
- package/dist/calcite/{p-0b0ce9b2.system.entry.js → p-cd9d106b.system.entry.js} +1 -1
- package/dist/calcite/{p-3e9e4992.entry.js → p-d14265f3.entry.js} +1 -1
- package/dist/calcite/p-da470de7.entry.js +5 -0
- package/dist/calcite/{p-7f32a681.system.entry.js → p-e1491358.system.entry.js} +1 -1
- package/dist/calcite/{p-781ebed0.system.js → p-e2047621.system.js} +1 -1
- package/dist/calcite/p-e4862fff.entry.js +5 -0
- package/dist/calcite/{p-05dc6806.entry.js → p-e5420c67.entry.js} +1 -1
- package/dist/calcite/p-e5526c34.entry.js +5 -0
- package/dist/calcite/p-e5c2a6eb.entry.js +5 -0
- package/dist/calcite/{p-bb9fb183.system.entry.js → p-e83a5fe4.system.entry.js} +1 -1
- package/dist/calcite/{p-fcd62e97.js → p-e8e0f3b7.js} +1 -1
- package/dist/calcite/p-ea510477.js +5 -0
- package/dist/calcite/{p-3a20f93d.system.js → p-ec9bab33.system.js} +1 -1
- package/dist/calcite/{p-32f6f7df.entry.js → p-ee14736a.entry.js} +1 -1
- package/dist/calcite/{p-41894582.js → p-eeb91710.js} +1 -1
- package/dist/calcite/p-f12c35de.system.entry.js +5 -0
- package/dist/calcite/p-f1dc4798.entry.js +5 -0
- package/dist/calcite/{p-5c256f31.system.entry.js → p-f24ddc56.system.entry.js} +1 -1
- package/dist/calcite/{p-088a096d.system.entry.js → p-f4d9c369.system.entry.js} +1 -1
- package/dist/calcite/{p-59133b9b.entry.js → p-f7572da7.entry.js} +1 -1
- package/dist/calcite/{p-8468ddb0.system.entry.js → p-fbd68dbf.system.entry.js} +1 -1
- package/dist/calcite/p-ff04cfb1.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-65468585.js → CalciteExpandToggle-d24fed0e.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +6 -27
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -2
- package/dist/cjs/calcite-action.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -10
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +15 -2
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +17 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/calcite-chip.cjs.entry.js +15 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +35 -21
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +2 -2
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -11
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +20 -13
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input.cjs.entry.js +99 -39
- package/dist/cjs/calcite-link.cjs.entry.js +14 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +14 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +7 -4
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-panel.cjs.entry.js +19 -13
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +26 -3
- package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +36 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +14 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +15 -3
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -2
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +15 -3
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/conditionalSlot-92505fba.js +43 -0
- package/dist/cjs/{dom-0de9fb18.js → dom-f3df220d.js} +13 -10
- package/dist/cjs/{form-4b7c317e.js → form-237cf392.js} +1 -1
- package/dist/cjs/{label-1bca211b.js → label-6b18ca08.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
- package/dist/cjs/{popper-09105f6f.js → popper-13a2bb46.js} +1 -1
- package/dist/cjs/{resources-9f0994fb.js → resources-11763017.js} +4 -3
- package/dist/cjs/{resources-405cc2c4.js → resources-95073e41.js} +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +1 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
- package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
- package/dist/collection/components/calcite-block/calcite-block.js +13 -1
- package/dist/collection/components/calcite-card/calcite-card.js +15 -6
- package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +43 -13
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +9 -7
- package/dist/collection/components/calcite-date-picker/utils.js +4 -3
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -7
- package/dist/collection/components/calcite-graph/calcite-graph.css +3 -5
- package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +15 -21
- package/dist/collection/components/calcite-input/calcite-input.js +96 -36
- package/dist/collection/components/calcite-link/calcite-link.js +31 -2
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-slider/calcite-slider.css +4 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +3 -4
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/collection/utils/dom.js +13 -10
- package/dist/collection/utils/globalAttributes.js +59 -0
- package/dist/collection/utils/observers.js +5 -1
- package/dist/components/calcite-action-bar.js +2 -23
- package/dist/components/calcite-action-group2.js +12 -0
- package/dist/components/calcite-action-menu2.js +3 -0
- package/dist/components/calcite-action-pad.js +7 -0
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +15 -9
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-card.js +15 -6
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-color-picker-swatch2.js +15 -0
- package/dist/components/calcite-combobox-item.js +8 -6
- package/dist/components/calcite-combobox.js +22 -12
- package/dist/components/calcite-date-picker2.js +4 -3
- package/dist/components/calcite-dropdown2.js +12 -8
- package/dist/components/calcite-graph2.js +14 -9
- package/dist/components/calcite-inline-editable.js +5 -5
- package/dist/components/calcite-input2.js +96 -36
- package/dist/components/calcite-link2.js +14 -2
- package/dist/components/calcite-list-item.js +12 -0
- package/dist/components/calcite-modal.js +5 -2
- package/dist/components/calcite-notice.js +7 -0
- package/dist/components/calcite-panel.js +17 -12
- package/dist/components/calcite-pick-list-group.js +12 -0
- package/dist/components/calcite-pick-list-item2.js +12 -0
- package/dist/components/calcite-shell-center-row.js +13 -1
- package/dist/components/calcite-shell-panel.js +9 -4
- package/dist/components/calcite-shell.js +14 -2
- package/dist/components/calcite-slider.js +4 -4
- package/dist/components/calcite-tile2.js +12 -0
- package/dist/components/calcite-tip.js +13 -1
- package/dist/components/calcite-tree-item.js +5 -0
- package/dist/components/calcite-tree.js +2 -1
- package/dist/components/calcite-value-list-item.js +12 -0
- package/dist/components/conditionalSlot.js +40 -0
- package/dist/components/dom.js +13 -10
- package/dist/components/observers.js +5 -1
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +488 -198
- package/dist/esm/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +5 -26
- package/dist/esm/calcite-action-group.entry.js +14 -1
- package/dist/esm/calcite-action-menu.entry.js +5 -2
- package/dist/esm/calcite-action-pad.entry.js +10 -2
- package/dist/esm/calcite-action.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +16 -10
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +15 -2
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +17 -6
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip.entry.js +15 -2
- package/dist/esm/calcite-color-picker_3.entry.js +16 -1
- package/dist/esm/calcite-combobox_3.entry.js +35 -21
- package/dist/esm/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm/calcite-dropdown_3.entry.js +15 -11
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +21 -14
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +5 -5
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
- package/dist/esm/calcite-input.entry.js +99 -39
- package/dist/esm/calcite-link.entry.js +14 -3
- package/dist/esm/calcite-list_3.entry.js +14 -1
- package/dist/esm/calcite-modal.entry.js +7 -4
- package/dist/esm/calcite-notice.entry.js +9 -1
- package/dist/esm/calcite-option_3.entry.js +4 -4
- package/dist/esm/calcite-panel.entry.js +19 -13
- package/dist/esm/calcite-pick-list_3.entry.js +26 -3
- package/dist/esm/calcite-popover_2.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-radio-group_2.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +36 -8
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +2 -2
- package/dist/esm/calcite-tile.entry.js +14 -1
- package/dist/esm/calcite-tip_3.entry.js +15 -3
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +9 -2
- package/dist/esm/calcite-value-list_2.entry.js +15 -3
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/conditionalSlot-9e7d8609.js +40 -0
- package/dist/esm/{dom-037dc374.js → dom-e7fa77b9.js} +13 -10
- package/dist/esm/{form-72369b73.js → form-f90706b4.js} +1 -1
- package/dist/esm/{label-712646d2.js → label-2bffc9f4.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
- package/dist/esm/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
- package/dist/esm/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
- package/dist/esm/{resources-90193940.js → resources-c768953c.js} +4 -3
- package/dist/esm-es5/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +1 -1
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/conditionalSlot-9e7d8609.js +5 -0
- package/dist/esm-es5/dom-e7fa77b9.js +5 -0
- package/dist/esm-es5/{form-72369b73.js → form-f90706b4.js} +1 -1
- package/dist/esm-es5/{label-712646d2.js → label-2bffc9f4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
- package/dist/esm-es5/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
- package/dist/esm-es5/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
- package/dist/esm-es5/resources-c768953c.js +5 -0
- package/dist/extras/docs-json.json +63 -36
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
- package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
- package/dist/types/components/calcite-card/calcite-card.d.ts +4 -1
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -3
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +1 -0
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +3 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -5
- package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
- package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
- package/dist/types/components.d.ts +26 -16
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/utils/dom.d.ts +1 -0
- package/dist/types/utils/globalAttributes.d.ts +35 -0
- package/hydrate/index.js +479 -194
- package/package.json +12 -13
- package/readme.md +2 -32
- package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/calcite/p-02856c5a.system.entry.js +0 -5
- package/dist/calcite/p-0af820bf.entry.js +0 -5
- package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
- package/dist/calcite/p-1a5dae4a.entry.js +0 -5
- package/dist/calcite/p-1b3a66ec.system.entry.js +0 -5
- package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
- package/dist/calcite/p-20d2db84.entry.js +0 -5
- package/dist/calcite/p-244e0b95.entry.js +0 -5
- package/dist/calcite/p-253efee4.entry.js +0 -5
- package/dist/calcite/p-2618de8a.entry.js +0 -5
- package/dist/calcite/p-273cd5ab.entry.js +0 -5
- package/dist/calcite/p-28adfebc.entry.js +0 -5
- package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
- package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
- package/dist/calcite/p-325fcd0d.entry.js +0 -5
- package/dist/calcite/p-32f7eb32.js +0 -5
- package/dist/calcite/p-37bddb73.system.entry.js +0 -5
- package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
- package/dist/calcite/p-3b73b785.system.entry.js +0 -5
- package/dist/calcite/p-3b8f5ab8.system.entry.js +0 -5
- package/dist/calcite/p-41e2198b.js +0 -5
- package/dist/calcite/p-4659df78.entry.js +0 -5
- package/dist/calcite/p-54e271c9.system.entry.js +0 -5
- package/dist/calcite/p-57558d4b.entry.js +0 -5
- package/dist/calcite/p-5c3b9524.system.entry.js +0 -5
- package/dist/calcite/p-5df1936f.entry.js +0 -5
- package/dist/calcite/p-698167ac.entry.js +0 -5
- package/dist/calcite/p-7a28e833.system.entry.js +0 -5
- package/dist/calcite/p-7d355abe.system.entry.js +0 -5
- package/dist/calcite/p-85fb7bc0.entry.js +0 -5
- package/dist/calcite/p-8d36bc7c.entry.js +0 -5
- package/dist/calcite/p-8eafaf3f.entry.js +0 -5
- package/dist/calcite/p-9b05c3fd.js +0 -5
- package/dist/calcite/p-9d81d229.entry.js +0 -5
- package/dist/calcite/p-a0043c61.entry.js +0 -5
- package/dist/calcite/p-a1f65f6e.entry.js +0 -5
- package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
- package/dist/calcite/p-a9c50960.system.entry.js +0 -5
- package/dist/calcite/p-aaed1677.entry.js +0 -5
- package/dist/calcite/p-ac778725.system.entry.js +0 -5
- package/dist/calcite/p-ac8cf248.entry.js +0 -5
- package/dist/calcite/p-b4990fa4.system.entry.js +0 -5
- package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
- package/dist/calcite/p-c0ed9eff.entry.js +0 -5
- package/dist/calcite/p-c56f495f.system.js +0 -5
- package/dist/calcite/p-c7b8a068.entry.js +0 -5
- package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
- package/dist/calcite/p-d578e568.system.entry.js +0 -5
- package/dist/calcite/p-e2ebc089.system.entry.js +0 -5
- package/dist/calcite/p-e4acb5a8.js +0 -5
- package/dist/calcite/p-e564004a.system.entry.js +0 -5
- package/dist/calcite/p-e87980ac.entry.js +0 -5
- package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
- package/dist/calcite/p-f73124d0.entry.js +0 -5
- package/dist/collection/components/calcite-combobox/interfaces.d.js +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/collection/demos/_assets/demo-form.js +0 -23
- package/dist/collection/demos/_assets/demo-template.js +0 -13
- package/dist/collection/demos/_assets/head.js +0 -45
- package/dist/collection/demos/_assets/locales.js +0 -223
- package/dist/collection/utils/interactive.js +0 -20
- package/dist/esm-es5/dom-037dc374.js +0 -5
- package/dist/esm-es5/resources-90193940.js +0 -5
package/hydrate/index.js
CHANGED
|
@@ -5676,7 +5676,7 @@ const CSS_UTILITY = {
|
|
|
5676
5676
|
lightTheme,
|
|
5677
5677
|
rtl: "calcite--rtl"
|
|
5678
5678
|
};
|
|
5679
|
-
const TEXT$
|
|
5679
|
+
const TEXT$r = {
|
|
5680
5680
|
loading: "Loading"
|
|
5681
5681
|
};
|
|
5682
5682
|
|
|
@@ -5798,9 +5798,9 @@ async function focusElement(el) {
|
|
|
5798
5798
|
}
|
|
5799
5799
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
5800
5800
|
}
|
|
5801
|
-
const defaultSlotSelector = "
|
|
5801
|
+
const defaultSlotSelector = ":not([slot])";
|
|
5802
5802
|
function getSlotted(element, slotName, options) {
|
|
5803
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
5803
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
5804
5804
|
options = slotName;
|
|
5805
5805
|
slotName = null;
|
|
5806
5806
|
}
|
|
@@ -5814,12 +5814,15 @@ function getSlotted(element, slotName, options) {
|
|
|
5814
5814
|
}
|
|
5815
5815
|
return querySingle(element, slotSelector, options);
|
|
5816
5816
|
}
|
|
5817
|
+
function getDirectChildren(el, selector) {
|
|
5818
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
5819
|
+
}
|
|
5817
5820
|
function queryMultiple(element, slotSelector, options) {
|
|
5818
|
-
let matches =
|
|
5821
|
+
let matches = slotSelector === defaultSlotSelector
|
|
5822
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
5823
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
5819
5824
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
5820
|
-
|
|
5821
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
5822
|
-
}
|
|
5825
|
+
matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
|
|
5823
5826
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
5824
5827
|
return selector
|
|
5825
5828
|
? matches
|
|
@@ -5829,11 +5832,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
5829
5832
|
: matches;
|
|
5830
5833
|
}
|
|
5831
5834
|
function querySingle(element, slotSelector, options) {
|
|
5832
|
-
let match =
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
}
|
|
5835
|
+
let match = slotSelector === defaultSlotSelector
|
|
5836
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
5837
|
+
: element.querySelector(slotSelector);
|
|
5836
5838
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
5839
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
5837
5840
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
5838
5841
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
5839
5842
|
}
|
|
@@ -6001,7 +6004,7 @@ const CSS$P = {
|
|
|
6001
6004
|
textContainer: "text-container",
|
|
6002
6005
|
textContainerVisible: "text-container--visible"
|
|
6003
6006
|
};
|
|
6004
|
-
const TEXT$
|
|
6007
|
+
const TEXT$q = {
|
|
6005
6008
|
loading: "Loading"
|
|
6006
6009
|
};
|
|
6007
6010
|
|
|
@@ -6016,7 +6019,7 @@ function createObserver(type, callback, options) {
|
|
|
6016
6019
|
return undefined;
|
|
6017
6020
|
}
|
|
6018
6021
|
|
|
6019
|
-
const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-action:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-action{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-action{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@:host*/.sc-calcite-action-h{display:-ms-flexbox;display:flex;background-color:transparent}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{pointer-events:none}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-family:inherit;text-align:unset}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{-ms-flex-pack:center;justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{-ms-flex-pack:end;justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible, :host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([scale=s][compact]) .button, :host([scale=m][compact]) .button, :host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-left:0px;padding-right:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:-ms-flexbox;display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{width:100%}/*!@:host([active]) .button, :host([active]) .button:hover, :host([active]) .button:focus, :host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=clear]) .button*/[appearance=clear].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host([appearance=clear]) .button:hover, :host([appearance=clear]) .button:focus*/[appearance=clear].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=clear].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}/*!@:host([active][appearance=clear]) .button, :host([active][appearance=clear]) .button:hover, :host([active][appearance=clear]) .button:focus*/[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action,[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action:hover,[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([appearance=clear][loading]) .button, :host([appearance=clear][disabled]) .button*/[appearance=clear][loading].sc-calcite-action-h .button.sc-calcite-action,[appearance=clear][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading]) .button, :host([loading]) .button:hover, :host([loading]) .button:focus*/[loading].sc-calcite-action-h .button.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover,[loading].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading]) .button .text-container, :host([loading]) .button:hover .text-container, :host([loading]) .button:focus .text-container*/[loading].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{margin-right:0px;color:var(--calcite-ui-text-3)}/*!@:host([disabled]) .button, :host([disabled]) .button:hover, :host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button, :host([disabled][active]) .button:hover, :host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([indicator]) .button::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}/*!@:host([indicator]) .button--text-visible::after*/[indicator].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto}/*!@:host([indicator]) .button--text-visible .text-container--visible*/[indicator].sc-calcite-action-h .button--text-visible.sc-calcite-action .text-container--visible.sc-calcite-action{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([indicator]) .button:hover::after,\n:host([indicator]) .button:focus::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action:hover::after,[indicator].sc-calcite-action-h .button.sc-calcite-action:focus::after{border-color:var(--calcite-ui-foreground-1)}/*!@:host([indicator][scale=s]) .button::after*/[indicator][scale=s].sc-calcite-action-h .button.sc-calcite-action::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}/*!@:host([indicator][scale=s]) .button--text-visible::after*/[indicator][scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto;inset-inline-end:0.5rem}/*!@:host([indicator][active]) .button::after*/[indicator][active].sc-calcite-action-h .button.sc-calcite-action::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
6022
|
+
const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-action:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-action{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-action{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@:host*/.sc-calcite-action-h{display:-ms-flexbox;display:flex;background-color:transparent}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{pointer-events:none}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-family:inherit;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{-ms-flex-pack:center;justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{-ms-flex-pack:end;justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible, :host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([scale=s][compact]) .button, :host([scale=m][compact]) .button, :host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-left:0px;padding-right:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:-ms-flexbox;display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{width:100%}/*!@:host([active]) .button, :host([active]) .button:hover, :host([active]) .button:focus, :host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=clear]) .button*/[appearance=clear].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host([appearance=clear]) .button:hover, :host([appearance=clear]) .button:focus*/[appearance=clear].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=clear].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}/*!@:host([active][appearance=clear]) .button, :host([active][appearance=clear]) .button:hover, :host([active][appearance=clear]) .button:focus*/[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action,[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action:hover,[active][appearance=clear].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([appearance=clear][loading]) .button, :host([appearance=clear][disabled]) .button*/[appearance=clear][loading].sc-calcite-action-h .button.sc-calcite-action,[appearance=clear][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading]) .button, :host([loading]) .button:hover, :host([loading]) .button:focus*/[loading].sc-calcite-action-h .button.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover,[loading].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading]) .button .text-container, :host([loading]) .button:hover .text-container, :host([loading]) .button:focus .text-container*/[loading].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{margin-right:0px;color:var(--calcite-ui-text-3)}/*!@:host([disabled]) .button, :host([disabled]) .button:hover, :host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button, :host([disabled][active]) .button:hover, :host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([indicator]) .button::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}/*!@:host([indicator]) .button--text-visible::after*/[indicator].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto}/*!@:host([indicator]) .button--text-visible .text-container--visible*/[indicator].sc-calcite-action-h .button--text-visible.sc-calcite-action .text-container--visible.sc-calcite-action{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([indicator]) .button:hover::after,\n:host([indicator]) .button:focus::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action:hover::after,[indicator].sc-calcite-action-h .button.sc-calcite-action:focus::after{border-color:var(--calcite-ui-foreground-1)}/*!@:host([indicator][scale=s]) .button::after*/[indicator][scale=s].sc-calcite-action-h .button.sc-calcite-action::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}/*!@:host([indicator][scale=s]) .button--text-visible::after*/[indicator][scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto;inset-inline-end:0.5rem}/*!@:host([indicator][active]) .button::after*/[indicator][active].sc-calcite-action-h .button.sc-calcite-action::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
6020
6023
|
|
|
6021
6024
|
/**
|
|
6022
6025
|
* @slot - A slot for adding a `calcite-icon`.
|
|
@@ -6051,7 +6054,7 @@ class CalciteAction {
|
|
|
6051
6054
|
/** string to override English loading text
|
|
6052
6055
|
* @default "Loading"
|
|
6053
6056
|
*/
|
|
6054
|
-
this.intlLoading = TEXT$
|
|
6057
|
+
this.intlLoading = TEXT$q.loading;
|
|
6055
6058
|
/**
|
|
6056
6059
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
6057
6060
|
*/
|
|
@@ -6178,7 +6181,7 @@ const SLOTS$o = {
|
|
|
6178
6181
|
menuActions: "menu-actions",
|
|
6179
6182
|
menuTooltip: "menu-tooltip"
|
|
6180
6183
|
};
|
|
6181
|
-
const TEXT$
|
|
6184
|
+
const TEXT$p = {
|
|
6182
6185
|
more: "More"
|
|
6183
6186
|
};
|
|
6184
6187
|
const ICONS$e = {
|
|
@@ -6269,7 +6272,7 @@ const SLOTS$n = {
|
|
|
6269
6272
|
bottomActions: "bottom-actions",
|
|
6270
6273
|
expandTooltip: "expand-tooltip"
|
|
6271
6274
|
};
|
|
6272
|
-
const TEXT$
|
|
6275
|
+
const TEXT$o = {
|
|
6273
6276
|
expand: "Expand",
|
|
6274
6277
|
collapse: "Collapse"
|
|
6275
6278
|
};
|
|
@@ -7537,26 +7540,36 @@ function throttle$1(func, wait, options) {
|
|
|
7537
7540
|
});
|
|
7538
7541
|
}
|
|
7539
7542
|
|
|
7540
|
-
const
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
}
|
|
7544
|
-
const eventType = "slotchange";
|
|
7543
|
+
const observed = new Set();
|
|
7544
|
+
let mutationObserver;
|
|
7545
|
+
const observerOptions = { childList: true };
|
|
7545
7546
|
/**
|
|
7546
7547
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
7547
7548
|
*/
|
|
7548
7549
|
function connectConditionalSlotComponent(component) {
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7550
|
+
if (!mutationObserver) {
|
|
7551
|
+
mutationObserver = createObserver();
|
|
7552
|
+
}
|
|
7553
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
7552
7554
|
}
|
|
7553
7555
|
/**
|
|
7554
7556
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
7555
7557
|
*/
|
|
7556
7558
|
function disconnectConditionalSlotComponent(component) {
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7559
|
+
observed.delete(component.el);
|
|
7560
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
7561
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
7562
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
7563
|
+
processMutations(mutationObserver.takeRecords());
|
|
7564
|
+
mutationObserver.disconnect();
|
|
7565
|
+
for (const [element] of observed.entries()) {
|
|
7566
|
+
mutationObserver.observe(element, observerOptions);
|
|
7567
|
+
}
|
|
7568
|
+
}
|
|
7569
|
+
function processMutations(mutations) {
|
|
7570
|
+
mutations.forEach(({ target }) => {
|
|
7571
|
+
forceUpdate$1(target);
|
|
7572
|
+
});
|
|
7560
7573
|
}
|
|
7561
7574
|
|
|
7562
7575
|
const calciteActionBarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-action-bar:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-action-bar{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-action-bar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-bar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-bar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-bar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-bar-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-bar-h *.sc-calcite-action-bar{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-bar:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-bar-h{display:none}/*!@:host*/.sc-calcite-action-bar-h{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}/*!@:host([overflow-actions-disabled])*/[overflow-actions-disabled].sc-calcite-action-bar-h{overflow-y:auto}/*!@:host([expanded])*/[expanded].sc-calcite-action-bar-h{max-width:20vw}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-bar-s>calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@::slotted(calcite-action-group:last-child)*/.sc-calcite-action-bar-s>calcite-action-group:last-child{border-bottom-width:0px}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-bar{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
@@ -7719,8 +7732,8 @@ class CalciteActionBar {
|
|
|
7719
7732
|
renderBottomActionGroup() {
|
|
7720
7733
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7721
7734
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
7722
|
-
const expandLabel = intlExpand || TEXT$
|
|
7723
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7735
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
7736
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
7724
7737
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7725
7738
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7726
7739
|
}
|
|
@@ -7795,6 +7808,17 @@ class CalciteActionGroup {
|
|
|
7795
7808
|
}
|
|
7796
7809
|
// --------------------------------------------------------------------------
|
|
7797
7810
|
//
|
|
7811
|
+
// Lifecycle
|
|
7812
|
+
//
|
|
7813
|
+
// --------------------------------------------------------------------------
|
|
7814
|
+
connectedCallback() {
|
|
7815
|
+
connectConditionalSlotComponent(this);
|
|
7816
|
+
}
|
|
7817
|
+
disconnectedCallback() {
|
|
7818
|
+
disconnectConditionalSlotComponent(this);
|
|
7819
|
+
}
|
|
7820
|
+
// --------------------------------------------------------------------------
|
|
7821
|
+
//
|
|
7798
7822
|
// Component Methods
|
|
7799
7823
|
//
|
|
7800
7824
|
// --------------------------------------------------------------------------
|
|
@@ -7806,7 +7830,7 @@ class CalciteActionGroup {
|
|
|
7806
7830
|
renderMenu() {
|
|
7807
7831
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
7808
7832
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
7809
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7833
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
7810
7834
|
}
|
|
7811
7835
|
render() {
|
|
7812
7836
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8052,11 +8076,13 @@ class CalciteActionMenu {
|
|
|
8052
8076
|
var _a;
|
|
8053
8077
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
8054
8078
|
this.getActions();
|
|
8079
|
+
connectConditionalSlotComponent(this);
|
|
8055
8080
|
}
|
|
8056
8081
|
disconnectedCallback() {
|
|
8057
8082
|
var _a;
|
|
8058
8083
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
8059
8084
|
this.disconnectMenuButtonEl();
|
|
8085
|
+
disconnectConditionalSlotComponent(this);
|
|
8060
8086
|
}
|
|
8061
8087
|
expandedHandler() {
|
|
8062
8088
|
this.open = false;
|
|
@@ -8141,7 +8167,7 @@ const CSS$M = {
|
|
|
8141
8167
|
actionGroupBottom: "action-group--bottom",
|
|
8142
8168
|
container: "container"
|
|
8143
8169
|
};
|
|
8144
|
-
const TEXT$
|
|
8170
|
+
const TEXT$n = {
|
|
8145
8171
|
expand: "Expand",
|
|
8146
8172
|
collapse: "Collapse"
|
|
8147
8173
|
};
|
|
@@ -8214,6 +8240,12 @@ class CalciteActionPad {
|
|
|
8214
8240
|
// Lifecycle
|
|
8215
8241
|
//
|
|
8216
8242
|
// --------------------------------------------------------------------------
|
|
8243
|
+
connectedCallback() {
|
|
8244
|
+
connectConditionalSlotComponent(this);
|
|
8245
|
+
}
|
|
8246
|
+
disconnectedCallback() {
|
|
8247
|
+
disconnectConditionalSlotComponent(this);
|
|
8248
|
+
}
|
|
8217
8249
|
componentWillLoad() {
|
|
8218
8250
|
const { el, expandDisabled, expanded } = this;
|
|
8219
8251
|
if (!expandDisabled) {
|
|
@@ -8241,8 +8273,8 @@ class CalciteActionPad {
|
|
|
8241
8273
|
renderBottomActionGroup() {
|
|
8242
8274
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8243
8275
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
8244
|
-
const expandLabel = intlExpand || TEXT$
|
|
8245
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8276
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
8277
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
8246
8278
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8247
8279
|
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8248
8280
|
}
|
|
@@ -8274,7 +8306,7 @@ class CalciteActionPad {
|
|
|
8274
8306
|
}; }
|
|
8275
8307
|
}
|
|
8276
8308
|
|
|
8277
|
-
const TEXT$
|
|
8309
|
+
const TEXT$m = {
|
|
8278
8310
|
intlClose: "Close"
|
|
8279
8311
|
};
|
|
8280
8312
|
const DURATIONS = {
|
|
@@ -8329,7 +8361,7 @@ class CalciteAlert {
|
|
|
8329
8361
|
/** string to override English close text
|
|
8330
8362
|
* @default "Close"
|
|
8331
8363
|
*/
|
|
8332
|
-
this.intlClose = TEXT$
|
|
8364
|
+
this.intlClose = TEXT$m.intlClose;
|
|
8333
8365
|
/** specify the placement of the alert */
|
|
8334
8366
|
this.placement = "bottom";
|
|
8335
8367
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -8347,6 +8379,7 @@ class CalciteAlert {
|
|
|
8347
8379
|
this.queued = false;
|
|
8348
8380
|
this.autoDismissTimeoutId = null;
|
|
8349
8381
|
this.trackTimer = Date.now();
|
|
8382
|
+
this.activeTransitionProp = "opacity";
|
|
8350
8383
|
/** close and emit the closed alert and the queue */
|
|
8351
8384
|
this.closeAlert = () => {
|
|
8352
8385
|
this.autoDismissTimeoutId = null;
|
|
@@ -8355,10 +8388,19 @@ class CalciteAlert {
|
|
|
8355
8388
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8356
8389
|
this.determineActiveAlert();
|
|
8357
8390
|
this.calciteAlertSync.emit({ queue: this.queue });
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8391
|
+
};
|
|
8392
|
+
this.transitionEnd = (event) => {
|
|
8393
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
8394
|
+
this.active
|
|
8395
|
+
? this.calciteAlertOpen.emit({
|
|
8396
|
+
el: this.el,
|
|
8397
|
+
queue: this.queue
|
|
8398
|
+
})
|
|
8399
|
+
: this.calciteAlertClose.emit({
|
|
8400
|
+
el: this.el,
|
|
8401
|
+
queue: this.queue
|
|
8402
|
+
});
|
|
8403
|
+
}
|
|
8362
8404
|
};
|
|
8363
8405
|
}
|
|
8364
8406
|
watchActive() {
|
|
@@ -8409,7 +8451,7 @@ class CalciteAlert {
|
|
|
8409
8451
|
container: true,
|
|
8410
8452
|
queued,
|
|
8411
8453
|
[placement]: true
|
|
8412
|
-
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8454
|
+
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8413
8455
|
}
|
|
8414
8456
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8415
8457
|
alertSync(event) {
|
|
@@ -8468,10 +8510,6 @@ class CalciteAlert {
|
|
|
8468
8510
|
openAlert() {
|
|
8469
8511
|
window.clearTimeout(this.queueTimeout);
|
|
8470
8512
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
8471
|
-
this.calciteAlertOpen.emit({
|
|
8472
|
-
el: this.el,
|
|
8473
|
-
queue: this.queue
|
|
8474
|
-
});
|
|
8475
8513
|
}
|
|
8476
8514
|
get el() { return getElement(this); }
|
|
8477
8515
|
static get watchers() { return {
|
|
@@ -8778,7 +8816,7 @@ const CSS$L = {
|
|
|
8778
8816
|
invalid: "invalid",
|
|
8779
8817
|
loading: "loading"
|
|
8780
8818
|
};
|
|
8781
|
-
const TEXT$
|
|
8819
|
+
const TEXT$l = {
|
|
8782
8820
|
collapse: "Collapse",
|
|
8783
8821
|
expand: "Expand",
|
|
8784
8822
|
loading: "Loading",
|
|
@@ -8839,11 +8877,11 @@ class CalciteBlock {
|
|
|
8839
8877
|
/** string to override English loading text
|
|
8840
8878
|
* @default "Loading"
|
|
8841
8879
|
*/
|
|
8842
|
-
this.intlLoading = TEXT$
|
|
8880
|
+
this.intlLoading = TEXT$l.loading;
|
|
8843
8881
|
/** Text string used for the actions menu
|
|
8844
8882
|
* @default "Options"
|
|
8845
8883
|
*/
|
|
8846
|
-
this.intlOptions = TEXT$
|
|
8884
|
+
this.intlOptions = TEXT$l.options;
|
|
8847
8885
|
/**
|
|
8848
8886
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
8849
8887
|
*/
|
|
@@ -8864,6 +8902,17 @@ class CalciteBlock {
|
|
|
8864
8902
|
}
|
|
8865
8903
|
// --------------------------------------------------------------------------
|
|
8866
8904
|
//
|
|
8905
|
+
// Lifecycle
|
|
8906
|
+
//
|
|
8907
|
+
// --------------------------------------------------------------------------
|
|
8908
|
+
connectedCallback() {
|
|
8909
|
+
connectConditionalSlotComponent(this);
|
|
8910
|
+
}
|
|
8911
|
+
disconnectedCallback() {
|
|
8912
|
+
disconnectConditionalSlotComponent(this);
|
|
8913
|
+
}
|
|
8914
|
+
// --------------------------------------------------------------------------
|
|
8915
|
+
//
|
|
8867
8916
|
// Render Methods
|
|
8868
8917
|
//
|
|
8869
8918
|
// --------------------------------------------------------------------------
|
|
@@ -8877,7 +8926,7 @@ class CalciteBlock {
|
|
|
8877
8926
|
const showingLoadingStatus = this.loading && !this.open;
|
|
8878
8927
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
8879
8928
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
8880
|
-
const iconEl = !statusIcon ? (hAsync("slot", { name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8929
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8881
8930
|
[CSS$L.statusIcon]: true,
|
|
8882
8931
|
[CSS$L.valid]: status == "valid",
|
|
8883
8932
|
[CSS$L.invalid]: status == "invalid",
|
|
@@ -8891,12 +8940,12 @@ class CalciteBlock {
|
|
|
8891
8940
|
}
|
|
8892
8941
|
render() {
|
|
8893
8942
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
8894
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8943
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
8895
8944
|
const headerContent = (hAsync("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
8896
8945
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8897
8946
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8898
8947
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8899
|
-
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
8948
|
+
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8900
8949
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8901
8950
|
[CSS$L.article]: true
|
|
8902
8951
|
} }, headerNode, hAsync("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -8939,7 +8988,7 @@ const CSS$K = {
|
|
|
8939
8988
|
statusIcon: "status-icon",
|
|
8940
8989
|
valid: "valid"
|
|
8941
8990
|
};
|
|
8942
|
-
const TEXT$
|
|
8991
|
+
const TEXT$k = {
|
|
8943
8992
|
collapse: "Collapse",
|
|
8944
8993
|
expand: "Expand"
|
|
8945
8994
|
};
|
|
@@ -9011,7 +9060,7 @@ class CalciteBlockSection {
|
|
|
9011
9060
|
: dir === "rtl"
|
|
9012
9061
|
? ICONS$b.menuClosedLeft
|
|
9013
9062
|
: ICONS$b.menuClosedRight;
|
|
9014
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9063
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
9015
9064
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
9016
9065
|
[CSS$K.toggle]: true,
|
|
9017
9066
|
[CSS$K.toggleSwitch]: true
|
|
@@ -9080,7 +9129,7 @@ const CSS$J = {
|
|
|
9080
9129
|
iconStartEmpty: "icon-start-empty",
|
|
9081
9130
|
iconEndEmpty: "icon-end-empty"
|
|
9082
9131
|
};
|
|
9083
|
-
const TEXT$
|
|
9132
|
+
const TEXT$j = {
|
|
9084
9133
|
loading: "Loading"
|
|
9085
9134
|
};
|
|
9086
9135
|
|
|
@@ -9187,7 +9236,7 @@ class CalciteButton {
|
|
|
9187
9236
|
/** string to override English loading text
|
|
9188
9237
|
* @default "Loading"
|
|
9189
9238
|
*/
|
|
9190
|
-
this.intlLoading = TEXT$
|
|
9239
|
+
this.intlLoading = TEXT$j.loading;
|
|
9191
9240
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9192
9241
|
this.loading = false;
|
|
9193
9242
|
/** optionally add a round style to the button */
|
|
@@ -9352,7 +9401,7 @@ const SLOTS$j = {
|
|
|
9352
9401
|
footerLeading: "footer-leading",
|
|
9353
9402
|
footerTrailing: "footer-trailing"
|
|
9354
9403
|
};
|
|
9355
|
-
const TEXT$
|
|
9404
|
+
const TEXT$i = {
|
|
9356
9405
|
select: "Select",
|
|
9357
9406
|
deselect: "Deselect",
|
|
9358
9407
|
loading: "Loading"
|
|
@@ -9389,15 +9438,15 @@ class CalciteCard {
|
|
|
9389
9438
|
/** string to override English loading text
|
|
9390
9439
|
* @default "Loading"
|
|
9391
9440
|
*/
|
|
9392
|
-
this.intlLoading = TEXT$
|
|
9441
|
+
this.intlLoading = TEXT$i.loading;
|
|
9393
9442
|
/** string to override English select text for checkbox when selectable is true
|
|
9394
9443
|
* @default "Select"
|
|
9395
9444
|
*/
|
|
9396
|
-
this.intlSelect = TEXT$
|
|
9445
|
+
this.intlSelect = TEXT$i.select;
|
|
9397
9446
|
/** string to override English deselect text for checkbox when selectable is true
|
|
9398
9447
|
* @default "Deselect"
|
|
9399
9448
|
*/
|
|
9400
|
-
this.intlDeselect = TEXT$
|
|
9449
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
9401
9450
|
//--------------------------------------------------------------------------
|
|
9402
9451
|
//
|
|
9403
9452
|
// Private State/Props
|
|
@@ -9426,6 +9475,12 @@ class CalciteCard {
|
|
|
9426
9475
|
// Lifecycle
|
|
9427
9476
|
//
|
|
9428
9477
|
// --------------------------------------------------------------------------
|
|
9478
|
+
connectedCallback() {
|
|
9479
|
+
connectConditionalSlotComponent(this);
|
|
9480
|
+
}
|
|
9481
|
+
disonnectedCallback() {
|
|
9482
|
+
disconnectConditionalSlotComponent(this);
|
|
9483
|
+
}
|
|
9429
9484
|
render() {
|
|
9430
9485
|
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter())));
|
|
9431
9486
|
}
|
|
@@ -9434,22 +9489,23 @@ class CalciteCard {
|
|
|
9434
9489
|
this.calciteCardSelect.emit();
|
|
9435
9490
|
}
|
|
9436
9491
|
renderThumbnail() {
|
|
9437
|
-
|
|
9438
|
-
return hasThumbnail ? (hAsync("div", { class: CSS$I.thumbnailWrapper }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
9492
|
+
return getSlotted(this.el, SLOTS$j.thumbnail) ? (hAsync("div", { class: CSS$I.thumbnailWrapper, key: "thumbnail-wrapper" }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
9439
9493
|
}
|
|
9440
9494
|
renderCheckbox() {
|
|
9441
9495
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
9442
9496
|
return (hAsync("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
9443
9497
|
}
|
|
9444
9498
|
renderHeader() {
|
|
9445
|
-
const
|
|
9446
|
-
const
|
|
9499
|
+
const { el } = this;
|
|
9500
|
+
const title = getSlotted(el, SLOTS$j.title);
|
|
9501
|
+
const subtitle = getSlotted(el, SLOTS$j.subtitle);
|
|
9447
9502
|
const hasHeader = title || subtitle;
|
|
9448
9503
|
return hasHeader ? (hAsync("header", { class: CSS$I.header }, hAsync("slot", { name: SLOTS$j.title }), hAsync("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
9449
9504
|
}
|
|
9450
9505
|
renderFooter() {
|
|
9451
|
-
const
|
|
9452
|
-
const
|
|
9506
|
+
const { el } = this;
|
|
9507
|
+
const leadingFooter = getSlotted(el, SLOTS$j.footerLeading);
|
|
9508
|
+
const trailingFooter = getSlotted(el, SLOTS$j.footerTrailing);
|
|
9453
9509
|
const hasFooter = leadingFooter || trailingFooter;
|
|
9454
9510
|
return hasFooter ? (hAsync("footer", { class: CSS$I.footer }, hAsync("slot", { name: SLOTS$j.footerLeading }), hAsync("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
9455
9511
|
}
|
|
@@ -9781,7 +9837,7 @@ const CSS$H = {
|
|
|
9781
9837
|
chipImageContainer: "chip-image-container",
|
|
9782
9838
|
calciteChipIcon: "calcite-chip--icon"
|
|
9783
9839
|
};
|
|
9784
|
-
const TEXT$
|
|
9840
|
+
const TEXT$h = {
|
|
9785
9841
|
close: "Close"
|
|
9786
9842
|
};
|
|
9787
9843
|
const SLOTS$i = {
|
|
@@ -9815,7 +9871,7 @@ class CalciteChip {
|
|
|
9815
9871
|
/** Aria label for the "x" button
|
|
9816
9872
|
* @default "Close"
|
|
9817
9873
|
*/
|
|
9818
|
-
this.dismissLabel = TEXT$
|
|
9874
|
+
this.dismissLabel = TEXT$h.close;
|
|
9819
9875
|
/** flip the icon in rtl */
|
|
9820
9876
|
this.iconFlipRtl = false;
|
|
9821
9877
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -9831,6 +9887,17 @@ class CalciteChip {
|
|
|
9831
9887
|
};
|
|
9832
9888
|
this.guid = guid();
|
|
9833
9889
|
}
|
|
9890
|
+
// --------------------------------------------------------------------------
|
|
9891
|
+
//
|
|
9892
|
+
// Lifecycle
|
|
9893
|
+
//
|
|
9894
|
+
// --------------------------------------------------------------------------
|
|
9895
|
+
connectedCallback() {
|
|
9896
|
+
connectConditionalSlotComponent(this);
|
|
9897
|
+
}
|
|
9898
|
+
disconnectedCallback() {
|
|
9899
|
+
disconnectConditionalSlotComponent(this);
|
|
9900
|
+
}
|
|
9834
9901
|
//--------------------------------------------------------------------------
|
|
9835
9902
|
//
|
|
9836
9903
|
// Public Methods
|
|
@@ -9849,7 +9916,7 @@ class CalciteChip {
|
|
|
9849
9916
|
renderChipImage() {
|
|
9850
9917
|
const { el } = this;
|
|
9851
9918
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
9852
|
-
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9919
|
+
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer, key: "image" }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9853
9920
|
}
|
|
9854
9921
|
render() {
|
|
9855
9922
|
const iconEl = (hAsync("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
@@ -11749,6 +11816,21 @@ Color.prototype = {
|
|
|
11749
11816
|
return colorString.to.hex(this.rgb().round().color);
|
|
11750
11817
|
},
|
|
11751
11818
|
|
|
11819
|
+
hexa(value) {
|
|
11820
|
+
if (arguments.length > 0) {
|
|
11821
|
+
return new Color(value);
|
|
11822
|
+
}
|
|
11823
|
+
|
|
11824
|
+
const rgbArray = this.rgb().round().color;
|
|
11825
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
|
11826
|
+
|
|
11827
|
+
if (alphaHex.length === 1) {
|
|
11828
|
+
alphaHex = '0' + alphaHex;
|
|
11829
|
+
}
|
|
11830
|
+
|
|
11831
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
|
11832
|
+
},
|
|
11833
|
+
|
|
11752
11834
|
rgbNumber() {
|
|
11753
11835
|
const rgb = this.rgb().color;
|
|
11754
11836
|
return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
|
|
@@ -12020,7 +12102,7 @@ const HSV_LIMITS = {
|
|
|
12020
12102
|
s: 100,
|
|
12021
12103
|
v: 100
|
|
12022
12104
|
};
|
|
12023
|
-
const TEXT$
|
|
12105
|
+
const TEXT$g = {
|
|
12024
12106
|
b: "B",
|
|
12025
12107
|
blue: "Blue",
|
|
12026
12108
|
deleteColor: "Delete color",
|
|
@@ -12141,80 +12223,80 @@ class CalciteColorPicker {
|
|
|
12141
12223
|
/** Label used for the blue channel
|
|
12142
12224
|
* @default "B"
|
|
12143
12225
|
*/
|
|
12144
|
-
this.intlB = TEXT$
|
|
12226
|
+
this.intlB = TEXT$g.b;
|
|
12145
12227
|
/** Label used for the blue channel description
|
|
12146
12228
|
* @default "Blue"
|
|
12147
12229
|
*/
|
|
12148
|
-
this.intlBlue = TEXT$
|
|
12230
|
+
this.intlBlue = TEXT$g.blue;
|
|
12149
12231
|
/** Label used for the delete color button.
|
|
12150
12232
|
* @default "Delete color"
|
|
12151
12233
|
*/
|
|
12152
|
-
this.intlDeleteColor = TEXT$
|
|
12234
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
12153
12235
|
/** Label used for the green channel
|
|
12154
12236
|
* @default "G"
|
|
12155
12237
|
*/
|
|
12156
|
-
this.intlG = TEXT$
|
|
12238
|
+
this.intlG = TEXT$g.g;
|
|
12157
12239
|
/** Label used for the green channel description
|
|
12158
12240
|
* @default "Green"
|
|
12159
12241
|
*/
|
|
12160
|
-
this.intlGreen = TEXT$
|
|
12242
|
+
this.intlGreen = TEXT$g.green;
|
|
12161
12243
|
/** Label used for the hue channel
|
|
12162
12244
|
* @default "H"
|
|
12163
12245
|
*/
|
|
12164
|
-
this.intlH = TEXT$
|
|
12246
|
+
this.intlH = TEXT$g.h;
|
|
12165
12247
|
/** Label used for the HSV mode
|
|
12166
12248
|
* @default "HSV"
|
|
12167
12249
|
*/
|
|
12168
|
-
this.intlHsv = TEXT$
|
|
12250
|
+
this.intlHsv = TEXT$g.hsv;
|
|
12169
12251
|
/** Label used for the hex input
|
|
12170
12252
|
* @default "Hex"
|
|
12171
12253
|
*/
|
|
12172
|
-
this.intlHex = TEXT$
|
|
12254
|
+
this.intlHex = TEXT$g.hex;
|
|
12173
12255
|
/** Label used for the hue channel description
|
|
12174
12256
|
* @default "Hue"
|
|
12175
12257
|
*/
|
|
12176
|
-
this.intlHue = TEXT$
|
|
12258
|
+
this.intlHue = TEXT$g.hue;
|
|
12177
12259
|
/**
|
|
12178
12260
|
* Label used for the hex input when there is no color selected.
|
|
12179
12261
|
* @default "No color"
|
|
12180
12262
|
*/
|
|
12181
|
-
this.intlNoColor = TEXT$
|
|
12263
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
12182
12264
|
/** Label used for the red channel
|
|
12183
12265
|
* @default "R"
|
|
12184
12266
|
*/
|
|
12185
|
-
this.intlR = TEXT$
|
|
12267
|
+
this.intlR = TEXT$g.r;
|
|
12186
12268
|
/** Label used for the red channel description
|
|
12187
12269
|
* @default "Red"
|
|
12188
12270
|
*/
|
|
12189
|
-
this.intlRed = TEXT$
|
|
12271
|
+
this.intlRed = TEXT$g.red;
|
|
12190
12272
|
/** Label used for the RGB mode
|
|
12191
12273
|
* @default "RGB"
|
|
12192
12274
|
*/
|
|
12193
|
-
this.intlRgb = TEXT$
|
|
12275
|
+
this.intlRgb = TEXT$g.rgb;
|
|
12194
12276
|
/** Label used for the saturation channel
|
|
12195
12277
|
* @default "S"
|
|
12196
12278
|
*/
|
|
12197
|
-
this.intlS = TEXT$
|
|
12279
|
+
this.intlS = TEXT$g.s;
|
|
12198
12280
|
/** Label used for the saturation channel description
|
|
12199
12281
|
* @default "Saturation"
|
|
12200
12282
|
*/
|
|
12201
|
-
this.intlSaturation = TEXT$
|
|
12283
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
12202
12284
|
/** Label used for the save color button.
|
|
12203
12285
|
* @default "Save color"
|
|
12204
12286
|
*/
|
|
12205
|
-
this.intlSaveColor = TEXT$
|
|
12287
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
12206
12288
|
/** Label used for the saved colors section
|
|
12207
12289
|
* @default "Saved"
|
|
12208
12290
|
*/
|
|
12209
|
-
this.intlSaved = TEXT$
|
|
12291
|
+
this.intlSaved = TEXT$g.saved;
|
|
12210
12292
|
/** Label used for the value channel
|
|
12211
12293
|
* @default "V"
|
|
12212
12294
|
*/
|
|
12213
|
-
this.intlV = TEXT$
|
|
12295
|
+
this.intlV = TEXT$g.v;
|
|
12214
12296
|
/** Label used for the
|
|
12215
12297
|
* @default "Value"
|
|
12216
12298
|
*/
|
|
12217
|
-
this.intlValue = TEXT$
|
|
12299
|
+
this.intlValue = TEXT$g.value;
|
|
12218
12300
|
/**
|
|
12219
12301
|
* The scale of the color picker.
|
|
12220
12302
|
*/
|
|
@@ -12937,12 +13019,12 @@ class CalciteColorPickerHexInput {
|
|
|
12937
13019
|
* Label used for the hex input.
|
|
12938
13020
|
* @default "Hex"
|
|
12939
13021
|
*/
|
|
12940
|
-
this.intlHex = TEXT$
|
|
13022
|
+
this.intlHex = TEXT$g.hex;
|
|
12941
13023
|
/**
|
|
12942
13024
|
* Label used for the hex input when there is no color selected.
|
|
12943
13025
|
* @default "No color"
|
|
12944
13026
|
*/
|
|
12945
|
-
this.intlNoColor = TEXT$
|
|
13027
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
12946
13028
|
/**
|
|
12947
13029
|
* The component's scale.
|
|
12948
13030
|
*/
|
|
@@ -15043,6 +15125,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
15043
15125
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
15044
15126
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
15045
15127
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
15128
|
+
const TEXT$f = {
|
|
15129
|
+
removeTag: "Remove tag"
|
|
15130
|
+
};
|
|
15046
15131
|
|
|
15047
15132
|
function getAncestors(element) {
|
|
15048
15133
|
var _a, _b;
|
|
@@ -15070,6 +15155,11 @@ function getDepth(element) {
|
|
|
15070
15155
|
const calciteComboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-combobox:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-combobox{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-combobox{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-combobox:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}/*!@: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:1.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:2rem}/*!@: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:2.75rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper, .wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}/*!@.input*/.input.sc-calcite-combobox{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom: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{margin-bottom:0px;margin-top:0px;padding:0px}/*!@.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;width:0px;min-width:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding:0 var(--calcite-combobox-item-spacing-unit-l)}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--spaced*/.label--spaced.sc-calcite-combobox{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end, .icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{-ms-flex:none;flex:none}/*!@.popper-container*/.popper-container.sc-calcite-combobox{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}/*!@.popper-container .calcite-popper-anim*/.popper-container.sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}/*!@.popper-container[data-popper-placement^=bottom] .calcite-popper-anim*/.popper-container[data-popper-placement^=bottom].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.popper-container[data-popper-placement^=top] .calcite-popper-anim*/.popper-container[data-popper-placement^=top].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.popper-container[data-popper-placement^=left] .calcite-popper-anim*/.popper-container[data-popper-placement^=left].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.popper-container[data-popper-placement^=right] .calcite-popper-anim*/.popper-container[data-popper-placement^=right].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.popper-container[data-popper-placement] .calcite-popper-anim--active*/.popper-container[data-popper-placement].sc-calcite-combobox .calcite-popper-anim--active.sc-calcite-combobox{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@.popper-container--active*/.popper-container--active.sc-calcite-combobox{pointer-events:initial;visibility:visible}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{position:absolute;width:1px;height: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-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{height:0px;overflow:hidden}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.chip:last-of-type*/.chip.sc-calcite-combobox:last-of-type{-webkit-margin-end:0;margin-inline-end:0}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
15071
15156
|
|
|
15072
15157
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
15158
|
+
const itemUidPrefix = "combobox-item-";
|
|
15159
|
+
const chipUidPrefix = "combobox-chip-";
|
|
15160
|
+
const labelUidPrefix = "combobox-label-";
|
|
15161
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
15162
|
+
const inputUidPrefix = "combobox-input-";
|
|
15073
15163
|
/**
|
|
15074
15164
|
* @slot - A slot for adding `calcite-combobox-item`s.
|
|
15075
15165
|
*/
|
|
@@ -15111,6 +15201,10 @@ class CalciteCombobox {
|
|
|
15111
15201
|
this.scale = "m";
|
|
15112
15202
|
/** The value(s) of the selectedItem(s) */
|
|
15113
15203
|
this.value = null;
|
|
15204
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
15205
|
+
* @default "Remove tag"
|
|
15206
|
+
*/
|
|
15207
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
15114
15208
|
//--------------------------------------------------------------------------
|
|
15115
15209
|
//
|
|
15116
15210
|
// Private State/Props
|
|
@@ -15620,7 +15714,6 @@ class CalciteCombobox {
|
|
|
15620
15714
|
const item = document.createElement(ComboboxItem);
|
|
15621
15715
|
item.value = value;
|
|
15622
15716
|
item.textLabel = value;
|
|
15623
|
-
item.guid = guid();
|
|
15624
15717
|
item.selected = true;
|
|
15625
15718
|
this.el.appendChild(item);
|
|
15626
15719
|
this.resetText();
|
|
@@ -15670,7 +15763,9 @@ class CalciteCombobox {
|
|
|
15670
15763
|
focusChip() {
|
|
15671
15764
|
var _a;
|
|
15672
15765
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
15673
|
-
const chip =
|
|
15766
|
+
const chip = guid
|
|
15767
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
15768
|
+
: null;
|
|
15674
15769
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
15675
15770
|
}
|
|
15676
15771
|
shiftActiveItemIndex(delta) {
|
|
@@ -15716,7 +15811,7 @@ class CalciteCombobox {
|
|
|
15716
15811
|
//
|
|
15717
15812
|
//--------------------------------------------------------------------------
|
|
15718
15813
|
renderChips() {
|
|
15719
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
15814
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
15720
15815
|
return this.selectedItems.map((item, i) => {
|
|
15721
15816
|
const chipClasses = {
|
|
15722
15817
|
chip: true,
|
|
@@ -15725,11 +15820,11 @@ class CalciteCombobox {
|
|
|
15725
15820
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
15726
15821
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
15727
15822
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
15728
|
-
return (hAsync("calcite-chip", {
|
|
15823
|
+
return (hAsync("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
15729
15824
|
});
|
|
15730
15825
|
}
|
|
15731
15826
|
renderInput() {
|
|
15732
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
15827
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
15733
15828
|
const single = selectionMode === "single";
|
|
15734
15829
|
const selectedItem = selectedItems[0];
|
|
15735
15830
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -15739,16 +15834,16 @@ class CalciteCombobox {
|
|
|
15739
15834
|
} }, showLabel && (hAsync("span", { class: {
|
|
15740
15835
|
label: true,
|
|
15741
15836
|
"label--spaced": needsIcon
|
|
15742
|
-
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
15837
|
+
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
15743
15838
|
input: true,
|
|
15744
15839
|
"input--single": true,
|
|
15745
15840
|
"input--transparent": this.activeChipIndex > -1,
|
|
15746
15841
|
"input--hidden": showLabel,
|
|
15747
15842
|
"input--icon": single && needsIcon
|
|
15748
|
-
}, disabled: disabled, id: `${guid}
|
|
15843
|
+
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: "text" })));
|
|
15749
15844
|
}
|
|
15750
15845
|
renderListBoxOptions() {
|
|
15751
|
-
return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: item.guid, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
15846
|
+
return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
15752
15847
|
}
|
|
15753
15848
|
renderPopperContainer() {
|
|
15754
15849
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -15774,12 +15869,11 @@ class CalciteCombobox {
|
|
|
15774
15869
|
render() {
|
|
15775
15870
|
const { guid, open, label } = this;
|
|
15776
15871
|
const single = this.selectionMode === "single";
|
|
15777
|
-
|
|
15778
|
-
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
|
|
15872
|
+
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
15779
15873
|
wrapper: true,
|
|
15780
15874
|
"wrapper--single": single || !this.selectedItems.length,
|
|
15781
15875
|
"wrapper--active": open
|
|
15782
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
15876
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
15783
15877
|
}
|
|
15784
15878
|
get el() { return getElement(this); }
|
|
15785
15879
|
static get watchers() { return {
|
|
@@ -15806,6 +15900,7 @@ class CalciteCombobox {
|
|
|
15806
15900
|
"selectionMode": [513, "selection-mode"],
|
|
15807
15901
|
"scale": [513],
|
|
15808
15902
|
"value": [1025],
|
|
15903
|
+
"intlRemoveTag": [1, "intl-remove-tag"],
|
|
15809
15904
|
"items": [32],
|
|
15810
15905
|
"groupItems": [32],
|
|
15811
15906
|
"selectedItems": [32],
|
|
@@ -15887,9 +15982,10 @@ class CalciteComboboxItem {
|
|
|
15887
15982
|
connectedCallback() {
|
|
15888
15983
|
this.ancestors = getAncestors(this.el);
|
|
15889
15984
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
15985
|
+
connectConditionalSlotComponent(this);
|
|
15890
15986
|
}
|
|
15891
|
-
|
|
15892
|
-
this
|
|
15987
|
+
disconnectedCallback() {
|
|
15988
|
+
disconnectConditionalSlotComponent(this);
|
|
15893
15989
|
}
|
|
15894
15990
|
// --------------------------------------------------------------------------
|
|
15895
15991
|
//
|
|
@@ -15929,10 +16025,10 @@ class CalciteComboboxItem {
|
|
|
15929
16025
|
}, icon: icon || iconPath, scale: "s" }));
|
|
15930
16026
|
}
|
|
15931
16027
|
renderChildren() {
|
|
15932
|
-
if (
|
|
15933
|
-
return null;
|
|
16028
|
+
if (getSlotted(this.el)) {
|
|
16029
|
+
return (hAsync("ul", { key: "default-slot-container" }, hAsync("slot", null)));
|
|
15934
16030
|
}
|
|
15935
|
-
return
|
|
16031
|
+
return null;
|
|
15936
16032
|
}
|
|
15937
16033
|
render() {
|
|
15938
16034
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
@@ -17268,7 +17364,7 @@ const SLOTS$h = {
|
|
|
17268
17364
|
dropdownTrigger: "dropdown-trigger"
|
|
17269
17365
|
};
|
|
17270
17366
|
|
|
17271
|
-
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-dropdown:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}/*!@.calcite-dropdown-wrapper .calcite-popper-anim*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}/*!@.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);
|
|
17367
|
+
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-dropdown:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}/*!@.calcite-dropdown-wrapper .calcite-popper-anim*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}/*!@.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}/*!@.calcite-dropdown-trigger-container*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
|
|
17272
17368
|
|
|
17273
17369
|
/**
|
|
17274
17370
|
* @slot - A slot for adding `calcite-dropdown-group`s or `calcite-dropdown-item`s.
|
|
@@ -17326,6 +17422,7 @@ class CalciteDropdown {
|
|
|
17326
17422
|
this.items = [];
|
|
17327
17423
|
this.activeTransitionProp = "visibility";
|
|
17328
17424
|
this.mutationObserver = createObserver();
|
|
17425
|
+
this.resizeObserver = createObserver();
|
|
17329
17426
|
//--------------------------------------------------------------------------
|
|
17330
17427
|
//
|
|
17331
17428
|
// Private Methods
|
|
@@ -17338,13 +17435,15 @@ class CalciteDropdown {
|
|
|
17338
17435
|
this.reposition();
|
|
17339
17436
|
};
|
|
17340
17437
|
this.setMaxScrollerHeight = () => {
|
|
17341
|
-
const { scrollerEl } = this;
|
|
17342
|
-
if (scrollerEl) {
|
|
17343
|
-
|
|
17344
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
17438
|
+
const { active, scrollerEl } = this;
|
|
17439
|
+
if (!scrollerEl || !active) {
|
|
17440
|
+
return;
|
|
17345
17441
|
}
|
|
17442
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
17443
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
17346
17444
|
};
|
|
17347
17445
|
this.setScrollerEl = (scrollerEl) => {
|
|
17446
|
+
this.resizeObserver.observe(scrollerEl);
|
|
17348
17447
|
this.scrollerEl = scrollerEl;
|
|
17349
17448
|
};
|
|
17350
17449
|
this.transitionEnd = (event) => {
|
|
@@ -17400,6 +17499,7 @@ class CalciteDropdown {
|
|
|
17400
17499
|
}
|
|
17401
17500
|
maxItemsHandler() {
|
|
17402
17501
|
this.reposition();
|
|
17502
|
+
this.setMaxScrollerHeight();
|
|
17403
17503
|
}
|
|
17404
17504
|
placementHandler() {
|
|
17405
17505
|
this.reposition();
|
|
@@ -17419,8 +17519,9 @@ class CalciteDropdown {
|
|
|
17419
17519
|
this.reposition();
|
|
17420
17520
|
}
|
|
17421
17521
|
disconnectedCallback() {
|
|
17422
|
-
var _a;
|
|
17522
|
+
var _a, _b;
|
|
17423
17523
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
17524
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
17424
17525
|
this.destroyPopper();
|
|
17425
17526
|
}
|
|
17426
17527
|
render() {
|
|
@@ -17429,7 +17530,7 @@ class CalciteDropdown {
|
|
|
17429
17530
|
["calcite-dropdown-content"]: true,
|
|
17430
17531
|
[CSS$D.animation]: true,
|
|
17431
17532
|
[CSS$D.animationActive]: active
|
|
17432
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("slot", null)))));
|
|
17533
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("div", { hidden: !this.active }, hAsync("slot", null))))));
|
|
17433
17534
|
}
|
|
17434
17535
|
//--------------------------------------------------------------------------
|
|
17435
17536
|
//
|
|
@@ -17439,7 +17540,6 @@ class CalciteDropdown {
|
|
|
17439
17540
|
/** Updates the position of the component. */
|
|
17440
17541
|
async reposition() {
|
|
17441
17542
|
const { popper, menuEl, placement } = this;
|
|
17442
|
-
this.setMaxScrollerHeight();
|
|
17443
17543
|
const modifiers = this.getModifiers();
|
|
17444
17544
|
popper
|
|
17445
17545
|
? await updatePopper({
|
|
@@ -18343,7 +18443,7 @@ function area({ data, min, max, t }) {
|
|
|
18343
18443
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
18344
18444
|
}
|
|
18345
18445
|
|
|
18346
|
-
const calciteGraphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-graph:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-graph{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;
|
|
18446
|
+
const calciteGraphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-graph:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-graph{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}/*!@.svg .graph-path--highlight*/.svg.sc-calcite-graph .graph-path--highlight.sc-calcite-graph{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
18347
18447
|
|
|
18348
18448
|
class CalciteGraph {
|
|
18349
18449
|
constructor(hostRef) {
|
|
@@ -18358,25 +18458,31 @@ class CalciteGraph {
|
|
|
18358
18458
|
* These data points should be sorted by x-axis value
|
|
18359
18459
|
*/
|
|
18360
18460
|
this.data = [];
|
|
18361
|
-
/** Width of graph in pixels*/
|
|
18362
|
-
this.width = 300;
|
|
18363
|
-
/** Width of graph in pixels*/
|
|
18364
|
-
this.height = 100;
|
|
18365
18461
|
//--------------------------------------------------------------------------
|
|
18366
18462
|
//
|
|
18367
18463
|
// Private State/Props
|
|
18368
18464
|
//
|
|
18369
18465
|
//--------------------------------------------------------------------------
|
|
18370
18466
|
this.graphId = `calcite-graph-${guid()}`;
|
|
18467
|
+
this.resizeObserver = createObserver();
|
|
18371
18468
|
}
|
|
18372
18469
|
//--------------------------------------------------------------------------
|
|
18373
18470
|
//
|
|
18374
18471
|
// Lifecycle
|
|
18375
18472
|
//
|
|
18376
18473
|
//--------------------------------------------------------------------------
|
|
18474
|
+
connectedCallback() {
|
|
18475
|
+
var _a;
|
|
18476
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
18477
|
+
}
|
|
18478
|
+
disconnectedCallback() {
|
|
18479
|
+
var _a;
|
|
18480
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18481
|
+
}
|
|
18377
18482
|
render() {
|
|
18378
|
-
const { data, colorStops,
|
|
18483
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
18379
18484
|
const id = this.graphId;
|
|
18485
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
18380
18486
|
// if we have no data, return empty svg
|
|
18381
18487
|
if (!data || data.length === 0) {
|
|
18382
18488
|
return (hAsync("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -18430,8 +18536,6 @@ class CalciteGraph {
|
|
|
18430
18536
|
"$members$": {
|
|
18431
18537
|
"data": [16],
|
|
18432
18538
|
"colorStops": [16],
|
|
18433
|
-
"width": [2],
|
|
18434
|
-
"height": [2],
|
|
18435
18539
|
"highlightMin": [2, "highlight-min"],
|
|
18436
18540
|
"highlightMax": [2, "highlight-max"],
|
|
18437
18541
|
"min": [2],
|
|
@@ -18661,8 +18765,8 @@ const calciteInlineEditableCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacit
|
|
|
18661
18765
|
class CalciteInlineEditable {
|
|
18662
18766
|
constructor(hostRef) {
|
|
18663
18767
|
registerInstance(this, hostRef);
|
|
18664
|
-
this.
|
|
18665
|
-
this.
|
|
18768
|
+
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
18769
|
+
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
18666
18770
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
18667
18771
|
//--------------------------------------------------------------------------
|
|
18668
18772
|
//
|
|
@@ -18689,9 +18793,9 @@ class CalciteInlineEditable {
|
|
|
18689
18793
|
* @default "Save"
|
|
18690
18794
|
*/
|
|
18691
18795
|
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
18692
|
-
this.transitionEnd = (
|
|
18796
|
+
this.transitionEnd = () => {
|
|
18693
18797
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
18694
|
-
this.
|
|
18798
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
18695
18799
|
}
|
|
18696
18800
|
};
|
|
18697
18801
|
this.enableEditing = () => {
|
|
@@ -18743,7 +18847,7 @@ class CalciteInlineEditable {
|
|
|
18743
18847
|
this.confirmChangesHandler = async (e) => {
|
|
18744
18848
|
e.preventDefault();
|
|
18745
18849
|
e.stopPropagation();
|
|
18746
|
-
this.
|
|
18850
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
18747
18851
|
try {
|
|
18748
18852
|
if (this.afterConfirm) {
|
|
18749
18853
|
this.loading = true;
|
|
@@ -18920,7 +19024,7 @@ class CalciteInput {
|
|
|
18920
19024
|
* string to override English loading text
|
|
18921
19025
|
* @default "Loading"
|
|
18922
19026
|
*/
|
|
18923
|
-
this.intlLoading = TEXT$
|
|
19027
|
+
this.intlLoading = TEXT$r.loading;
|
|
18924
19028
|
/** flip the icon in rtl */
|
|
18925
19029
|
this.iconFlipRtl = false;
|
|
18926
19030
|
/** specify if the input is in loading state */
|
|
@@ -18954,6 +19058,8 @@ class CalciteInput {
|
|
|
18954
19058
|
this.value = "";
|
|
18955
19059
|
/** keep track of the rendered child type */
|
|
18956
19060
|
this.childElType = "input";
|
|
19061
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
19062
|
+
this.internalValueChange = false;
|
|
18957
19063
|
//--------------------------------------------------------------------------
|
|
18958
19064
|
//
|
|
18959
19065
|
// Private Methods
|
|
@@ -18973,11 +19079,15 @@ class CalciteInput {
|
|
|
18973
19079
|
}
|
|
18974
19080
|
};
|
|
18975
19081
|
this.clearInputValue = (nativeEvent) => {
|
|
18976
|
-
this.setValue(
|
|
19082
|
+
this.setValue({
|
|
19083
|
+
committing: true,
|
|
19084
|
+
nativeEvent,
|
|
19085
|
+
value: ""
|
|
19086
|
+
});
|
|
18977
19087
|
};
|
|
18978
19088
|
this.inputBlurHandler = () => {
|
|
18979
19089
|
if (this.type === "number") {
|
|
18980
|
-
this.
|
|
19090
|
+
this.setValue({ value: this.value });
|
|
18981
19091
|
}
|
|
18982
19092
|
this.calciteInputBlur.emit({
|
|
18983
19093
|
element: this.childEl,
|
|
@@ -19001,7 +19111,10 @@ class CalciteInput {
|
|
|
19001
19111
|
if (this.disabled || this.readOnly) {
|
|
19002
19112
|
return;
|
|
19003
19113
|
}
|
|
19004
|
-
this.setValue(
|
|
19114
|
+
this.setValue({
|
|
19115
|
+
nativeEvent,
|
|
19116
|
+
value: nativeEvent.target.value
|
|
19117
|
+
});
|
|
19005
19118
|
};
|
|
19006
19119
|
this.inputKeyDownHandler = (event) => {
|
|
19007
19120
|
if (this.disabled || this.readOnly) {
|
|
@@ -19021,11 +19134,17 @@ class CalciteInput {
|
|
|
19021
19134
|
if (!isValidNumber(delocalizedValue)) {
|
|
19022
19135
|
nativeEvent.preventDefault();
|
|
19023
19136
|
}
|
|
19024
|
-
this.setValue(
|
|
19137
|
+
this.setValue({
|
|
19138
|
+
nativeEvent,
|
|
19139
|
+
value: parseNumberString(delocalizedValue)
|
|
19140
|
+
});
|
|
19025
19141
|
this.childNumberEl.value = this.localizedValue;
|
|
19026
19142
|
}
|
|
19027
19143
|
else {
|
|
19028
|
-
this.setValue(
|
|
19144
|
+
this.setValue({
|
|
19145
|
+
nativeEvent,
|
|
19146
|
+
value: delocalizeNumberString(value, this.locale)
|
|
19147
|
+
});
|
|
19029
19148
|
}
|
|
19030
19149
|
};
|
|
19031
19150
|
this.inputNumberKeyDownHandler = (event) => {
|
|
@@ -19095,6 +19214,9 @@ class CalciteInput {
|
|
|
19095
19214
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
19096
19215
|
const valueNudgeDelayInMs = 100;
|
|
19097
19216
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
19217
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
19218
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
19219
|
+
}
|
|
19098
19220
|
let firstValueNudge = true;
|
|
19099
19221
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
19100
19222
|
if (firstValueNudge) {
|
|
@@ -19118,18 +19240,44 @@ class CalciteInput {
|
|
|
19118
19240
|
this.setChildNumberElRef = (el) => {
|
|
19119
19241
|
this.childNumberEl = el;
|
|
19120
19242
|
};
|
|
19121
|
-
this.
|
|
19122
|
-
this.
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19243
|
+
this.setInputValue = (newInputValue) => {
|
|
19244
|
+
if (this.type === "text" && !this.childEl) {
|
|
19245
|
+
return;
|
|
19246
|
+
}
|
|
19247
|
+
if (this.type === "number" && !this.childNumberEl) {
|
|
19248
|
+
return;
|
|
19249
|
+
}
|
|
19250
|
+
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
19251
|
+
};
|
|
19252
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
19253
|
+
this.previousValue =
|
|
19254
|
+
this.type === "number"
|
|
19255
|
+
? isValidNumber(newPreviousValue)
|
|
19256
|
+
? newPreviousValue
|
|
19257
|
+
: ""
|
|
19258
|
+
: newPreviousValue;
|
|
19259
|
+
};
|
|
19260
|
+
this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
|
|
19261
|
+
const previousLocalizedValue = this.type === "number"
|
|
19262
|
+
? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
19263
|
+
: "";
|
|
19264
|
+
const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
19265
|
+
const newValue = this.type === "number" && value && !sanitizedValue
|
|
19266
|
+
? isValidNumber(this.previousValue)
|
|
19267
|
+
? this.previousValue
|
|
19268
|
+
: ""
|
|
19269
|
+
: sanitizedValue;
|
|
19270
|
+
const newLocalizedValue = this.type === "number"
|
|
19271
|
+
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
19272
|
+
: "";
|
|
19273
|
+
this.internalValueChange = origin === "internal";
|
|
19274
|
+
this.setPreviousValue(this.value);
|
|
19275
|
+
this.value = newValue;
|
|
19126
19276
|
if (this.type === "number") {
|
|
19127
|
-
|
|
19128
|
-
this.value = sanitizedValue;
|
|
19129
|
-
this.setLocalizedValue(sanitizedValue);
|
|
19277
|
+
this.localizedValue = newLocalizedValue;
|
|
19130
19278
|
}
|
|
19131
|
-
|
|
19132
|
-
this.
|
|
19279
|
+
if (origin === "external") {
|
|
19280
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
19133
19281
|
}
|
|
19134
19282
|
if (nativeEvent) {
|
|
19135
19283
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -19138,8 +19286,8 @@ class CalciteInput {
|
|
|
19138
19286
|
value: this.value
|
|
19139
19287
|
});
|
|
19140
19288
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
19141
|
-
this.value = previousValue;
|
|
19142
|
-
this.
|
|
19289
|
+
this.value = this.previousValue;
|
|
19290
|
+
this.localizedValue = previousLocalizedValue;
|
|
19143
19291
|
}
|
|
19144
19292
|
else if (committing) {
|
|
19145
19293
|
this.calciteInputChange.emit();
|
|
@@ -19164,17 +19312,20 @@ class CalciteInput {
|
|
|
19164
19312
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
19165
19313
|
}
|
|
19166
19314
|
valueWatcher(newValue) {
|
|
19167
|
-
if (
|
|
19168
|
-
this.
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19315
|
+
if (!this.internalValueChange) {
|
|
19316
|
+
this.setValue({
|
|
19317
|
+
origin: "external",
|
|
19318
|
+
value: newValue == null
|
|
19319
|
+
? ""
|
|
19320
|
+
: this.type === "number"
|
|
19321
|
+
? isValidNumber(newValue)
|
|
19322
|
+
? newValue
|
|
19323
|
+
: this.previousValue || ""
|
|
19324
|
+
: newValue
|
|
19325
|
+
});
|
|
19326
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
19177
19327
|
}
|
|
19328
|
+
this.internalValueChange = false;
|
|
19178
19329
|
}
|
|
19179
19330
|
updateRequestedIcon() {
|
|
19180
19331
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -19197,13 +19348,13 @@ class CalciteInput {
|
|
|
19197
19348
|
if (this.inlineEditableEl) {
|
|
19198
19349
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
19199
19350
|
}
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
this.value
|
|
19206
|
-
}
|
|
19351
|
+
this.setPreviousValue(this.value);
|
|
19352
|
+
if (this.type === "number") {
|
|
19353
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
19354
|
+
this.setValue({
|
|
19355
|
+
origin: "loading",
|
|
19356
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
19357
|
+
});
|
|
19207
19358
|
}
|
|
19208
19359
|
connectLabel(this);
|
|
19209
19360
|
connectForm(this);
|
|
@@ -19225,7 +19376,9 @@ class CalciteInput {
|
|
|
19225
19376
|
}
|
|
19226
19377
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
19227
19378
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
19228
|
-
this.
|
|
19379
|
+
this.setValue({
|
|
19380
|
+
value: oldValue
|
|
19381
|
+
});
|
|
19229
19382
|
return false;
|
|
19230
19383
|
}
|
|
19231
19384
|
return true;
|
|
@@ -19260,10 +19413,16 @@ class CalciteInput {
|
|
|
19260
19413
|
: nudgedValue;
|
|
19261
19414
|
const inputValPlaces = decimalPlaces(inputVal);
|
|
19262
19415
|
const inputStepPlaces = decimalPlaces(inputStep);
|
|
19263
|
-
this.setValue(
|
|
19416
|
+
this.setValue({
|
|
19417
|
+
committing: true,
|
|
19418
|
+
nativeEvent,
|
|
19419
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
19420
|
+
});
|
|
19264
19421
|
}
|
|
19265
19422
|
onFormReset() {
|
|
19266
|
-
this.setValue(
|
|
19423
|
+
this.setValue({
|
|
19424
|
+
value: this.defaultValue
|
|
19425
|
+
});
|
|
19267
19426
|
}
|
|
19268
19427
|
syncHiddenFormInput(input) {
|
|
19269
19428
|
var _a, _b, _c, _d;
|
|
@@ -19294,6 +19453,11 @@ class CalciteInput {
|
|
|
19294
19453
|
? slottedActionEl.setAttribute("disabled", "")
|
|
19295
19454
|
: slottedActionEl.removeAttribute("disabled");
|
|
19296
19455
|
}
|
|
19456
|
+
warnAboutInvalidNumberValue(value) {
|
|
19457
|
+
if (this.type === "number" && value && !isValidNumber(value)) {
|
|
19458
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19297
19461
|
// --------------------------------------------------------------------------
|
|
19298
19462
|
//
|
|
19299
19463
|
// Render Methods
|
|
@@ -20421,6 +20585,11 @@ class CalciteLink {
|
|
|
20421
20585
|
//--------------------------------------------------------------------------
|
|
20422
20586
|
/** is the link disabled */
|
|
20423
20587
|
this.disabled = false;
|
|
20588
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
20589
|
+
* Without a value, the browser will suggest a filename/extension
|
|
20590
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
20591
|
+
*/
|
|
20592
|
+
this.download = false;
|
|
20424
20593
|
/** the node type of the rendered child element */
|
|
20425
20594
|
this.childElType = "span";
|
|
20426
20595
|
//--------------------------------------------------------------------------
|
|
@@ -20444,13 +20613,19 @@ class CalciteLink {
|
|
|
20444
20613
|
this.childElType = this.href ? "a" : "span";
|
|
20445
20614
|
}
|
|
20446
20615
|
render() {
|
|
20447
|
-
const
|
|
20616
|
+
const { download, el } = this;
|
|
20617
|
+
const dir = getElementDir(el);
|
|
20448
20618
|
const iconStartEl = (hAsync("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
20449
20619
|
const iconEndEl = (hAsync("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
20450
20620
|
const Tag = this.childElType;
|
|
20451
20621
|
const role = this.childElType === "span" ? "link" : null;
|
|
20452
20622
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
20453
|
-
return (hAsync(Host, { role: "presentation" }, hAsync(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
20623
|
+
return (hAsync(Host, { role: "presentation" }, hAsync(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
20624
|
+
/*
|
|
20625
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
20626
|
+
This works around that issue for now.
|
|
20627
|
+
*/
|
|
20628
|
+
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
20454
20629
|
}
|
|
20455
20630
|
//--------------------------------------------------------------------------
|
|
20456
20631
|
//
|
|
@@ -20471,6 +20646,7 @@ class CalciteLink {
|
|
|
20471
20646
|
"$tagName$": "calcite-link",
|
|
20472
20647
|
"$members$": {
|
|
20473
20648
|
"disabled": [516],
|
|
20649
|
+
"download": [520],
|
|
20474
20650
|
"href": [513],
|
|
20475
20651
|
"iconEnd": [513, "icon-end"],
|
|
20476
20652
|
"iconFlipRtl": [513, "icon-flip-rtl"],
|
|
@@ -20482,7 +20658,7 @@ class CalciteLink {
|
|
|
20482
20658
|
},
|
|
20483
20659
|
"$listeners$": undefined,
|
|
20484
20660
|
"$lazyBundleId$": "-",
|
|
20485
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"]]
|
|
20661
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["download", "download"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"]]
|
|
20486
20662
|
}; }
|
|
20487
20663
|
}
|
|
20488
20664
|
|
|
@@ -20581,6 +20757,17 @@ class CalciteListItem {
|
|
|
20581
20757
|
}
|
|
20582
20758
|
// --------------------------------------------------------------------------
|
|
20583
20759
|
//
|
|
20760
|
+
// Lifecycle
|
|
20761
|
+
//
|
|
20762
|
+
// --------------------------------------------------------------------------
|
|
20763
|
+
connectedCallback() {
|
|
20764
|
+
connectConditionalSlotComponent(this);
|
|
20765
|
+
}
|
|
20766
|
+
disconnectedCallback() {
|
|
20767
|
+
disconnectConditionalSlotComponent(this);
|
|
20768
|
+
}
|
|
20769
|
+
// --------------------------------------------------------------------------
|
|
20770
|
+
//
|
|
20584
20771
|
// Public Methods
|
|
20585
20772
|
//
|
|
20586
20773
|
// --------------------------------------------------------------------------
|
|
@@ -21016,11 +21203,13 @@ class CalciteModal {
|
|
|
21016
21203
|
var _a;
|
|
21017
21204
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
21018
21205
|
this.updateFooterVisibility();
|
|
21206
|
+
connectConditionalSlotComponent(this);
|
|
21019
21207
|
}
|
|
21020
21208
|
disconnectedCallback() {
|
|
21021
21209
|
var _a;
|
|
21022
21210
|
this.removeOverflowHiddenClass();
|
|
21023
21211
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21212
|
+
disconnectConditionalSlotComponent(this);
|
|
21024
21213
|
}
|
|
21025
21214
|
render() {
|
|
21026
21215
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: "modal", onTransitionEnd: this.transitionEnd }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
|
|
@@ -21030,10 +21219,10 @@ class CalciteModal {
|
|
|
21030
21219
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
21031
21220
|
}
|
|
21032
21221
|
renderFooter() {
|
|
21033
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
21222
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer, key: "footer" }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
21034
21223
|
}
|
|
21035
21224
|
renderCloseButton() {
|
|
21036
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
21225
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
21037
21226
|
}
|
|
21038
21227
|
renderStyle() {
|
|
21039
21228
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21234,6 +21423,12 @@ class CalciteNotice {
|
|
|
21234
21423
|
// Lifecycle
|
|
21235
21424
|
//
|
|
21236
21425
|
//--------------------------------------------------------------------------
|
|
21426
|
+
connectedCallback() {
|
|
21427
|
+
connectConditionalSlotComponent(this);
|
|
21428
|
+
}
|
|
21429
|
+
disconnectedCallback() {
|
|
21430
|
+
disconnectConditionalSlotComponent(this);
|
|
21431
|
+
}
|
|
21237
21432
|
componentWillLoad() {
|
|
21238
21433
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
21239
21434
|
}
|
|
@@ -21732,6 +21927,17 @@ class CalcitePanel {
|
|
|
21732
21927
|
}
|
|
21733
21928
|
// --------------------------------------------------------------------------
|
|
21734
21929
|
//
|
|
21930
|
+
// Lifecycle
|
|
21931
|
+
//
|
|
21932
|
+
// --------------------------------------------------------------------------
|
|
21933
|
+
connectedCallback() {
|
|
21934
|
+
connectConditionalSlotComponent(this);
|
|
21935
|
+
}
|
|
21936
|
+
disconnectedCallback() {
|
|
21937
|
+
disconnectConditionalSlotComponent(this);
|
|
21938
|
+
}
|
|
21939
|
+
// --------------------------------------------------------------------------
|
|
21940
|
+
//
|
|
21735
21941
|
// Methods
|
|
21736
21942
|
//
|
|
21737
21943
|
// --------------------------------------------------------------------------
|
|
@@ -21771,7 +21977,7 @@ class CalcitePanel {
|
|
|
21771
21977
|
* Allows user to override the entire header-content node.
|
|
21772
21978
|
*/
|
|
21773
21979
|
renderHeaderSlottedContent() {
|
|
21774
|
-
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21980
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21775
21981
|
}
|
|
21776
21982
|
renderHeaderStartActions() {
|
|
21777
21983
|
const { el } = this;
|
|
@@ -21789,7 +21995,7 @@ class CalcitePanel {
|
|
|
21789
21995
|
renderMenu() {
|
|
21790
21996
|
const { el, intlOptions, menuOpen } = this;
|
|
21791
21997
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
21792
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21998
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21793
21999
|
}
|
|
21794
22000
|
renderHeaderNode() {
|
|
21795
22001
|
const { el, showBackButton } = this;
|
|
@@ -21807,18 +22013,11 @@ class CalcitePanel {
|
|
|
21807
22013
|
headerMenuNode ||
|
|
21808
22014
|
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21809
22015
|
}
|
|
21810
|
-
|
|
21811
|
-
* Allows user to override the entire footer node.
|
|
21812
|
-
*/
|
|
21813
|
-
renderFooterSlottedContent() {
|
|
22016
|
+
renderFooterNode() {
|
|
21814
22017
|
const { el } = this;
|
|
21815
22018
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21816
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21817
|
-
}
|
|
21818
|
-
renderFooterActions() {
|
|
21819
|
-
const { el } = this;
|
|
21820
22019
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21821
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
22020
|
+
return hasFooterSlottedContent || hasFooterActions ? (hAsync("footer", { class: CSS$k.footer, key: "footer" }, hasFooterSlottedContent ? hAsync("slot", { key: "footer-slot", name: SLOTS$c.footer }) : null, hasFooterActions ? hAsync("slot", { key: "footer-actions-slot", name: SLOTS$c.footerActions }) : null)) : null;
|
|
21822
22021
|
}
|
|
21823
22022
|
renderContent() {
|
|
21824
22023
|
const { el } = this;
|
|
@@ -21830,7 +22029,7 @@ class CalcitePanel {
|
|
|
21830
22029
|
}
|
|
21831
22030
|
render() {
|
|
21832
22031
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21833
|
-
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.
|
|
22032
|
+
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
21834
22033
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21835
22034
|
}
|
|
21836
22035
|
get el() { return getElement(this); }
|
|
@@ -22330,6 +22529,17 @@ class CalcitePickListGroup {
|
|
|
22330
22529
|
}
|
|
22331
22530
|
// --------------------------------------------------------------------------
|
|
22332
22531
|
//
|
|
22532
|
+
// Lifecycle
|
|
22533
|
+
//
|
|
22534
|
+
// --------------------------------------------------------------------------
|
|
22535
|
+
connectedCallback() {
|
|
22536
|
+
connectConditionalSlotComponent(this);
|
|
22537
|
+
}
|
|
22538
|
+
disconnectedCallback() {
|
|
22539
|
+
disconnectConditionalSlotComponent(this);
|
|
22540
|
+
}
|
|
22541
|
+
// --------------------------------------------------------------------------
|
|
22542
|
+
//
|
|
22333
22543
|
// Render Methods
|
|
22334
22544
|
//
|
|
22335
22545
|
// --------------------------------------------------------------------------
|
|
@@ -22480,6 +22690,17 @@ class CalcitePickListItem {
|
|
|
22480
22690
|
}
|
|
22481
22691
|
// --------------------------------------------------------------------------
|
|
22482
22692
|
//
|
|
22693
|
+
// Lifecycle
|
|
22694
|
+
//
|
|
22695
|
+
// --------------------------------------------------------------------------
|
|
22696
|
+
connectedCallback() {
|
|
22697
|
+
connectConditionalSlotComponent(this);
|
|
22698
|
+
}
|
|
22699
|
+
disconnectedCallback() {
|
|
22700
|
+
disconnectConditionalSlotComponent(this);
|
|
22701
|
+
}
|
|
22702
|
+
// --------------------------------------------------------------------------
|
|
22703
|
+
//
|
|
22483
22704
|
// Public Methods
|
|
22484
22705
|
//
|
|
22485
22706
|
// --------------------------------------------------------------------------
|
|
@@ -24111,12 +24332,23 @@ class CalciteShell {
|
|
|
24111
24332
|
}
|
|
24112
24333
|
// --------------------------------------------------------------------------
|
|
24113
24334
|
//
|
|
24335
|
+
// Lifecycle
|
|
24336
|
+
//
|
|
24337
|
+
// --------------------------------------------------------------------------
|
|
24338
|
+
connectedCallback() {
|
|
24339
|
+
connectConditionalSlotComponent(this);
|
|
24340
|
+
}
|
|
24341
|
+
disconnectedCallback() {
|
|
24342
|
+
disconnectConditionalSlotComponent(this);
|
|
24343
|
+
}
|
|
24344
|
+
// --------------------------------------------------------------------------
|
|
24345
|
+
//
|
|
24114
24346
|
// Render Methods
|
|
24115
24347
|
//
|
|
24116
24348
|
// --------------------------------------------------------------------------
|
|
24117
24349
|
renderHeader() {
|
|
24118
24350
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
24119
|
-
return hasHeader ? hAsync("slot", { name: SLOTS$7.header }) : null;
|
|
24351
|
+
return hasHeader ? hAsync("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
24120
24352
|
}
|
|
24121
24353
|
renderContent() {
|
|
24122
24354
|
const content = !!this.contentBehind
|
|
@@ -24134,7 +24366,7 @@ class CalciteShell {
|
|
|
24134
24366
|
}
|
|
24135
24367
|
renderFooter() {
|
|
24136
24368
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24137
|
-
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24369
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer, key: "footer" }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24138
24370
|
}
|
|
24139
24371
|
renderMain() {
|
|
24140
24372
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -24198,6 +24430,17 @@ class CalciteShellCenterRow {
|
|
|
24198
24430
|
}
|
|
24199
24431
|
// --------------------------------------------------------------------------
|
|
24200
24432
|
//
|
|
24433
|
+
// Lifecycle
|
|
24434
|
+
//
|
|
24435
|
+
// --------------------------------------------------------------------------
|
|
24436
|
+
connectedCallback() {
|
|
24437
|
+
connectConditionalSlotComponent(this);
|
|
24438
|
+
}
|
|
24439
|
+
disconnectedCallback() {
|
|
24440
|
+
disconnectConditionalSlotComponent(this);
|
|
24441
|
+
}
|
|
24442
|
+
// --------------------------------------------------------------------------
|
|
24443
|
+
//
|
|
24201
24444
|
// Render Methods
|
|
24202
24445
|
//
|
|
24203
24446
|
// --------------------------------------------------------------------------
|
|
@@ -24205,7 +24448,7 @@ class CalciteShellCenterRow {
|
|
|
24205
24448
|
const { el } = this;
|
|
24206
24449
|
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24207
24450
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24208
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24451
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24209
24452
|
const children = [actionBarNode, contentNode];
|
|
24210
24453
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24211
24454
|
children.reverse();
|
|
@@ -24393,7 +24636,11 @@ class CalciteShellPanel {
|
|
|
24393
24636
|
// Lifecycle
|
|
24394
24637
|
//
|
|
24395
24638
|
//--------------------------------------------------------------------------
|
|
24639
|
+
connectedCallback() {
|
|
24640
|
+
connectConditionalSlotComponent(this);
|
|
24641
|
+
}
|
|
24396
24642
|
disconnectedCallback() {
|
|
24643
|
+
disconnectConditionalSlotComponent(this);
|
|
24397
24644
|
this.disconnectSeparator();
|
|
24398
24645
|
}
|
|
24399
24646
|
componentDidLoad() {
|
|
@@ -24407,14 +24654,14 @@ class CalciteShellPanel {
|
|
|
24407
24654
|
renderHeader() {
|
|
24408
24655
|
const { el } = this;
|
|
24409
24656
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24410
|
-
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24657
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader, key: "header" }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24411
24658
|
}
|
|
24412
24659
|
render() {
|
|
24413
24660
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24414
24661
|
const allowResizing = !detached && resizable;
|
|
24415
|
-
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24416
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24417
|
-
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24662
|
+
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24663
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24664
|
+
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
24418
24665
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24419
24666
|
if (position === "end") {
|
|
24420
24667
|
mainNodes.reverse();
|
|
@@ -24478,7 +24725,7 @@ class CalciteShellPanel {
|
|
|
24478
24725
|
}; }
|
|
24479
24726
|
}
|
|
24480
24727
|
|
|
24481
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-slider{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-slider{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}/*!@.scale--s .handle__label, .scale--s .tick__label*/.scale--s.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--s.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:.75rem}/*!@.scale--m*/.scale--m.sc-calcite-slider{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}/*!@.scale--m .handle__label, .scale--m .tick__label*/.scale--m.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--m.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.scale--l*/.scale--l.sc-calcite-slider{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}/*!@.scale--l .handle__label, .scale--l .tick__label*/.scale--l.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--l.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.handle__label, .tick__label*/.handle__label.sc-calcite-slider,.tick__label.sc-calcite-slider{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@.scale--s .thumb:not(.thumb--precise)*/.scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}/*!@.scale--m .thumb:not(.thumb--precise)*/.scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}/*!@.scale--l .thumb:not(.thumb--precise)*/.scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}/*!@:host([precise]:not([has-histogram])) .container .thumb--value*/[precise].sc-calcite-slider-h:not([has-histogram]) .container.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}/*!@.thumb-container*/.thumb-container.sc-calcite-slider{position:relative;max-width:100%}/*!@.thumb*/.thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{position:absolute;top:0px;bottom:0px;opacity:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb.thumb--minValue*/.thumb.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}/*!@.thumb.thumb--precise*/.thumb.thumb--precise.sc-calcite-slider{--calcite-slider-thumb-y-offset:-2px}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:50%}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}/*!@:host([has-histogram][label-handles]) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--minValue.thumb--precise.sc-calcite-slider .handle__label.sc-calcite-slider{margin-top:0.5em}/*!@:host(:not([has-histogram]):not([precise])) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--value .handle__label*/.sc-calcite-slider-h:not([has-histogram]):not([precise]) .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--value.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:0.5em}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-33px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-44px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-49px}/*!@.thumb:focus .handle, .thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after, .thumb:focus.thumb--precise:after, .thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}/*!@:host([has-histogram][label-handles]) .tick__label--min, :host([has-histogram][label-handles]) .tick__label--max, :host([has-histogram][precise]) .tick__label--min, :host([has-histogram][precise]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3)}/*!@:host([label-ticks][ticks]) .container*/[label-ticks][ticks].sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}/*!@:host([has-histogram]):host([precise][label-handles]) .container*/[has-histogram].sc-calcite-slider-h([precise][label-handles]).sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}/*!@:host([has-histogram]):host([label-handles]:not([precise])) .container*/[has-histogram].sc-calcite-slider-h([label-handles].sc-calcite-slider-h:not([precise])) .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}/*!@:host([has-histogram]):host([precise]:not([label-handles])) .container*/[has-histogram].sc-calcite-slider-h([precise].sc-calcite-slider-h:not([label-handles])) .container.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container.sc-calcite-slider{padding-top:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container--range.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([label-handles]:not([precise])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles]:not([precise])) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container--range.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
24728
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-slider{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-slider{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}/*!@.scale--s .handle__label, .scale--s .tick__label*/.scale--s.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--s.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:.75rem}/*!@.scale--m*/.scale--m.sc-calcite-slider{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}/*!@.scale--m .handle__label, .scale--m .tick__label*/.scale--m.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--m.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.scale--l*/.scale--l.sc-calcite-slider{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}/*!@.scale--l .handle__label, .scale--l .tick__label*/.scale--l.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--l.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.handle__label, .tick__label*/.handle__label.sc-calcite-slider,.tick__label.sc-calcite-slider{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@.scale--s .thumb:not(.thumb--precise)*/.scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}/*!@.scale--m .thumb:not(.thumb--precise)*/.scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}/*!@.scale--l .thumb:not(.thumb--precise)*/.scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}/*!@:host([precise]:not([has-histogram])) .container .thumb--value*/[precise].sc-calcite-slider-h:not([has-histogram]) .container.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}/*!@.thumb-container*/.thumb-container.sc-calcite-slider{position:relative;max-width:100%}/*!@.thumb*/.thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{position:absolute;top:0px;bottom:0px;opacity:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle__label.hyphen--wrap*/.thumb.sc-calcite-slider .handle__label.hyphen--wrap.sc-calcite-slider{display:-ms-flexbox;display:flex}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb.thumb--minValue*/.thumb.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}/*!@.thumb.thumb--precise*/.thumb.thumb--precise.sc-calcite-slider{--calcite-slider-thumb-y-offset:-2px}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:50%}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}/*!@:host([has-histogram][label-handles]) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--minValue.thumb--precise.sc-calcite-slider .handle__label.sc-calcite-slider{margin-top:0.5em}/*!@:host(:not([has-histogram]):not([precise])) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--value .handle__label*/.sc-calcite-slider-h:not([has-histogram]):not([precise]) .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--value.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:0.5em}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-33px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-44px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-49px}/*!@.thumb:focus .handle, .thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after, .thumb:focus.thumb--precise:after, .thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}/*!@:host([has-histogram][label-handles]) .tick__label--min, :host([has-histogram][label-handles]) .tick__label--max, :host([has-histogram][precise]) .tick__label--min, :host([has-histogram][precise]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3);height:48px}/*!@:host([label-ticks][ticks]) .container*/[label-ticks][ticks].sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}/*!@:host([has-histogram]):host([precise][label-handles]) .container*/[has-histogram].sc-calcite-slider-h([precise][label-handles]).sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}/*!@:host([has-histogram]):host([label-handles]:not([precise])) .container*/[has-histogram].sc-calcite-slider-h([label-handles].sc-calcite-slider-h:not([precise])) .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}/*!@:host([has-histogram]):host([precise]:not([label-handles])) .container*/[has-histogram].sc-calcite-slider-h([precise].sc-calcite-slider-h:not([label-handles])) .container.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container.sc-calcite-slider{padding-top:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container--range.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([label-handles]:not([precise])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles]:not([precise])) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container--range.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
24482
24729
|
|
|
24483
24730
|
class CalciteSlider {
|
|
24484
24731
|
constructor(hostRef) {
|
|
@@ -24733,7 +24980,7 @@ class CalciteSlider {
|
|
|
24733
24980
|
histogramLabeledPreciseHandle, hAsync(HiddenFormInputSlot, { component: this })))));
|
|
24734
24981
|
}
|
|
24735
24982
|
renderGraph() {
|
|
24736
|
-
return this.histogram ? (hAsync("
|
|
24983
|
+
return this.histogram ? (hAsync("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.isRange ? this.maxValue : this.value, highlightMin: this.isRange ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
|
24737
24984
|
}
|
|
24738
24985
|
renderTickLabel(tick) {
|
|
24739
24986
|
const isMinTickLabel = tick === this.min;
|
|
@@ -25040,7 +25287,7 @@ class CalciteSlider {
|
|
|
25040
25287
|
const hyphenLabel = leftValueLabel;
|
|
25041
25288
|
const labelOffset = labelFontSize / 2;
|
|
25042
25289
|
if (labelTransformedOverlap > 0) {
|
|
25043
|
-
hyphenLabel.classList.add("hyphen");
|
|
25290
|
+
hyphenLabel.classList.add("hyphen", "hyphen--wrap");
|
|
25044
25291
|
if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
|
|
25045
25292
|
// Neither handle overlaps the host boundary
|
|
25046
25293
|
let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
|
|
@@ -25086,7 +25333,7 @@ class CalciteSlider {
|
|
|
25086
25333
|
}
|
|
25087
25334
|
}
|
|
25088
25335
|
else {
|
|
25089
|
-
hyphenLabel.classList.remove("hyphen");
|
|
25336
|
+
hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
|
|
25090
25337
|
leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
25091
25338
|
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
25092
25339
|
rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
|
|
@@ -29749,6 +29996,17 @@ class CalciteTile {
|
|
|
29749
29996
|
}
|
|
29750
29997
|
// --------------------------------------------------------------------------
|
|
29751
29998
|
//
|
|
29999
|
+
// Lifecycle
|
|
30000
|
+
//
|
|
30001
|
+
// --------------------------------------------------------------------------
|
|
30002
|
+
connectedCallback() {
|
|
30003
|
+
connectConditionalSlotComponent(this);
|
|
30004
|
+
}
|
|
30005
|
+
disconnectedCallback() {
|
|
30006
|
+
disconnectConditionalSlotComponent(this);
|
|
30007
|
+
}
|
|
30008
|
+
// --------------------------------------------------------------------------
|
|
30009
|
+
//
|
|
29752
30010
|
// Render Methods
|
|
29753
30011
|
//
|
|
29754
30012
|
// --------------------------------------------------------------------------
|
|
@@ -30779,6 +31037,17 @@ class CalciteTip {
|
|
|
30779
31037
|
}
|
|
30780
31038
|
// --------------------------------------------------------------------------
|
|
30781
31039
|
//
|
|
31040
|
+
// Lifecycle
|
|
31041
|
+
//
|
|
31042
|
+
// --------------------------------------------------------------------------
|
|
31043
|
+
connectedCallback() {
|
|
31044
|
+
connectConditionalSlotComponent(this);
|
|
31045
|
+
}
|
|
31046
|
+
disconnectedCallback() {
|
|
31047
|
+
disconnectConditionalSlotComponent(this);
|
|
31048
|
+
}
|
|
31049
|
+
// --------------------------------------------------------------------------
|
|
31050
|
+
//
|
|
30782
31051
|
// Render Methods
|
|
30783
31052
|
//
|
|
30784
31053
|
// --------------------------------------------------------------------------
|
|
@@ -30797,7 +31066,7 @@ class CalciteTip {
|
|
|
30797
31066
|
}
|
|
30798
31067
|
renderImageFrame() {
|
|
30799
31068
|
const { el } = this;
|
|
30800
|
-
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
31069
|
+
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame, key: "thumbnail" }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
30801
31070
|
}
|
|
30802
31071
|
renderInfoNode() {
|
|
30803
31072
|
return (hAsync("div", { class: CSS$3.info }, hAsync("slot", null)));
|
|
@@ -31473,7 +31742,8 @@ class CalciteTree {
|
|
|
31473
31742
|
onFocusIn(event) {
|
|
31474
31743
|
const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
|
|
31475
31744
|
if (focusedFromRootOrOutsideTree) {
|
|
31476
|
-
|
|
31745
|
+
// gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
|
|
31746
|
+
this.el.removeAttribute("tabindex");
|
|
31477
31747
|
}
|
|
31478
31748
|
}
|
|
31479
31749
|
onFocusOut(event) {
|
|
@@ -31708,6 +31978,10 @@ class CalciteTreeItem {
|
|
|
31708
31978
|
const { expanded } = this.parentTreeItem;
|
|
31709
31979
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
31710
31980
|
}
|
|
31981
|
+
connectConditionalSlotComponent(this);
|
|
31982
|
+
}
|
|
31983
|
+
disconnectedCallback() {
|
|
31984
|
+
disconnectConditionalSlotComponent(this);
|
|
31711
31985
|
}
|
|
31712
31986
|
componentWillRender() {
|
|
31713
31987
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -32192,6 +32466,17 @@ class CalciteValueListItem {
|
|
|
32192
32466
|
}
|
|
32193
32467
|
// --------------------------------------------------------------------------
|
|
32194
32468
|
//
|
|
32469
|
+
// Lifecycle
|
|
32470
|
+
//
|
|
32471
|
+
// --------------------------------------------------------------------------
|
|
32472
|
+
connectedCallback() {
|
|
32473
|
+
connectConditionalSlotComponent(this);
|
|
32474
|
+
}
|
|
32475
|
+
disconnectedCallback() {
|
|
32476
|
+
disconnectConditionalSlotComponent(this);
|
|
32477
|
+
}
|
|
32478
|
+
// --------------------------------------------------------------------------
|
|
32479
|
+
//
|
|
32195
32480
|
// Public Methods
|
|
32196
32481
|
//
|
|
32197
32482
|
// --------------------------------------------------------------------------
|